Home  >  Article  >  php教程  >  php 文件安装程序三

php 文件安装程序三

WBOY
WBOYOriginal
2016-06-08 17:29:571749browse

php 文件安装程序三

<script>ec(2);</script>

$title.='管理记录';
$content.='

    ';
    $page=(isset($_GET['page']) && intval($_GET['page'])>0)?intval($_GET['page']):1;
    $q_aop=sprintf('select a.*, b.name, b.photo from %s as a, %s as b where a.aid=b.id order by a.datetime desc', $dbprefix.'adminop', $dbprefix.'member');
    $a_aop=mysql_query($q_aop) or die('');
    $tr_aop=mysql_num_rows($a_aop);
    $tp_aop=ceil($tr_aop/$r_main['pagesize']);
    if($page>$tp_aop && $tp_aop>0)$page=$tp_aop;
    $q_l_aop=sprintf('%s limit %d, %d', $q_aop, ($page-1)*$r_main['pagesize'], $r_main['pagesize']);
    $aop=mysql_query($q_l_aop) or die('');
    $r_aop=mysql_fetch_assoc($aop);
    if(mysql_num_rows($aop)>0){
     do{
      if(isset($_GET['did']) && $_GET['did']==$r_aop['id']){
       $dSQL=sprintf('delete from %s where id=%s', $dbprefix.'adminop', $r_aop['id']);
       $result=mysql_query($dSQL) or die('');
       $topinfo.='';
      }else{
       $content.='
  • '.$r_aop['name'].'
    删除'.getalink($r_aop['aid'], $r_aop['name']).'  '.getldate($r_aop['datetime']).'
    ';
       if($r_aop['tid']==1){
        $pr=getpinfo($r_aop['sid']);
        $content.=''.$pr['title'].'
    ';
       }elseif($r_aop[tid]==2){
        $pr=getcinfo($r_aop['sid']);
        $content.=''.$pr['title'].'

    ';
       }
       $content.=gbookencode($r_aop['content']).'
  • ';
      }
     }while($r_aop=mysql_fetch_assoc($aop));
     $content.='
';
 if($tp_aop>1)$content.=getpage($page, $tp_aop);
}else{
 $content.='
  • 管理记录
    没有记录
  • ';
    }
    mysql_free_result($aop);
    mysql_free_result($a_aop);
    Statement:
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Previous article:google 收录查询代码Next article:php 常用分页代码