123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225 |
- <?php
- if(!defined('InEmpireCMS'))
- {
- exit();
- }
- ?>
- <?php
- //查询SQL,如果要显示自定义字段记得在SQL里增加查询字段
- $query="select id,classid,isurl,titleurl,isqf,havehtml,istop,isgood,firsttitle,ismember,userid,username,eckuid,plnum,totaldown,onclick,newstime,truetime,lastdotime,titlepic,title from {$dbtbpre}ecms_".$class_r[$classid][tbname]."_doc".$ewhere." order by ".$doorder." limit $offset,$line";
- $sql=$empire->query($query);
- //返回头条和推荐级别名称
- $ftnr=ReturnFirsttitleNameList(0,0);
- $ftnamer=$ftnr['ftr'];
- $ignamer=$ftnr['igr'];
- ?>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <link rel="stylesheet" href="adminstyle/<?=$loginadminstyleid?>/adminstyle.css" type="text/css">
- <title>管理归档</title>
- <script>
- function CheckAll(form)
- {
- for (var i=0;i<form.elements.length;i++)
- {
- var e = form.elements[i];
- if (e.name != 'chkall')
- e.checked = form.chkall.checked;
- }
- }
- </script>
- </head>
- <body>
- <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
- <tr>
- <td>位置: <?=$url?></td>
- </tr>
- </table>
- <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
- <form name="form2" method="GET" action="ListInfoDoc.php">
- <?=$ecms_hashur['eform']?>
- <tr>
- <td colspan="2"><table width="100%" border="0" cellpadding="3" cellspacing="1" class="tableborder">
- <tr>
- <td><div class="emenubutton">
- <div align="right">
- <input type=button name=button value=增加信息 onClick="self.location.href='AddNews.php?enews=AddNews&bclassid=<?=$bclassid?>&classid=<?=$classid?><?=$addecmscheck?><?=$ecms_hashur['ehref']?>'">
-
- <input type="button" name="Submit" value="刷新首页" onclick="self.location.href='ecmschtml.php?enews=ReIndex<?=$ecms_hashur['href']?>'">
-
- <input type="button" name="Submit22" value="刷新本栏目" onclick="self.location.href='enews.php?<?=$ecms_hashur['href']?>&enews=ReListHtml&classid=<?=$classid?>'">
-
- <input type="button" name="Submit4" value="刷新所有信息JS" onclick="window.open('ecmschtml.php?<?=$ecms_hashur['href']?>&enews=ReAllNewsJs&from=<?=$phpmyself?>','','');">
-
- <input type="button" name="Submit10" value="栏目设置" onclick="self.location.href='AddClass.php?<?=$ecms_hashur['ehref']?>&enews=EditClass&classid=<?=$classid?>'">
-
- <input type="button" name="Submit102" value="增加采集节点" onclick="self.location.href='AddInfoClass.php?enews=AddInfoClass&newsclassid=<?=$classid?><?=$ecms_hashur['ehref']?>'">
-
- <input type="button" name="Submit103" value="管理采集节点" onclick="self.location.href='ListInfoClass.php<?=$ecms_hashur['whehref']?>'">
- </div>
- </div></td>
- </tr>
- </table></td>
- </tr>
- <tr>
- <td width="38%">
- <div align="left">[<a href="InfoDoc.php<?=$ecms_hashur['whehref']?>" target="_blank">批量归档信息</a>] [<a href="ReHtml/ChangeData.php<?=$ecms_hashur['whehref']?>" target=_blank>更新数据</a>] [<a href=../../ target=_blank>预览首页</a>] [<a href="<?=$classurl?>" target=_blank>预览栏目</a>]</div></td>
- <td width="62%">
- <div align="right">
- <input name="keyboard" type="text" id="keyboard2" value="<?=$keyboard?>" size="16">
- <select name="show">
- <option value="0" selected>不限字段</option>
- <?=$searchoptions_r['select']?>
- </select>
- <?=$stts?>
- <input type="submit" name="Submit2" value="搜索">
- <input name="sear" type="hidden" id="sear2" value="1">
- <input name="bclassid" type="hidden" id="bclassid" value="<?=$bclassid?>">
- <input name="classid" type="hidden" id="classid" value="<?=$classid?>">
- <input name="ecmscheck" type="hidden" id="ecmscheck" value="<?=$ecmscheck?>">
- </div></td>
- </tr>
- </form>
- </table>
- <br>
- <form name="listform" method="post" action="ecmsinfo.php" onsubmit="return confirm('确认要执行此操作?');">
- <?=$ecms_hashur['form']?>
- <input type=hidden name=classid value=<?=$classid?>>
- <input type=hidden name=bclassid value=<?=$bclassid?>>
- <input type=hidden name=enews value=DelInfoDoc_all>
- <input type=hidden name=doing value=1>
- <input name="ecmsdoc" type="hidden" id="ecmsdoc" value="0">
- <input name="docfrom" type="hidden" id="docfrom" value="<?=$phpmyself?>">
- <input name="ecmscheck" type="hidden" id="ecmscheck" value="<?=$ecmscheck?>">
- <table width="100%" border="0" cellspacing="1" cellpadding="0">
- <tr>
- <td width="10%" height="25" bgcolor="#C9F1FF"><div align="center"><a href="ListNews.php?bclassid=<?=$bclassid?>&classid=<?=$classid?><?=$ecms_hashur['ehref']?>">已发布</a></div></td>
- <td width="10%" bgcolor="#C9F1FF"><div align="center"><a href="ListNews.php?bclassid=<?=$bclassid?>&classid=<?=$classid?>&ecmscheck=1<?=$ecms_hashur['ehref']?>">待审核</a></div></td>
- <td width="10%" class="header"><div align="center"><a href="ListInfoDoc.php?bclassid=<?=$bclassid?>&classid=<?=$classid?><?=$addecmscheck?><?=$ecms_hashur['ehref']?>">归档</a></div></td>
- <td width="58%"> </td>
- <td width="6%"> </td>
- <td width="6%"> </td>
- </tr>
- </table>
- <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
- <tr class="header">
- <td width="7%" height="25"><div align="center"><a href='ListInfoDoc.php?<?=$search1?>&myorder=4'><u>ID</u></a></div></td>
- <td width="47%" height="25"> <div align="center">标题</div></td>
- <td width="18%" height="25"><div align="center">发布者</div></td>
- <td width="22%" height="25"> <div align="center"><a href='ListInfoDoc.php?<?=$search1?>&myorder=1'><u>发布时间</u></a></div></td>
- <td width="6%" height="25"> <div align="center">选择</div></td>
- </tr>
- <?php
- while($r=$empire->fetch($sql))
- {
- //状态
- $st='';
- if($r[istop])//置顶
- {
- $st.="<font color=red>[顶".$r[istop]."]</font>";
- }
- if($r[isgood])//推荐
- {
- $st.="<font color=red>[".$ignamer[$r['isgood']]."]</font>";
- }
- if($r[firsttitle])//头条
- {
- $st.="<font color=red>[".$ftnamer[$r['firsttitle']]."]</font>";
- }
- //时间
- $truetime=date("Y-m-d H:i:s",$r[truetime]);
- $lastdotime=date("Y-m-d H:i:s",$r[lastdotime]);
- $oldtitle=$r[title];
- $r[title]=stripSlashes(sub($r[title],0,50,false));
- $titleurl=sys_ReturnBqTitleLink($r);
- //会员投稿
- if($r[ismember])
- {
- $r[username]="<a href='member/AddMember.php?enews=EditMember&userid=".$r[userid].$ecms_hashur['ehref']."' target='_blank'><font color=red>".$r[username]."</font></a>";
- }
- //签发
- $qf="";
- if($r[isqf])
- {
- $qfr=$empire->fetch1("select checktno,tstatus from {$dbtbpre}enewswfinfo where id='$r[id]' and classid='$r[classid]' limit 1");
- if($qfr[checktno]=='100')
- {
- $qf="(<font color='red'>已通过</font>)";
- }
- elseif($qfr[checktno]=='101')
- {
- $qf="(<font color='red'>返工</font>)";
- }
- elseif($qfr[checktno]=='102')
- {
- $qf="(<font color='red'>已否决</font>)";
- }
- else
- {
- $qf="(<font color='red'>$qfr[tstatus]</font>)";
- }
- $qf="<a href='#ecms' onclick=\"window.open('workflow/DoWfInfo.php?classid=$r[classid]&id=$r[id]".$addecmscheck.$ecms_hashur['ehref']."','','width=600,height=520,scrollbars=yes');\">".$qf."</a>";
- }
- //标题图片
- $showtitlepic="";
- if($r[titlepic])
- {
- $showtitlepic="<a href='".$r['titlepic']."' title='预览标题图片' target=_blank><img src='../data/images/showimg.gif' border=0></a>";
- }
- //未生成
- $myid=$r['id'];
- if(empty($r[havehtml]))
- {
- $myid="<a title='未生成'><b>".$r[id]."</b></a>";
- }
- ?>
- <tr bgcolor="#FFFFFF" id=news<?=$r[id]?> onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#C3EFFF'">
- <td height="32"> <div align="center">
- <?=$myid?>
- </div></td>
- <td height="25"> <div align="left">
- <?=$st?>
- <?=$showtitlepic?>
- <a href="<?=$titleurl?>" target=_blank title="<?=$oldtitle?>">
- <?=$r[title]?>
- </a>
- <?=$qf?>
- </div></td>
- <td height="25"<?=$r['eckuid']?' title="审核人UID:'.$r['eckuid'].'"':''?>> <div align="center">
- <?=$r[username]?>
- </div></td>
- <td height="25"> <div align="center"> <a href="#ecms" title="<? echo"增加时间:".$truetime."\r\n最后修改:".$lastdotime;?>">
- <?=date("Y-m-d H:i:s",$r[newstime])?>
- </a> </div></td>
- <td height="25"> <div align="center">
- <input name="id[]" type="checkbox" id="id[]" value="<?=$r[id]?>">
- </div></td>
- </tr>
- <?
- }
- ?>
- <tr bgcolor="#FFFFFF">
- <td height="25" colspan="4"> <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td width="83%">
- <?=$returnpage?>
- </td>
- <td width="17%"><div align="right">
- <input type="submit" name="Submit3" value="删除" onClick="document.listform.enews.value='DelInfoDoc_all';document.listform.action='ecmsinfo.php';">
- <input type="submit" name="Submit11" value="还原归档" onClick="document.listform.enews.value='InfoToDoc';document.listform.doing.value='1';document.listform.action='ecmsinfo.php';">
- </div></td>
- </tr>
- </table></td>
- <td height="25"><div align="center">
- <input type=checkbox name=chkall value=on onClick=CheckAll(this.form)>
- </div></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25" colspan="5"> <font color="#666666">备注:发布者红色为会员投稿;信息ID粗体为未生成.</font></td>
- </tr>
- </table>
- </form>
- </body>
- </html>
|