<?php include 'header.tpl.php';?>
<script>
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";
		}
	}
}
function me_meet_join(){
	dialog_show("meet_join","报名企业","?act=join",true);
}
</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(232);" 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>
	<?php foreach($arr_state as $item=>$key){
			$str_sel="";
			if($key==$get_s_state) $str_sel=" selected";
			echo "<option value='".$key."'".$str_sel.">".$item."</option>";
	}?>
	</select>　举办日期：<input type="text" name="s_date1" value="<?php echo $get_s_date1;?>" onfocus="setday(this);"> 到 <input type="text" name="s_date2" value="<?php echo $get_s_date2;?>" onfocus="setday(this);"></td><td>关键字：<input type="text" name="s_key" value="<?php echo $get_s_key?>" size=50>　<input type="button" name="s_btnok" value="查找" class="pBtn" onclick="frmExecute('')"> 　<input type="button" name="s_btnok" value="清空" class="pBtn" onclick="window.open('?','_self');"></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><td class='pTabTitCol'>状态</td><td class='pTabTitCol'>操作</td></tr>
	<?php foreach($arr_meet as $item){ ?>
	<tr class='pTabRow' id="id_row_<?php echo $item["meet_id"]?>" onmouseover="admin_row_mouseover(<?php echo $item["meet_id"];?>)" onmouseout="admin_row_mouseout(<?php echo $item["meet_id"];?>);">
	<td class='pTabCol' width="60"><input type='checkbox' name='meetids[]' value='<?php echo $item['meet_id'];?>' onclick="admin_row_sel(this.checked,<?php echo $item["meet_id"]?>);"></td><td class='pTabCol'><?php echo $item['meet_title'];?></td>
	<td class='pTabCol'><?php echo $item["meet_address"];?></td><td class='pTabCol'><?php echo $item["meet_date"];?></td><td class='pTabCol'><?php echo $item['meet_join_num'];?></td><td class='pTabCol'><?php echo $item['addtime'];?></td><td class='pTabCol'><?php echo $item['state'];?></td>
	<td class='pTabCol' onmousedown="frmSet('id','<?php echo $item['meet_id'];?>')">
	<?php if($obj_ctl_limit->chk_act("edit")){?><img src="../images/b_edit.png" onclick="javascript:frmExecute('edit');" class="pImgbtn" title="编辑"><?php }?>
	<?php if($obj_ctl_limit->chk_act("del")){?>　<img src="../images/b_drop.png" onclick="javascript:frmExecute('del');" class="pImgbtn" title="删除"><?php }?>
	<?php if($obj_ctl_limit->chk_act("join")){?>　<a href="javascript:me_meet_join();">报名列表</a><?php }?>
	</td></tr>
	<?php }?>
</table>
</div>
<div class="pPage">
<?php echo $page_split_page?>
</div>
<div class="pFootAct">
<li><input type='checkbox' name='meetidall' value='1' onclick="admin_row_selall(this.form,'meetidall','meetids');">全选　<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("del")){?><option value="del_sel">删除</option><?php }?>
	</select>　<span id="id_state" style="display:none">
	<select name="state_val">
	<?php foreach($arr_state as $item=>$key){
			echo "<option value='".$key."'>".$item."</option>";
	}?>
	</select>
	</span>
	&nbsp;<input type="button" name="btnExe" value="执行" onclick="frmExecute(document.all.selact.value);" class="pBtn"></li>
</div>

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