<%@ Page Inherits="Dvbbs.bbs.UI.Admin.board_setting_list" %>
<%@ Register tagPrefix="Dvbbs" namespace="Dvbbs.Controls" assembly="Dvbbs.Web"%>
<%@ Register tagPrefix="bbs" tagName="AdminHeader" src="controls/admin_header.ascx"%>
<%@ Register tagPrefix="bbs" tagName="AdminFooter" src="controls/admin_footer.ascx"%>
<bbs:AdminHeader title="版面列表" runat="server" id="AdminHeader1" /></ br>
<form runat="server" ID="Form1">
	<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0">
		<tr>
			<th colspan="3"><%=Server.HtmlEncode(title)%> 到论坛版面</th>
		</tr>
		<tr>
			<td width="1%" nowrap="nowrap">应用?</td>
			<td width="8%" nowrap="nowrap">编号</td>
			<td>版面名称</td>
		</tr>
		<asp:Repeater id="list" runat="server">
			<ItemTemplate>
				<tr onMouseOver="this.bgColor='#ffffff'" onMouseOut="this.bgColor=''">
					<td><Dvbbs:Span id="isset" runat="server" /></td>
					<td><Dvbbs:Span id="bid" runat="server" /></td>
					<td><Dvbbs:Span id="type" runat="server" /></td>
				</tr>
			</ItemTemplate>
		</asp:Repeater>
		<tr>
			<td colspan="3">
				<input type="checkbox" name="chkall" onClick="CheckAll(this.form);" class="checkbox" />全选/取消&nbsp;&nbsp;
				<input type="checkbox" name="rechkall" onClick="ReChkAll(this.form);" class="checkbox" />反选&nbsp;&nbsp;
				<input type="submit" value="应用到所选版面" onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" />
			</td>
		</tr>
	</table>
</form>
<script type="text/javascript" language="javascript">
function CheckAll(form)
{
	for (var i = 0; i < form.elements.length; i++)
	{
		var e = form.elements[i];
		if (e.name == 'isset')
			e.checked = form.chkall.checked;
	}
}

function ReChkAll(form)
{
	var es = form.elements['isset'];
	if (es.length)
		for(var i = 0,e;e = es[i],i < es.length; i++)
			e.checked = (!e.checked);
	else
			es.checked = (!es.checked);
}
</script>
<bbs:AdminFooter runat="server" id="AdminFooter1" />
