<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.Weixin.WebSite.Admin_TemplateClass" Codebehind="KS.TemplateClass.aspx.cs" %>

<%@ Import Namespace="Kesion.Cache" %>
<%@ Import Namespace="Kesion.Publics" %>
<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" Runat="Server">

<div class="content01">
<div id="manage_top" class="menu_top_fixed">
   <ul>
   <li id="p8"> 
   <asp:LinkButton ID="LinkButton1" runat="server" OnClick="addclassbutton_Click"><b></b>新建模板类型</asp:LinkButton>
   </li>
   </ul>
   </div>
   <div class="menu_top_fixed_height"></div>  
<asp:Panel ID="mainlist" runat="server" Width="100%">

 <style>
  .Exlbos{padding-left:20px;padding-top:20px;} 
  .template li{ list-style:none; float: left; margin-bottom:30px;margin-right:30px; width:300px; height:250px; margin-bottom:20px} 
  .template li .button{ text-decoration:none; line-height:25px; margin-bottom:5px;}
 </style>

 <div class="Exlbos">
         <asp:Repeater ID="list" runat="server"  OnItemCommand="list_ItemCommand" >
          <HeaderTemplate>
           <table width="100%" class="CTable" align="center" border="0" cellpadding="0" cellspacing="0">
          <tr class="CTitle"> 
            <td>模板类型ID</td>              
           <td>模板类型名称</td>
           <td>类型</td>
           <td>编辑</td>
           <td>删除</td>
              
            </tr>     
          </HeaderTemplate>
          <ItemTemplate>
         
            <tr >
             
             <td style="width:5%"><%# Eval("ClassID") %></td>
             <td style="width:55%;">
              
            <%# Eval("ClassName") %>
             </td>
             <td>  <%#GetModelType(Convert.ToInt16(Eval("ClassType","{0}"))) %></td>
             <td class="Ctd">
             <asp:LinkButton ID="LinkButton1" ToolTip="编辑"  runat="server" commandargument=<%#Eval("ClassID") %> commandname="modify" >编辑</asp:LinkButton>
           
             </td>
             <td class="Ctd">
               <%# Convert.ToString(Eval("ClassType")).Equals("1") ? "-" : @"<a href=""javascript:;""  onclick=""KesionJS.Confirm('删除模型不可逆，确认删除吗？','location.href=\'Weixin/KS.TemplateClass.aspx?action=del&classid=" + Eval("ClassID") + @"\';','')"" title=""删除模型"">删除</a>"%>
             
             </td>
 
            </tr>
          </ItemTemplate>
         <FooterTemplate>
           </ul>
         </div>
          </FooterTemplate>
         </asp:Repeater>
       </div>
        <KS:Page ID="Page1" runat="server" />
</asp:Panel>
<asp:Panel ID="AddPanel" runat="server" Width="100%"><br />
     <table width="100%" border="0" cellpadding="1" cellspacing="1" class="CTable"> 
          <tr>
              <td align="right" class="lefttd" style="width: 150px">
                  <strong>模板类型名称：</strong></td>
              <td class="righttd">
              <asp:TextBox ID="TxtClassName" runat="server" CssClass="textbox" ></asp:TextBox>
              </td>
          </tr> 
      </table>
      <div style="text-align:center;margin-top:15px">
      <asp:Button ID="Button1" runat="server" CssClass="button" Text="添加" OnClick="Button1_Click" />
      <input type="button" class="button" id="backBtn" value="返 回" onclick="location.href='/admin/weixin/KS.TemplateClass.aspx';">
   </div>
</asp:Panel>
</div>


</asp:Content>

