<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="JuSNS.Web.system.help.index" %>

<!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>
<title id="ptitle" runat="server">帮助管理</title>
<link href="../images/css/style.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="../../js/ajax.js"></script>
<script language="javascript" type="text/javascript" src="../../js/public.js"></script>

</head>
<body>
<table width="99%" border="0" align="center" cellpadding="5" cellspacing="1">
  <tr>
    <td width="120" align="center" valign="top">
        <div class="menu">
            <ul>
        	<%=this.GetSystemMenu(sort)%>
        	</ul>
      </div>
    </td>
    <td valign="top">
   <div class="navip">
    <span class="Blue"><a href="index.aspx">帮助管理</a> <a href="add.aspx">添加帮助</a> </span> 
   </div> 
   <div id="DivErr" runat="server"></div>
   <form id="form1" runat="server">
   <div id="mainbody">
            <asp:Repeater runat="server" ID="Rpt_UserList">
                <HeaderTemplate>
                    <table width="100%" border="0" cellpadding="3" cellspacing="1" class="maintable">
                        <tr class="maintablehead">
                        <td align="center" style="width: 10%;">
                                序号</td>
                            <td align="center" style="width: 10%;">
                                帮助编号</td>
                            <td align="center" style="width: 20%;">
                                标题</td>
                            <td align="center" style="width: 50%;">
                                概要</td>
                            <td align="center" style="width: 10%;">
                                操作</td>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr class="maintablelist">
                    <td align="center">
                            <%# DataBinder.Eval(Container.DataItem, "ID")%>
                        </td>
                        <td align="center">
                            <%# DataBinder.Eval(Container.DataItem, "SN")%>
                        </td>
                        <td>
                            <%# DataBinder.Eval(Container.DataItem, "Title")%>
                        </td>                        
                        <td>
                            <%# JuSNS.Common.Input.GetSubString(JuSNS.Common.Input.FilterHTML(DataBinder.Eval(Container.DataItem, "Content").ToString()), 200)%>
                        </td>
                        <td align="center">
                            <a href="add.aspx?ID=<%# DataBinder.Eval(Container.DataItem, "ID")%>&SN=<%# DataBinder.Eval(Container.DataItem, "SN")%>">编辑</a>
                            | <a href="javascript:del(<%# DataBinder.Eval(Container.DataItem, "ID")%>);">删除</a>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </table>
                </FooterTemplate>
            </asp:Repeater>
           <div class="pagination" runat="server" id="DivPage" align="center"></div>
             <table width="100%" border="0" cellpadding="3" cellspacing="1">
                <tr class="maintablepage">
                    <td>
                        <div align="center">
                            输入帮助编号搜索你要找的帮助
                            <asp:TextBox ID="Key" runat="server" Width="200"></asp:TextBox><asp:Button ID="Button1"
                                runat="server" Text=" 搜索 " OnClick="Button1_Click" /></div>
                        
                    </td>
                </tr>
            </table>
        </div>
    </form>
    </td>
  </tr>
</table>
</body>
</html>
<script language="javascript" type="text/javascript">
function del(id)
{
    if(confirm('你确认删除此帮助信息吗?'))
        self.location="?Type=del&id="+id;
}

</script>
