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

📄 listpicnews.php

📁 相关软件: ·帝国网站管理系统(Ecms) v3.5 繁体版 ·搜索更多与"帝国网站管理系统(Ecms) "相关的软件 注意事项: ·注意:本站软件一律只用鼠标左键打开
💻 PHP
字号:
<?
require("../../class/connect.php");
include("../../class/db_sql.php");
include("../../class/config.php");
include("../../class/functions.php");
include("../../data/language/fun.php");
$link=db_connect();
$empire=new mysqlquery();
$logininid=$_COOKIE['enewsloginuserid'];
$loginin=$_COOKIE['enewsloginusername'];
$loginrnd=$_COOKIE['enewsloginrnd'];
$loginlevel=$_COOKIE['enewsloginlevel'];
$editor=1;
is_login($logininid,$loginin,$loginrnd);
//验证权限
CheckLevel($logininid,$loginin,$classid,"picnews");
$start=$_GET['start'];
if(empty($start))
{$start=0;}
$page=$_GET['page'];
if(empty($page))
{$page=0;}
$classid=$_GET['classid'];
if($classid)
{$add=" where classid='$classid'";}
$line=10;//每行显示
$page_line=15;
$offset=$start+$page*$line;
$search="";
$query="select picid,title,pic_url,url,pic_width,pic_height,open_pic,border,pictext from phome_enewspic".$add;
$num=$empire->num($query);//取得总条数
$query.=" order by picid desc limit $offset,$line";
$sql=$empire->query($query);
$returnpage=page1($num,$line,$page_line,$start,$page,$search);
//图片类别
$csql=$empire->query("select classid,classname from phome_enewspicclass order by classid");
while($cr=$empire->fetch($csql))
{
if($classid==$cr[classid])
{$select=" selected";}
else
{$select="";}
$class.="<option value=".$cr[classid].$select.">".$cr[classname]."</option>";
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<link href="../../data/images/css.css" rel="stylesheet" type="text/css">
</head>

<body>
<table width="98%%" border="0" align="center" cellpadding="3" cellspacing="1">
  <tr>
    <td>位置:图片新闻管理 -&gt; 管理图片新闻</td>
  </tr>
</table>
<br>
<table width="98%" border="0" cellspacing="1" cellpadding="3">
  <tr>
    <td>分类:
      <select name="classid" id="classid" onchange=window.location='ListPicNews.php?classid='+this.options[this.selectedIndex].value>
        <option value="0">所有类别</option>
		<?=$class?>
      </select></td>
  </tr>
</table>
<form name="form1" method="post" action="../enews.php" onsubmit="return confirm('确认要删除?');">
<input type=hidden name=enews value=DelPicNews_all>
  <table width="98%%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
    <tr class="header"> 
      <td width="10%" height="25"><div align="center"><font color="#FFFFFF">ID</font></div></td>
      <td width="64%" height="25"><div align="center"><font color="#FFFFFF">预览</font></div></td>
      <td width="26%" height="25"><div align="center"><font color="#FFFFFF">操作</font></div></td>
    </tr>
    <?
	while($r=$empire->fetch($sql))
	{
	?>
    <tr bgcolor="#FFFFFF" id=pic<?=$r[picid]?>> 
      <td height="25"><div align="center">
          <?=$r[picid]?>
        </div></td>
      <td height="25"><div align="center"><a href="<?=$r[url]?>" target="<?=$r[open_pic]?>" title="<?=$r[title]?>"><img src="<?=$r[pic_url]?>" height="<?=$r[pic_height]?>" width="<?=$r[pic_width]?>" border="<?=$r[border]?>"></a><br>
          <?=$r[title]?>
        </div></td>
      <td height="25"><div align="center">[<a href="AddPicNews.php?enews=EditPicNews&picid=<?=$r[picid]?>">修改</a>] 
          [<a href="../enews.php?enews=DelPicNews?cid=<?=$r[picid]?>" onclick="return confirm('确认要删除?');">删除</a> 
          <input name="picid[]" type="checkbox" id="picid[]" value="<?=$r[picid]?>" onclick="if(this.checked){pic<?=$r[picid]?>.style.backgroundColor='#DBEAF5';}else{pic<?=$r[picid]?>.style.backgroundColor='#ffffff';}">
          ]</div></td>
    </tr>
    <?
	}
	?>
    <tr bgcolor="#FFFFFF"> 
      <td height="25" colspan="3">&nbsp;
        <?=$returnpage?>
        &nbsp;&nbsp;
        <input type="submit" name="Submit" value="批量删除"></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td height="25" colspan="3">JS调用方式:&lt;script src=<?=$public_r[newsurl]?>d/js/pic/pic_图片新闻ID.js&gt;&lt;/script&gt;</td>
    </tr>
  </table>
</form>
</body>
</html>
<?
db_close();
$empire=null;
?>

⌨️ 快捷键说明

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