<%--
//-----------------------------------------------------------
// 文件名称: System_Help_Operate.aspx
// 页面名称: 帮助信息添加
//
// 描    述:
//
// 修改标识: Add By 钟治宇 2008-11-17  
// 帮助内容不能上传图片 添加了一个控件
//-----------------------------------------------------------
--%>
<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.System_Help_Operate, V5Shop.Shop.Config" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc1" %>
<%@ Register Assembly="V5Shop.Control" Namespace="V5Shop.Control" TagPrefix="cc1" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>帮助添加/编辑页面</title>
        <link href="css/css.css" rel="stylesheet" type="text/css"/>
<link href="css/css_list.css" rel="stylesheet" type="text/css"/>
<link href="css/control.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" language="javascript" src="js/Common.js"></script>
<script type="text/javascript" src="editor/fckeditor.js"></script>   
<script type="text/javascript" language="javascript" src="Js/Calendar.js"></script>
<script type="text/javascript" language="javascript" src="Js/Calendar-zh.js"></script>
<script type="text/javascript" language="javascript" src="Js/Calendar-Setup.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div class="OperateTitle">
        <div>
            <asp:Label ID="lblAdd" runat="server" Text="【 帮助信息添加 】"></asp:Label> 
            <asp:Label ID="lblEdit" runat="server" Text="【 帮助信息编辑 】" Visible="false"></asp:Label> 
            <a href="System_Help_Manage.aspx" title="返回帮助列表">返回列表</a>
        </div>
        </div>
    
    <div>
       <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" id="OperateTable" runat="server">
       <tr>
        <td align="right" bgcolor="#FFFFFF" style="height: 30px; width: 20%;">
        <asp:Label ID="lblTitle" runat="server" Text="帮助标题：" ></asp:Label> 
        </td>
        <td bgcolor="#FFFFFF" align="left" style="height: 30px">
        <asp:TextBox ID="txtTitle" runat="server" MaxLength="100" Width="300px"></asp:TextBox>  <span class="NeedMsg">*</span>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="txtTitle" runat="server" ErrorMessage="不能为空"></asp:RequiredFieldValidator>
        </td>
        </tr>

       <tr>
        <td align="right" bgcolor="#FFFFFF" style="height: 30px; width: 20%;">
        <asp:Label ID="lblCategoryID" runat="server" Text="帮助分类：" ></asp:Label> 
        </td>
        <td bgcolor="#FFFFFF" align="left" style="height: 30px">
            <asp:DropDownList ID="ddlCategoryID" runat="server">
                <asp:ListItem Value="0">请选择</asp:ListItem>
            </asp:DropDownList><span class="NeedMsg">*</span>&nbsp;
            <asp:Button ID="btnManage" runat="server" CssClass="button" Text="管理" CausesValidation="False" OnClick="btnManage_Click" /></td>
        </tr>

       <tr>
        <td align="right" bgcolor="#FFFFFF" style="height: 30px; width: 20%;">
            <cc1:HelpCtrl ID="HelpCtrl1" runat="server" FontColor="red" Header="帮助关键字" ImageURL="images/help.gif"
                Text="可高度概括该帮助的一些关键词，如：注册、登陆等。该项可用于搜索引擎搜索优化" />
        <asp:Label ID="lblKeyword" runat="server" Text="帮助关键字：" ></asp:Label> 
        </td>
        <td bgcolor="#FFFFFF" align="left" style="height: 30px">
        <asp:TextBox ID="txtKeyword" runat="server" TextMode="MultiLine" Height="60px" Width="300px"></asp:TextBox>  <span class="NeedMsg">*</span>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" ControlToValidate="txtKeyword" runat="server" ErrorMessage="不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtKeyword"
                Display="Dynamic" ErrorMessage="长度必须在100字以内" ValidationExpression="^[\s\S]{0,100}$"></asp:RegularExpressionValidator></td>
        </tr>

       <tr>
        <td align="right" bgcolor="#FFFFFF" style="height: 30px; width: 20%;">
            <cc1:HelpCtrl ID="HelpCtrl2" runat="server" FontColor="red" Header="帮助描述" ImageURL="images/help.gif"
                Text="该帮助内容的简单描述，该项可用于搜索引擎搜索优化" />
        <asp:Label ID="lblDescription" runat="server" Text="帮助描述：" ></asp:Label> 
        </td>
        <td bgcolor="#FFFFFF" align="left" style="height: 30px">
        <asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" Height="60px" Width="300px"></asp:TextBox>  <span class="NeedMsg">*</span>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" ControlToValidate="txtDescription" runat="server" ErrorMessage="不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtDescription"
                Display="Dynamic" ErrorMessage="长度必须在200字以内" ValidationExpression="^[\s\S]{0,200}$"></asp:RegularExpressionValidator></td>
        </tr>
        
        <tr>
                <td width="20%" height="30" align="right" bgcolor="#FFFFFF">
        <asp:Label ID="lblContent" runat="server" Text="帮助内容："></asp:Label> </td>
        <td bgcolor="#FFFFFF" align=left>
              <%--   2008-11-17  --%>
                    <button id="btnSelectPicture" runat="server" class="button" style="vertical-align: middle;
                        width: 72px; text-align: center" type="button">
                        图片选择</button><br />
        <cc1:FCKeditor ID="FCKeditor1" runat="server" Width="600px"></cc1:FCKeditor>
            
        </td>
        </tr>
        
       <tr>
        <td align="right" bgcolor="#FFFFFF" style="height: 30px; width: 20%;">
            <cc1:HelpCtrl ID="HelpCtrl3" runat="server" FontColor="red" Header="帮助排序" ImageURL="images/help.gif"
                Text="用于控制前台帮助显示顺序" />
        <asp:Label ID="lblOrderId" runat="server" Text="帮助排序：" ></asp:Label> 
        </td>
        <td bgcolor="#FFFFFF" align="left" style="height: 30px">
        <asp:TextBox ID="txtOrderID" runat="server" MaxLength="9"></asp:TextBox><span style="color: #ff0000">*</span>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtOrderID"
                Display="Dynamic" ErrorMessage="只能为数字" ValidationExpression="\d*"></asp:RegularExpressionValidator>&nbsp;<span class="NeedMsg"></span>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" ControlToValidate="txtOrderID" runat="server" ErrorMessage="不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
        </td>
        </tr>
        <tr>
                <td align="right" bgcolor="#FFFFFF" style="width: 20%; height: 30px;"></td>
        <td bgcolor="#FFFFFF" align="left" style="height: 30px">
        <asp:Button ID="btnAdd" runat="server" Text="确定" OnClick="btnAdd_Click" meta:resourcekey="btnAddResource1" CssClass="button" />
        <asp:Button ID="btnEdit" runat="server" Text="更新" OnClick="btnEdit_Click" Visible="False" meta:resourcekey="btnEditResource1" CssClass="button" />
        <input id="iptReset" runat="server" type="reset" value="重置" class="button" />    
        <input id="btnReturn" runat="server" type="button" value="返回列表" onclick="window.location.href='System_Help_Manage.aspx'" class="button"/>    
        </td>
        </tr>        
       </table>  
       <script type="text/javascript">
            //加TABLE样式
            InitTrClass();
       </script>
	 </div>
    </form>
    <uc1:PageBottom ID="PageBottom1" runat="server" />
</body>
</html>
