<?php include 'header.tpl.php';?>
<script>
function meSearchClear(){
	document.frmMain.s_state.value="-101";
	document.frmMain.s_updatetime1.value="";
	document.frmMain.s_updatetime2.value="";
	document.frmMain.s_name.value="";
	frmExecute('');
}
function me_change(msgval){
	obj_id_state=document.getElementById("id_state");
	switch(msgval){
		case "state":
		{
			obj_id_state.style.display="";
			break;
		}
		default:
		{
			obj_id_state.style.display="none";
		}
	}
}
</script>
<div class="pMenu">
<li class="sel"><a href="javascript:frmExecute('');">管理</a></li>
<li><a href="javascript:frmExecute('add');">添加</a></li>
<li><span onclick="div_show_hide('objSearch');" style="cursor:hand">查找</span></li>
<li class="info"><a href="javascript:inc_show_help(202);" style="color:#ff0000">帮助</a></li>
</div>
<div class="pSearchDiv" id="objSearch" style="display:<?php if($get_issearch!="1")echo "none"?>">
<table class="sTab">
<tr><td>状态：<select name="s_state">
	<option value="-101">不限</option>
	<option value="1" <?php if($get_s_state==1) echo "selected";?>>通过</option>
	<option value="0" <?php if($get_s_state==0) echo "selected";?>>待审</option>
	<option value="-2" <?php if($get_s_state==-2) echo "selected";?>>暂停</option>
	<option value="-1" <?php if($get_s_state==-1) echo "selected";?>>回收站</option>
	<option value="-99" <?php if($get_s_state==-99) echo "selected";?>>过期</option>
	</select>　发布时间：<input type="text" name="s_updatetime1" value="<?php echo $get_s_updatetime1;?>" onfocus="setday(this);"> 到 <input type="text" name="s_updatetime2" value="<?php echo $get_s_updatetime2;?>" onfocus="setday(this);"></td><tr>
	<tr><td>名称或关键字：<input type="text" name="s_name" value="<?php echo $get_s_name?>">　<input type="button" name="s_btnok" value="查找" class="pBtn" onclick="frmExecute('')"> 　<input type="button" name="s_btnok" value="清空" class="pBtn" onclick="meSearchClear();frmExecute('');"></td></tr>
</table>
</div>
<div>
<table class='pTable'>
<tr class='pTabTitRow'>
	<td class='pTabTitCol'></td><td class='pTabTitCol'>职位</td><td class='pTabTitCol'>公司</td>
	<td class='pTabTitCol'>招聘时间</td><td class='pTabTitCol'>状态</td><td class='pTabTitCol'>操作</td></tr>
	<?php foreach($arr_job as $item){ ?>
<tr class='pTabRow' id="id_row_<?php echo $item["job_id"]?>" onmouseover="admin_row_mouseover(<?php echo $item["job_id"];?>)" onmouseout="admin_row_mouseout(<?php echo $item["job_id"];?>);">
	<td class='pTabCol' width="60"><input type='checkbox' name='jobids[]' value='<?php echo $item['job_id'];?>' onclick="admin_row_sel(this.checked,<?php echo $item["job_id"]?>);"></td><td class='pTabCol'><a href="<?php echo $item["url"];?>" target="_blank"><?php echo $item['job_name'];?></a></td>
	<td class='pTabCol'><a href="<?php echo WEB_URL."/index.php?app=companyview&uid=".$item["job_user_id"];?>" target="_blank"><?php echo $arr_company["id_".$item['job_user_id']]["company_name"];?></a></td><td class='pTabCol'><?php echo $item['job_addtime'];?> 到 <?php echo $item['validdate'];?></td><td class='pTabCol'><?php echo $item['state'];?></td>
	<td class='pTabCol' onmousedown="frmSet('id','<?php echo $item['job_id'];?>')"><a href="javascript:frmExecute('edit');">编辑</a></td></tr>
	<?php }?>
</table>
</div>
<div class="pPage">
<?php echo $page_split_page?>
</div>
<div class="pFootAct">
<li><input type='checkbox' name='jobidall' value='1' onclick="admin_row_selall(this.form,'jobidall','jobids');">全选　<select name="selact" onchange="me_change(this.value);">
	<option value="">--操作--</option>
	<?php if($obj_ctl_limit->chk_act("state")){?><option value="state">状态设置</option><?php }?>
	<?php if($obj_ctl_limit->chk_act("html_exe")&&$this_is_job_html==true){?><option value="html_exe">生成html</option><?php }?>
	<?php if($obj_ctl_limit->chk_act("del")){?><option value="del_sel">删除</option><?php }?>
	</select>　<span id="id_state" style="display:none">
	<select name="state_val">
	<option value="1">通过</option>
	<option value="0">待审</option>
	<option value="-2">暂停</option>
	<option value="-1">回收站</option>
	</select></span>
	&nbsp;<input type="button" name="btnExe" value="执行" onclick="frmExecute(document.frmMain.selact.value);" class="pBtn"></li>
</div>

<?php include 'footer.tpl.php';?>		