<%@ Page Language="c#" Inherits="Web.Wpdcc.managerPageLayoutTemplate" CodeBehind="managerPageLayoutTemplate.aspx.cs" %>

<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>
    <title>网页风格管理</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!--#include file = "../Css/adminCssEdit.htm" -->

    <script language="javascript" type="text/javascript">
        jQuery(function ($) {
            /*列表高度*/
            $('.function-bd').height($(window).innerHeight() - 100);

            $(window).resize(function () {
                $('.function-bd').height($(window).innerHeight() - 100);
            });

        });
        function openwin() {
            location.href = "../pageLayoutTemplate.aspx";
        }
        function preview(pkId) {
            window.open("../previewEffect.aspx?pkId=" + pkId, "", "left=350,top=100,width=800,height=550,status=1,resizable=1,scrollbars=1");
        }
    </script>

</head>
<body>
    <div class="list-func-box func-box">
        <div class="hd">
            <asp:Label ID="title" runat="server"></asp:Label>
        </div>
        <form id="manage" method="post" runat="server">
            <div class="bd">
                <div class="function-hd">
                    <div class="search-box fr">
                        模板名称：<asp:TextBox ID="txtKey" class="input-txt" runat="server"></asp:TextBox>
                        <asp:Button ID="btnSearch" class="btn1 btn" runat="server" Text="搜 索" OnClick="btn_Click" />
                    </div>
                    <!--/search-box-->
                    <div class="action-field">
                        <asp:Button ID="btnAdd" CssClass="btn" runat="server" Text="添加模板" OnClick="btn_Click" />
                    </div>
                    <!--/action-field-->
                </div>
                <div class="function-bd" style="height: 580px; overflow: auto;">
                    <!--[if lte IE 7]><div style="zoom:1"><![endif]-->
                    <asp:DataGrid ID="pageGrid" class="list-table" runat="server" AutoGenerateColumns="False"
                        OnItemCommand="pageGrid_ItemCommand">
                        <Columns>
                            <asp:BoundColumn DataField="pkId" HeaderText="ID" HeaderStyle-CssClass="title"></asp:BoundColumn>
                            <asp:BoundColumn DataField="name" HeaderText="模板名称" HeaderStyle-CssClass="title"></asp:BoundColumn>
                            <asp:TemplateColumn HeaderText="执行" HeaderStyle-CssClass="title">
                                <ItemTemplate>
                                    <asp:LinkButton ID="editt" runat="server" CausesValidation="False" CommandName="edit" title="编辑"><i class="icon icon-pencil"></i></asp:LinkButton>
                                    <asp:LinkButton ID="dell" runat="server" CausesValidation="False" CommandName="del1" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.name") %>' title="删除"><i class="icon icon-remove"></i></asp:LinkButton>
                                    <asp:LinkButton ID="deff" runat="server" CausesValidation="False" CommandName="def1" title="恢复上次设置"><i class="icon icon-07"></i></asp:LinkButton>
                                    <asp:LinkButton ID="copyy" runat="server" CommandName="copy1" title="复制"><i class="icon icon-06"></i></asp:LinkButton>
                                    <asp:LinkButton ID="preview" runat="server" title="预览"><i class="icon icon-10"></i></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateColumn>
                            <asp:BoundColumn Visible="False" DataField="isSystem" HeaderText="是否默认" HeaderStyle-CssClass="title"></asp:BoundColumn>
                            <asp:BoundColumn Visible="False" DataField="adminId" HeaderText="adminId" HeaderStyle-CssClass="title"></asp:BoundColumn>
                        </Columns>
                    </asp:DataGrid>
                    <!--[if lte IE 7]></div><![endif]-->
                </div>
                <!--/function-bd-->
            </div>
        </form>
    </div>
</body>
</html>
