<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin_Team.aspx.cs" Inherits="MyITJob.Admin.Admin_Team" %>

<!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 id="Head1" runat="server">
    <title>
        <%=Application["PageTitle"] %>
        ——用户组设置</title>
    <link href="../images/Admin_Style.css" rel="stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript" src="../js/tit.js"></script>
    <script language='javascript' type="text/javascript">
        function CheckAll(form) {
            for (var i = 0; i < form.elements.length; i++) {
                var e = form.elements[i];
                if (e.name != 'chkAll' && e.disabled == false && e.type == 'checkbox') {
                    e.checked = form.chkAll.checked;
                    if (e.checked)
                        hL(e);
                    else
                        dL(e);
                }
            }
        }

        function hL(E) {
            while (E.tagName != 'TR') { E = E.parentElement; }
            E.className = 'tdbg2';
        }
        function dL(E) {
            while (E.tagName != 'TR') { E = E.parentElement; }
            E.className = 'tdbg';
        }

        function yincangbaoyue() {
            var check0 = document.getElementById("RadioButtonList1_0");
            var check1 = document.getElementById("RadioButtonList1_1");
            if (check0.checked || check1.checked) {
                document.getElementById("bao").style.display = "none";
            } else {
                document.getElementById("bao").style.display = "";
            }
        }
    </script>
