<?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_position.style.display="none";
		}
	}
}
function meClear(msgid){
	if(confirm("确定要清空以前统计的记录吗？")){
		frmSet("id",msgid);
		frmExecute('clear')
	}
}
function meSelClick(msgval){
	<?php if(!empty($get_objid)):?>
		var obj=parent.document.getElementById("<?php echo $get_objid;?>");
		if(obj){
			obj.value=msgval;
			parent.div_hide_show("<?php echo $get_dialog_id;?>");
		}
	<?php endif;?>
}
</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(221);" 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_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'>Id</td><td class='pTabTitCol'>标题</td><td class='pTabTitCol'>Url</td>
	<td class='pTabTitCol'>状态</td><td class='pTabTitCol'>访问量</td><td class='pTabTitCol'>操作</td></tr>
	<?php foreach($arr_click as $item){ ?>
<tr class='pTabRow' id="id_row_<?php echo $item["click_id"]?>" onmouseover="admin_row_mouseover(<?php echo $item["click_id"];?>)" onmouseout="admin_row_mouseout(<?php echo $item["click_id"];?>);">
	<td class='pTabCol' width="60"><input type='checkbox' name='clickid[]' value='<?php echo $item['click_id'];?>' onclick="admin_row_sel(this.checked,<?php echo $item["click_id"]?>);"></td><td class='pTabCol'><?php echo $item['click_id'];?></td><td class='pTabCol'><?php echo $item['click_title'];?></td>
	<td class='pTabCol'><?php echo $item['click_url'];?></td><td class='pTabCol'><?php echo $item['state'];?></td><td class='pTabCol'><?php echo $item['click_num'];?></td>
	<td class='pTabCol' onmousedown="frmSet('id','<?php echo $item['click_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("record")){?>　<a href="javascript:frmSet('record_click_title','<?php echo $item['click_title'];?>');frmExecute('record');">详细</a><?php }?>
	<?php if($obj_ctl_limit->chk_act("record")){?>　<a href="javascript:meClear(<?php echo $item["click_id"];?>);">清空</a><?php }?>
	<?php if($get_objid!=""):?>　<a href="javascript:meSelClick('http://xxgo.com/jc.php?id=<?php echo $item["click_id"];?>');" style="color:#ff0000">选择</a><?php endif;?>
	</tr>
	<?php }?>
</table>
</div>
<div class="pPage">
<?php echo $page_split_page?>
</div>
<div class="pFootAct">
<li><input type='checkbox' name='clickidall' value='1' onclick="admin_row_selall(this.form,'clickidall','clickid')">全选　<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>
<div style="float:left;margin-top:20px;padding-left:20px;color:#ff8800;padding-bottom:30px;text-align:left;line-height:20px">
一、页面监测调用：添加时选择类型为：页面，然后将 &lt;script src="<?php echo WEB_DOMAIN;?>/jc.php?id=上面的id号"&gt;&lt;/script&gt; 这段代码放在要监测的页面&lt;/body&gt;前面 就行了<br>
一、连接监测调用：添加时选择类型为：连接，然后把原来要打开的链接，换成 <?php echo WEB_DOMAIN;?>/jc.php?id=上面的id号 <br>
</div>
<?php include 'footer.tpl.php';?>