<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Template_Template_Manage, V5Shop.Shop.Template" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="control/ManageHeader.ascx" TagName="ManageHeader" TagPrefix="uc3" %>
<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc2" %>
<%@ Register Src="control/HiddenField.ascx" TagName="HiddenField" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>模板风格列表</title>
    <link href="css/css.css" rel="stylesheet" type="text/css">
    <link href="css/css_list.css" rel="stylesheet" type="text/css">
    <link href="css/control.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" language="javascript" src="js/Common.js"></script>
</head>
<STYLE>
 .TEMPTABLE TR TD,TH { border-bottom:1PX #CCCCCC dashed }
</STYLE>
<body>
    <form id="form1" runat="server">
    <div>
        <uc3:ManageHeader ID="ManageHeader1" runat="server" />
        
      <div id="content">
            <div id="tool">
              <input class="checkbox" type="checkbox" id="CheckAllBox" onclick="CheckAll()" /> 全选
        　    <asp:LinkButton ID="btnAdd" runat="server" ForeColor="#4B6888" OnClick="btnAdd_Click"><img src="images/icon/key_add.gif" /> 添加</asp:LinkButton>
        　    <asp:LinkButton ID="LinkButton3" runat="server" ForeColor="#4B6888" OnClick="btnEditTpl_Click" OnClientClick="return CheckEdit()"><img src="images/icon/key_edit.gif" /> 编辑</asp:LinkButton>
        　    <asp:LinkButton ID="btnLoad" runat="server" ForeColor="#4B6888" OnClick="btnLoad_Click" OnClientClick="return CheckEdit()"><img src="images/icon/key_output.gif" /> 加载</asp:LinkButton>
        　    <asp:LinkButton ID="LinkButton1" runat="server" ForeColor="#4B6888" OnClick="btnZip_Click" OnClientClick="return CheckEdit()"><img src="images/icon/key_zip.gif" /> 打包模板</asp:LinkButton>
        　    <asp:LinkButton ID="LinkButton2" runat="server" ForeColor="#4B6888" OnClick="btnEdit_Click" OnClientClick="return CheckEdit()"><img src="images/icon/key_edit.gif" /> 编辑模板页面</asp:LinkButton>
        　    <asp:LinkButton ID="btnDel" runat="server" ForeColor="#4B6888" OnClick="btnDel_Click" OnClientClick="return CheckDel()"><img src="images/icon/key_delete.gif" /> 删除</asp:LinkButton>
            </div>
        
            <asp:DataList ID="GridViewShow" Width="100%" runat="server" DataKeyField="id" GridLines="Horizontal" RepeatColumns="2">
              <itemtemplate>
                <div align="center" style="border-TOP:solid 3px #AABAC9; border-BOTTOM:solid 3px #AABAC9; width:100%">
                  <table cellspacing="0" cellpadding="2" width="100%" border="0">
                    <tbody>
                      <tr>
                        <td width="130" align="center"><img height="160" src="../Template/<%# Eval("Path") %>/review.jpg" width="120" /></td>
                        <td><table cellspacing="0" cellpadding="0" width="100%" border="0" class="TEMPTABLE">
                            <tbody>
                              <tr>
                                <th align="right" width="30%" height="20">编号</th>
                                <td align="left" style="padding-left:5px;" width="70%"><%# Eval("Number") %></td>
                              </tr>
                              <tr>
                                <th align="right" height="20">名称</th>
                                <td align="left" style="padding-left:5px;"><div><%# Eval("Name") %></div></td>
                              </tr>
                              <tr>
                                <th align="right" height="20">作者</th>
                                <td align="left" style="padding-left:5px;"><%# Eval("Author") %></td>
                              </tr>
                              <tr>
                                <th align="right" height="20">建立日期</th>
                                <td align="left" style="padding-left:5px;"><%# Eval("Date") %></td>
                              </tr>
                              <tr>
                                <th align="right" height="20">占用空间</th>
                                <td align="left" style="padding-left:5px;"><%# V5Shop.Common.utils.FolderSize(Server.MapPath("../Template/" + Eval("Path"))) / 1024%>KB</td>
                              </tr>
                              <tr>
                                <th align="right" height="20">版本</th>
                                <td align="left" style="padding-left:5px;"><%# Eval("Version") %></td>
                              </tr>
                              <tr>
                                <th align="right" height="20">是否加载</th>
                                <td align="left" style="padding-left:5px;"><%# LoadStatus(Eval("IsAct").ToString()) %></td>
                              </tr>
                              <tr>
                                <td align="RIGHT" colspan="2"><input name="checkbox" type="checkbox" class="checkbox" id="CheckBoxID" onmouseover="this.mouse='over'" onmouseout="this.mouse='out'" value='<%# Eval("ID") %>' runat="server" mouse="out" />
                                  选中 </td>
                              </tr>
                            </tbody>
                        </table></td>
                      </tr>
                    </tbody>
                  </table>
                </div>
              </itemtemplate>
            </asp:DataList>
      </div>
        
        <div id="hiddenfield">
            <asp:HiddenField ID="CheckedIDS" runat="server" Value="0" />
            <asp:HiddenField ID="PageIndex" runat="server" Value="0"/>
            <asp:HiddenField ID="MaxPageIndex" runat="server" Value="0"/>
            <uc1:HiddenField ID="Alert" runat="server" />
        </div>

        <uc2:PageBottom ID="PageBottom1" runat="server" />
    </div>
    </form>
</body>
</html>
