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

<!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="../skin/Style.css" rel="stylesheet" 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($("txtInfo").value=="")
    {
      document.getElementById("info").innerHTML="内容不能为空";
      return false;
    }
    if($("lstHelpType").value=="")
    {
      document.getElementById("type").innerHTML="请选择类型";
      return false;
    }
    return true;
  }
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <div class="itemtitle">
            <h3>
                修改</h3>
        </div>
        <div class="clr">
        </div>
        <div class="talbe_border">
            <table border="0" cellpadding="0" cellspacing="0" class="talbe_list">
                <tr>
                    <td width="16%" class="left1">
                        帮助类别：</td>
                    <td width="84%" class="left2">
                        <asp:ListBox ID="lstHelpType" runat="server" Height="124px" Width="108px" OnSelectedIndexChanged="lstHelpType_SelectedIndexChanged"
                            AutoPostBack="True"></asp:ListBox><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">
                        <asp:TextBox ID="txtTitle" runat="server" Width="421px"></asp:TextBox>
                        <div id="title" style="color: Red">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="left1">
                        内容：</td>
                    <td class="left2">
                        <asp:TextBox ID="txtInfo" runat="server" Height="164px" TextMode="MultiLine" Width="422px"></asp:TextBox>
                        <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>
            </table>
        </div>
    </form>
</body>
</html>
