<%@ page language="C#" autoeventwireup="true" inherits="WebManage_Other_Ads_Update, ZhaoPinXiTong" enableEventValidation="false" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title></title>
		<meta name="author" content="www.zhaopinxitong.com,无忧招聘系统开发制作" />
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<LINK rel="stylesheet" type="text/css" href="../Css/Other.css">
		<script language="javascript" src="../CScript/Pub_Date.js"></script>
	</HEAD>
	<body>
		<form id="Form1" method="post" Runat=server>
			<!--页面顶部-->
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td style="PADDING-RIGHT:5px"><table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td height="5"></td>
							</tr>
							<tr>
								<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td width="5" height="24" background="../Images/WebOffices/Right1_bg.jpg"></td>
											<td background="../Images/WebOffices/Right1_bg.jpg" style="PADDING-LEFT:8px;PADDING-TOP:2px"><font color="#ffffff"><b><asp:Label Runat=server ID="lbl_Operate"></asp:Label></b></font></td>
											<td width="200" align="right" background="../Images/WebOffices/Right1_bg.jpg" style="PADDING-RIGHT:8px"></td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td height="4"></td>
							</tr>
						</table>
						<!--页面主体-->
						<table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#D1E6F7">
						    <tr bgcolor="#ffffff">
								<td width="80" style="PADDING-LEFT:8px"><font color="#ff0000">*</font> 广告规格：</td>
								<td><asp:DropDownList Runat=server ID="ddl_AdsMode" Width="240" AutoPostBack=True OnSelectedIndexChanged="AdsMode_Changed">
								<asp:ListItem Value="0">请选择广告规格</asp:ListItem>
								</asp:DropDownList></td>
							</tr>
							<tr bgcolor="#ffffff">
								<td width="80" style="PADDING-LEFT:8px"><font color="#ff0000">*</font> 广告名称：</td>
								<td><asp:TextBox Runat=server ID="txt_AdName" Width="240"></asp:TextBox>
									<asp:RequiredFieldValidator SetFocusOnError="True" Runat=server ID="rfv_AdName" ControlToValidate="txt_AdName" Display="Dynamic"
										ErrorMessage="<br>请输入广告位名称！" /></td>
							</tr>
							<tr bgcolor="#ffffff">
								<td width="80" style="PADDING-LEFT:8px"><font color="#ff0000">*</font> 所在页面：</td>
								<td><asp:DropDownList Runat=server ID="ddl_Pageid" Width="240">
										<asp:ListItem Value=""></asp:ListItem>
										<asp:ListItem Value="1">首页</asp:ListItem>
										<asp:ListItem Value="2">职位搜索</asp:ListItem>
										<asp:ListItem Value="3">紧急招聘</asp:ListItem>
										<asp:ListItem Value="4">企业服务</asp:ListItem>
										<asp:ListItem Value="5">英才自荐</asp:ListItem>
										<asp:ListItem Value="6">猎头服务</asp:ListItem>
										<asp:ListItem Value="7">高薪职位</asp:ListItem>
										<asp:ListItem Value="8">高级人才</asp:ListItem>
										<asp:ListItem Value="9">兼职招聘</asp:ListItem>
										<asp:ListItem Value="11">资讯首页</asp:ListItem>
										<asp:ListItem Value="12">资讯banner</asp:ListItem>
										<asp:ListItem Value="14">兼职首页</asp:ListItem>
										<asp:ListItem Value="15">招聘会</asp:ListItem>
										<asp:ListItem Value="16">微招聘</asp:ListItem>
									</asp:DropDownList>
									<asp:RequiredFieldValidator SetFocusOnError="True" Runat=server ID="rfv_Pageid" ControlToValidate="ddl_Pageid" Display="Dynamic"
										ErrorMessage="<br>请选择广告所在页面！"></asp:RequiredFieldValidator></td>
							</tr>
							<tr bgcolor="#ffffff">
								<td width="80" style="PADDING-LEFT:20px">图片备注：</td>
								<td><asp:TextBox Runat=server ID="txt_AdMemo" Width="240"></asp:TextBox>
									</td>
							</tr>
							<tr bgcolor="#ffffff">
								<td width="80" style="PADDING-LEFT:8px"><font color="#ff0000">*</font> 宽 度：</td>
								<td><asp:TextBox Runat=server ID="txt_AdWidth" Width="240"></asp:TextBox>
									<asp:RequiredFieldValidator SetFocusOnError="True" Runat=server ID="rfv_AdWidth" ControlToValidate="txt_AdWidth" Display="Dynamic"
										ErrorMessage="<br>请输入广告图片的宽度！"></asp:RequiredFieldValidator>
									<asp:RegularExpressionValidator Runat=server ID="rev_AdWidth" ControlToValidate="txt_AdWidth" ValidationExpression="^[0-9]*$"
										Display="Dynamic" ErrorMessage="<br>图片宽度必须的数字！"></asp:RegularExpressionValidator></td>
							</tr>
							<tr bgcolor="#ffffff">
								<td width="80" style="PADDING-LEFT:8px"><font color="#ff0000">*</font> 高 度：</td>
								<td><asp:TextBox Runat=server ID="txt_AdHeight" Width="240"></asp:TextBox>
									<asp:RequiredFieldValidator SetFocusOnError="True" Runat=server ID="rfv_AdHeight" ControlToValidate="txt_AdHeight" Display="Dynamic"
										ErrorMessage="<br>请输入广告图片的高度！"></asp:RequiredFieldValidator>
									<asp:RegularExpressionValidator Runat=server ID="rev_AdHeight" ControlToValidate="txt_AdHeight" ValidationExpression="^[0-9]*$"
										Display="Dynamic" ErrorMessage="<br>图片高度必须的数字！"></asp:RegularExpressionValidator></td>
							</tr>
							<tr bgcolor="#ffffff">
								<td width="80" style="PADDING-LEFT:8px"><font color="#ff0000">*</font> 开始时间：</td>
								<td><asp:TextBox Runat=server ID="txt_BeginDate" Width="240"  onclick="SD(this,'document.all.txt_BeginDate')"></asp:TextBox>
									<asp:RequiredFieldValidator SetFocusOnError="True" Runat=server ID="rfv_BeginDate" ControlToValidate="txt_BeginDate" Display="Dynamic"
										ErrorMessage="<br>请选择开始时间！" /></td>
							</tr>
							<tr bgcolor="#ffffff">
								<td width="80" style="PADDING-LEFT:8px"><font color="#ff0000">*</font> 截止时间：</td>
								<td><asp:TextBox Runat=server ID="txt_EndDate" Width="240"  onclick="SD(this,'document.all.txt_EndDate')"></asp:TextBox>
									<asp:RequiredFieldValidator SetFocusOnError="True" Runat=server ID="rfv_EndDate" ControlToValidate="txt_EndDate" Display="Dynamic"
										ErrorMessage="<br>请选择截止时间！" /></td>
							</tr>
							<tr bgcolor="#ffffff">
								<td width="80" style="PADDING-LEFT:8px"><font color="#ff0000">*</font> 广告地址：</td>
								<td><asp:TextBox Runat=server ID="txt_AdUrl" Width="240"></asp:TextBox>
									<asp:RequiredFieldValidator SetFocusOnError="True" Runat=server ID="rfv_AdUrl" ControlToValidate="txt_AdUrl" Display="Dynamic" ErrorMessage="<br>请输入广告URL地址！"></asp:RequiredFieldValidator></td>
							</tr>
							<tr bgcolor="#ffffff">
								<td width="80" style="PADDING-LEFT:8px"><font color="#ff0000">*</font> 图片文件：</td>
								<td><asp:TextBox Runat=server ID="txt_AdFile" Width="240" ></asp:TextBox>
									<input type="button" name="btn_UpPhoto" id="btn_UpPhoto" Runat=server value="上传图片" onClick="window.open('../Public/UpLoadFile.aspx?FormName=Form1&amp;EditName=txt_AdFile&amp;ImageName=&amp;ExtName=jpg&amp;UpPath=AdFile_Picture','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">
									<asp:RequiredFieldValidator SetFocusOnError="True" Runat=server ID="rfv_AdFile" ControlToValidate="txt_AdFile" Display="Dynamic"
										ErrorMessage="<br>请上传广告图片文件！"></asp:RequiredFieldValidator></td>
							</tr>
							<tr bgcolor="#ffffff">
								<td width="80" style="PADDING-LEFT:20px">排列顺序：</td>
								<td><asp:TextBox Runat=server ID="txt_Orderid" Width="60">1</asp:TextBox>
									<font color="#777777">(数字越小越靠前显示)</font>
									<asp:RegularExpressionValidator Runat=server ID="rev_Orderid" ControlToValidate="txt_Orderid" ValidationExpression="^[0-9]*$"
										Display="Dynamic" ErrorMessage="<br>排列顺序必须是数字！"></asp:RegularExpressionValidator>
								</td>
							</tr>
						</table>
						<!--新增-->
						<asp:Panel Runat=server ID="pan_Add">
							<TABLE cellSpacing="1" cellPadding="4" width="100%" bgColor="#ffffff" border="0">
								<TR bgColor="#ffffff">
									<TD style="PADDING-LEFT: 20px" width="100">&nbsp;</TD>
									<TD>
										<asp:Button id="btn_Submit" onclick="btn_Submit_Click" Runat=server Width="55" Text="保存"></asp:Button>
										<asp:Label id="lbl_Error" Runat=server ForeColor="#ff0000"></asp:Label></TD>
								</TR>
							</TABLE>
						</asp:Panel>
						<!--更新-->
						<asp:Panel Runat=server ID="pan_Update">
							<TABLE cellSpacing="1" cellPadding="4" width="100%" bgColor="#ffffff" border="0">
								<TR bgColor="#ffffff">
									<TD style="PADDING-LEFT: 20px" width="100">&nbsp;</TD>
									<TD>
										<asp:Button id="btn_Save" onclick="btn_Save_Click" Runat=server Width="55" Text="保存"></asp:Button>
										<asp:Label id="lbl_Error2" Runat=server ForeColor="#ff0000"></asp:Label></TD>
								</TR>
							</TABLE>
						</asp:Panel>
						<!--主体结束-->
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>
