<!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">
<!--<?php
print <<<EOT
-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>后台管理</title>
<link href="css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
a:link {
	text-decoration: none;
	color: #000000;
}
a:visited {
	text-decoration: none;
	color: #000000;
}
a:hover {
	text-decoration: underline;
	color: #FF0000;
}
a:active {
	text-decoration: none;
	color: #000000;
}
-->
</style>

<script language="JavaScript" type="text/JavaScript">
<!--
function MM_popupMsg(msg) { //v1.0
  return confirm(msg);
}
//-->
</script>

</head>

<body>
<div align="center" class="font12">
  <table width="100%"  border="0" cellpadding="3" cellspacing="1" bgcolor="#A4B6D7">
    <tr>
      <td width="100%" height="22" align="center" background="images/titlebg.jpg">&nbsp;</td>
    </tr>
  </table>
  <br />
  <table width="100%" height="25" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
    <tr>
      <td align="left" bgcolor="#FFFFFF">[<a 
      href="article_add.php" class="a_bt">文章管理</a>] 
      [<a 
      href="post_info/post.php?id=$fid&mid=$mid" class="a_bt">发表文章</a>] </td>
    </tr>
  </table>
  <br />
  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table">
    <tr>
      <td height="22" align="left" class="head">相关选项</td>
    </tr>
    <tr>
      <td height="30" align="center"><input onclick="window.location.href='?mid=$module_id&fid=$fid'" type="button" value="所有" name="Submit" />
	  <!--
        <input onclick="window.location.href='index.php?lfj=artic&job=listartic&type=my&only=1&mid=0'" type="button" value="我发表的" name="Submit" />
		//-->
        <input onclick="window.location.href='?job=yz_0&mid=$module_id&fid=$fid'" type="button" value="未审" name="Submit5" />
        <input onclick="window.location.href='?job=yz_1&mid=$module_id&fid=$fid'" type="button" value="已审" name="Submit6" />
        <input onclick="window.location.href='?job=shows_0&mid=$module_id&fid=$fid'" type="button" value="未显示" name="Submit6" />
        <input onclick="window.location.href='?job=shows_1&mid=$module_id&fid=$fid'" type="button" value="显示" name="Submit5" />
		<!--
        <input onclick="window.location.href='index.php?lfj=artic&job=listartic&fid=&type=levels&only=1&mid=0'" type="button" value="精华" name="Submit52" />
        <input onclick="window.location.href='index.php?lfj=artic&job=listartic&fid=&type=unlevels&only=1&mid=0'" type="button" value="非精华" name="Submit522" />
        <input onclick="window.location.href='index.php?lfj=artic&job=listartic&fid=&type=picurl&only=1&mid=0'" type="button" value="图片主题" name="Submit5222" />
        <input onclick="window.location.href='index.php?lfj=artic&job=listartic&type=rubbish&only=1&mid=0'" type="button" value="回收站" name="Submit5222" />
		//-->
        <SELECT name="parentId" onchange="window.location=('?job=search1&parentId='+this.options[this.selectedIndex].value+'')">
          <option value="" selected="selected">现有分类</option>
<!--
EOT;
echo '-->';
formListSort("w6_sort",$fid ,1);
echo '<!--';
print <<<EOT
-->

        </select></td>
    </tr>
  </table>
  <br />
  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table">
    <tr>
      <td height="22" align="left" class="head">文章管理</td>
    </tr>
    <tr>
      <td height="24" align="left">
	  <br />
      <UL>
      <LI>注意:<FONT color=#ff0000>排序的规则是,数值大的排在前面</FONT> </LI>
      </UL>
