qlistinfo.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <?php
  2. if(!defined('InEmpireCMS'))
  3. {
  4. exit();
  5. }
  6. ?>
  7. <?php
  8. //查询SQL,如果要显示自定义字段记得在SQL里增加查询字段
  9. $query="select id,classid,isurl,titleurl,isqf,havehtml,istop,isgood,firsttitle,ismember,username,plnum,totaldown,onclick,newstime,truetime,lastdotime,titlefont,titlepic,title from ".$infotb." where ".$yhadd."userid='$user[userid]' and ismember=1".$add." order by newstime desc limit $offset,$line";
  10. $sql=$empire->query($query);
  11. //返回头条和推荐级别名称
  12. $ftnr=ReturnFirsttitleNameList(0,0);
  13. $ftnamer=$ftnr['ftr'];
  14. $ignamer=$ftnr['igr'];
  15. $public_diyr['pagetitle']='管理信息';
  16. $url="<a href='../../'>首页</a>&nbsp;>&nbsp;<a href='../member/cp/'>会员中心</a>&nbsp;>&nbsp;<a href='ListInfo.php?mid=$mid".$addecmscheck."'>管理信息</a>&nbsp;(".$mr[qmname].")";
  17. require(ECMS_PATH.'e/template/incfile/header.php');
  18. ?>
  19. <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  20. <form name="searchinfo" method="GET" action="ListInfo.php">
  21. <tr>
  22. <td width="25%" height="27">
  23. <input type="button" name="Submit" value="增加信息" onclick="self.location.href='ChangeClass.php?mid=<?=$mid?><?=$addecmscheck?>';"> </td>
  24. <td width="75%"><div align="right">&nbsp;搜索:
  25. <input name="keyboard" type="text" id="keyboard" value="<?=$keyboard?>">
  26. <select name="show">
  27. <option value="0" selected>标题</option>
  28. </select>
  29. <input type="submit" name="Submit2" value="搜索">
  30. <input name="sear" type="hidden" id="sear" value="1">
  31. <input name="mid" type="hidden" value="<?=$mid?>">
  32. <input name="ecmscheck" type="hidden" id="ecmscheck" value="<?=$ecmscheck?>">
  33. </div></td>
  34. </tr>
  35. </form>
  36. </table>
  37. <br>
  38. <table width="100%" border="0" cellspacing="1" cellpadding="0">
  39. <tr>
  40. <td width="9%" height="25"<?=$indexchecked==1?' class="header"':' bgcolor="#C9F1FF"'?>><div align="center"><a href="ListInfo.php?mid=<?=$mid?>">已发布</a></div></td>
  41. <td width="9%"<?=$indexchecked==0?' class="header"':' bgcolor="#C9F1FF"'?>><div align="center"><a href="ListInfo.php?mid=<?=$mid?>&ecmscheck=1">待审核</a></div></td>
  42. <td width="23%">&nbsp;</td>
  43. <td width="47%">&nbsp;</td>
  44. <td width="6%">&nbsp;</td>
  45. <td width="6%">&nbsp;</td>
  46. </tr>
  47. </table>
  48. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  49. <tr class="header">
  50. <td width="50%" height="25"> <div align="center">标题</div></td>
  51. <td width="13%" height="25"> <div align="center">发布时间</div></td>
  52. <td width="8%" height="25">
  53. <div align="center">点击</div></td>
  54. <td width="6%">
  55. <div align="center">评论</div></td>
  56. <td width="6%"><div align="center">审核</div></td>
  57. <td width="17%" height="25">
  58. <div align="center">操作</div></td>
  59. </tr>
  60. <?
  61. while($r=$empire->fetch($sql))
  62. {
  63. //状态
  64. $st='';
  65. if($r[istop])//置顶
  66. {
  67. $st.="<font color=red>[顶".$r[istop]."]</font>";
  68. }
  69. if($r[isgood])//推荐
  70. {
  71. $st.="<font color=red>[".$ignamer[$r['isgood']]."]</font>";
  72. }
  73. if($r[firsttitle])//头条
  74. {
  75. $st.="<font color=red>[".$ftnamer[$r['firsttitle']]."]</font>";
  76. }
  77. //时间
  78. $newstime=date("Y-m-d",$r[newstime]);
  79. $oldtitle=$r[title];
  80. $r[title]=stripSlashes(sub($r[title],0,50,false));
  81. $r[title]=DoTitleFont($r[titlefont],$r[title]);
  82. if($indexchecked==0)
  83. {
  84. $checked='<font color=red>×</font>';
  85. $titleurl='AddInfo.php?enews=MEditInfo&classid='.$r[classid].'&id='.$r[id].'&mid='.$mid.$addecmscheck;//链接
  86. }
  87. else
  88. {
  89. $checked='√';
  90. $titleurl=sys_ReturnBqTitleLink($r);//链接
  91. }
  92. $plnum=$r[plnum];//评论个数
  93. //标题图片
  94. $showtitlepic="";
  95. if($r[titlepic])
  96. {$showtitlepic="<a href='".$r[titlepic]."' title='预览标题图片' target=_blank><img src='../data/images/showimg.gif' border=0></a>";}
  97. //栏目
  98. $classname=$class_r[$r[classid]][classname];
  99. $classurl=sys_ReturnBqClassname($r,9);
  100. $bclassid=$class_r[$r[classid]][bclassid];
  101. $br['classid']=$bclassid;
  102. $bclassurl=sys_ReturnBqClassname($br,9);
  103. $bclassname=$class_r[$bclassid][classname];
  104. //评论地址
  105. $pagefunr=eReturnRewritePlUrl($r['classid'],$r['id'],'doinfo',0,0,1);
  106. $eplurl=$pagefunr['pageurl'];
  107. ?>
  108. <tr bgcolor="#FFFFFF" id=news<?=$r[id]?>>
  109. <td height="25"> <div align="left">
  110. <?=$st?>
  111. <?=$showtitlepic?>
  112. <a href="<?=$titleurl?>" target=_blank title="<?=$oldtitle?>">
  113. <strong><?=$r[title]?></strong> </a>
  114. <br>
  115. 栏目:<a href='<?=$bclassurl?>' target='_blank'><?=$bclassname?></a> > <a href='<?=$classurl?>' target='_blank'><?=$classname?></a>
  116. </div></td>
  117. <td height="25"> <div align="center"><?=$newstime?></div></td>
  118. <td height="25"> <div align="center"> <a title="下载次数:<?=$r[totaldown]?>">
  119. <?=$r[onclick]?>
  120. </a> </div></td>
  121. <td><div align="center"><a href="<?=$eplurl?>" title="查看评论" target=_blank><u><?=$plnum?></u></a></div></td>
  122. <td><div align="center">
  123. <?=$checked?>
  124. </div></td>
  125. <td height="25"><div align="center"><a href="AddInfo.php?enews=MEditInfo&classid=<?=$r[classid]?>&id=<?=$r[id]?>&mid=<?=$mid?><?=$addecmscheck?>">修改</a> | <a href="ecms.php?enews=MDelInfo&classid=<?=$r[classid]?>&id=<?=$r[id]?>&mid=<?=$mid?><?=$addecmscheck?>" onclick="return confirm('确认要删除?');">删除</a>
  126. </div></td>
  127. </tr>
  128. <?
  129. }
  130. ?>
  131. <tr bgcolor="#FFFFFF">
  132. <td height="25" colspan="6">
  133. <?=$returnpage?> </td>
  134. </tr>
  135. </table>
  136. <?php
  137. require(ECMS_PATH.'e/template/incfile/footer.php');
  138. ?>