<!--
<?php
print <<<EOT
--> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="comment_title">
  <tr>
    <td align="center"><a href="bencandy.php?fid=$fid&id=$id" target="_blank"><u><b><font size="3">$rsdb[title]</font></b></u></a><br>
<br>
本评论只代表{$webdb[webname]}网友个人观点，不代表{$webdb[webname]}观点</td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="MainTable">
  <tr> 
    <td width="70%" height="393" valign="top" class="Main"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="dragTable" id="commentTable">
        <tr> 
          <td class="head"> 
            <h3 class="L"></h3>
            <span class="TAG">网友评论</span> 
            <h3 class="R"></h3>
          </td>
        </tr>
        <tr> 
          <td class="middle"> 
<SCRIPT LANGUAGE="JavaScript">
<!--
document.write('<span id="comment_show">$Load_Msg</span>');
document.write('<div style="display:none;"><iframe src="$Mdomain/comment_ajax.php?fid=$fid&aid=$id&iframeID=comment_show" width=0 height=0 name="comment_show"></iframe></div>');
//-->
</SCRIPT>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
	  <form name="form_comment" id="form_comment" method="post" target="comment_show" action="$Mdomain/comment_ajax.php?fid=$fid&aid=$id&iframeID=comment_show">
        <!--
EOT;
if($lfjdb){$comment_username_tr='none;';}
print <<<EOT
-->
		<tr style="display:$comment_username_tr" id="comment_username_tr"> 
          <td width="16%"><span class="L">帐　　号:</span></td>
            <td width="84%"><span class="R"> 
              <input type="text" name="username" id="comment_username" size="12">
              密码:
              <input type="password" name="password" id="comment_password" size="12">
              (<a href="$webdb[www_url]/do/reg.php" target="_blank"><u>新用户注册</u></a>)</span></td>
        </tr>
        <!--
EOT;
if($web_admin || !$groupdb[CommentArticleYzImg]){$comment_yzimg_tr='none;';}
print <<<EOT
-->
        <tr style="display:$comment_yzimg_tr" id="comment_yzimg_tr"> 
          <td width="16%"><span class="L">验 证 码:</span></td>
          <td width="84%"> 
              <input id="yzImgNum" type="text" name="yzimg" size="8">
 
<SCRIPT LANGUAGE="JavaScript">
<!--
document.write('<img border="0" id="yz_Img" name="imageField" onclick="this.src=this.src+Math.random();" src="$webdb[www_url]/do/yzimg.php?'+Math.random()+'">');
//-->
</SCRIPT>
          </td>
        </tr>
 
        <tr> 
          <td width="16%"><span class="L">表　　情:</span></td>
          <td width="84%"> 
            <style type="text/css">
<!--
.selected {filter:Alpha(opacity=100);border:1px solid #FF9900}
.unselected {filter:Alpha(opacity=50);border:1px solid #EDF8DD}
-->
</style>
<SCRIPT LANGUAGE="JavaScript">
 <!--
 var prevIcon;
function icon(num){
num.className="selected";
if(typeof(prevIcon)!="undefined"){
prevIcon.className="unselected";
}else{
document.all.firstface.className="unselected";
}
if(num.className=="unselected"){
num.className="selected";
}
prevIcon=num;
document.getElementById("commentface").value=num.childNodes(0).id ;
}
 //-->
 </SCRIPT>
            <table border=0 cellspacing=0 cellpadding=0>
              <tr> 
                <td class="selected" onClick="icon(this)" id="firstface" style="cursor:hand"><img src="$webdb[www_url]/images/default/faceicon/1.gif" width="20" height="20" id="1"></td>
                <!--
EOT;
for($i=2;$i<15;$i++){
print <<<EOT
-->
                <td class="unselected" onClick="icon(this)" style="cursor:hand"><img src="$webdb[www_url]/images/default/faceicon/$i.gif" width="20" height="20" id="$i"></td>
                <!--
EOT;
}
print <<<EOT
-->
                <td align="center" valign="top"> 
                  <input name="commentface" type="hidden" value="1">
                </td>
              </tr>
            </table>
          </td>
        </tr>
        <tr> 
          <td width="16%"><span class="L">内　　容:</span></td>
          <td width="84%"><span class="R"> 
              <textarea name="content" cols="50" rows="5" id="comment_content" onKeyDown="quickpost(event)"></textarea>
            </span></td>
        </tr>
        <tr> 
          <td width="16%"> 
<script language="JavaScript">
<!--
cnt = 0;
function quickpost(event){
	if((event.ctrlKey && event.keyCode == 13)||(event.altKey && event.keyCode == 83)){
		cnt++;
		if (cnt==1){
			post_comment();
		}else{
			alert('内容正在提交...');
		}
	}	
}
function post_comment(){
	if(document.getElementById("comment_yzimg_tr").style.display==''){
		if(document.getElementById("yzImgNum").value==''){
			alert('验证码不能为空!');
			return false;
		}
	}
	if(document.getElementById("comment_content").value==''){
		alert('内容不能为空!');
		return false;
	}
	document.getElementById("form_comment").submit();
	document.getElementById("comment_content").value='';
	if(document.getElementById("yzImgNum")!=null){
		document.getElementById("yzImgNum").value='';
		document.getElementById("yz_Img").src="$webdb[www_url]/do/yzimg.php?"+Math.random();;
	}
	limitTime=parseInt('$webdb[CommentTime]');
	limitComment();
	
}
//-->
</script>
          </td>
            <td width="84%"><span class="R"> 
              <input type="button" id="comment_submit" onclick="post_comment()" name="Submit" value="提交" class="button">
              <input type="hidden" name="action" value="post">
              </span></td>
        </tr></form>
      </table>

    </td>
        </tr>
        <tr> 
          <td class="foot"> 
            <h3 class="L"></h3>
            <h3 class="R"></h3>
          </td>
        </tr>
      </table>
      
    </td>
    <td width="30%" height="393" valign="top" class="Side" align="right"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="dragTable">
        <tr> 
          <td class="head"> 
            <h3 class="L"></h3>
            <span class="TAG">热门评论主题</span> 
            <h3 class="R"></h3>
          </td>
        </tr>
        <tr> 
          <td class="middle" align="left" style="line-height:200%;"> 
            <!--
EOT;
$listdb=Get_article(15,42,'comments');
foreach($listdb AS $rs){
print <<<EOT
-->
            ·<A HREF="comment.php?fid=$rs[fid]&id=$rs[aid]">$rs[title]</a><br>
            <!--
EOT;
}print <<<EOT
-->
          </td>
        </tr>
        <tr> 
          <td class="foot"> 
            <h3 class="L"></h3>
            <h3 class="R"></h3>
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
</table>
<!--
EOT;
?>
-->
