<?php include 'header.tpl.php';?>
<div class="pMenu">
<li><a href="javascript:meSearchClear();">管理</a></li>
<li class="sel"><a href="javascript:frmExecute('');">查找结果</a></li>
<li class="info"><a href="javascript:inc_show_help(213);" 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_folder_id"><option value="0">不限</option><?php echo $str_selfolder;?></select>　名称或关键字：<input type="text" name="s_title" value="<?php echo $get_s_title?>">　修改日期：<input type="text" name="s_updatetime1" value="<?echo $get_s_updatetime1?>" size=10 onblur="chkNoDateToNow('s_updatetime1');"><A href="javascript:setday(frmMain.s_updatetime1);"><img id=dimg1 src="../images/calendar.gif" width="34" height="21"align=absMiddle border=0></a> 到 <input type="text" name="s_updatetime2" value="<?php echo $get_s_updatetime2?>" size=10 onblur="chkNoDateToNow('s_updatetime2');"><A href="javascript:setday(frmMain.s_updatetime2);"><img id=dimg2 src="../images/calendar.gif" width="34" height="21"align=absMiddle border=0></a>　<input type="button" name="s_btnok" value="查找" class="pBtn" onclick="frmExecute('')"> 　<input type="button" name="s_btnok" value="清空" class="pBtn" onclick="meSearchClear();"></td></tr>
</table>
</div>
<table class='pTableArticle'>
<?php foreach($arr_article as $item){ ?>
<tr class='pTabRow'>
	<td class='pTabCol' width="30"><input type='checkbox' name='articleid[]' value='<?php echo $item['article_id'];?>'></td><td class='pTabCol'ondblclick="window.open('<?echo $item['article_path']?>','_blank');"><img src="../images/file.jpg" >&nbsp;<?php echo $item['article_title'];?></td>
	<td class='pTabCol' onmousedown="frmSet('id','<?php echo $item['article_id'];?>')" width="150">
		<?php if($obj_ctl_limit->chk_act("edit")){?><img src="../images/b_edit.png" onclick="javascript:frmExecute('edit_article');" class="pImgbtn" title="编辑"><?php }?>
		<?php if($obj_ctl_limit->chk_act("del")){?>　<img src="../images/b_drop.png" onclick="javascript:frmExecute('del_article');" class="pImgbtn" title="删除"><?php }?>
	</td></tr>
	<?php }?>
</table>
<div class="pPage">
<?php echo $page_split_page?>
</div>
<div class="pFootAct">
	<li><input type='checkbox' name='articleidall' value='1' onclick="checkbox_selall(this.form,'articleidall','articleid');checkbox_selall(this.form,'articleidall','folderid');">全选　<select name="selact">
	<option value="">--操作--</option>
	<?php if($obj_ctl_limit->chk_act("del")){?><option value="del_sel">删除</option><?php }?>
	</select>
	&nbsp;<input type="button" name="btnExe" value="执行" onclick="frmExecute(frmMain.selact.value);" class="pBtn">
	　　　<input type="button" name="btncopy" value="复制" onclick="articlecopy()" class="pBtn">　<input type="button" name="btncut" value="剪贴" onclick="articlecut()" class="pBtn">　<input type="button" name="btnpaste" value="粘贴" onclick="frmExecute('paste');" class="pBtn" <?php if($get_folderids==""&&$get_articleids=="")echo "disabled"?>>
	</li>
</div>
<script>
function articlecopy()
{
	var folderids="";
	folderids=checkbox_get_val(document.frmMain,"folderid");
	articleids=checkbox_get_val(document.frmMain,"articleid");
	if(folderids==""&&articleids==""){
		alert('请选择要复制的文件或文件夹！');
		return false;
	}
	frmMain.btnpaste.disabled=false;
	frmMain.folderids.value=folderids;
	frmMain.articleids.value=articleids;
	frmMain.article_act.value="copy";
	alert("成功复制！");
}
function articlecut()
{
	var folderids="";
	folderids=checkbox_get_val(document.frmMain,"folderid");
	articleids=checkbox_get_val(document.frmMain,"articleid");
	if(folderids==""&&articleids==""){
		alert('请选择要剪贴的文件或文件夹！');
		return false;
	}
	frmMain.btnpaste.disabled=false;
	frmMain.folderids.value=folderids;
	frmMain.articleids.value=articleids;
	frmMain.article_act.value="cut";
	alert("成功剪贴！");
}

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