<%@ Page Language="C#" MasterPageFile="~/Admin/MainPage.Master" AutoEventWireup="true"
    Codebehind="JobSet.aspx.cs" Inherits="PPFOR.Admin.ContentArea.Job.JobSet"
    Title="招聘职位设置" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PPFOR_mainContent" runat="server">
    <script type="text/javascript" src="../../JS/table.js"></script>
    <script language="javascript" type="text/javascript">
    function setControlDisplay(idObj,dValue,idText)
    {
        var obj=document.getElementById(idObj);
        if(obj!=null && obj.style.display!=dValue)
        {
            obj.style.display=dValue;
            if(dValue=="none" && idText!="")
            {
                var objText=document.getElementById(idText);
                if(objText.value!=objText.getAttribute("defaultValue"))
                {
                    objText.setAttribute("defaultValue",objText.value);
                }
                objText.value="";
            }
            else if(dValue=="" && idText!="")
            {
                var objText=document.getElementById(idText);
                if(objText.value=="")
                {
                    objText.value=objText.getAttribute("defaultValue");
                }
            }
        }
    }         
    </script>

    <form action="JobSet.aspx" id="form1" runat="server">
        <asp:Label ID="PPFOR_jobTypeBelongLan" runat="server" Enabled="false" Visible="false"></asp:Label>
        <table width="100%" border="0" cellpadding="0" cellspacing="0"  class="fortable">
        <thead>
            <tr>
                <td align="center" colspan="2">招聘职位设置</td>
            </tr>
        </thead>
            <tr>
                <td style="width: 15%;" align="right">
                    扩展参数：</td>
                <td>
                    <table id="paramTable" class="innertable">
                        <tr>
                            <td colspan="2" align="left"><a onclick="addParam();" href="javascript:void('添加扩展参数');">[+]&nbsp;添加扩展参数</a></td>
                        </tr>
                        <%=PPFOR_paramTRList %>
                    </table>                
                </td>
            </tr>
            <tr>
                <td align="right">
                    扩展内容：</td>
                <td>
                    <table id="contentTable" class="innertable">
                        <tr>
                            <td colspan="2" align="left"><a onclick="addContent();" href="javascript:void('添加扩展内容');">[+]&nbsp;添加扩展内容</a></td>
                        </tr>
                        <%=PPFOR_contentTRList %>
                    </table>                
                </td>
            </tr>      
             <tr>
                <td colspan="2" style="width:100%; height:50px; display:none" align="center" valign="middle">
                    <asp:Button ID="PPFOR_setJobParametes" CssClass="inputbutton" runat="server" Text="保存设置" OnClick="PPFOR_setJobParametesClick"/>
                    <input name="reset" type="reset" id="reset1" class="inputbutton" onmouseover="this.className='inputbutton_hover'" onmouseout="this.className='inputbutton'" onclick="location.reload();" value="重置" />
                    <script type="text/javascript">
                        addButtonArray("<%= PPFOR_setJobParametes.ClientID %>","reset1");
                    </script> 
                </td>               
            </tr>      
        </table>
    </form>
</asp:Content>
