<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Aadadd.aspx.cs" Inherits="web.admin.Aadadd" %>


<html>
<head runat="server">
    <title>as</title><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    		<LINK href="images/adminstyle.css" type="text/css" rel="stylesheet">
<style type="text/css">
body {margin:0px; height:500px}
</style>
		<script language="JavaScript">
<!--
//By Dicky 2005-2-17 11:16:49
function Window_Load(Flag)
{

if (Flag == 0)
{

  parent.document.all['Loading'].style.display = 'block';
  parent.document.all['Loading'].style.width = '500';
   parent.document.all['Loading'].style.height = '60';
  //show the window
}
else
{
  parent.document.all['Loading'].style.display = 'none';
  
  //hide the window
}
}
//-->
</script>
</head>
	<body rightmargin="0" leftmargin="0" topmargin="0" onload="Window_Load(1);">
	
		<form id="Form2" method="post" runat="server" onsubmit="Window_Load(0);">
    <div>
    <table width="100%" align="center" cellpadding="0" cellspacing="0" background="img/labelbg.gif" bgcolor="#EDF6FF">
      <tr>
    <td width="3%" height="36" class="tl"></td>
    <td width="92%" class="tm"><span class="tt"><span class="tt">营销管理 &gt;&gt; </span>首页大广告管理 
    </span></td>
    <td width="0%" class="tm2"><span class="tt"></span></td>
    <td width="5%" class="tr"></td>
  </tr>
</table>
<br />
<table width="400">
            <tr>
                <td style="width: 462px; height: 24px">
                    <div align="center"><strong>广告图片</strong></div></td>
          <td style="width: 646px; height: 24px">
                    <asp:FileUpload ID="FileUpload1" runat="server" /></td>
                <td style="width: 365px; height: 24px">
                </td>
            </tr>
            <tr>
                
        <td valign="top" style="width: 462px; height: 11px"> 
          <div align="center"><strong>连接URL</strong></div></td>
          <td style="width: 646px; height: 11px">
                    <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>&nbsp;
              <br />
          <font color="#FF0000">
              <br />
              <asp:RadioButtonList ID="Rlx" runat="server">
                  <asp:ListItem Value="0" Selected="True">总站首页广告</asp:ListItem>
          
              </asp:RadioButtonList><br />
              说明：<br />
              1、首页大广告尺寸：宽596px X 338px 一定按照尺寸制作广告图片<br />
              <br />
             <span style="display:none;"> 2、店铺订餐页面广告的作用是，当店铺没有添加自己的广告的时候，显示总站在这里添加的广告&nbsp;<br /></span>
          </font></td>
                <td style="width: 365px; height: 11px">
                </td>
            </tr>
            <tr>
                <td style="width: 462px">
                </td>
                <td style="width: 646px">
                    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="提交" /></td>
                <td style="width: 365px">
                </td>
            </tr>
        </table>
        
    <table width="723" border="0" align="center">
      <tr>
            <td><div align="center">
              <table width="100%" align="center">
                <tr>
                  <td style="width: 90%; height: 107px">
                         <asp:DataList ID="DataList1" runat="server" Width="100%">
                         <HeaderTemplate>
                          
                      <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bordercolor="#33CCFF" background="img/labelbg.gif" class="tableborder">
                        <tr bgcolor="#EDF6FF" class="header"> 
                          <td width="40%" height="25" background="img/labelbg.gif"> 
                            <div align="center"> 广告图片</div>
                        </td>
                        
                          <td width="40%" height="25" background="img/labelbg.gif"> 
                            <div align="center"> URL</div>
                        </td>
                       
                          <td width="20%" height="25" background="img/labelbg.gif"> 
                            <div align="center"> 操作</div>
                        </td>
                    </tr>
                         </table>
                         </HeaderTemplate>
           <ItemTemplate> 
          
                <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
                     
                     
                     <tr bgcolor="#ffffff" id="news">
                        <td height="25" width="40%">
                            <div align="center">
                              <a href="../upload/uploadfiles/<%#Eval("dt")%>" target=_blank><%#Eval("dt")%></a>(<%# DataBinder.Eval(Container.DataItem,"dx").ToString()=="0"?"首页大图片广告":"店铺订餐页面小广告"%>)
                            </div>
                        </td>
                     
                        <td height="25" width="40%">
                            <div align="center">
                                <%#Eval("url")%>
                            </div>
                        </td>
                       
                        <td height="25" width="20%">
                            <div align="center">
                            <a href="?action=del&ID=<%#Eval("id") %>&dt=<%#Eval("dt") %>&xt=<%#Eval("xt") %>"
                                        onclick="return confirm('确认要删除？');">
                                        <img src="images/DelNews.png" alt='删除' title='删除' border="0"></a>&nbsp;
                              
                            </div>
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
           
        </asp:DataList>
                  </td>
                </tr>
              </table>
            </div></td>
          </tr>
        </table>
      <br />
    </div>
    </form>
</body>
</html>
