<%@ Page language="c#" Codebehind="FlashADManager.aspx.cs" AutoEventWireup="false" Inherits="wqeshop.Admin.FlashADManager" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>AD</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<LINK href="inc/style.css" type="text/css" rel="stylesheet">
<script language="javascript">
			function CheckSort(obj)
			{
				document.getElementById(obj).value = document.getElementById(obj).value.replace(/\D/g,"");
				if(Number(document.getElementById(obj).value)<1 || document.getElementById(obj).value=="")
				{
					document.getElementById(obj).value = "";
				}
			}
		</script>
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
  <table width="100%" height="550" style="border:1px #619ADF solid; border-left:0;margin-top:6px; margin-right:7px;background:#F2F7FD;" cellspacing="0" cellpadding="0">
    <tr>
      <td valign="top"><div class="top">
          <table width="100%" align="center" cellspacing="0" cellpadding="0">
            <tr>
              <td class="tl"></td>
              <td class="tm"><span class="tt">广告管理 &gt;&gt; FLASH广告管理</span></td>
              <td class="tm2"><span class="tt"><a href="http://www.wangqi.com" target="_blank"><img src="Images/admin_help.gif" border="0" alt="帮助"></a></span></td>
              <td class="tr"></td>
            </tr>
          </table>
        </div>
        <div class="mframe">
          <table width="100%" align="center" cellspacing="0" cellpadding="0">
            <tr>
              <td class="tl"></td>
              <td class="tm"><div class="tt">&nbsp; FLASH广告管理</div></td>
              <td class="tr"></td>
            </tr>
          </table>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td class="ml"></td>
              <td  class="mm" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td bgcolor="#EBF3FE" valign="top" style=" border-right:1px #77ABE5 solid;"><table width="90%"  cellspacing="0" cellpadding="0">
                        <tr>
                          <td class="ml1"></td>
                          <td class="mm1"><table class="tableBorder" cellSpacing="0" cellPadding="0" width="640" align="center" border="0">
                              <tr>
                                <td><asp:Button ID="btnSaveSort" Runat="server" Text="修改排序"></asp:Button></td>
                              </tr>
                              <tr>
                                <td class="forumRowHighlight" height="23"><asp:datagrid id="dgFlash" runat="server" Width="100%" HeaderStyle-CssClass="summary-title" HorizontalAlign="Center"
							DataKeyField="FlashID" AutoGenerateColumns="False" PagerStyle-Mode="NumericPages" PageSize="20" AllowPaging="True">
                                    <HeaderStyle Font-Bold="True" CssClass="summary-title"></HeaderStyle>
                                    <Columns>
                                    <asp:TemplateColumn HeaderText="FLASH广告图">
                                      <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                      <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                      <ItemTemplate> <img src='../Flash/<%#DataBinder.Eval(Container.DataItem,"FlashImg")%>' width="70"> </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderText="链接地址">
                                      <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                      <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                      <ItemTemplate> <%#DataBinder.Eval(Container.DataItem,"FlashLink")%> </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderText="排序">
                                      <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                      <ItemStyle HorizontalAlign="Center" Width="70px"></ItemStyle>
                                      <ItemTemplate>
                                        <input name="sort<%# Container.ItemIndex+1%>" type="text" class="inputstyle" id="sort<%# Container.ItemIndex+1%>" value='<%# DataBinder.Eval(Container.DataItem, "Sort") %>' size="9" maxlength="10" onKeyUp="CheckSort('sort<%# Container.ItemIndex+1%>')"/>
                                      </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn>
                                      <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                      <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
                                      <ItemTemplate> <a href='FlashAD.aspx?FlashID=<%# DataBinder.Eval(Container.DataItem, "FlashID") %>'> 修改</a> </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:ButtonColumn Text="&lt;div id=&quot;de&quot; onclick=&quot;javascript:return confirm('确认删除吗？')&quot;&gt;删除&lt;/div&gt;"
									CommandName="Delete">
                                      <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
                                    </asp:ButtonColumn>
                                    </Columns>
                                    <PagerStyle Mode="NumericPages"></PagerStyle>
                                  </asp:datagrid>
                                </td>
                              </tr>
                            </table></td>
                          <td class="mr1"></td>
                        </tr>
                      </table></td>
                  </tr>
                </table>
                <table width="100%" align="center" cellspacing="0" cellpadding="0">
                  <tr>
                    <td class="bl"></td>
                    <td class="bm">&nbsp;</td>
                    <td class="br"></td>
                  </tr>
                </table></td>
              <td  class="mr"></td>
            </tr>
          </table>
          <table width="100%" align="center" cellspacing="0" cellpadding="0">
            <tr>
              <td class="bl"></td>
              <td class="bm">&nbsp;</td>
              <td class="br"></td>
            </tr>
          </table>
        </div></td>
    </tr>
  </table>
</form>
</body>
</HTML>
