<!--
<?php
print <<<EOT
--> 
<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="$webdb[www_url]/do/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="$webdb[www_url]/do/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">
            <img border="0" id="yz_Img" name="imageField" src="$webdb[www_url]/do/yzimg.php"> 
          </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>
<!--
EOT;
?>
-->