</td>
    </tr>
    <tr>
      <td align="center">
	  <FORM name="formlist" action="" method="post">
  <table width="99%" border="0" cellspacing="1" cellpadding="0">
        <tr>
          <td width="2%" align="center" background="images/titlebg.jpg">I D</td>
          <td width="3%" align="center" background="images/titlebg.jpg">排序</td>
          <td width="30%" align="center" background="images/titlebg.jpg">标题</td>
          <!--<td width="6%" align="center" background="images/titlebg.jpg">效果</td>//-->
          $title_str
          <td width="8%" align="center" background="images/titlebg.jpg">所在栏目</td>
          <!--<td width="10%" align="center" background="images/titlebg.jpg">发布者</td>//-->
          <td width="4%" align="center" background="images/titlebg.jpg">浏览</td>
          <td width="10%" align="center" background="images/titlebg.jpg">发表日期</td>
          <td width="3%" align="center" background="images/titlebg.jpg">审核</td>
          <td width="3%" align="center" background="images/titlebg.jpg">显示</td>
          <td width="10%" colspan="3" align="center" background="images/titlebg.jpg">操作</td>
          </tr>
<!--
EOT;
foreach($listdb AS $key=>$rs){
print <<<EOT
-->
        <tr class=trA onMouseOver="this.className='trB'" 
        onmouseout="this.className='trA'">
          <td align="center" class="td">$rs[id]</td>
          <td align="center" class="td"><input maxlength="4" size="3" value="$rs[content_list]" name="order[$rs[id]]" /></td>
          <td align="left" class="td">&nbsp;<a href="../../show.php?aid=$rs[aid]"  target="_blank">
            $rs[title]
          </a></td>
          <!--<td align="center" class="td"><a href="article_show.php?aid=$rs[aid]&fid=$fid&mid=$rs[mid]" target="_blank">查看</a></td>//-->
          $rs[title2]
          <td align="center" class="td"><a href="?job=search1&parentId=$rs[fid]">$rs[fname]</a></td>
          <!--<td align="center" class="td">&nbsp;</td>//-->
          <td align="center" class="td">$rs[count]</td>
          <td align="center" class="td">$rs[posttime]</td>
          <td align="center" class="td">
<!--
EOT;
if($rs['yz']==1) { $str_sh = '已审'; } else { $str_sh = '未审'; }
print <<<EOT
-->
      $str_sh
      
		  </td>
          <td align="center" class="td">
<!--
EOT;
if($rs['shows']==1) { $str_xs = '已审'; } else { $str_xs = '未审'; }
print <<<EOT
-->
      $str_xs
      
		  
		  </td>
          <td width="3%" align="center" class="td"><a href="$webdb[www_url]/show.php?job=makeHtml&aid=$rs[aid]&updatapage=1"" title="生成静态网页" target="_blank">A</a></td>
          <td width="6%" align="center" class="td"><a href="article_modify.php?aid=$rs[aid]&fid=$rs[fid]&mid=$rs[mid]">修改</a></td>
          <td width="6%" align="center" class="td"><a href="?job=del&aid=$rs[aid]&fid=$rs[fid]&mid=$rs[mid]" onClick="return MM_popupMsg('确定要删除吗！删除后无法恢复！')">删除</a></td>
        </tr>
<!--
EOT;
}print <<<EOT
-->			
        <tr>
          <td height="30" colspan="9" align="center"><input type="submit" value="修改排序" name="Submit22" />
            <input name="job" type="hidden" id="job" value="modifylist" />
            <input name="fid" type="hidden" id="fid" value="$fid" />
            <input name="mid" type="hidden" id="mid" value="$mid" />			</td>
        </tr>
      </table>
	  </form></td>
    </tr>
  </table>
  <div style="clear:both"></div>
  <div id="page">$showpage</div>
  <div style="clear:both"></div>
  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table">
    <tr>
      <td height="22" align="left" class="head">内容搜索</td>
    </tr>
    <tr>
	<form id="form1" name="form1" method="post" action="">
      <td height="30" align="center">
	  关键字
        <input name="keyword" />
        <select name="type">
          <option value="title" selected="selected">文章标题</option>
          <option value="aid">文章内容</option>
          <option value="aid">文章ID</option>
        </select>
        <input type="submit" value="提交" name="Submit7" />
        <input name="job" type="hidden" id="job" value="search2" />
		<input name="mid" type="hidden" id="mid" value="$mid" />
      </td>
	  </form>
    </tr>
  </table>
</div>
</body>
</html>
<!--
EOT;
?>
-->