<%@ Page Inherits="Dvbbs.bbs.UI.Admin.admin_randadvertise" %>
<%@ 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'/>
<script language='javascript'>
function chkPost()
{
	var f = document.forms[0];
	if (f.name.value == '')
	{
		alert('请填写名称');
		f.name.focus();
		return false;
	}
	if (f.content.value == '')
	{
		alert('请填写广告内容');
		f.content.focus();
		return false;
	}
	return true;
}
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#C4D8ED">
<tr>
<td></td>
<td>
<table align='center' cellpadding='4' cellspacing='1' class='toptable grid' border='1'>
	<tr align='center'>
		<td class='category' width='14%' align='center'>操作</td>
		<td class='category' width='20%'>名称</td>
	</tr>
	<asp:Repeater enableviewstate='false' id='list' runat='server'>
		<ItemTemplate>
			<tr onmouseover="this.className='highlight'" onmouseout="this.className=''">
				<td align='center'><Dvbbs:Anchor id='alter' text='修改' runat='server'/><span style='padding-left:6px;padding-right:6px'>|</span><Dvbbs:Anchor id='remove' text='删除' runat='server'/></td>
				<td><Dvbbs:Span id='name' runat='server'/></td>
			</tr>
		</ItemTemplate>
	</asp:Repeater>
</table>
<br>
<form id='addnew' runat='server'>
	<table align='center' cellpadding='4' cellspacing='1' class='toptable grid' border='1'>
		<tr>
			<td width='140' class='category'>新广告项目</td>
			<td class='category t2'></td>
		</tr>
		<tr>
			<td>名称</td>
			<td><asp:TextBox id='name' maxlength='300' style='width:150px' runat='server'/></td>
		</tr>
		<tr>
			<td>广告内容<br />支持 HTML </td>
			<td><asp:TextBox id='content' maxlength='100' textmode='multiline' rows='10' style='width:400px' runat='server'/></td>
		</tr>				
		<tr>
			<td></td>
			<td><input type='submit' id='save' class='button' value='添 加' onclick='return chkPost()' /></td>
		</tr>
	</table>
</form>
</td>
<td></td>
</tr> 
</table> 
<bbs:AdminFooter runat="server"/>
