查看内容

文件安装程序三

  • 2020-05-07 12:42
  • 编程人生
  • Views

php 文件安装程序三

$title.='管理记录';$content.='ul class=clist';$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_aop0)$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.='script type=text/JavaScriptlocation.href='?m=settingt=adminop';/script';}else{$content.='li class=l_lista href=?m=useramp;id='.$r['aid'].'img src='.($r_aop['photo']!=''?$r_aop['photo']:'images/dphoto.jpg').' alt='.$r_aop['name'].' class=photo width=55 height=55//adiv class=list_rdiv class=list_titlespan class=gmodimg src=images/o_2.gif alt=删除 onclick=if(confirm('确认要删除?'))location.href='?m=settingt=adminopdid='.$r_aop['id'].''; style=cursor: pointer;//span'.getalink($r_aop['aid'], $r_aop['name']).'nbsp;nbsp;span class=gdate'.getldate($r_aop['datetime']).'/span/divdiv class=list_c';if($r_aop['tid']==1){$pr=getpinfo($r_aop['sid']);$content.='a href=?m=albumamp;id='.$r_aop['sid'].'img src='.getthu($pr).' alt='.$pr['title'].' width=70 height=70 class=al_t//abr/';}elseif($r_aop[tid]==2){$pr=getcinfo($r_aop['sid']);$content.='a href=?m=campamp;id='.$r_aop['sid'].''.$pr['title'].'/abr/br/';}$content.=gbookencode($r_aop['content']).'/div/div/li';}}while($r_aop=mysql_fetch_assoc($aop));$content.='/ul';if($tp_aop1)$content.=getpage($page, $tp_aop);}else{$content.='lidiv class=title管理记录/divdiv class=lcontent没有记录/div/li/ul';}mysql_free_result($aop);mysql_free_result($a_aop);