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

    <?php
 header   ("Cache-Control:   no-cache,   must-revalidate");     
 header   ("Pragma:   no-cache");   
?><?php
include("include/dbclass.php");
$dbc=new DbConn();

$user=$_GET["user"];
$CommentObjId=$_GET["CommentObjId"];
$ObjTitle=$_GET["ObjTitle"];
$CommentTextArea=$_GET["CommentTextArea"];
$sqlck="select id from Diary where User_Account='$user' and Diary_Title='$ObjTitle' and Diary_UnixTimestamp='$CommentObjId'";
$rs=$dbc->getRs($sqlck);
if($rs==null)
{
echo iconv('gbk', 'utf-8',参数不对);
exit();
}

?>
<div style='font-size:14px;border-bottom:1px dotted #CCCCCC;margin-bottom:8px;height:24px;'><b><?php echo iconv('gbk', 'utf-8',发表评论); ?></b></div>
<DIV Style="margin-bottom:10px;Text-align:left;">
<TABLE border="0" cellspacing="0" cellpadding="0" width="100%">
<TR>
<TD>
<form id="CommentForms" name="CommentForms" style='WORD-BREAK:break-all;WORD-WRAP:break-word;padding:0px;margin:0px;' method="post" action="ProcessInterface_CommentNoAjax.php?user=<?php echo $user; ?>&go=&group=&action=Save" >
<INPUT Name="f_DiaryComment_CommentObjId" type="hidden" value="<?php echo $CommentObjId; ?>"/>
<INPUT Name="f_DiaryComment_ObjTitle" type="hidden" value="<?php echo iconv('gbk', 'utf-8',$ObjTitle); ?>"/>
<INPUT Name="f_DiaryComment_AddDate" type="hidden" value="<?php echo date("Y-m-d H:i:s");?>"/>

<textarea Name="f_DiaryComment_Memo" type="TextArea" id="TBlog_Diary_Comment_TextArea" style="width:435px;" Rows="5" OnKeyDown="if (event.ctrlKey && event.keyCode == 13) if(CountStringLength(500)){ ProcessInterface_SaveComment(<?php echo $CommentObjId; ?>,'<?php echo $user; ?>') } "></TextArea><br><input type='button' value=" <?php echo iconv('gbk', 'utf-8',提交评论); ?> " style='filter:alpha(opacity=80);' Name="SubmitComment" ID="TBlog_Diary_Comment_TextArea" onclick="if(CountStringLength(500)){ ProcessInterface_SaveComment(<?php echo $CommentObjId; ?>,'<?php echo $user; ?>') }" > </form>

</TD>
</TR>
</TABLE>
</DIV>