</head>
<body onload="yincangbaoyue();">
    <form id="form1" runat="server">
    <div>
        <table width='100%' border='0' align='center' cellpadding='2' cellspacing='1' class='border'>
            <tr class='topbg'>
                <td height='22' colspan='3'>
                    <table width='100%'>
                        <tr class='topbg'>
                            <td align='center'>
                                <b>企 业 组 管 理</b>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr class='tdbg'>
                <td width='70' height='30'>
                    <strong>管理导航：</strong>
                </td>
                <td>
                    <a href="Admin_Team.aspx?Action=Add">添加企业组</a> | <a href="Admin_Team.aspx">管理企业组</a>
                    |
                </td>
            </tr>
        </table>
        <br />
        <asp:Panel ID="Add" runat="server" Width="100%" Visible="False">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td>
                        <table width='100%' border='0' align='center' cellpadding='4' cellspacing='1' class='border'>
                            <tr>
                                <td height='22' colspan='2' class='topbg' align='center'>
                                    <strong>企 业 组 设 置</strong>
                                </td>
                            </tr>
                            <tr class='tdbg'>
                                <td width="15%" class="tdbg2" align="right">
                                    自定义组名称：
                                </td>
                                <td>
                                    <asp:TextBox ID="TeamName" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="该项不能为空"
                                        ControlToValidate="TeamName"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr class='tdbg'>
                                <td width="15%" class="tdbg2" align="right">
                                    身份转换确认：
                                </td>
                                <td>
                                    <asp:RadioButtonList ID="RBL_famous" runat="server" RepeatDirection="Horizontal"
                                        RepeatLayout="Flow" onclick="yincangbaoyue();">
                                        <asp:ListItem Selected="True">普通</asp:ListItem>
                                        <asp:ListItem>知企</asp:ListItem>
                                    </asp:RadioButtonList>
                                </td>
                            </tr>
                            <tr class='tdbg'>
                                <td width="15%" class="tdbg2" align="right">
                                    高级服务：
                                </td>
                                <td>
                                    <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal"
                                        RepeatLayout="Flow" onclick="yincangbaoyue();">
                                        <asp:ListItem Selected="True">未通过图招</asp:ListItem>
                                        <asp:ListItem>通过图招</asp:ListItem>
                                        <asp:ListItem>包月服务</asp:ListItem>
                                        <asp:ListItem>包季服务</asp:ListItem>
                                        <asp:ListItem>包年服务</asp:ListItem>
                                    </asp:RadioButtonList>
                                </td>
                            </tr>
                            <tr class='tdbg'>
                                <td class="tdbg2" align="right">
                                    升级费用：
                                </td>
                                <td>
                                    <asp:TextBox ID="Up_Money" runat="server" Width="73px"></asp:TextBox>元（1元=1点数）<asp:RequiredFieldValidator
                                        ID="RequiredFieldValidator2" runat="server" ErrorMessage="该项不能为空" ControlToValidate="Up_Money"></asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="请填写数字"
                                        ControlToValidate="Up_Money" ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
                                </td>
                            </tr>
                            <tr class='tdbg'>
                                <td class="tdbg2" align="right">
                                    服务期限：
                                </td>
                                <td>
                                    <asp:TextBox ID="Up_Time" runat="server" Width="73px"></asp:TextBox>天<asp:RequiredFieldValidator
                                        ID="RequiredFieldValidator3" runat="server" ErrorMessage="该项不能为空" ControlToValidate="Up_Time"></asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="请填写数字"
                                        ControlToValidate="Up_Time" ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator><br />
                                    <span style="color: #ff0000">备注：</span>包月及其以上用户在服务期内免费发布招聘职位，而不计较发布天数。
                                </td>
                            </tr>
                            <tr class='tdbg' id="bao">
                                <td class="tdbg2" valign="top" align="right">
                                    权限设置：<br />
                                    &nbsp;
                                </td>
                                <td>
                                    查看简历联系方式：<asp:TextBox ID="Look_lxfs" runat="server" Width="73px">0</asp:TextBox>
                                    <asp:DropDownList ID="dayoran" runat="server">
                                        <asp:ListItem>份内</asp:ListItem>
                                        <asp:ListItem>天内</asp:ListItem>
                                    </asp:DropDownList>
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="Look_lxfs"
                                        ErrorMessage="请填写数字" ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
                                    <br />
                                    发布招聘信息数量：<asp:TextBox ID="zpCount" runat="server" Width="73px">0</asp:TextBox>
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ErrorMessage="请填写数字"
                                        ControlToValidate="zpCount" ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator><br />
                                    <input id="song_tj" name="song_tj" value="1" type="checkbox" runat="server" />附送推荐企业
                                    <input id="song_tz" name="song_tz" value="1" type="checkbox" runat="server" />附送图招企业
                                    <br />
                                    <span class="style4">备注：</span>附送的企业在<span class="style4">前台的显示时间</span>等于设置的“服务期限”。
                                </td>
                            </tr>
                        </table>
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td style="height: 22px">
                                    <div align="center">
                                        <asp:Button ID="Button1" runat="server" Text="添 加" OnClick="Button1_Click" />
                                        <input id="Reset1" type="reset" value="重 置" /></div>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </asp:Panel>
        <asp:Panel ID="Manage" runat="server">
        <div runat="server" visible="false" id="jbfw_div" style="font-size:22px; line-height:22px; color:Red; font-weight:bold;">您还未创建最基本的【普通服务】身份，请及时创建用户组名称为“普通服务”的收费身份，否则会引起不可预见的问题。</div>
            <table width='100%' border='0' align='center' cellpadding='4' cellspacing='1' class='border'>
                <tr class='topbg'>
                    <td width="7%" align='center'>
                        <span class="Glow"><strong>序号</strong></span>
                    </td>
                    <td width="25%" align='center'>
                        <span class="Glow"><strong>用户组名称</strong></span>
                    </td>
                    <td align='center' style="width: 13%">
                        <span class="Glow"><strong>升级费用</strong></span>
                    </td>
                    <td width="13%" align='center'>
                        <span class="Glow"><strong>服务期限</strong></span>
                    </td>
                    <td width="25%" align='center'>
                        <span class="Glow"><strong>常规操作</strong></span>
                    </td>
                </tr>
                <asp:Repeater ID="Manage_Team" runat="server">
                    <ItemTemplate>
                        <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
                            <td align='center'>
                                <%# Eval("id") %>
                            </td>
                            <td align="center">
                                <%#FormatLeft( Eval("team_name").ToString() ,16 ,14) %>（<%#Eval("team_pic") %>）
                            </td>
                            <td align='center'>
                                <span class="style4"><strong>
                                    <%#Eval("up_money")%></strong></span> 元（RMB）
                            </td>
                            <td align='center'>
                                <span class="style4"><strong>
                                    <%#Eval("up_time")%></strong></span> 天
                            </td>
                            <td align='center'>
                                <a href="Admin_Team.aspx?Action=Edit&id=<%# Eval("id")%>">修改</a> | <a href="Admin_Team.aspx?Action=Del&id=<%# Eval("id")%>"
                                    onclick="return confirm('确定要删除此项吗？此操作不可逆。')">删除</a>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
            <table width="100%" height="18" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="669" height="18">
                        <div id="paging" runat="server">
                        </div>
                    </td>
                </tr>
            </table>            
        </asp:Panel>
        <span class="style4">备注：</span><br />
        选择“份内”——则企业可以查看所有简历（无视简历发布时间是否在权限范围内）<br />
        选择“天内”——简历发布日期是否在身份转换时的规定时间内，方可查看，否则需要另外付费。<br />
        <span class="style4">警告：非源码版用户请勿删除目录结构，只能在基础上修改和添加。否则造成网站不正常的后果自负。"普通服务"为最基本身份，不可修改/删除，否则会引起不可预见的问题。</span>
    </div>
    </form>
</body>
</html>
