<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FastAD.aspx.cs" Inherits="MyITJob.Admin.FastAD" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title><%=Application["PageTitle"] %>——快 捷 广 告 管 理</title>
    <link href="../images/Admin_Style.css" rel="stylesheet" type="text/css" />
    <script language="javascript" src="../MyITJob.js" type="text/javascript"></script>
	<script src="../js/My97Date/WdatePicker.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
      <asp:Panel ID="Panel1" runat="server" Width="100%" Visible="false">
      <table width='100%' border='0' align='center' cellpadding='4' cellspacing='1' class='border'>
        <tr class='topbg2'>
          <td height="24" colspan="2" align='center'><strong class="Glow">快 捷 广 告 管 理</strong></td>
        </tr>
        <tr class='tdbg'>
          <td align="right"><strong><span class="style4">*</span> 广告名称：</strong></td>
          <td width="76%" valign="top">
              <asp:TextBox ID="TB_title" runat="server" Width="237px"></asp:TextBox>
              <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="该项不能为空" ControlToValidate="TB_title"></asp:RequiredFieldValidator></td>
        </tr>
        <tr class='tdbg'>
          <td align="right"><strong>广告图片：</strong></td>
          <td valign="top">
              <asp:FileUpload ID="FileUpload1" runat="server" Width="363px" /></td>
        </tr>
        <tr class='tdbg'>
          <td align="right"><strong>超链接地址：</strong></td>
          <td valign="top">
              <asp:TextBox ID="TB_goUrl" runat="server" Text="http://" Width="293px"></asp:TextBox>
              <asp:RequiredFieldValidator ID="Valid_goUrl" runat="server" ErrorMessage="该项不能为空" ControlToValidate="TB_goUrl"></asp:RequiredFieldValidator></td>
        </tr>
        <tr class='tdbg'>
          <td height="25" align="right"><strong>时间限制：</strong></td>
          <td valign="top">
              <asp:TextBox ID="S_Time" onClick="WdatePicker()" runat="server"></asp:TextBox>&nbsp; ——
              <asp:TextBox ID="E_Time" onClick="WdatePicker()" runat="server"></asp:TextBox></td>
        </tr>
        <tr class='tdbg'>
          <td height="25" align="right"><strong>图片文字说明：</strong><br />
            <span class="style4">没有打开图片时，或者鼠标移动到图片上的文字说明</span></td>
          <td valign="top">
              <asp:TextBox ID="TB_alt" runat="server" Width="181px" MaxLength="20"></asp:TextBox></td></tr>
        <tr class='tdbg'>
          <td height="25" align="right"><strong>广告区域：</strong></td>
          <td valign="top">
              <asp:DropDownList ID="DropDownList1" runat="server">
                  <asp:ListItem Value="1">顶部Banner广告 468*60</asp:ListItem>
                  <asp:ListItem Value="2">登陆框左侧广告 238*54</asp:ListItem>
                  <asp:ListItem Value="3">登陆框下方广告 177*54</asp:ListItem>
                  <asp:ListItem Value="4">左侧固定浮动广告位（长宽根据上传图片决定）</asp:ListItem>
                  <asp:ListItem Value="5">右侧固定浮动广告位（长宽根据上传图片决定）</asp:ListItem>
              </asp:DropDownList>
          </td>
        </tr>
        <tr class='tdbg'>
          <td height="25" align="right"><strong>排序号码：</strong></td>
          <td valign="top">
              <asp:TextBox ID="OrderID_Text" runat="server" Width="86px" MaxLength="3">0</asp:TextBox><asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="请输入整数" ValidationExpression="\d{1,3}" ControlToValidate="OrderID_Text"></asp:RegularExpressionValidator>
          </td>
        </tr>
        <tr class='tdbg'>
          <td height="25" align="right">&nbsp;</td>
          <td valign="top"><asp:Button ID="Add_Buton" runat="server" Text="添 加" OnClick="Add_Buton_Click"></asp:Button>
          <asp:Button ID="Eidt_Buton" runat="server" Text="修 改" OnClick="Eidt_Buton_Click"></asp:Button></td>
        </tr>
      </table>
      </asp:Panel>
      <asp:Panel ID="Panel2" runat="server" Width="100%">
      <table width='100%' border='0' align='center' cellpadding='4' cellspacing='1' class='border'>
        <tr class='topbg'>
          <td width="10%" align='center'><span class="Glow"><strong>序号</strong></span></td>
          <td width="23%" align='center'><span class="Glow"><strong>广告图片</strong></span></td>
          <td width="15%" align='center'><span class="Glow"><strong>版位说明</strong></span></td>
          <td width="26%" align='center'><span class="Glow"><strong>服务期限</strong></span></td>
          <td width="26%" align='center'><span class="Glow"><strong>常规操作</strong></span></td>
        </tr>
        <asp:Repeater ID="Manage" runat="server">
          <ItemTemplate>
            <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
              <td align='center'><%# Eval("id") %></td>
              <td align="center"><a href="<%#Eval("go_Url") %>"><img border="0" src='../AD/FastAD/<%#Eval("img_url") %>' alt="<%#Eval("alt") %>" width="182" height="60" /></a></td>
              <td align='center'><%#GetHtml() %></td>
              <td align='center'>从<%#Eval("start_time","{0:yyyy-MM-dd}") %> 至 <%#Eval("end_time", "{0:yyyy-MM-dd}")%></td>
              <td align='center'><a href="FastAD.aspx?Action=Edit&id=<%# Eval("id")%>">修改</a> | <a href="FastAD.aspx?Action=Del&id=<%# Eval("id")%>" onclick="return confirm('确定要删除此项吗？此操作不可逆。')">删除</a></td>
            </tr>
          </ItemTemplate>
        </asp:Repeater>
      </table>
      <div id="paging" runat="server"></div>
      </asp:Panel>
    </div>
    </form>
</body>
</html>
