<?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";
		}
	}
}
</script>

<div class="pMenu">
<li class="sel"><a href="javascript:frmExecute('');">管理</a></li>
<li><span onclick="div_show_hide('objSearch');" style="cursor:hand">查找</span></li>
<li class="info"><a href="javascript:inc_show_help(233);" 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_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_key" value="<?php echo $get_s_key?>">　<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></tr>
	<?php foreach($arr_photo as $item){ ?>
<tr class='pTabRow' id="id_row_<?php echo $item["photo_id"]?>" onmouseover="admin_row_mouseover(<?php echo $item["photo_id"];?>)" onmouseout="admin_row_mouseout(<?php echo $item["photo_id"];?>);">
	<td class='pTabCol' width="60"><input type='checkbox' name='photoids[]' value='<?php echo $item['photo_id'];?>' onclick="admin_row_sel(this.checked,<?php echo $item["photo_id"]?>);"></td><td class='pTabCol'><a href="<?php echo $item["url"];?>" target="_blank"><img src="<?php echo $item['url'];?>" width="150px" height="150px" border=0></a></td><td class='pTabCol'><?php echo $item["photo_desc"];?></td>
	<td class='pTabCol'><a href="<?php echo WEB_URL."/index.php?app=companyview&uid=".$item["photo_user_id"];?>" target="_blank"><?php echo $item["company_name"];?></a></td><td class='pTabCol'><?php echo $item['addtime'];?></td><td class='pTabCol'<?php if($item["photo_state"]<1) echo " style='color:#ff0000'";?>><?php echo $item['state'];?></td>
	<td class='pTabCol' onmousedown="frmSet('id','<?php echo $item['photo_id'];?>')">
	<?php if($obj_ctl_limit->chk_act("del")){?><img src="../images/b_drop.png" onclick="javascript:frmExecute('del');" class="pImgbtn" title="删除"><?php }?>
	<?php }?>
</table>
</div>
<div class="pPage">
<?php echo $page_split_page?>
</div>
<div class="pFootAct">
<li><input type='checkbox' name='photoidall' value='1' onclick="admin_row_selall(this.form,'photoidall','photoids');">全选　<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.frmMain.selact.value);" class="pBtn"></li>
</div>

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