admin/pinglun.php

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php
include_once("top.php");
?>
<!-- 顶部 --> 
<div id="middle">
     <?php
include_once("left.php");
?>
     <div class="right"  id="mainFrame">
     <div class="right_cont">
   <div class="title_right"><strong>评论管理</strong></div>
   <?php
   $sql=mysql_query("select count(*) as total from pinglun",$conn);
	   $info=mysql_fetch_array($sql);
	   $total=$info['total'];
	   if($total==0)
	   {
	   ?>
   <table width="100%" cellPadding="6" bgcolor="#cccccc" class="table table-bordered">
  <tr bgcolor="#cccccc"><td>暂时没有内容</td></tr></table>
   <?php
   }
  else
  {
			$pagesize=20;
		   if ($total<=$pagesize){
		      $pagecount=1;
			} 
			if(($total%$pagesize)!=0){
			   $pagecount=intval($total/$pagesize)+1;
			
			}else{
			   $pagecount=$total/$pagesize;
			
			}
			$page = !empty($_GET['page']) ? trim($_GET['page']) : '';
			if(($page)==""){
			    $page=1;
			
			}else{
			    $page=intval($_GET['page']);
			
			}
             $sql1=mysql_query("select * from pinglun order by id desc limit ".($page-1)*$pagesize.",$pagesize ",$conn);
             while($info1=mysql_fetch_array($sql1))
		     {
		  ?>
   <table width="750" border="0" cellpadding="0" cellspacing="0"  bgcolor="#cccccc" class="table table-bordered">
        <tr>
          <td height="30" bgcolor="#cccccc">&nbsp;&nbsp;评论人:<?php 
		     $spid=$info1['userid'];
			 $sql3=mysql_query("select name from usermember where id=".$spid."",$conn);
			 $info3=mysql_fetch_array($sql3);
			 echo $info3['name'];
			
		  ?>&nbsp;&nbsp;评价商品:<?php 
		     $spid=$info1['spid'];
			 $sql2=mysql_query("select mingcheng from shops where id=".$spid."",$conn);
			 $info2=mysql_fetch_array($sql2);
			 echo $info2['mingcheng'];
后面还有 45 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。