<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WzList.aspx.cs" Inherits="KstCMS.KstCMS_Manager.WebSet.Template.tmp.WzList" %>

<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">
  <tr>
    <td width="2%" nowrap="nowrap">
        <asp:DropDownList ID="drp_SiteList" runat="server" AutoPostBack="true">
        </asp:DropDownList>
    </td>
    <td width="98%">
        <input type="button" value="增加模板" class="uPageBtn1" onclick="location.href='Template_Add.aspx?TypeId=<%=TypeId %>';" />
    </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>模板ID</td>
    <td>所属站点</td>
    <td>模板名称</td>
    <td>默认模板</td>
    <td>操作</td>
  </tr>
  </HeaderTemplate>
  <ItemTemplate>
  <tr class="TableTd_Gray">
    <td align="center"><%#DataBinder.Eval(Container.DataItem,"TempID") %></td>
    <td align="center">
        <asp:Literal ID="lit_SiteName" runat="server"></asp:Literal>
    </td>
    <td align="center"><%#DataBinder.Eval(Container.DataItem,"TempName") %></td>
    <td align="center">
        <asp:ImageButton ID="ImageButton1" runat="server" CommandArgument="0" CommandName=<%#DataBinder.Eval(Container.DataItem,"TempID") %> />
    </td>
    <td align="center">
        <asp:Button ID="Button1" runat="server" Text="删除" CommandArgument="1" CommandName=<%#DataBinder.Eval(Container.DataItem,"TempID") %> OnClientClick="return confirm('真的要删除当前模板吗？');" />
        <input type="button" value="修改" onclick="location.href='Template_edit.aspx?TempId=<%#DataBinder.Eval(Container.DataItem,"TempID") %>';" />
    </td>
  </tr>
  </ItemTemplate>
  <AlternatingItemTemplate>
    <tr class="TableTd_Gray1">
    <td align="center"><%#DataBinder.Eval(Container.DataItem,"TempID") %></td>
    <td align="center">
        <asp:Literal ID="lit_SiteName" runat="server"></asp:Literal>
    </td>
    <td align="center"><%#DataBinder.Eval(Container.DataItem,"TempName") %></td>
    <td align="center">
         <asp:ImageButton ID="ImageButton1" runat="server" CommandArgument="0" CommandName=<%#DataBinder.Eval(Container.DataItem,"TempID") %> />
    </td>
    <td align="center">
        <asp:Button ID="Button1" runat="server" Text="删除" CommandArgument="1" CommandName=<%#DataBinder.Eval(Container.DataItem,"TempID") %> OnClientClick="return confirm('真的要删除当前模板吗？');" />
        <input type="button" value="修改" onclick="location.href='Template_edit.aspx?TempId=<%#DataBinder.Eval(Container.DataItem,"TempID") %>';" />
    </td>
  </tr>
  </AlternatingItemTemplate>
  <FooterTemplate>
</table>
</FooterTemplate>
   </asp:Repeater>   

 </asp:Panel>


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