<%@ Page Language="vb" AutoEventWireup="false" Codebehind="Upmyad.aspx.vb" Inherits="LuckBet.Upmyad"%>
<%@ Register TagPrefix="uc1" TagName="UserLeft" Src="../WebControls/UserLeft.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="../WebControls/Header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Footer" Src="../WebControls/Footer.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>
			<% =webname%>
			|
			<% =Title%>
			| 我的广告</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<meta content="<% =Keywords%>" name=Keywords>
		<meta content="<% =description%>" name=description>
		<LINK href="../Styles.css" type="text/css" rel="stylesheet">
	</HEAD>
	<body bottomMargin="0" leftMargin="0" topMargin="0" rightMargin="0">
		<form id="Form1" method="post" runat="server">
			<TABLE id="top" height="29" cellSpacing="0" cellPadding="0" width="100%" align="center"
				border="0">
				<TR>
					<TD align="center"><uc1:header id="Header1" runat="server"></uc1:header></TD>
				</TR>
			</TABLE>
			<TABLE id="Table1" cellSpacing="0" cellPadding="0" width="960" align="center" border="0">
				<TR>
					<TD vAlign="top" width="200"><uc1:userleft id="UserLeft1" runat="server"></uc1:userleft></TD>
					<TD vAlign="top" align="center">
						<TABLE id="Table3" style="HEIGHT: 254px" cellSpacing="0" cellPadding="0" width="557" border="0">
							<TR>
								<TD class="font1" style="FONT-WEIGHT: bold; FONT-SIZE: 12pt; COLOR: #ffffff; HEIGHT: 32px"
									vAlign="middle" width="557" background="../Images/o2_03.gif" height="32">&nbsp;&nbsp; 
									我的广告</TD>
							</TR>
							<TR>
								<TD style="BACKGROUND-REPEAT: repeat-y" vAlign="top" align="center" background="../Images/o2_05.gif">
									<TABLE id="Table2" style="WIDTH: 522px; HEIGHT: 32px" cellSpacing="0" cellPadding="0" width="522"
										align="center" border="0">
										<TR>
											<TD><asp:dropdownlist id="ddladtype" runat="server" AutoPostBack="True">
													<asp:ListItem Value="1">文字广告</asp:ListItem>
													<asp:ListItem Value="2">图片广告</asp:ListItem>
												</asp:dropdownlist>总共有&nbsp;
												<asp:label id="lblcount" runat="server" ForeColor="Red"></asp:label>&nbsp;条 记录
												<asp:label id="lblCurrentIndex" runat="server"></asp:label>&nbsp;
												<asp:label id="lblPageCount" runat="server"></asp:label></TD>
										</TR>
									</TABLE>
									<TABLE id="Table28" cellSpacing="0" cellPadding="0" width="523" border="0">
										<TR>
											<TD align="right"><asp:datagrid id="DataGrid1" runat="server" Width="100%" BorderStyle="None" BorderWidth="1px"
													BorderColor="#93BEE2" BackColor="White" PageSize="12" AllowPaging="True" DataKeyField="ID" AutoGenerateColumns="False"
													CellPadding="3">
													<SelectedItemStyle Font-Bold="True" ForeColor="#CCFF99" BackColor="#009999"></SelectedItemStyle>
													<AlternatingItemStyle Font-Size="X-Small" BackColor="#E8F4FF"></AlternatingItemStyle>
													<ItemStyle Font-Size="X-Small" ForeColor="#003399" BackColor="White"></ItemStyle>
													<HeaderStyle Font-Size="X-Small" ForeColor="White" BackColor="#337FB2"></HeaderStyle>
													<Columns>
														<asp:TemplateColumn HeaderText="广告标题">
															<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
															<ItemStyle HorizontalAlign="Center"></ItemStyle>
															<ItemTemplate>
																<a href ='Upmyad.aspx?ID=<%# databinder.eval(container.dataitem,"ID") %>' title ='点击修改广告'>
																	<font color="red">
																		<%# databinder.eval(container.dataitem,"ad_title") %>
																	</font></a>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn HeaderText="点击价格">
															<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
															<ItemStyle HorizontalAlign="Center"></ItemStyle>
															<ItemTemplate>
																<asp:Label runat="server" Text='<%# databinder.eval(container.dataitem,"ad_price") %>' ID="Label3">
																</asp:Label>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn HeaderText="剩余">
															<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
															<ItemStyle HorizontalAlign="Center"></ItemStyle>
															<ItemTemplate>
																<%# pubsql.Comma(databinder.eval(container.dataitem,"ad_totleprice")-databinder.eval(container.dataitem,"ad_payCoin")) %>
																<img src="../images/icon3.gif" width="10" height="10">
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn HeaderText="点击次数">
															<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
															<ItemStyle HorizontalAlign="Center"></ItemStyle>
															<ItemTemplate>
																<asp:Label runat="server" Text='<%# databinder.eval(container.dataitem,"ad_userclick") %>' ID="Label2">
																</asp:Label>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn HeaderText="状态">
															<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
															<ItemStyle HorizontalAlign="Center"></ItemStyle>
															<ItemTemplate>
																<asp:Label runat="server" ID="lblstate" name="lblstate"></asp:Label>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:ButtonColumn Text="删除" HeaderText="操作" CommandName="Delete">
															<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
															<ItemStyle HorizontalAlign="Center"></ItemStyle>
														</asp:ButtonColumn>
													</Columns>
													<PagerStyle NextPageText="上一页" PrevPageText="下一页" HorizontalAlign="Right" ForeColor="#003399"
														BackColor="#E8F4FF"></PagerStyle>
												</asp:datagrid></TD>
										</TR>
									</TABLE>
									<BR>
									<TABLE id="Table5" cellSpacing="0" cellPadding="0" width="522" border="0">
										<TR>
											<TD style="PADDING-TOP: 5px" background="images/tite]_03.gif" height="23"><asp:label id="lbledit" runat="server" ForeColor="#400000" Font-Bold="True" Font-Size="12pt">添加广告</asp:label></TD>
										</TR>
									</TABLE>
									<TABLE id="Table6" style="MARGIN-TOP: 8px" cellSpacing="1" cellPadding="5" width="522"
										bgColor="#e4e4e4" border="0">
										<TR>
											<TD style="WIDTH: 116px" align="right" width="116" bgColor="#f7f7f7"><font color="red">*
												</font>标题：</TD>
											<TD width="80%" bgColor="#ffffff"><LABEL><INPUT id="adtitle" maxLength="80" size="30" name="adtitle" runat="server">
													<SPAN class="gravefont">长度3-80 </SPAN></LABEL>
											</TD>
										</TR>
										<TR>
											<TD style="WIDTH: 116px; HEIGHT: 20px" align="right" bgColor="#f7f2e1"><font color="red">*
												</font>类别：</TD>
											<TD style="HEIGHT: 20px" bgColor="#ffffff"><asp:dropdownlist id="ddltype" runat="server">
													<asp:ListItem Value="1">文字广告</asp:ListItem>
													<asp:ListItem Value="2">图片广告</asp:ListItem>
												</asp:dropdownlist></TD>
										</TR>
										<TR>
											<TD style="WIDTH: 116px" align="right" bgColor="#f7f2e1">上传文件：</TD>
											<TD bgColor="#ffffff" height="50"><FONT face="宋体"></FONT>
												<TABLE id="Table10" style="HEIGHT: 69px" borderColor="gainsboro" cellSpacing="0" borderColorDark="#ffffff"
													cellPadding="0" width="100%" border="1">
													<TR>
														<TD style="WIDTH: 118px" align="center"><asp:image id="imgpro" runat="server" Width="110px" Height="80px" AlternateText="没上传图片"></asp:image></TD>
														<TD align="left"><INPUT class="textbox" id="File1" style="BORDER-RIGHT: gainsboro 1px solid; BORDER-TOP: gainsboro 1px solid; BORDER-LEFT: gainsboro 1px solid; WIDTH: 160px; BORDER-BOTTOM: gainsboro 1px solid; HEIGHT: 22px"
																type="file" size="7" name="File1" runat="server">&nbsp;
															<asp:button id="bntimgFtp" runat="server" Width="48px" Height="22px" ForeColor="Black" BorderStyle="None"
																BorderWidth="1px" BorderColor="Control" BackColor="Control" Text="上传"></asp:button>&nbsp;<asp:button id="bntDelimg" runat="server" Width="48px" Height="22px" ForeColor="Black" BorderStyle="None"
																BorderColor="Control" BackColor="Control" Text="删除"></asp:button></TD>
													</TR>
												</TABLE>
												<SPAN class="colorfont">图片尺寸请保持在：宽110*高80左右以保证美观</SPAN></TD>
										</TR>
										<TR>
											<TD style="WIDTH: 116px" align="right" bgColor="#f7f2e1">文件网络路径：</TD>
											<TD bgColor="#ffffff"><LABEL><INPUT id="adwebpic" style="HEIGHT: 21px" maxLength="500" size="55" name="adwebpic" runat="server"></LABEL><BR>
												如果填写网络路径，则图片显示网络路径图片，请正确填写图片路径。</TD>
										</TR>
										<TR>
											<TD style="WIDTH: 116px" align="right" bgColor="#f7f7f7"><font color="red">* </font>
												点击连接地址：</TD>
											<TD bgColor="#ffffff"><asp:textbox id="adurl" runat="server" Width="304px">http://</asp:textbox></TD>
										</TR>
										<TR>
											<TD style="WIDTH: 116px" align="right" bgColor="#f7f7f7"><font color="red">* </font>
												每点击一次所付的金币：</TD>
											<TD bgColor="#ffffff"><LABEL><INPUT id="adprice" style="HEIGHT: 21px" maxLength="9" size="10" value="12" name="adprice"
														runat="server"><FONT face="宋体"><SPAN class="gravefont">请输入整数(最低12金币)</SPAN></FONT>
												</LABEL>
											</TD>
										</TR>
										<TR>
											<TD style="WIDTH: 116px" align="right" bgColor="#f7f7f7"><font color="red">* </font>
												广告预算：</TD>
											<TD bgColor="#ffffff"><INPUT id="adtotleprice" size="10" name="adtotleprice" runat="server">
												<SPAN class="gravefont">请输入整数(最低5000金币),添加后不能修改</SPAN></TD>
										</TR>
										<TR>
											<TD style="WIDTH: 116px" align="right" bgColor="#f7f7f7">显示广告：</TD>
											<TD bgColor="#ffffff"><LABEL><INPUT id="adshow" type="checkbox" CHECKED value="1" name="adshow" runat="server">
												</LABEL>
											</TD>
										</TR>
										<TR>
											<TD style="WIDTH: 116px" align="right" bgColor="#f7f7f7">广告简述：</TD>
											<TD bgColor="#ffffff"><LABEL>&nbsp;<TEXTAREA id="adcontent" style="WIDTH: 400px; HEIGHT: 86px" name="adcontent" rows="5" cols="47"
														runat="server"></TEXTAREA><BR>
													<SPAN class="gravefont">100字以内 </SPAN></LABEL>
											</TD>
										</TR>
										<TR>
											<TD align="center" bgColor="#ffffff" colSpan="2"><LABEL><INPUT id="Submit1" onclick="return confirm('您确认以上信息吗？')" type="submit" value="提 交" name="Submit"
														runat="server"><FONT face="宋体">&nbsp;&nbsp; <INPUT style="WIDTH: 60px; HEIGHT: 23px" onclick="location.href='Upmyad.aspx'" type="button"
															value="取 消" name="Submit2"></FONT></LABEL></TD>
										</TR>
										<TR>
											<TD bgColor="#ffffff" colSpan="2"><font color="red">提示：</font><SPAN class="redfont">发布广告时将预先从您的帐户中扣除您预算的金币，如果管理员审核广告不通过则返还相应金币！</SPAN></TD>
										</TR>
									</TABLE>
								</TD>
							</TR>
							<TR>
								<TD height="13"><IMG height="14" src="../Images/o2_07.gif" width="557"></TD>
							</TR>
						</TABLE>
					</TD>
				</TR>
			</TABLE>
			</TD></TR></TABLE>
			<TABLE id="bottom" cellSpacing="0" cellPadding="0" width="100%" border="0">
				<TR>
					<TD><uc1:footer id="Footer1" runat="server"></uc1:footer></TD>
				</TR>
			</TABLE>
		</form>
	</body>
</HTML>
