<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TemplateManage.aspx.cs"
    Inherits="KZS.Web.Manage.ManTemplate.TemplateManage" %>

<!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>
    <script src="/Common/ajax.js" type="text/javascript"></script>
    <link href="/Manage/Template/Images/global.css" rel="stylesheet" type="text/css" />
    <script language="JavaScript" type="text/javascript">
        function del() {
            if (confirm("真的要删除这条记录吗？删除后将无法恢复！")) {
                return true;
            }
            else {
                return false;
            }
        }
    </script>
    <script src="/Common/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("a").click(function () {
                if ($(this).html() == "开始安装") {
                    var gUrl;
                    gUrl= $(this).attr("href");
                    $(this).html("模版安装中，请稍候...").attr("href", "#");
                    document.location.href = gUrl;
                }
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="topitem">
    </div>
    <div id="ui_TempSelect" runat="server">
        
    </div>
    <div id="div_addtem" runat="server">
        <ul>
            <li>模板名称：<input type="text" name="TemplateName" id="TemplateName"  value="<%=vTemplateName %>"/></li>
            <li>模板路径：<input type="text" name="TemplatePath" id="TemplatePath"  value="<%=vTemplatePath %>"/></li>
            <li>上传模板：
                <asp:FileUpload ID="ICO" runat="server" /></li>
        </ul>
       <input type ="submit" name ="btn_Image" value ="<%=(Request.QueryString["Action"]=="AddTem")?"添加":"修改" %>" /> 
        <input type="button" name="back" value="返回" onclick="history.back();" />
    </div>
    <div id="div_show" runat="server">
        <table border="1" width="100%" class="lsttab" style="border-collapse: collapse" bordercolor="#C0C0C0">
            <tr class="Pager">
                <td colspan="6">
                    <a href="TemplateManage.aspx?Action=Add">添加模版</a>&nbsp<a href="http://www.kezhishang.com/article-27.html" target="_blank">模版定制</a>
                </td>
            </tr>
            <tr class="tit talc">
                <td align="center">
                    模板名称
                </td>
                <td align="center">
                    模板缩略图
                </td>
                <td align="center">
                    建议LOGO尺寸
                </td>
                <td align="center">
                    是否为默认模板
                </td>
                <td align="center">
                    操作
                </td>
            </tr>
            <%=GetTemList() %>
            <tr>
                <td colspan="6" id="Pager" class="Pager" runat="server">
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
