代码如下: <?php @require("/e/class/connect.php"); if(!defined('InEmpireCMS')) { exit(); } include("/e/class/db_sql.php"); include("/e/class/config.php"); include("/e/class/q_functions.php"); include("/e/class/class.php"); include LoadLangdp("pub/fun.php"); $link=db_connect(); $empire=new mysqlquery(); //用户名 $lusername=getcvar('mlusername'); if($lusername) {$lpassword=md5($lusername);} $id=(int)$_GET['id']; $classid=(int)$_GET['classid']; if(empty($id)||empty($classid)) {printerror("ErrorUrl","history.go(-1)",1);} if(empty($class_r[$classid][tbname])) { printerror("ErrorUrl","history.go(-1)",1); } $n_r=$empire->fetch1("select id,title,newspath,filename,classid,groupid,plnum,infopfen,infopfw,infopzl,infophj,infopxjb,infopxfnum,infopxftotal,infopfennum from {$dbtbpre}ecms_".$class_r[$classid][tbname]." where id='$id' and classid='$classid'"); if(empty($n_r[id])) {printerror("ErrorUrl","history.go(-1)",1);} $page=(int)$_GET['page']; $start=(int)$_GET['start']; $search="&classid=$classid&id=".$id; $page_line=12;//每页显示链接数 $line=20;//每页显示记录数 $offset=$start+$page*$line;//总偏移量 $query="select plid,saytext,saytime,sayip,username,zcnum,fdnum,userid from {$dbtbpre}enewspl where id='$id' and classid='$classid' and checked=0"; //需审核 if($class_r[$classid][checkpl]) { $totalquery="select count(*) as total from {$dbtbpre}enewspl where id='$id' and classid='$classid' and checked=0"; $num=$empire->gettotal($totalquery); } else { $num=$n_r['plnum']; } $query.=" order by plid desc limit $offset,$line"; $sql=$empire->query($query); $listpage=page1($num,$line,$page_line,$start,$page,$search); //标题链接 $titleurl=sys_ReturnBqTitleLink($n_r); $title=$n_r[title]; //评分 $infopfennum=$n_r['infopfennum']; $infopxfnum=$n_r['infopxfnum']; $pinfopfw=$infopfennum?round($n_r['infopfw']/$infopfennum,1):0; $pinfopzl=$infopfennum?round($n_r['infopzl']/$infopfennum,1):0; $pinfophj=$infopfennum?round($n_r['infophj']/$infopfennum,1):0; $pinfopxjb=$infopfennum?round($n_r['infopxjb']/$infopfennum,1):0; $pinfopxftotal=$infopxfnum?round($n_r['infopxftotal']/$infopxfnum):0; $pinfopfen=$infopfennum?round(($pinfopfw+$pinfopzl+$pinfophj+$pinfopxjb)/4,1):0; $url=ReturnClassLink($n_r[classid])." > <a href=".$titleurl.">".$n_r[title]."</a> > ".$fun_r[pl]; ?>
<style type="text/css"> body,td,th { font-size: 12px; color: #333333; } a:link { color: #333333; text-decoration: none; } a:visited { text-decoration: none; color: #333333; } a:hover { text-decoration: underline; color: #FF0000; } a:active { text-decoration: none; } #showpf{font: italic bolder 34px/1 Arial, Helvetica, sans-serif; color: #FF6600;} #fennum{font: bolder 20px/1 Arial, Helvetica, sans-serif; color: #FF6600;} </style> <script src="/e/data/js/ajax.js"></script>
<table width="610" border="0" align="center" cellpadding="3" cellspacing="1"> <tr> <td width="12%" style="padding:3px;"><a href="JavaScript:makeRequest('/e/public/digg?classid=<?=$classid?>&id=<?=$id?>&dotop=1&doajax=1&ajaxarea=diggnum','EchoReturnedText','GET','');">我顶</a> <span id="fennum"><strong> <script type="text/javascript" src="/e/public/ViewClick?classid=<?=$classid?>&id=<?=$id?>&down=5"></script> </strong></span> </td> <td width="39%" style="padding:10px;"> <a href="JavaScript:makeRequest('/e/public/diggd?classid=<?=$classid?>&id=<?=$id?>&dotop=1&doajax=1&ajaxarea=diggnum','EchoReturnedText','GET','');">我踩</a> <span id="fennum"><strong> <script type="text/javascript" src="/e/public/ViewClick?classid=<?=$classid?>&id=<?=$id?>&down=6"></script> </strong></span> </td> <td colspan="2"> </td> </tr> <form action="/e/enews/index.php" method="post" name="infopfenform" onSubmit="return CheckPf(document.infopfenform)"> <input type="hidden" name="enews" value="AddInfoPfen" /> <input type="hidden" name="classid" value="<?=$classid?>" /> <input type="hidden" name="id" value="<?=$id?>" /> <tr> <td height="27" colspan="5">综合:<span id="showpf"><?=$pinfopfen?> </span> 服务:<strong><font color="#FF0000"><span id="fennum"><?=$pinfopfw?> </span></font></strong> 质量:<strong><font color="#FF0000"><span id="fennum"><?=$pinfopzl?> </span></font></strong> 环境:<strong><font color="#FF0000"><span id="fennum"><?=$pinfophj?> </span></font></strong> 性价比:<strong><font color="#FF0000"><span id="fennum"><?=$pinfopxjb?> </span></font></strong> 人均消费<strong><font color="#FF0000"><span id="fennum"> <?=$pinfopxftotal?></span> </font></strong>元 已 <span id="fennum"> <?=$infopfennum?> </span> 人打分</td> </tr> <tr> <td height="27" colspan="2" valign="middle"> <label>服务: <input type="radio" name="fw" value="1">差 <input type="radio" name="fw" value="2">一般 <input name="fw" type="radio" value="3" checked>好 <input type="radio" name="fw" value="4">很好 <input type="radio" name="fw" value="5">非常好 </label> </td> <td colspan="2" valign="middle"><label>质 量: <input type="radio" name="zl" value="1">差 <input type="radio" name="zl" value="2">一般 <input name="zl" type="radio" value="3" checked>好 <input type="radio" name="zl" value="4">很好 <input type="radio" name="zl" value="5">非常好</label></td> </tr> <tr> <td height="27" colspan="2" valign="middle"> <label>环境: <input type="radio" name="hj" value="1">差 <input type="radio" name="hj" value="2">一般 <input name="hj" type="radio" value="3" checked>好 <input type="radio" name="hj" value="4">很好 <input type="radio" name="hj" value="5">非常好</label> </td> <td colspan="2" valign="middle"><label>性价比: <input type="radio" name="xjb" value="1">差 <input type="radio" name="xjb" value="2">一般 <input name="xjb" type="radio" value="3" checked>好 <input type="radio" name="xjb" value="4">很好 <input type="radio" name="xjb" value="5">非常好</label> </td> </tr> <tr> <td height="27" colspan="3" valign="middle"> <label>消费: <input name="xfnum" type="text" id="xfnum" size="3" maxlength="3"> 人 <input name="xftotal" type="text" id="xftotal" size="7" maxlength="8"> 元</label> <label> (注:只有填写真实消费情况后评分才能提交)</label></td> <td width="15%" valign="middle"><span style="float:right"> <input type="submit" name="Submit" value="提交评分" > </span></td> </tr> </form> </table>
|
|
|