<%@ Page Language="C#" AutoEventWireup="true" Inherits="MyITJob.Admin_JobColumn" Codebehind="JobColumn.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("tb1");
        var table2 = document.getElementById("tb2");
        for(var i=1;i<=2;i++){
            document.getElementById("tb"+i).style.display='none';
            if(n == i){
                document.getElementById("tb"+i).style.display='block';
            }
        }		
	}
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <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 />
        <div>
            <table id="tb1" width='100%' border='0' align='center' cellpadding='2' cellspacing='1' class='border'>                
                <tr class='tdbg'>
                    <td>
                        <div align="right">
                            <strong>栏目名称：</strong></div>
                    </td>
                    <td width="76%">
                        <asp:TextBox ID="TextBox1" runat="server" MaxLength="20" /></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="75px" >0</asp:TextBox>
                        <asp:Button ID="order_button" runat="server" Text="排 序" OnClick="order_button_Click" />
                        <asp:Button ID="Look_order_Button" runat="server" Text="查看排序号" OnClick="Look_order_Button_Click" /><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>
                        <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>&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="tb2" width='100%' height="129" border='0' align='center' cellpadding='4' cellspacing='1' class='border' style="display:none">            
            <tr class='tdbg'>
              <td width="9%" height="76" align="right" valign="top"><strong>栏目列表：</strong></td>
              <td width="58%" valign="top">
                  <asp:TextBox ID="TextBox2" style="font-size:12px; font-family:宋体" runat="server" Height="344px" TextMode="MultiLine" Width="626px"></asp:TextBox><br />
                  <span class="style4">* 修改字典将直接影响到前台JS效果。只需要修改subIds内的对应ID即可，其他代码除非您非常有把握或者<b>有售后服务</b>才能动！如subIds:['0100','2804','1604']}。</span></td>
              <td width="8%" rowspan="2" align="right" valign="top"><strong>ID对照表：</strong></td>
              <td width="25%" rowspan="2" valign="top"><asp:ListBox ID="ListBox3" runat="server" Height="350px" Width="275px"></asp:ListBox></td>
            </tr>
            <tr class='tdbg'>
              <td height="25">&nbsp;</td>
              <td><asp:Button ID="zidian" runat="server" Text="保存数据字典" OnClick="zidian_Click" /></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>
