<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="helpEditor.aspx.cs" ValidateRequest="false" Inherits="ZYDN.Web.system.help.helpPD.helpEditor" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>帮助编辑页面</title>
    <link rel="stylesheet" type="text/css" href="../../skins/css/main.css" />
    <link rel="stylesheet" type="text/css" href="../../skins/css/sys.css" />
    <script language="javascript" type="text/javascript" src="../../JS/JFramework.js"></script>
    <script language="javascript" type="text/javascript" src="../../JS/Sys.js"></script>
    <script language="javascript" type="text/javascript" src="js/help.js"></script>
    <script language="javascript" type="text/javascript">
      var editorName="";
      function loadPage(){//系统加载的时候执行          
           if(p!=null&&p!="")
           {
             var pName=document.getElementById(p);
             pName.style.backgroundImage="url(./img/click.gif)";
             pName.childNodes[1].style.color="#ffffff";
             readHelpContentEditor(p);
             writeFettleLeft("提示:当前显示的是"+p+"的使用帮助"); //状态栏提示  
           } 
           else
           { 
               editTxt.Composition.document.body.innerHTML="欢迎使用帮助";
           }       
        }
    </script>
</head>
<body onload="loadPage()">
    <form id="form1" runat="server">
    <div>
    <table border="0" cellpadding="0" cellspacing="0" style="width:100%; height:100%;">
           <tr>
                <!--显示栏目-->
                <td >
                    <div style="width:200px; height:100%; text-align:center;overflow-y:scroll;background-image:url(./img/bgColor.gif)">
                        <asp:Repeater ID="softList" runat="server">
                            <ItemTemplate>
                                <div style="width:170px; height:35px; padding-top:5px; padding-left:5px;" name="helpDiv" id="<%# DataBinder.Eval(Container,"DataItem.pName")%>"  onmouseover="over(this)" onmouseleave="leave(this)" onclick="clickHelpEditor(this)">
                                    <div style="width:27px;float: left; padding-left: 8px;padding-top:2px;"><img width="22" src="../../webOS/<%# DataBinder.Eval(Container,"DataItem.ICO")%>"></div>
                                    <div style="width:128px;float: left; padding-top: 5px; padding-left:2px; font-size:12px;" title="<%# DataBinder.Eval(Container, "DataItem.pAsName")%>"><%# DataBinder.Eval(Container, "DataItem.pAsName")%>
                                    </div>
                                </div>
                            </ItemTemplate>
                        </asp:Repeater>
                    </div> 
                </td>
                <!--显示栏目内容-->
               <td style="width:100%; height:100%;">
                        <div style="width:100%; height:33px; text-align:left; padding-top:10px; margin-left:20px; background-image:url(./img/ts.gif); background-position:left; background-repeat:no-repeat;">说明:编辑完成以后请直接保存.</div>
                        <div style="width:100%; height:85%; text-align:center;"><iframe src="" id="Iframe1" name="editTxt" style="width: 100%; height:100%" marginwidth="0" marginheight="0" align="top" scrolling="no" frameborder="0"></iframe></div>
                        <div style="width:100%; height:10%;"><input id="Button2" type="button" value="保存" onclick="saveHelpEditor()" /></div>
                </td>
           </tr> 
        </table>
    </div>
     <script type="text/javascript" language="javascript">
           $("editTxt").src="../../editor/Editor.htm";
     </script>
    </form>
</body>
</html>
