<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>
文档管理</title>

<link rel="stylesheet" href="css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" />
<link rel="stylesheet" type="text/css" href="css/base.css">
<script language="javascript" src="js/jquery.min.js" type="text/javascript"></script>	
<script type="text/javascript" src="js/admin.jquery.configuration.js"></script>

<script language="javascript" src="js/global.js"></script>
<script language="javascript" src="../include/js/dedeajax2.js"></script>
<script language="javascript" src="js/ieemu.js"></script>
<script language="javascript" src="js/context_menu.js"></script>
<script language="javascript" src="js/dialog.js"></script>
<script language="javascript" src="js/main.js"></script>
<script language="javascript" src="js/list.js"></script>

</head>
<body onLoad="ContextMenu.intializeContextMenu()">
<div id="body-wrapper"> <!-- Wrapper for the radial gradient background -->
<?php include(DEDEADMIN.'/templets/menu.htm'); ?>
<script language="javascript">
$("#articles").addClass("current");$("#content_list").addClass("current");</script>				

	<div class="content-box"><!-- Start Content Box -->
				
				<div class="content-box-header">
					
					<h3>文档管理</h3>
					
					<ul class="content-box-tabs">

					</ul>
					
					<div class="clear"></div>
					
				</div> <!-- End .content-box-header -->
				
				<div class="content-box-content">
					
<div class="tab-content  default-tab" id="tab1">				
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1">
 <tr>
 <td align="center">
  <input class="button" onclick="location='catalog_do.php?channelid={dede:global.channelid/}&cid={dede:global.cid/}&dopost=addArchives';" name="imageField" type="button" value="添加文档" />
  {dede:if $adminid==$mid }
  <input class="button" onclick="location='content_list.php?cid={dede:global.cid/}&mid=0';" name="imageField" type="button" value="全部文档" />

	{else}
      <input class="button" onclick="location='content_list.php?cid={dede:global.cid/}&mid=<?php echo $cuserLogin->getUserID(); ?>';" name="imageField" type="button" value="全部文档" />

	{/dede:if}

    <input class="button" onclick="location='catalog_main.php';" name="imageField" type="button" value="栏目管理" />
<input class="button" onclick="location='makehtml_list.php?cid={dede:global.cid/}';" name="imageField" type="button" value="更新列表" />
<input class="button" onclick="location='makehtml_archives.php?cid={dede:global.cid/}';" name="imageField" type="button" value="更新文档" />
<input class="button" onclick="location='recycling.php?cid={dede:global.cid/}';" name="imageField" type="button" value="文章回收站" />
 </td>
 </tr>
</table>

<table width='98%'border='0' cellpadding='2' cellspacing='1' bgcolor='#cfcfcf' align='center' style="margin-top:8px;">
<tr >
	<td colspan='7' style="padding-left:10px;">
		{dede:global.positionname/}文档列表 &nbsp;(使用鼠标右键进行常用操作)
	</td>
</tr>
<tr lign="center">
	<td width="13%">文档图片</td>
	<td width="35%">文档标题</td>
	<td width="12%">类目</td>
	<td width="11%">权限</td>
	<td width="10%">发布人</td>
	<td width="10%">HTML</td>
	<td  width="9%">点击</td>
</tr>
</table>

<form name="form2">
{dede:datalist}
<table width="98%" border="0" cellpadding="1" cellspacing="1"
	class='ilist'
	bgcolor="{dede:label bind="GetColor('#FAFAF1','#FFFFFF')" /}"  align='center' style="margin-top:8px;">
	<tr>
	<td width="13%" align='center'>
		<img src="{dede:field.litpic function='CheckPic(@me)' /}" width="80" height="60" alt="文档图片" border="0">
	</td>
	<td width="35%">
		<input name="arcID" type="checkbox" id="arcID" value="{dede:field.id/}" class="np" />
		<img src='images/trun.gif' title="编辑属性" alt="编辑属性" onClick="QuickEdit({dede:field.id/}, event, this);" style='cursor:pointer' border='0' width='16' height='16' />
		<a href="archives_do.php?aid={dede:field.id/}&dopost=editArchives"
			oncontextmenu="ShowMenu(event,this,{dede:field.id/},'{dede:field.title function="str_replace('\'', '', @me)" /}')">
		<b>{dede:field.title/}{dede:field.flag function='IsCommendArchives(@me)'/}</b>
		</a>
		<br/>
