<%@ 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/adminCss.htm" -->

    <script type="text/javascript" language="javascript">
    
     jQuery(function($) {
      //修改
            $(".edit").click(function(){
                return true ;
            }).fancybox({
                'width'		: 880,
				'height'	: 540,
				'hideOnOverlayClick': false,
				'padding':'0',
				'type'		: 'iframe'
			
            });
            //另存
              $(".saveas").click(function(){
                return true ;
            }).fancybox({
                'width'		: 880,
				'height'	: 540,
				'hideOnOverlayClick': false,
				'padding':'0',
				'type'		: 'iframe'
			
            });
            //添加栏目模板
              $("#btnAdd").click(function(){
                return true ;
            }).fancybox({
                'width'		: 880,
				'height'	: 540,
				'hideOnOverlayClick': false,
				'type'		: 'iframe',
				'padding':'0',
				'href'      : 'newVisualArtDesign.aspx?artdesignid=0'
			
            });
                 /*列表高度*/
              $('.function-bd').height($(window).innerHeight() - 80);

              $(window).resize(function () {
                  $('.function-bd').height($(window).innerHeight() - 80);
              });
       })      
    </script>

</head>
<body>
    <div class="list-func-box func-box">
        <div class="hd">
            <asp:Label ID="title" runat="server">您的位置：网站模版设置 &gt;栏目模板列表</asp:Label>
        </div>
        <form id="manage" method="post" runat="server">
        <div class="bd">
            <div class="function-hd">
                <div class="action-field">
                    <asp:Button ID="btnAdd" CssClass="btn" runat="server" Text="添加" OnClick="Btn_Click" />
                    &nbsp;
                    <asp:Button ID="btnCss" CssClass="btn" runat="server" Text="生成CSS文件" OnClick="Btn_Click" />
                </div>
            </div>
            <div class="function-bd" style="overflow: auto;">
                <!--[if lte IE 7]><div style="zoom:1"><![endif]-->
                <asp:GridView ID="GridView1" runat="server" class="list-table" 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>
                                <asp:LinkButton ID="editt" runat="server" CausesValidation="False" CssClass="edit"
                                    href='<%# Eval("pkId","newVisualArtDesign.aspx?artdesignid={0}")%>' title="编辑"><i class="icon icon-pencil"></i></asp:LinkButton>
                                <asp:LinkButton ID="dell" runat="server" CausesValidation="False" CommandName="del1" title="删除"><i class="icon icon-remove"></i></asp:LinkButton>
                                <a href='newVisualArtDesign.aspx?artdesignid=<%# Eval("pkId") %>&isSaveAs=1' class="saveas" title="另存"><i class="icon icon-02"></i></a>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                <!--[if lte IE 7]></div><![endif]-->
            </div>
            <!--/function-bd-->
        </div>
        </form>
    </div>
</body>
</html>
