<%@ Page Language="C#" AutoEventWireup="true" Inherits="MyITJob.Admin_dqColumn" Codebehind="dqColumn.aspx.cs" %>

<!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>
        <%=Application["PageTitle"] %>
        ——地 区 列 表 管 理</title>
    <link href="../images/Admin_Style.css" rel="stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript">
    function showtable(n) {
        var table1 = document.getElementById("table_1");
        var table2 = document.getElementById("table_2");
        for(var i=1;i<=2;i++){
            document.getElementById("table_"+i).style.display='none';
            if(n == i){
                document.getElementById("table_"+i).style.display='block';
            }
        }		
	}
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <table align="center" border="0" cellpadding="2" cellspacing="1" class="border" width="100%">
                <tr class="topbg">
                    <td colspan="2" height="24">
                        <table width="100%">
                            <tr class="topbg">
                                <td align="center">
                                    <b>地 区 列 表 管 理</b></td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr class="tdbg">
                    <td height="30" style="width: 88px">
                        <strong>管理导航：</strong></td>
                    <td class="dh">
                        <a href="#" onclick="showtable(1);">地区列表管理</a> | <a href="#" onclick="showtable(2);">
                            主要城市及省份数据字典</a></td>
                </tr>
            </table>
            <br />
            <table id="table_1" width='100%' height="154" border='0' align='center' cellpadding='2' cellspacing='1'
                class='border' style="display: block;">
                <tr class='tdbg'>
                    <td height="22">
                        <div align="right">
                            <strong>栏目名称：</strong></div>
                    </td>
                    <td width="76%">
                        <asp:TextBox ID="TextBox1" runat="server" MaxLength="10" /></td>
                </tr>
                <tr class='tdbg'>
                    <td height="22">
                        <div align="right">
                            <strong>排序字段值：<br />
                            </strong><span style="color: #ff0000">*选择需要排序的栏目，输入值即可。排序值越大，越靠前。</span></div>
                    </td>
                    <td width="76%">
                        <asp:TextBox ID="OrderID_Text" runat="server" MaxLength="10" Width="73px">0</asp:TextBox>
                        <asp:Button ID="order_button" runat="server" Text="排 序" OnClick="order_button_Click" />
                        <asp:Button ID="Look_order_Button" runat="server" OnClick="Look_order_Button_Click"
                            Text="查看排序号" /><span class="style4"><asp:RegularExpressionValidator ID="RegularExpressionValidator1"
                                runat="server" ErrorMessage="请输入整数。" ControlToValidate="OrderID_Text" ValidationExpression="\d{1,10}"></asp:RegularExpressionValidator></span></td>
                </tr>
                <tr class='tdbg'>
                    <td height="76">
                        <div align="right">
                            <strong>所属分类：<br />
                            </strong><span class="style4">输入栏目名称，并选择所属栏目的分类，即可添加数据。删除时只需选择相应的数据即可。</span></div>
                    </td>
                    <td>
                        <asp:ListBox ID="ListBox1" runat="server" Height="520px" Width="388px" SelectionMode="Multiple"></asp:ListBox></td>
                </tr>
                <tr class='tdbg'>
                    <td height="25">&nbsp;
                        </td>
                    <td>
                        <asp:Button ID="Button1" runat="server" Text="添加字段" OnClick="Button1_Click" />&nbsp;<asp:Button
                            ID="Button3" runat="server" Text="修改字段" OnClick="Button3_Click" />&nbsp;
                        <asp:Button ID="Button2" runat="server" Text="删除字段" OnClick="Button2_Click" />
                        <asp:Button ID="Button4" runat="server" Text="生成JS" OnClick="Button4_Click" />&nbsp;
                        <asp:Label ID="Label1" runat="server" ForeColor="Red"></asp:Label></td>
                </tr>
            </table>
            <table id="table_2" width='100%' border='0' align='center' cellpadding='5' cellspacing='1' class='border' style="display:none">
                <tr class='tdbg'>
                    <td width="9%" height="76" align="right" valign="top">
                        <strong>省份数据字典：</strong></td>
                    <td width="57%" valign="top">
                        <asp:TextBox ID="dbText" style="font-size:12px; font-family:宋体" runat="server" Height="342px" TextMode="MultiLine" Width="620px"></asp:TextBox><br />
                        <span class="style4">* 修改字典将直接影响到前台JS效果。只需要修改subIds内的对应ID即可，其他代码除非您非常有把握或者<b>有售后服务</b>才能动！如subIds:['0100','2804','1604']}。</span></td>
                    <td width="9%" rowspan="2" align="right" valign="top">
                        <strong>ID对照表：</strong></td>
                    <td width="25%" rowspan="2" valign="top">
                        <asp:ListBox ID="ListBox3" runat="server" Height="510px" Width="243px" SelectionMode="Multiple"></asp:ListBox></td>
                </tr>
                <tr class='tdbg'>
                    <td height="25" align="right" valign="top"><strong>城市特别显示：</strong>
                        </td>
                    <td>
                        <asp:TextBox ID="NorH" style="font-size:12px; font-family:宋体" runat="server" Height="100px" TextMode="MultiLine" Width="620px"></asp:TextBox><br />
                      <span class="style4">* 选择地区时的主要城市特别显示。newCity：以蓝色字体显示；hotCity：以粗体显示</span></td>
                </tr>
                <tr class='tdbg'>
                  <td height="25">&nbsp;</td>
                  <td><asp:Button ID="zidian" runat="server" Text="保存数据字典" OnClick="zidian_Click" /></td>
                  <td align="right" valign="top">&nbsp;</td>
                  <td valign="top">&nbsp;</td>
                </tr>
            </table>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="border">
<tr>
                    <td>
                        <table width="100%" border="0" cellspacing="1" cellpadding="3">
                            <tr>
                                <td class="topbg">
                                    <div align="center">
                                        Copyright 2009-2019
                                        <%=Application["PageTitle"] %>
                                        All Rights Reserved.</div>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
