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

📄 listps.php

📁 相关软件: ·帝国网站管理系统(Ecms) v3.5 繁体版 ·搜索更多与"帝国网站管理系统(Ecms) "相关的软件 注意事项: ·注意:本站软件一律只用鼠标左键打开
💻 PHP
字号:
<?
require("../../class/connect.php");
include("../../class/db_sql.php");
include("../../class/config.php");
include("../../class/functions.php");
include("../../class/com_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,"shopps");
$enews=$_POST['enews'];
if(empty($enews))
{$enews=$_GET['enews'];}
if($enews=="AddPs")
{
AddPs($_POST,$logininid,$loginin);
}
elseif($enews=="EditPs")
{
EditPs($_POST,$logininid,$loginin);
}
elseif($enews=="DelPs")
{
$pid=$_GET['pid'];
DelPs($pid,$logininid,$loginin);
}
else
{}
$page=$_GET['page'];
$start=$_GET['start'];
$line=16;//每页显示条数
$page_line=18;//每页显示链接数
if(empty($page))
{$page=0;}
if(empty($start))
{$start=0;}
$offset=$start+$page*$line;//总偏移量
$query="select * from phome_enewsshopps";
$num=$empire->num($query);//取得总条数
$query=$query." order by pid limit $offset,$line";
$sql=$empire->query($query);
$returnpage=page1($num,$line,$page_line,$start,$page,$search);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../data/images/css.css" rel="stylesheet" type="text/css">
<title>管理配送方式</title>
</head>

<body>
<table width="98%%" border="0" align="center" cellpadding="3" cellspacing="1">
  <tr>
    <td height="25">位置:管理配送方式&nbsp;&nbsp;&nbsp; <input type="button" name="Submit" value="增加配送方式" onclick="self.location.href='AddPs.php?enews=AddPs'"></td>
  </tr>
</table>

<br>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  <tr class="header"> 
    <td width="8%" height="25"> <div align="center"><font color="#FFFFFF">ID</font></div></td>
    <td width="49%" height="25"> <div align="center"><font color="#FFFFFF">配送方式</font></div></td>
    <td width="22%"><div align="center"><font color="#FFFFFF">价格</font></div></td>
    <td width="21%" height="25"> <div align="center"><font color="#FFFFFF">操作</font></div></td>
  </tr>
  <?
  while($r=$empire->fetch($sql))
  {
  ?>
  <tr bgcolor="#FFFFFF"> 
    <td height="25"> <div align="center"> 
        <?=$r[pid]?>
      </div></td>
    <td height="25"> <div align="center"> 
        <?=$r[pname]?>
      </div></td>
    <td><div align="center"> 
        <?=$r[price]?>
        元 </div></td>
    <td height="25"> <div align="center">[<a href="AddPs.php?enews=EditPs&pid=<?=$r[pid]?>">修改</a>]&nbsp;[<a href="ListPs.php?enews=DelPs&pid=<?=$r[pid]?>" onclick="return confirm('确认要删除?');">删除</a>]</div></td>
  </tr>
  <?
  }
  ?>
  <tr bgcolor="#FFFFFF"> 
    <td height="25" colspan="4">&nbsp;&nbsp;&nbsp; 
      <?=$returnpage?>
    </td>
  </tr>
</table>
</body>
</html>
<?
db_close();
$empire=null;
?>

⌨️ 快捷键说明

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