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

📄 listcard.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,"card");
$time=$_GET['time'];
if(empty($time))
{$time=$_POST['time'];}
$page=$_GET['page'];
$start=$_GET['start'];
$line=25;
$page_line=25;
if(empty($page))
{$page=0;}
if(empty($start))
{$start=0;}
//搜索
$sear=$_POST['sear'];
if(empty($sear))
{$sear=$_GET['sear'];}
if($sear)
{
$show=$_POST['show'];
if(empty($show))
{$show=$_GET['show'];}
$keyboard=$_POST['keyboard'];
if(empty($keyboard))
{$keyboard=$_GET['keyboard'];}
if($show==1)
{$add=" where card_no like '%$keyboard%'";}
elseif($show==2)
{$add=" where money='$keyboard'";}
elseif($show==3)
{$add=" where cardfen='$keyboard'";}
else
{$add=" where carddate='$keyboard'";}
$search="&sear=1&show=$show&keyboard=$keyboard";
}
//过期
if($time)
{
$today=date("Y-m-d");
$search.="&time=$time";
if($add)
{$add.=" and endtime<>'0000-00-00' and endtime<'$today'";}
else
{$add.=" where endtime<>'0000-00-00' and endtime<'$today'";}
}
$offset=$start+$line*$page;
$query="select cardid,card_no,password,cardfen,money,endtime,cardtime,carddate from phome_enewscard".$add;
$num=$empire->num($query);
$query.=" order by cardid desc 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">
<title>管理点卡</title>
<link href="../../data/images/css.css" rel="stylesheet" type="text/css">
<script src=../ebb.js></script>
</head>

<body>
<table width="99%" border="0" align="center" cellpadding="3" cellspacing="1">
  <tr>
    <td>位置:点卡管理</td>
  </tr>
</table>
<br>
<table width="99%" border="0" cellpadding="0" cellspacing="1" class="tableborder">
  <form name=search method=post action=ListCard.php>
    <tr bgcolor="#FFFFFF"> 
      <td height="25" colspan="6"> <div align="center">搜索: 
          <input name="keyboard" type="text" id="keyboard">
          <select name="show" id="show">
            <option value="1">卡号</option>
            <option value="2">金额</option>
            <option value="3">点数</option>
            <option value="4">天数</option>
          </select>
          <input type="submit" name="Submit" value="搜索">
          <input name="sear" type="hidden" id="sear" value="1">
          <input name="time" type="hidden" id="time" value="<?=$time?>">
        </div></td>
    </tr>
  </form>
  <tr class="header"> 
    <td width="7%" 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="13%" height="25"> <div align="center"><font color="#FFFFFF">金额(元)</font></div></td>
    <td width="13%" height="25"> <div align="center"><font color="#FFFFFF">点数</font></div></td>
    <td width="9%" height="25"> <div align="center"><font color="#FFFFFF">修改</font></div></td>
    <td width="9%" height="25"> <div align="center"><font color="#FFFFFF">删除</font></div></td>
  </tr>
  <?
  while($r=$empire->fetch($sql))
  {
  //月卡
  if($r[carddate])
  {
  $cardfen="<b>".$r[carddate]."</b>天";
  }
  else
  {
  $cardfen="<b>".$r[cardfen]."</b>点";
  }
  ?>
  <tr bgcolor="#FFFFFF"> 
    <td height="25"> <div align="center">
        <?=$r[cardid]?>
      </div></td>
    <td height="25"> <div align="center">
        <a alt="End Time:<?=$r[endtime]?><br>Add Time:<?=$r[cardtime]?>"><?=$r[card_no]?></a>
      </div></td>
    <td height="25"> <div align="center">
        <?=$r[money]?>
      </div></td>
    <td height="25"> <div align="center">
        <?=$cardfen?>
      </div></td>
    <td height="25"> <div align="center"><a href="AddCard.php?enews=EditCard&cardid=<?=$r[cardid]?>&time=<?=$time?>">修改</a></div></td>
    <td height="25"> <div align="center"><a href="../enews.php?enews=DelCard&cardid=<?=$r[cardid]?>&time=<?=$time?>" onclick="return confirm('确认要删除?');">删除</a></div></td>
  </tr>
  <?
  }
  ?>
  <tr bgcolor="#FFFFFF"> 
    <td height="25" colspan="6"> &nbsp;&nbsp;
      <?=$returnpage?>
      <div align="left"></div></td>
  </tr>
</table>
</body>
</html>
<?
db_close();
$empire=null;
?>

⌨️ 快捷键说明

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