<%@ page language="C#" autoeventwireup="true" inherits="admin_info_singlepageputonglist, DianCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Import Namespace="D.BLL" %>
<!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>
    <link id="CssName" rel="stylesheet" type="text/css" runat="server" />
    <script type="text/javascript" src="../../js/<%=B_Lang.getLang() %>/label.js"></script>
    <script src="../../js/Common.js" type="text/javascript"></script>
    <script type="text/javascript">
        var api = frameElement.api, W = api.opener;
        function Select(obj, Id, Name) {
            DianCMS_$(obj + "Name").value = Name;
            DianCMS_$(obj + "Id").value = Id;
        }

        function selClass(v) {
            if (v == "2") {
                DianCMS_$("Class2").style.display = "";
            }
            else {
                DianCMS_$("Class2").style.display = "none";
            }
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <table class="border" cellspacing="1" cellpadding="0" width="99%" border="0" align="center" style="margin-top:5px;">
        <tr>
            <td class="bqleft">
                数据来源：
            </td>
            <td class="bqright" height="28">
                <asp:DropDownList ID="ClassType" runat="server" onchange="selClass(this.value)">
                    <asp:ListItem Value="0">整个单页表</asp:ListItem>
                    <asp:ListItem Value="1">当前单页分类</asp:ListItem>
                    <asp:ListItem Value="2">指定单页分类</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr id="Class2" runat="server" style="display: none">
            <td class="bqleft">
                单页分类：
            </td>
            <td class="bqright">
                <asp:DropDownList ID="DropSinglePageClass" runat="server">
                    <asp:ListItem Value="0">顶级分类</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                布局方式：
            </td>
            <td class="bqright" height="28">
                <asp:RadioButtonList ID="Layout" runat="server" RepeatDirection="Horizontal" onclick="ListLayout('Layout','1')">
                    <asp:ListItem Value="table" Selected="True">普通表格</asp:ListItem>
                    <asp:ListItem Value="div">Div+Css</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                引用样式：
            </td>
            <td class="bqright">
                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                    <tr>
                        <td>
                            <div onmousemove="ShowDiv('1')" onmouseout="HiddenDiv('1')" id="Href1" style="z-index: 100;
                                display: none; width: 322px;position: absolute; visibility: visible; overflow: auto;margin-top:21px;
">
                                <table class="xiala" cellpadding="2" cellspacing="0" border="0" width="100%">
                                    <asp:Repeater ID="Repeater1" runat="server">
                                        <ItemTemplate>
                                            <tr onmouseover="this.className='tdMoveTrBg'" onmouseout="this.className=''">
                                                <td onclick="Select('txtStyle','<%#Eval("StyleId") %>','<%#Eval("Name") %>');HiddenDiv('1')"
                                                    style="cursor: pointer">
                                                    <span>
                                                        <%#Eval("Name") %></span>
                                                </td>
                                            </tr>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </table>
                            </div>
                            
                        </td>
                    </tr>
                    <tr>
                        <td><asp:TextBox ID="txtStyleName" Text="选择样式" runat="server" CssClass="in1" Style="width: 320px;cursor:pointer" onclick="ShowDiv('1')" onmouseout="HiddenDiv('1')"></asp:TextBox><asp:TextBox ID="txtStyleId"
                                    Text="0" runat="server" CssClass="in1" Style="display: none"></asp:TextBox></td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                内容列表列数：
            </td>
            <td class="bqright" height="28">
                <asp:TextBox ID="txtColumn" runat="server" CssClass="in1" Text="1" Columns="10"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                URL地址：
            </td>
            <td class="bqright">
                <asp:RadioButtonList ID="RadioSinglePageUrlForTitle" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Value="1" Selected="True">静态</asp:ListItem>
                    <asp:ListItem Value="2">动态</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
            </td>
            <td class="bqright" height="40">
                <asp:Button ID="Button1" runat="server" Text=" 确认 " CssClass="btn" OnClick="Button1_Click" /><input id="Button6" type="button" value=" 取消 " onclick="frameElement.api.close();"
                    class="btn" style="margin-left: 20px" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
