<!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>
<title>文档管理</title>
<?php include(DEDEMEMBER."/templets/head_inc.htm"); ?>
<script language="javascript">
function viewArc(aid){
	window.open("{dede:global.cfg_phpurl /}/view.php?aid="+aid);
}
function editArc(aid,channelid){
	location = "archives_do.php?dopost=edit&channelid="+channelid+"&aid="+aid;
}
function delArc(aid){
	if(window.confirm('你确定要删除这篇文档吗?')) location="archives_do.php?aid="+aid+"&dopost=delArc";
}
</script>
</head>
<body>
<?php include(DEDEMEMBER."/templets/head.htm"); ?>
<div class="wrapper lineT">
  <div class="mainBox">
    <div class="main">
      <?php include(DEDEMEMBER."/templets/menu.php"); ?>
      <div class="dedeMain">
        <div class="location"><span class="fLeft">已发布<?php echo $positionname; ?></span><span class="fRight mR10 titPublish icon"><a href='archives_do.php?dopost=addArc&channelid=<?php echo $channelid;  ?>'>发布新信息</a></span></div>
        <div class="titleBar bgGreen lineTB">
          <form name='form3' action='content_list.php' method='get'>
            <div class="fLeft" style="margin-top:3px">
              <input type='hidden' name='dopost' value='listArchives' />
              <input type='hidden' name='channelid' value='<?php echo $channelid?>'>
              关键字：
              <input class="text" type='text' name='keyword' value='<?php echo $keyword?>' style='width:140px' />
              <button class="button2" type="submit">提交</button>
            </div>
            <div class="fRight" style="margin-top:3px">
              <?php
            	echo "<select  name='mtypesid' onchange='location.href=this.value' size='1'>\r\n";
            	echo "<option value='0'>请选择分类...</option>\r\n";
                echo "<option value='content_sg_list.php?channelid=$channelid'>所有信息</option>\r\n";
				echo $classlist;
				echo "</select>";
            ?>
            </div>
          </form>
        </div>
        <form name="form2" class="mL10 mR10 mTB10">
          <table cellspacing="1" class="list">
            <thead>
              <tr>
                <th >文章标题</th>
                <th width="10%">类目 </th>
                <th width="5%">点击 </th>
                <th width="10%">发布时间 </th>
                <th width="10%">操作</th>
              </tr>
            </thead>
            <tbody>
            
            {dede:datalist}
            <tr>
              <td><span class="titDot icon16 fLeft"></span><a href='<?php echo $cfg_phpurl; ?>/view.php?aid=<?php echo $fields['aid']; ?>' target='_blank'><?php echo $fields['title']; ?></a> </td>
              <td align="center"><?php echo $fields['typename']; ?></td>
              <td align="center"><?php echo $fields['click']; ?></td>
              <td align="center"><?php echo GetDateMk($fields['senddate']); ?></td>
              <td align="center"><a href="javascript:editArc(<?php echo $fields['aid']?>,<?php echo $fields['channel']?>);">修改</a> | <a href="javascript:delArc(<?php echo $fields['aid']?>);">删除</a> | <a href="javascript:viewArc(<?php echo $fields['aid']; ?>);">预览</a></td>
            </tr>
            {/dede:datalist}
            </tbody>
            
            <tfoot>
              <tr>
                <td colspan="6"><div class="pages mTB10 fRight">{dede:pagelist listsize=5/}</div>
                  <div class="clear"></div></td>
              </tr>
            </tfoot>
          </table>
        </form>
      </div>
      <div class="clear"></div>
    </div>
    <div class="clear"></div>
  </div>
</div>
<?php include(DEDEMEMBER."/templets/foot.htm"); ?>
</body>
</html>
