<%@ Page language="c#" Codebehind="forum_topictypesgrid.aspx.cs" AutoEventWireup="false" Inherits="Discuz.ForumPage.Admin.topictypesgrid" %>
<%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
<%@ Register TagPrefix="cc2" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > 
<html>
  <head>
    <title>主题分类</title>
		<link href="../styles/datagrid.css" type="text/css" rel="stylesheet">		
		<script language="javascript" src="../js/common.js"></script>
		<link href="../styles/dntmanager.css" type="text/css" rel="stylesheet">
  </head>
 <body>
		<form id="Form1" method="post" runat="server">
			<script language="javascript">
				showhint(0, ' 本功能可限定某特定类型附件的最大尺寸, 当这里设定的尺寸小于用户组允许的最大尺寸时, 指定类型的附件尺寸限制将按本设定为准');
				showhint(1, ' 附件是否有效可在版块及用户组中设置, 且具体版块设置优先于用户组设置');
			</script>
			<table cellspacing="1" cellpadding="4" width="100%" align="center" class="table1" style="MARGIN: 0px">
					<TBODY>
						<tr>
							<td class="category"><input title="选中/取消选中 本页所有Case" onclick="CheckAll(this.form)" type="checkbox" name="chkall" id="chkall">全选/取消全选 
								&nbsp;
								<cc1:Button id="delButton" runat="server" Text=" 删 除 "  ButtonImgUrl="../images/del.gif"></cc1:Button>
							</td>
						</tr>
					</TBODY>
			</table>
			<cc1:datagrid id="DataGrid1" runat="server" OnCancelCommand="DataGrid_Cancel" OnEditCommand="DataGrid_Edit"
				OnPageIndexChanged="DataGrid_PageIndexChanged" OnSortCommand="Sort_Grid" OnUpdateCommand="DataGrid_Update"  PageSize="10">
				<Columns>
				    <asp:TemplateColumn HeaderText="选择">
						<ItemTemplate>
							<INPUT id="id" onclick="javascript:SH_SelectOne(this)" type="checkbox" value="<%# DataBinder.Eval(Container, "DataItem.id").ToString() %>"	name="id"></asp:Label>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:BoundColumn DataField="name" SortExpression="name" HeaderText="主题分类"></asp:BoundColumn>
					<asp:BoundColumn DataField="displayorder" SortExpression="displayorder" HeaderText="显示顺序"></asp:BoundColumn>
					<asp:BoundColumn DataField="description" HeaderText="描述"></asp:BoundColumn>
					<asp:TemplateColumn HeaderText="关联论坛">
					  <ItemStyle HorizontalAlign="Left">
					  </ItemStyle>
						<ItemTemplate>
							<%# LinkForum(DataBinder.Eval(Container, "DataItem.id").ToString()) %>
						</ItemTemplate>
					</asp:TemplateColumn>
					
				</Columns>
			</cc1:datagrid>			
			<div class="ManagerForm">
			<fieldset>
		    <legend style="background:url(../images/icons/icon45.jpg) no-repeat 6px 50%;">添加主题分类</legend>
			<table cellspacing="0"  class="tabledatagrid" align="center" width="100%">
				<tr>
					<td class="td2" width="20%">主题分类名:</td>
					<td class="td2" width="30%">
						<cc2:TextBox id="typename" runat="server" RequiredFieldType="暂无校验" IsReplaceInvertedComma="true" MaxLength="200"></cc2:TextBox></td>
					<td class="td1" width="20%">显示顺序:</td>
					<td class="td1" width="30%">
						<cc2:TextBox id="displayorder" runat="server" RequiredFieldType="数据校验"  size="3" MaxLength="4"></cc2:TextBox>
						</td>
				</tr>
				<tr>
					<td class="td2">描述:</td>
					<td class="td2" colspan="3">
						<cc2:TextBox id="description" runat="server" RequiredFieldType="暂无校验" MaxLength="500"></cc2:TextBox>
						</td>
				</tr>
			</table>
			</fieldset>
			<div align="center">
			    <cc1:Button id="AddNewRec" runat="server" Text=" 提 交 "></cc1:Button>
			</div>
			</div>
			<%=footer%>
		</form>
		
  </body>
</html>
