<%@ Page Language="C#" AutoEventWireup="false" CodeBehind="global_helplist.aspx.cs" Inherits="Discuz.ForumPage.Admin.HelpList" %>
<%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
<!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">
    <LINK href="../styles/datagrid.css" type="text/css" rel="stylesheet">
		<LINK href="../styles/dntmanager.css" type="text/css" rel="stylesheet">
		<LINK href="../styles/calendar.css" type="text/css" rel="stylesheet">
		<script language="javascript" src="../js/common.js"></script>
</head>
<body>
    <form id="form1" runat="server" action="">
    <div class="ManagerForm">
    <fieldset>
		<legend style="background:url(../images/icons/icon34.jpg) no-repeat 6px 50%;">帮助管理</legend>
	<div class="Navbutton">   
   		<table cellspacing="1" cellpadding="4" align="center" class="table1">
				<TBODY>
					<tr>
						<td><input title="选中/取消选中 本页所有Case" onClick="CheckAll(this.form)" type="checkbox" name="chkall" id="chkall">全选/取消全选
							&nbsp;&nbsp;
							<button type="button" class="ManagerButton" onclick="javascript:window.location.href='global_addhelp.aspx';"><img src="../images/add.gif"/> 添加帮助</button>&nbsp;&nbsp;
				            <button type="button" class="ManagerButton" onclick="javascript:window.location.href='global_addhelpclass.aspx';"><img src="../images/add.gif"/> 添加分类</button>
						</td>
					</tr>
				</TBODY>
			</table>
    </div>
	<table width="100%" border="0">
	  <tr> 
		<td width="25%" align="center">标题</td>
		<td width="37%" align="center">排序号</td>
		<td width="25%" align="center">编辑</td>
	  </tr>
  
	  <%if (this._arrayList != null) 
	  {
		       foreach(Discuz.Entity.HelpInfo hi in this._arrayList) 
			   {
				   string kg="",id;

				   if (hi.Pid == 0)
				   { 
				   id = hi.Id.ToString();
					 
				   }
				   else
				   {
					   
					   id = hi.Pid.ToString();
					   
					   kg = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
				   }
				   %>
	  <tr  onmouseover="this.style.background='#ECFFE6'; " onmouseout ="this.style.background=''; this.style.borderColor=''" >
		<td align="left"><%=kg%><input type="checkbox" name="id" value="<%=hi.Id%>"  id="id<%=id%>" onClick="<%if (hi.Pid == 0){%>javascript:selectall(<%=id%>)<%}else{%> ""<%}%>" /><%=hi.Title%></td>
		<td align="center"><input type="text" size="3" maxlength="4" name="orderbyid" value="<%=hi.Orderby %>" class="FormBase" onfocus="this.className='FormFocus';" onblur="this.className='FormBase';"><input name="hidid" type="hidden" value="<%=hi.Id%>" /></td>
		<td align="center"><A href="global_edithelp.aspx?id=<%=hi.Id%>">编辑</A></td>
	  </tr>
  
    <%}%>
 <%}else{%>
 <tr><td>没有数据</td></tr>
 <%} %>
</table>
</fieldset>	
	<div class="Navbutton" style="width:98%;"> <cc1:Button id="DelRec" runat="server" Text=" 删 除 " ButtonImgUrl="../images/del.gif"></cc1:Button>  <cc1:Button id="Orderby" runat="server" Text=" 确 定 "   ButtonImgUrl="../images/submit.gif"></cc1:Button>&nbsp;&nbsp;</div>
    </form>
    <%=footer%>
</body>
</html>
