www.gusucode.com > 仿51.com的php源码 1.1 > vip_DiaryGetCommentList.php

    <?php
 header   ("Cache-Control:   no-cache,   must-revalidate");     
 header   ("Pragma:   no-cache");   
?>
<?php
include("include/dbclass.php");
include("include/global.php");
$dbc=new DbConn();
$user=$_GET["user"];
$DispType=$_GET["DispType"];
$diary_id=$_GET["diary_id"];
?><?php if($DispType=="All"){?>
<div style='font-size:14px;font-weight:bold;border-bottom:1px dotted #CCCCCC;margin-bottom:10px;height:24px;'><?php echo iconv('gbk', 'utf-8',最新评论); ?></div>
<?php }
$sql="select * from DiaryComment where DiaryComment_CommentObjId='$diary_id' and DiaryComment_UserName='$user' order by DiaryComment_AddDate desc,id desc";
$result=$dbc->query($sql);
$num=$dbc->num_rows($result);
if ($num==null)
{
echo iconv('gbk', 'utf-8',暂无评论);
}
else
{
while ($row=@mysql_fetch_array($result))
{?>
<DIV style='width:100%;margin-bottom:20px;' align='top'>
<TABLE STYLE='width:100%;table-layout:fixed;'>
<TR>
<TD>
<DIV style='height:22px;'>
<?php echo  iconv('gbk', 'utf-8',●); ?> <a href='home.php?user=<?php echo $row["DiaryComment_Name"]; ?>' class='lync' target='_blank'>
<?php echo $row["DiaryComment_Name"]; ?></a>&nbsp;&nbsp;<?php echo $row["DiaryComment_AddDate"]; ?>&nbsp;&nbsp;<a href="/jb.php?user=<?php echo $row["DiaryComment_Name"]; ?>&type=comment" target="_blank" style="color:#ccc;"><?php echo  iconv('gbk', 'utf-8',举报该评论); ?></a>
</DIV>
<DIV style="width:98%;WORD-wrap:break-word;margin-left:10px;">
<?php echo iconv('gbk', 'utf-8',ubb($row["DiaryComment_Memo"])); ?></DIV>
<DIV>
<?php if($row["DiaryComment_Replay"]!=null){?>
<DIV style="WORD-wrap:break-word;margin-bottom:15px;margin-top:5px;">
<span class="plhf" style="color: red;font-size: 14px;">
<?php echo $row["DiaryComment_UserName"]; ?><?php echo iconv('gbk', 'utf-8',回复:); ?><?php echo iconv('gbk', 'utf-8',ubb($row["DiaryComment_Replay"])); ?><BR>
</span>
</DIV>
<?php }?>
</DIV>
</TD>
</TR>
</TABLE>
</DIV>
<?php }} ?>