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

<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head runat="server">
    <title>频道url配置</title>
    <!--#include file = "../Css/head.htm" -->
    <style>
        body{overflow:hidden;}/*去除弹出框滚动条*/
    </style>
    <script type="text/javascript" src="../Js/wpcms.js"></script>
</head>
<body>
    <div class="list-func-box func-box">
        <div class="hd b">
            频道配置
        </div>
        <form id="form1" runat="server">
            <div class="space-4"></div>
            <div class="container">
                <div class="function-hd">
                    <div class="action-field">
                        <asp:Button runat="server" ID="btnSave" Text="保存" CssClass="btn btn-sm btn-primary" OnClick="Btn_Click" />&nbsp;&nbsp;
                    <asp:Button runat="server" ID="btnCreate" Text="生成" CssClass="btn btn-sm btn-primary" OnClick="Btn_Click" />
                        <span>注意：放有登陆框、问卷调查、留言板等互动类栏目的频道页，请勿指定为静态页。</span>
                    </div>

                </div>
                <div class="function-bd" style="height: 440px; overflow-y:scroll;">
                    <!--[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" DataKeyNames="pkId" OnRowEditing="GridView1_RowEditing">
                        <Columns>
                            <asp:TemplateField HeaderStyle-CssClass="title text-center" ItemStyle-CssClass="text-center"
                                ItemStyle-Width="36px">
                                <HeaderTemplate>
                                    <%--<asp:CheckBox ID="cbAll" Text="" runat="server" onclick="GridSelectAll('GridView1',this.checked)" />--%>
                              选择
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <span><asp:CheckBox ID="cbthis" runat="server" Text=" " Checked='<%# Eval("isStatic").ToString() == "1" ? true : false %>'></asp:CheckBox></span>
                                </ItemTemplate>
                                <HeaderStyle CssClass="title text-center"></HeaderStyle>
                                <ItemStyle CssClass="text-center" Width="36px"></ItemStyle>
                            </asp:TemplateField>
                            <asp:BoundField DataField="pkId" HeaderText="ID号" HeaderStyle-CssClass="hidden" ItemStyle-CssClass="hidden"
                                FooterStyle-CssClass="hidden"></asp:BoundField>
                            <asp:BoundField DataField="name" HeaderText="频道名" HeaderStyle-CssClass="title">
                                <HeaderStyle CssClass="title"></HeaderStyle>
                            </asp:BoundField>
                            <asp:BoundField DataField="address" HeaderText="频道url" HeaderStyle-CssClass="title">
                                <HeaderStyle CssClass="title"></HeaderStyle>
                            </asp:BoundField>
                            <asp:BoundField DataField="staticUrl" HeaderText="静态页url" HeaderStyle-CssClass="title">
                                <HeaderStyle CssClass="title"></HeaderStyle>
                            </asp:BoundField>
                            <asp:BoundField DataField="staticTime" HeaderText="更新时间" HeaderStyle-CssClass="title">
                                <HeaderStyle CssClass="title"></HeaderStyle>
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="执行" HeaderStyle-CssClass="title">
                                <ItemTemplate>
                                    <asp:LinkButton ID="edit" runat="server" CommandName="edit" data-toggle="tooltip" data-placement="bottom"  title="编辑"><i class="ace-icon fa fa-pencil bigger-120 blue"></i></asp:LinkButton>
                                </ItemTemplate>
                                <HeaderStyle CssClass="title" Width="36px"></HeaderStyle>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                    <!--[if lte IE 7]></div><![endif]-->
                </div>
            </div>
            <div class="ft">
                <div class="action-field text-center">
                    <asp:HiddenField ID="hfid" runat="server" />
                    <asp:Panel runat="server" ID="pnlEdit" Visible="false">
                        【<asp:Label ID="lbname" runat="server" Text="Label"></asp:Label>】频道指向：
                <asp:DropDownList ID="ddlBigclass" runat="server">
                </asp:DropDownList>
                        ，生成的静态页：
                <asp:TextBox ID="txturl" runat="server" CssClass="input-md"></asp:TextBox>
                        <asp:Button ID="btnEdit" runat="server" CssClass="btn btn-sm btn-primary" Text="修改" OnClick="Btn_Click" />
                    </asp:Panel>
                </div>
            </div>
        </form>
    </div>
    <!--#include file = "../Css/foot.htm" -->
    <script type="text/javascript">
        jQuery(function ($) {
            $("input[type='checkbox']").addClass("ace").css('top', '0px').parent().css('position', 'relative');
            $("input[type='checkbox']").next().addClass("lbl");
        })
    </script>
</body>
</html>
