<%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
<%@ Page language="c#" Inherits="Discuz.ForumPage.Admin.bbcodegrid" Codebehind="forum_bbcodegrid.aspx.cs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>Discuz!NT代码</title>
	    <LINK href="../styles/datagrid.css" type="text/css" rel="stylesheet">
	    <link href="../styles/dntmanager.css" type="text/css" rel="stylesheet"> 
	    <script language="javascript" src="../js/common.js"></script>
</head>

	<body>
		<form id="Form1" method="post" runat="server">
		
<script>
showhint(0, '<ul><li>自定义 Discuz!NT 代码只在帖子和签名中生效, 其他位置(如短消息内容)中无效. </ul><ul><li>只有在用户组权限设定中, 将“允许使用自定义 Discuz!NT 代码”打开时, 该组用户所发表的包含自定义 Discuz!NT 代码的内容才会被解析. </ul><ul><li>出于安全考虑, 如果您启用了 [flash]、[rm]、[wmv] 等不安全代码, 请务必在用户组中设定只有内部人员组可以使用, 以免带来可能的安全问题. </ul><ul><li>只有在自定义 Discuz!NT 代码可用并设置了图标文件时, 具有“允许使用自定义 Discuz!NT 代码”权限的用户组在发帖时才会看到相应自定义 Discuz!NT 代码按钮. </ul>');
</script>
			<table>
				<TBODY>
					<tr>
						<td class="category"><input title="选中/取消选中 本页所有Case" onclick="CheckAll(this.form)" type="checkbox" name="chkall" id="chkall">全选/取消全选 &nbsp;&nbsp; 
							<cc1:Button id="DelRec" runat="server" Text=" 删 除 " ButtonImgUrl="../images/del.gif"></cc1:Button> &nbsp;&nbsp; 
							<cc1:Button id="SetAvailable" runat="server" Text="置为有效"></cc1:Button> &nbsp;&nbsp; 
							<cc1:Button id="SetUnAvailable" runat="server" Text="置为无效"></cc1:Button> &nbsp;&nbsp; 
							<button type="button" class="ManagerButton" onclick="javascript:window.location.href='forum_addbbcode.aspx';"><img src="../images/add.gif" /> 添加Discuz!NT代码</button></span>
						</td>
					</tr>
				</TBODY>
			</table>
<cc1:datagrid id="DataGrid1" runat="server" OnPageIndexChanged="DataGrid_PageIndexChanged" OnSortCommand="Sort_Grid" >
				<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:TemplateColumn HeaderText="">
						<ItemTemplate>
							<a href="forum_editbbcode.aspx?id=<%# DataBinder.Eval(Container, "DataItem.id").ToString()%>">编辑</a>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:BoundColumn DataField="ID" SortExpression="id" HeaderText="id [递增]" Visible="false" ></asp:BoundColumn>
					<asp:BoundColumn DataField="tag"  SortExpression="tag" HeaderText="标签" Visible="true"></asp:BoundColumn>
					<asp:BoundColumn DataField="icon" SortExpression="icon"  HeaderText="图标文件" ></asp:BoundColumn>
					<asp:BoundColumn DataField="icon" HeaderText="图标"></asp:BoundColumn>
					<asp:TemplateColumn HeaderText="图片">
						<ItemTemplate>
					       <img src="../../editor/images/<%# DataBinder.Eval(Container, "DataItem.icon").ToString() %>" width=20px height=20px />
					    </ItemTemplate>
					</asp:TemplateColumn>
					<asp:TemplateColumn HeaderText="可用">
						<ItemTemplate>
						<%# BoolStr(DataBinder.Eval(Container, "DataItem.available").ToString())%>
						</ItemTemplate>
					</asp:TemplateColumn>	
				</Columns>
			</cc1:datagrid>
		</form>
		<%=footer%>
	</body>
</HTML>
