showpl.php

(开头部分) 4KB

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

<?php
include_once("top.php");
include_once("function.php");
$spid = !empty($_GET['spid']) ? intval($_GET['spid']) : '';
$id = !empty($_GET['id']) ? intval($_GET['id']) : '';
?>
<link rel="stylesheet" type="text/css" href="css/font.css">
<table width="980" height="438" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="220" height="438" align="left" valign="top" bgcolor="#FFFFFF">
      <?php
	   include("left.php");
	?>
      </td>
    <td width="760" align="right" valign="top" bgcolor="#FFFFFF"><table width="750" height="30" border="0" cellpadding="0" cellspacing="0" bgcolor="#cb1c1d">
         <tr>
         <td align="left" class="con2">&nbsp;&nbsp;&nbsp;<b>商品评论</b></td>
        </tr>
      </table><div class="height25"></div>
      <?php
       $sql=mysql_query("select count(*) as total from pinglun where spid='".$id."'",$conn);
	   $info=mysql_fetch_array($sql);
	   $total=$info['total'];
	   $page = !empty($_GET['page']) ? trim($_GET['page']) : '';
	   if($total==0)
	   {
	     echo "本商品暂无评论信息!";
	   }
	   else
	   {
	       $pagesize=8;
		   if ($total<=$pagesize){
		      $pagecount=1;
			} 
			if(($total%$pagesize)!=0){
			   $pagecount=intval($total/$pagesize)+1;
			
			}else{
			   $pagecount=$total/$pagesize;
			
			}
			if(($page)==""){
			    $page=1;
			
			}else{
			    $page=intval($_GET['page']);
			
			}?>
      <table width="750" cellpadding="0" cellspacing="0" border="1">
        <tr bgcolor="#FDE9C9">
          <td height="35" colspan="4" align="center" bgcolor="#f1f1f1">商品评论</td>
        </tr>
        <?php
             $sql1=mysql_query("select * from pinglun where spid='".$id."' order by time desc limit ".($page-1)*$pagesize.",$pagesize ",$conn);
             while($info1=mysql_fetch_array($sql1))
		     {
		  ?>
        <tr>
          <td width="70" height="32"><div align="center">商品名称:</div></td>
          <td width="181"><div align="left">
后面还有 72 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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