function ReplaceShowPlVars($no, $listtemp, $r, $formatdate, $subnews = 0) { global $public_r, $empire, $dbtbpre, $class_r; //标题 $infor = $empire->fetch1("select titleurl,groupid,classid,newspath,filename,id,title from {$dbtbpre}ecms_" . $class_r[$r[classid]][tbname] . " where id='{$r['id']}' limit 1"); $r['saytext'] = stripSlashes($r['saytext']); if ($subnews) { $r['saytext'] = sub($r['saytext'], 0, $subnews, false); } if ($r['userid']) { $r['username'] = "******" . $public_r[newsurl] . "e/space/?userid={$r['userid']}' target='_blank'>{$r['username']}</a>"; } if (empty($r['username'])) { $r['username'] = '******'; } $titleurl = sys_ReturnBqTitleLink($infor); $listtemp = str_replace("[!--titleurl--]", $titleurl, $listtemp); $listtemp = str_replace("[!--title--]", $infor['title'], $listtemp); $listtemp = str_replace("[!--plid--]", $r['plid'], $listtemp); $listtemp = str_replace("[!--pltext--]", RepPltextFace($r['saytext']), $listtemp); $listtemp = str_replace("[!--id--]", $r['id'], $listtemp); $listtemp = str_replace("[!--classid--]", $r['classid'], $listtemp); $listtemp = str_replace("[!--pltime--]", format_datetime($r['saytime'], $formatdate), $listtemp); $listtemp = str_replace("[!--username--]", $r['username'], $listtemp); $listtemp = str_replace("[!--zcnum--]", $r['zcnum'], $listtemp); $listtemp = str_replace("[!--fdnum--]", $r['fdnum'], $listtemp); //序号 $listtemp = str_replace("[!--no--]", $no, $listtemp); return $listtemp; }
if (!empty($r[checked])) { $checked = " title='未审核' style='background:#99C4E3'"; } else { $checked = ""; } if ($r['userid']) { $r['username'] = "******"; } if (empty($r['username'])) { $r['username'] = '******'; } if ($r[isgood]) { $r[saytime] = '<font color=red>' . $r[saytime] . '</font>'; } //替换表情 $saytext = RepPltextFace(stripSlashes($fr['saytext'])); ?> <tr bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#C3EFFF'" id=pl<?php echo $r[plid]; ?> > <td height="25" valign="top"><div align="center"> <input name="plid[]" type="checkbox" id="plid[]" value="<?php echo $r[plid]; ?> "<?php echo $checked; ?> > </div></td> <td height="25" valign="top"><div align="center">
?> document.write(""); <?php while ($r = $empire->fetch($sql)) { $plusername = $r[username]; if (empty($r[username])) { $plusername = '******'; } if ($r[userid]) { $plusername = "******"; } $saytime = date('Y-m-d H:i:s', $r['saytime']); //ip $sayip = ToReturnXhIp($r[sayip]); $saytext = str_replace("\r\n", "", $r['saytext']); $saytext = addslashes(RepPltextFace(stripSlashes($saytext))); //替换表情 ?> document.write(" <table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"3\" cellspacing=\"1\" style=\"word-break:break-all; word-wrap:break-all;\"> <tr> <td height=\"30\"><span class=\"name\">本站网友 <?php echo $plusername; ?> </span> <font color=\"#666666\">ip:<?php echo $sayip; ?> </font></td> <td><div align=\"right\"><font color=\"#666666\"><?php echo $saytime; ?> 发表</font></div></td> </tr> <tr valign=\"top\"> <td height=\"50\" colspan=\"2\" class=\"text\"><?php echo $saytext; ?> </td> </tr> <tr> <td height=\"30\"> </td> <td><div align=\"right\" class=\"re\"> <a href=\"JavaScript:makeRequest(\'/e/pl/doaction.php?enews=DoForPl&plid=<?php
function ReplaceShowPlVars($no,$listtemp,$r,$formatdate,$subnews=0){ global $public_r,$empire,$dbtbpre,$class_r; //标题 $infor=$empire->fetch1("select isurl,titleurl,classid,id,title,titlepic from {$dbtbpre}ecms_".$class_r[$r[classid]][tbname]." where id='$r[id]' limit 1"); $r['saytext']=stripSlashes($r['saytext']); if($subnews) { $r['saytext']=sub($r['saytext'],0,$subnews,false); } if($r['userid']) { $r['username']="******".$public_r[newsurl]."e/space/?userid=$r[userid]' target='_blank'>$r[username]</a>"; } if(empty($r['username'])) { $r['username']='******'; } $titleurl=sys_ReturnBqTitleLink($infor); $titlepic=$infor['titlepic']?$infor['titlepic']:$public_r['newsurl'].'e/data/images/notimg.gif'; $listtemp=str_replace("[!--titleurl--]",$titleurl,$listtemp); $listtemp=str_replace("[!--title--]",$infor['title'],$listtemp); $listtemp=str_replace("[!--titlepic--]",$titlepic,$listtemp); $listtemp=str_replace("[!--plid--]",$r['plid'],$listtemp); $listtemp=str_replace("[!--pltext--]",RepPltextFace($r['saytext']),$listtemp); $listtemp=str_replace("[!--id--]",$r['id'],$listtemp); $listtemp=str_replace("[!--classid--]",$r['classid'],$listtemp); $listtemp=str_replace("[!--pltime--]",date($formatdate,$r['saytime']),$listtemp); $listtemp=str_replace("[!--username--]",$r['username'],$listtemp); $listtemp=str_replace("[!--zcnum--]",$r['zcnum'],$listtemp); $listtemp=str_replace("[!--fdnum--]",$r['fdnum'],$listtemp); //序号 $listtemp=str_replace("[!--no--]",$no,$listtemp); return $listtemp; }
<?php while($r=$empire->fetch($sql)) { $plusername=$r[username]; if(empty($r[username])) { $plusername=$fun_r['nomember']; } if($r[userid]) { $plusername="******"; } $saytime=date('Y-m-d H:i:s',$r['saytime']); //ip $sayip=ToReturnXhIp($r[sayip]); $saytext=RepPltextFace(stripSlashes($r['saytext']));//替换表情 $includelink=" onclick=\"javascript:document.saypl.repid.value='".$r[plid]."';document.saypl.saytext.focus();\""; ?> <table width="96%" border="0" align="center" cellpadding="3" cellspacing="1" style="word-break:break-all; word-wrap:break-all;"> <tr> <td height="30"><span class="name">本站网友 <?=$plusername?></span> <font color="#666666">ip:<?=$sayip?></font></td> <td><div align="right"><font color="#666666"><?=$saytime?> 发表</font></div></td> </tr> <tr valign="top"> <td height="50" colspan="2" class="text"><?=$saytext?></td> </tr> <tr> <td height="30"> </td> <td><div align="right" class="re"><a href="#tosaypl"<?=$includelink?>>回复</a> <a href="JavaScript:makeRequest('../pl/doaction.php?enews=DoForPl&plid=<?=$r[plid]?>&classid=<?=$classid?>&id=<?=$id?>&dopl=1&doajax=1&ajaxarea=zcpldiv<?=$r[plid]?>','EchoReturnedText','GET','');">支持</a>[<span id="zcpldiv<?=$r[plid]?>"><?=$r[zcnum]?></span>]