<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="KstCMS.KstCMS_Manager.WebContent.products.protype.index" %>
<%@Register TagPrefix="Webdiver" Namespace="Webdiver" Assembly="AspnetPager" %>
<html>
<head  runat="server">
    <title>无标题页</title>
    <script type="text/javascript" language="javascript">
        function reload() {
            document.location.reload();
        }
    </script>
</head>
<body>

    <form id="form1" runat="server">
    <div class="MainBox">
        <asp:ScriptManager ID="ScriptManager1" runat="server"  AllowCustomErrorsRedirect="false"></asp:ScriptManager>

    <asp:UpdatePanel ID="UpdatePanel1"  UpdateMode="Conditional"  runat="server" > 
    <ContentTemplate>
    
<table class="PageTitle TableTd_Gray" width="100%"><tr><td>
       
       <table width="100%" border="0" cellspacing="0" cellpadding="0" >
  <tr>
    <td nowrap="nowrap"><img src="<%=SysRootUrl %>/KstCMS_Manager/images/sms_type13.gif" align="absmiddle" /> <b> 产品类型</b>    <asp:TextBox ID="txt_TypeName" runat="server" MaxLength="50" CssClass="input_text"></asp:TextBox>
        <asp:Button ID="Button1" runat="server" Text="新增" CssClass="uPageBtn" /></td>

  </tr>
</table>

       </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>TYPEID</td>
    <td>产品类型</td>
    <td>选项参数</td>
    <td>操作</td>
  </tr>
  </HeaderTemplate>
  <ItemTemplate>
  <tr class="TableTd_Gray">
    <td align="center"><%#DataBinder.Eval(Container.DataItem,"TypeID") %></td>
    <td align="center"><input type="text" class="input_text" name="TypeName_<%#DataBinder.Eval(Container.DataItem,"TypeID") %>" value="<%#DataBinder.Eval(Container.DataItem,"TypeName") %>" /></td>
    <td align="center">【字段参数】<!--<asp:Literal ID="Literal1" runat="server"></asp:Literal>-->【描述参数】<!--<asp:Literal
        ID="Literal2" runat="server"></asp:Literal>--></td>
    <td align="center">
     <asp:Button ID="btn1" runat="server" CommandArgument="0"  CommandName=<%#DataBinder.Eval(Container.DataItem,"TypeID") %> Text="修改" />
     <asp:Button ID="btn2" runat="server" CommandArgument="1"  CommandName=<%#DataBinder.Eval(Container.DataItem,"TypeID") %> Text="删除" OnClientClick="return confirm('真的删除当前类型吗？');" />
     <input type="button"  value="参数设置" onclick="OpenDialog('MainFrame.aspx?TypeID=<%#DataBinder.Eval(Container.DataItem,"TypeID") %>',600,500)" />
    
    </td>
  </tr>
  </ItemTemplate>
  <AlternatingItemTemplate>
    <tr class="TableTd_Gray1">
     <td align="center"><%#DataBinder.Eval(Container.DataItem,"TypeID") %></td>
    <td align="center"><input type="text" class="input_text" name="TypeName_<%#DataBinder.Eval(Container.DataItem,"TypeID") %>" value="<%#DataBinder.Eval(Container.DataItem,"TypeName") %>" /></td>
    <td align="center">【字段参数】<!--<asp:Literal ID="Literal1" runat="server"></asp:Literal>-->【描述参数】<!--<asp:Literal
        ID="Literal2" runat="server"></asp:Literal>--></td>
    <td align="center">
     <asp:Button ID="btn1" runat="server" CommandArgument="0"  CommandName=<%#DataBinder.Eval(Container.DataItem,"TypeID") %> Text="修改" />
     <asp:Button ID="btn2" runat="server" CommandArgument="1"  CommandName=<%#DataBinder.Eval(Container.DataItem,"TypeID") %> Text="删除" OnClientClick="return confirm('真的删除当前类型吗？');" />
     <input type="button"  value="参数设置" onclick="OpenDialog('MainFrame.aspx?TypeID=<%#DataBinder.Eval(Container.DataItem,"TypeID") %>',600,500)" />
     
    </td>
  </tr>
  </AlternatingItemTemplate>
  <FooterTemplate>
</table>
</FooterTemplate>
   </asp:Repeater>   

 <br />
 <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>        
       
       
       
    </ContentTemplate>
   </asp:UpdatePanel> 


       <asp:UpdateProgress ID="UpdateProgress1" AssociatedUpdatePanelID="UpdatePanel1" runat="server">
    <ProgressTemplate>请稍候...</ProgressTemplate>
    </asp:UpdateProgress>     
    </div>

 
    </form>
