<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="KstCMS.KstCMS_Manager.WebSet.Ad.index" %>
<%@Register TagPrefix="Webdiver" Namespace="Webdiver" Assembly="AspnetPager" %>
<html>
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <div class="mainbox">
<table width="100%" border="0" cellspacing="1" cellpadding="4" style="border-bottom:1px solid #cccccc; background-color:Menu">
  <tr>
    <td>
        <input type="button" value="增加图片播放" class="uPageBtn1" onclick="location.href='AddFrm.aspx';" />
    </td>
  </tr>
</table>
        <asp:Panel ID="Panel1" runat="server">
       
<asp:Repeater ID="RepMain" runat="server">
       <HeaderTemplate>    
       <table width="100%" border="0" cellspacing="1" cellpadding="5" class="Table_Gray">
  <tr class="TableHeader">
    <td>ADID</td>
    <td>名称</td>
    <td>宽度</td>
    <td>高度</td>
    <td>执行文件</td>
    <td>操作</td>
  </tr>
  </HeaderTemplate>
  <ItemTemplate>
  <tr class="TableTd_Gray">
    <td align="center"><%#DataBinder.Eval(Container.DataItem,"AdID") %></td>
    <td align="center">
       <%#DataBinder.Eval(Container.DataItem,"AdName") %>
    </td>
    <td align="center"><%#DataBinder.Eval(Container.DataItem,"PicW") %></td>
    <td align="center"><%#DataBinder.Eval(Container.DataItem,"PicH") %></td>
    <td align="center"><%#DataBinder.Eval(Container.DataItem,"ExeFile") %></td>
    <td align="center">
        <input type="button" value="设置" onclick="OpenDialog('PicList.aspx?Adid=<%#DataBinder.Eval(Container.DataItem,"AdID") %>',700,500)"; />
        <asp:Button ID="Button2" runat="server" Text="调用" CommandArgument="1" CommandName=<%#DataBinder.Eval(Container.DataItem,"AdID") %> />
        <asp:Button ID="Button1" runat="server" Text="删除" CommandArgument="0" CommandName=<%#DataBinder.Eval(Container.DataItem,"AdID") %>  OnClientClick="return confirm('真的删除码？');" />
        <input type="button" value="修改" onclick="location.href='EditFrm.aspx?Adid=<%#DataBinder.Eval(Container.DataItem,"AdID") %>';" />
    </td>
  </tr>
  </ItemTemplate>
  <AlternatingItemTemplate>
    <tr class="TableTd_Gray1">
    <td align="center"><%#DataBinder.Eval(Container.DataItem,"AdID") %></td>
    <td align="center">
       <%#DataBinder.Eval(Container.DataItem,"AdName") %>
    </td>
    <td align="center"><%#DataBinder.Eval(Container.DataItem,"PicW") %></td>
    <td align="center"><%#DataBinder.Eval(Container.DataItem,"PicH") %></td>
    <td align="center"><%#DataBinder.Eval(Container.DataItem,"ExeFile") %></td>
    <td align="center">
        <input type="button" value="设置" onclick="OpenDialog('PicList.aspx?Adid=<%#DataBinder.Eval(Container.DataItem,"AdID") %>',700,500)"; />
        <asp:Button ID="Button2" runat="server" Text="调用" CommandArgument="1" CommandName=<%#DataBinder.Eval(Container.DataItem,"AdID") %> />
        <asp:Button ID="Button1" runat="server" Text="删除" CommandArgument="0" CommandName=<%#DataBinder.Eval(Container.DataItem,"AdID") %>  OnClientClick="return confirm('真的删除码？');" />
        <input type="button" value="修改" onclick="location.href='EditFrm.aspx?Adid=<%#DataBinder.Eval(Container.DataItem,"AdID") %>';" />
    </td>
  </tr>
  </AlternatingItemTemplate>
  <FooterTemplate>
</table>
</FooterTemplate>
   </asp:Repeater>   
 <table width="100%" border="0" cellspacing="2" cellpadding="0" align="center"  class="PageBox">
  <tr>
    <td>
     <asp:Literal ID="PageInfo" runat="server"></asp:Literal>
    </td>
    <td>
    
<Webdiver:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" PageSize="10" DisabledButtonImageNameExtension="g" CpiButtonImageNameExtension="r" ButtonImageNameExtension="n" ImagePath="~/images" PagingButtonSpacing="0" CustomInfoSectionWidth="35%"  UrlPaging="false" NumericButtonTextFormatString="[{0}]" SubmitButtonText="GO" ShowInputBox="Always" ShowCustomInfoSection="left" HorizontalAlign="Right" OnPageChanged="AspNetPager1_PageChanged" Font-Size="10pt" SubmitButtonClass="uPageBtn" InputBoxClass="input_text" CssClass="uPage"> 
</Webdiver:AspNetPager>
    
    </td>
  </tr>
</table> 
 </asp:Panel>
<asp:Literal ID="Literal1" runat="server"></asp:Literal>

    </div>
    </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
    <ProgressTemplate>正在处理中，请稍候...</ProgressTemplate>
    </asp:UpdateProgress>
    </form>
</body>
</html>