<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="manageVisualArtDesign.aspx.cs" Inherits="Web.Wpdcc.manageVisualArtDesign" %>

<!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/head.htm" -->
</head>
<body>
    <div class="main-content-inner">
        <!-- #section:basics/content.breadcrumbs -->
        <div class="breadcrumbs" id="breadcrumbs">
            <script type="text/javascript">
                try { ace.settings.check('breadcrumbs', 'fixed') } catch (e) { }
            </script>
            <ul class="breadcrumb">
                <li>
                    <i class="ace-icon fa  fa-desktop"></i>
                    <a href="welcome.aspx">主页</a>
                </li>
                <li>模板管理
                </li>
                <li class="active">栏目模板</li>
            </ul>
            <!-- /.breadcrumb -->

            <!-- /section:basics/content.searchbox -->
        </div>
        <!-- /section:basics/content.breadcrumbs -->
        <div class="page-content">
            <div class="row">
                <div class="col-xs-12">
                    <!-- PAGE CONTENT BEGINS -->
                    <div class="list-func-box func-box">
                        <form id="manage" method="post" runat="server">
                            <div class="tabbable">
                                <ul class="nav nav-tabs" id="myTab4">
                                    <li>
                                        <a aria-expanded="false" href="manageTempMenu.aspx" data-toggle="tab">菜单模板</a>
                                    </li>
                                    <li class="active">
                                        <a aria-expanded="true" href="manageVisualArtDesign.aspx" data-toggle="tab">栏目模板</a>
                                    </li>
                                    <li>
                                        <a aria-expanded="true" href="manageBanner.aspx" data-toggle="tab">网站横幅</a>
                                    </li>
                                </ul>
                            </div>
                            <div class="bd tab-content">
                                <div class="page-header clearfix">
                                    <div class="action-field">
                                        <asp:Button ID="btnAdd" CssClass="btn btn-sm btn-primary" runat="server" Text="添加" OnClick="Btn_Click" />
                                        &nbsp;
                    <asp:Button ID="btnCss" CssClass="btn btn-sm btn-primary" runat="server" Text="生成CSS文件" OnClick="Btn_Click" />
                                    </div>
                                </div>
                                <div class="function-bd">
                                    <!--[if lte IE 7]><div style="zoom:1"><![endif]-->
                                    <asp:GridView ID="GridView1" runat="server" class="table table-striped table-bordered table-hover" AutoGenerateColumns="False"
                                        OnRowCommand="GridView1_RowCommand">
                                        <Columns>
                                            <asp:BoundField DataField="pkid" HeaderText="ID" ControlStyle-CssClass="title" />
                                            <asp:BoundField DataField="name" HeaderText="栏目模板名称" ControlStyle-CssClass="title" />
                                            <asp:BoundField DataField="artCode" HeaderText="样式编码" ControlStyle-CssClass="title" />
                                            <asp:TemplateField HeaderText="使用情况" HeaderStyle-CssClass="title">
                                                <ItemTemplate>
                                                    <%#Eval("artState").ToString() == "1" ? "使用" : "未使用"%>
                                                </ItemTemplate>
                                                <HeaderStyle CssClass="title"></HeaderStyle>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="系统模板" HeaderStyle-CssClass="title">
                                                <ItemTemplate>
                                                    <asp:Label ID="isSystemItem" runat="server" Text='<%# Eval("isSystem").ToString() == "1" ? "是" : "否" %>'>
                                                    </asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="执行">
                                                <ItemTemplate>
                                                    <div class="action-buttons">
                                                        <asp:LinkButton ID="editt" runat="server" class="fbox"  CausesValidation="False" href='<%# Eval("pkId","newVisualArtDesign.aspx?artdesignid={0}")%>' data-toggle="tooltip" data-placement="bottom" title="编辑"><i class="ace-icon fa fa-pencil bigger-120 blue"></i></asp:LinkButton>
                                                        <a href='newVisualArtDesign.aspx?artdesignid=<%# Eval("pkId") %>&isSaveAs=1' class="fbox blue" data-toggle="tooltip" data-placement="bottom" title="另存"><i class="ace-icon fa fa-floppy-o bigger-120"></i></a>
                                                        <asp:LinkButton ID="dell" runat="server" CausesValidation="False" CommandName="del1" data-toggle="tooltip" data-placement="bottom" title="删除" ><i class="ace-icon fa fa-trash-o bigger-120 red" ></i></asp:LinkButton>
                                                    </div>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                    </asp:GridView>
                                    <!--[if lte IE 7]></div><![endif]-->
                                </div>
                                <!--/function-bd-->
                            </div>
                        </form>
                    </div>
                    <!-- PAGE CONTENT ENDS -->
                </div>
            </div>
        </div>
        <!-- /.page-content -->
    </div>
    <!--#include file = "../Css/foot.htm" -->
     <script type="text/javascript" language="javascript">

         jQuery(function ($) {
             //另存、修改
             $(".fbox").click(function () {
                 return true;
             }).fancybox({
                 'width': 880,
                 'height': 650,
                 'hideOnOverlayClick': false,
                 'padding': '0',
                 'type': 'iframe'

             });
             //添加栏目模板
             $("#btnAdd").click(function () {
                 return true;
             }).fancybox({
                 'width': 880,
                 'height': 600,
                 'hideOnOverlayClick': false,
                 'type': 'iframe',
                 'padding': '0',
                 'href': 'newVisualArtDesign.aspx?artdesignid=0'

             });
         })
    </script>
</body>
</html>
