<%@ Page Language="C#" AutoEventWireup="true" CodeFile="HelpCenterAdd.aspx.cs" Inherits="admin_Help_HelpCenterAdd" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<!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">
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>添加帮助信息</title>
    <link rel="stylesheet" href="../skin/style.css" type="text/css" />

    <script type="text/javascript">
  function $(id)
  {
    return document.getElementById(id);
  }
  
  function check()
  {
    if($("txtTitle").value=="")
    {
      document.getElementById("title").innerHTML="标题不能为空";
      return false;
    }
    if($("lstHelpType").value=="")
    {
      document.getElementById("type").innerHTML="请选择类型";
      return false;
    }
    return true;
  }
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <div class="talbe_border marie">
            <table border="0" cellpadding="0" cellspacing="0" class="talbe_list">
                <tr>
                    <th colspan="2" class="header tou">
                        添加帮助信息</th>
                </tr>
                <tr>
                    <td width="16%" class="left1">
                        帮助类别：</td>
                    <td width="84%" class="left2">
                        <span>
                            <asp:ListBox ID="lstHelpType" runat="server" Height="124px" Width="108px" OnSelectedIndexChanged="lstHelpType_SelectedIndexChanged"
                                AutoPostBack="True"></asp:ListBox></span><div id="type" style="color: Red">
                                </div>
                        <asp:ListBox ID="lstHelpType1" runat="server" Height="124px" Width="108px"></asp:ListBox></td>
                </tr>
                <tr>
                    <td class="left1">
                        标题：</td>
                    <td class="left2">
                        <span>
                            <asp:TextBox ID="txtTitle" runat="server" Width="421px"></asp:TextBox></span>
                        <div id="title" style="color: Red">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="left1">
                        内容：</td>
                    <td>
                        <FCKeditorV2:FCKeditor ID="txtInfo" runat="server" BasePath="~/Control/fckeditor/"
                            ToolbarSet="Basic" Height="400" Width="645">
                        </FCKeditorV2:FCKeditor>
                        <div id="info" style="color: Red">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td bgcolor="#F0F7FD" colspan="2">
                        <asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" Text="确定" CssClass="i_button"
                            OnClientClick="javascript: return check()" />
                        <asp:Button ID="btnCancel" runat="server" Text="取消" CssClass="i_button" OnClick="btnCancel_Click" />
                    </td>
                </tr>
                <asp:Label ID="lblMessage" runat="server" Text="Label" ForeColor="red" Visible="false"></asp:Label></table>
        </div>
    </form>
</body>
</html>