　　发布时间：{dede:field.senddate function='GetDateTimeMk(@me)' /}
	</td>
	<td width="12%" align="center">
		{dede:field.typeid function='GetTypename(@me)'/}
		<br />
		ID: {dede:field.id/}
	</td>
	<td width="11%" align="center">{dede:field.arcrank function='GetRankName(@me)' /}</td>
	<td width="10%" align="center">{dede:field.mid function=GetMemberName(@me)/}</td>
	<td width="10%" align="center">{dede:field.ismake function='IsHtmlArchives(@me)' /}</td>
	<td  width="9%" align="center">{dede:field.click/}</td>
	</tr>
</table>
{/dede:datalist}
</form>

<table width="98%" border="0" cellspacing="1" cellpadding="1" bgcolor='#cfcfcf' align='center' style="margin-top:8px;">
	<tr>
	<td colspan="10">
		&nbsp;
    <input class="button" onclick="javascript:selAll()" name="imageField" type="button" value="全选" />
	<input class="button" onclick="javascript:noSelAll()" name="imageField" type="button" value="取消" />
    <input class="button" onclick="javascript:viewArc(0)" name="imageField" type="button" value="查看" />

    	<input class="button" onclick="javascript:updateArc()" name="imageField" type="button" value="更新" />
	<input class="button" onclick="javascript:checkArc()" name="imageField" type="button" value="审核" />
    <input class="button" onclick="javascript:adArc()" name="imageField" type="button" value="推荐" />
	 <input class="button" onclick="moveArc(event,this,<?php echo (empty($channelid) ? 0 : $channelid); ?>)" name="imageField" type="button" value="移动" />
      <input class="button" onclick="javascript:delArc()" name="imageField" type="button" value="删除" />
       <input class="button" onclick="<?php if($channelid==1) echo 'javascript:kwArc(0)'; ?>" name="imageField" type="button" value="自动关键字" />
        <input class="button" onclick="cAtts('attsAdd',event,this)" name="imageField" type="button" value="增加属性" />
         <input class="button" onclick="cAtts('attsDel',event,this)" name="imageField" type="button" value="删除属性" />
	</td>
	</tr>
	<tr>
	<td align="center">
		{dede:pagelist listsize=5/}
	</td>
</tr>
</table>

<form name='form3' action='content_i_list.php' method='get'>
<input type='hidden' name='dopost' value='listArchives' />
<table width='98%'  border='0' cellpadding='1' cellspacing='1' align="center" style="margin-top:8px">
 <tr>
    <td align='center'>
	<table border='0' cellpadding='0' cellspacing='0'>
	   <tr >
	      <td width='90' align='center'>请选择类目：</td>
	      <td width='160'>
	<select name='cid' style='width:150'>
 	<option value='0'>选择分类...</option>
		{dede:global.optionarr/}
	</select>
	</td>
	<td width='70'>
	关键字：
	</td>
	<td width='160'>
		<input type='text' name='keyword' value='{dede:global.keyword/}' style='width:150px;height:20px;' />
	</td>
	<td width='110'>
    		<select name='orderby' style='width:80px'>
            <option value='id'>排序...</option>
            <option value='pubdate'>更新时间</option>
            <option value='sortrank'>置顶权值</option>
            <option value='click'>点击量</option>
            <option value='scores'>评论积分</option>
            <option value='lastpost'>最后评论</option>
      	</select>
   </td>
	<td>
		<input name="imageField" type="image" src="images/button_search.gif" width="60" height="22" border="0" class="np" />
 </td>
</tr>
</table>
</td>
</table>
</form>
</tr>
</table>
							
							<div class="clear"></div><!-- End .clear -->
							
						
						
					</div> <!-- End #tab1 -->

					
				</div> <!-- End .content-box-content -->
				
			</div> <!-- End .content-box -->
			
			<div class="clear"></div>
			
           <?php include(DEDEADMIN.'/templets/footer.htm'); ?>
			
		</div> <!-- End #main-content -->	
	</div>
</body>
</html>