⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 listnewsqf.php

📁 一、超强系统模型扩展功能 EmpireCMS卓越之处在于:不仅提供了网站管理功能
💻 PHP
字号:
<?php
require("../class/connect.php");
include("../class/db_sql.php");
include("../class/config.php");
include("../class/class.php");
include("../class/functions.php");
include LoadLang("pub/fun.php");
$link=db_connect();
$empire=new mysqlquery();
$logininid=getcvar('loginuserid');
$loginin=getcvar('loginusername');
$loginrnd=getcvar('loginrnd');
$loginlevel=getcvar('loginlevel');
is_login($logininid,$loginin,$loginrnd);
$page=(int)$_GET['page'];
$start=(int)$_GET['start'];
$line=25;//每页显示条数
$page_line=12;//每页显示链接数
$offset=$start+$page*$line;//总偏移量
$like=",".$loginin.",";
$totalquery="select count(*) as total from {$dbtbpre}enewsqf where checkuser like '%$like%' and !(docheckuser like '%$like%' or notdocheckuser like '%$like%')";
$num=$empire->gettotal($totalquery);
$query="select id,classid from {$dbtbpre}enewsqf where checkuser like '%$like%' and !(docheckuser like '%$like%' or notdocheckuser like '%$like%')";
$num=$empire->num($query);//取得总条数
$query=$query." order by id desc limit $offset,$line";
$sql=$empire->query($query);
$returnpage=page1($num,$line,$page_line,$start,$page,$search);
//风格
$loginadminstyleid=(int)getcvar('loginadminstyleid');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
<title>管理签发信息</title>
</head>

<body>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
  <tr>
    <td height="25">位置:<a href="ListAllInfo.php">管理信息</a> &gt; <a href="ListNewsQf.php">管理签发信息</a></td>
  </tr>
</table>

<form name="form1" method="post" action="">
  <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
    <tr class="header"> 
      <td width="5%"><div align="center"></div></td>
      <td width="8%" height="25"> <div align="center">ID</div></td>
      <td width="42%" height="25"> <div align="center">标题</div></td>
      <td width="22%"><div align="center">提交时间</div></td>
      <td width="23%" height="25"> <div align="center">操作</div></td>
    </tr>
  <?
  while($r=$empire->fetch($sql))
  {
	if($class_r[$r[classid]][tbname])
	{
		$nr=$empire->fetch1("select id,title,newstime from {$dbtbpre}ecms_".$class_r[$r[classid]][tbname]." where id='$r[id]' and classid='$r[classid]' limit 1");
	}
	$do=$r[classid];
	$dob=$class_r[$r[classid]][bclassid];
  ?>
    <tr bgcolor="#FFFFFF"> 
      <td><div align="center"> 
          <input name="id" type="checkbox" id="id" value="<?=$r[id]?>">
        </div></td>
      <td height="25"> <div align="center"> 
          <?=$r[id]?>
        </div></td>
      <td height="25"> 
        <?=$nr[title]?><br>
	    栏目:<a href='ListNews.php?bclassid=<?=$class_r[$r[classid]][bclassid]?>&classid=<?=$r[classid]?>'> 
          <?=$class_r[$dob][classname]?>
          </a> > <a href='ListNews.php?bclassid=<?=$class_r[$r[classid]][bclassid]?>&classid=<?=$r[classid]?>'> 
          <?=$class_r[$r[classid]][classname]?>
          </a>
      </td>
      <td><div align="center"><?=$nr[newstime]?></div></td>
      <td height="25"> <div align="center">[<a href="enews.php?enews=ViewQfNews&classid=<?=$r[classid]?>&id=<?=$r[id]?>" target=_blank>查看内容</a>]&nbsp;&nbsp;&nbsp;[<a href="#ecms" onclick="window.open('DoNewsQf.php?classid=<?=$r[classid]?>&id=<?=$r[id]?>','','width=600,height=520,scrollbars=yes');">签发/退稿</a>]</div></td>
    </tr>
    <?
  }
  ?>
    <tr bgcolor="#FFFFFF"> 
      <td height="25"><div align="center"></div></td>
      <td height="25" colspan="4"> &nbsp;&nbsp; 
        <?=$returnpage?>
      </td>
    </tr>
  </table>
</form>
</body>
</html>
<?
db_close();
$empire=null;
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -