<%@ page language="C#" autoeventwireup="true" inherits="admin_special_specialzhanshi, 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) {
            switch (v) {
                case "0":
                    DianCMS_$("divClass").style.display = "";
                    break;
                default:
                    DianCMS_$("divClass").style.display = "none";
                    break;
            }
        }
    </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="4">所有分类</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" height="28">
                <asp:TextBox ID="txtColumn" runat="server" CssClass="in1" Text="1" Columns="10"></asp:TextBox>
            </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');ShowClassDiv()" onmouseout="HiddenDiv('1');HiddenClassDiv()" id="Href1" style="z-index:999;
                                display: none; width: 322px;margin-left:1px; 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');HiddenClassDiv()"
                                                    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');ShowClassDiv()" 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>
        <tbody id="divClass">
            <tr>
                <td class="bqleft">
                    选择分类：
                </td>
                <td class="bqright" height="28">
                    <asp:ListBox ID="ClassList" runat="server" Rows="13" SelectionMode="Multiple" Width="222px" style="z-index:1"
                        title="按住“Ctrl”或“Shift”键可以多选，按住“Ctrl”可取消选择"></asp:ListBox>
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    分类属性：
                </td>
                <td class="bqright" height="28">
                    <asp:CheckBox ID="CheckIsMyColumn" runat="server" Text="包含选中分类" /><asp:CheckBox ID="CheckIsChildColumn"
                        runat="server" Text="包含子分类" />
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    子分类属性：
                </td>
                <td class="bqright">
                    <asp:RadioButtonList ID="RadioChild" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="1" Selected="True">下一级子分类</asp:ListItem>
                        <asp:ListItem Value="2">下级所有子分类</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
        </tbody>
        <tr>
            <td class="bqleft">
            </td>
            <td class="bqright" height="40">
                <asp:Button ID="Button1" runat="server" Text=" 确认 " CssClass="btn radius30 pad_0_30" OnClick="Button1_Click" /><input id="Button6" type="button" value=" 取消 " onclick="frameElement.api.close();"
                    class="btn radius30 pad_0_30" style="margin-left: 20px" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
