<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>无标题文档</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK 
href="img/css_commentss.css" type=text/css rel=stylesheet>
<SCRIPT language=JavaScript type=text/javascript>
	function checkSubmit(theForm) {
		if(theForm.content.value=='') {
			alert('content not empty!');
			theForm.content.focus;
			return false;
		}
		return true;
	}
	function addface(id){
		var objform = document.getElementById('commontForm');
		objform.content.value += '[PS' + id +']';
	}
	function setAutoHeight( parentIframeElement, slefDocument ){

		slefDocument.style.overflow = "hidden";          // 隐藏全部滚动条
		document.body.style.overflowY = "hidden";  // 没有竖滚动条
		
		parentIframeElement.style.height = slefDocument.scrollHeight + 'px';
		parentIframeElement.style.width  =  slefDocument.scrollWidth + 'px';
		
	}
		
	// 在页面最后执行
	window.onload = function() {
	   setAutoHeight(parent.document.getElementById("ifrid"), document.body);
	}	
</SCRIPT>

<META content="MSHTML 6.00.5730.13" name=GENERATOR></HEAD>
<BODY>

<body style="overflow-y:hidden"> 

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="inc/functionn.asp"-->
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/config.asp"-->
<!--#include file="inc/Conn_User.asp"-->
<%
const ChannelID=1
%>
<!--#include file="inc/ubbcode.asp"-->

<%
articleid=request("articleid")
if articleid="" or not isnumeric(articleid) then
	response.write "搞什么你?"
	response.end
end if
set rs_flv=server.CreateObject("adodb.recordset")
rs_sql="select * from article where articleid=" & articleid
rs_flv.open rs_sql,conn,1,1
if rs_flv.bof and rs_flv.eof then
	response.write "没有找到此视频!"
	response.end
else
%>





<%
articleid=request("articleid")
if articleid="" then 
FoundErr=True
	ErrMsg=ErrMsg & "<br><li>请指定视屏ID</li><br>"
	call WriteErrMsg()
else 
end if
set rs=server.createobject("adodb.recordset")
rs.open "select * from article where articleid="&articleid&" order by articleid desc",conn,1,3
rs("hits")=rs("hits")+1
rs("DayHits")=rs("DayHits")+1
rs("WeekHits")=rs("WeekHits")+1
rs("MonthHits")=rs("MonthHits")+1
rs.update%>
<%if articleid<>"" then%>




<SCRIPT language=javascript>
function unselectall()
{
    if(document.myform.chkAll.checked){
	document.myform.chkAll.checked = document.myform.chkAll.checked&0;
    } 	
}

function CheckAll()
  {
   if (document.form1.Content.value=="")
  {
    alert("请输入评论内容！");
	document.form1.Content.focus();
	return false;
  }
  return true; 
  }
function ConfirmDel()
{
   if(confirm("确定要删除吗？一旦删除将不能恢复！"))
     return true;
   else
     return false;
	 
}

</SCRIPT>

<form name="form1" method="post" action="articlecommentsavee.asp" onSubmit="return CheckAll();">
<DIV>
<DIV id=smiles>         <table width="705" border="0" cellspacing="0" cellpadding="3" class="b12" align="center">
                <tr> 
                  <td rowspan="2" height="26" align="center" width="5%"></td>
                  <td width="8%" height="20"> 
         
     

<input type=radio name=iconid id=imge value='1' onclick='SetSexImg("face/1.gif");' checked>
                    <img src="face/1.gif" width="20" height="20" alt="高兴"></td>
                  <td width="8%" height="20"> 
                    <input type="radio" name="iconid" value="2">
                    <img src="face/2.gif" width="20" height="20" alt="吃惊"></td>
                  <td width="8%" height="20" > 
                    <input type="radio" name="iconid" value="3">
                    <img src="face/3.gif" width="20" height="20" alt="大笑"> 
                  </td>
                  <td width="8%" height="20" > 
                    <input type="radio" name="iconid" value="4">
                    <img src="face/4.gif" width="20" height="20" alt="愤怒"></td>
                  <td width="8%" height="20" > 
                    <input type="radio" name="iconid" value="5">
                    <img src="face/5.gif" width="20" height="20" alt="哭了"> 
                  </td>
                  <td width="8%" height="20" > 
                    <input type="radio" name="iconid" value="6">
                    <img src="face/6.gif" width="20" height="20" alt="脸红"> 
                  </td>
                  <td width="8%" height="20" > 
                    <input type="radio" name="iconid" value="7">
                    <img src="face/7.gif" width="20" height="20" alt="吐舌"></td>
                  <td width="8%" height="20" > 
                    <input type="radio" name="iconid" value="9">
                    <img src="face/8.gif" width="20" height="20" alt="眨眼"> 
                  </td>
                  <td width="8%" height="20" > 
                    <input type="radio" name="iconid" value="10">
                    <img src="face/9.gif" width="20" height="20" alt="伤心"></td>
                  <td width="8%" height="20" > 
                    <input type="radio" name="iconid" value="11">
                    <img src="face/10.gif" width="20" height="20" alt="无聊"></td>
                  <td width="8%" height="20" > 
                    <input type="radio" name="iconid" value="12">
                    <img src="face/11.gif" width="20" height="20" alt="晕倒"></td>
                  <td rowspan="2" width="2%" ></td>
                </tr>
                <tr> 
                  <td width="8%" height="20"> 
                    <input type="radio" name="iconid" value="13">
                    <img src="face/12.gif" width="20" height="20" alt="请进"></td>
                  <td width="8%" height="20"> 
                    <input type="radio" name="iconid" value="14">
                    <img src="face/13.gif" width="20" height="20"  alt="提问"> 
                  </td>
                  <td width="8%" height="20" > 
                    <input type="radio" name="iconid" value="18">
                    <img src="face/14.gif" width="20" height="20" alt="喜欢"> 
                  </td>
                  <td width="8%" height="20" > 
                    <input type="radio" name="iconid" value="16">
                    <img src="face/15.gif" width="20" height="20" alt="注意"> 
                  </td>
                  <td width="8%" height="20" > 
                    <input type="radio" name="iconid" value="17">
                    <img src="face/16.gif" width="20" height="20" alt="原创"> </td>
                  <td width="8%" height="20" > 
                    <input type="radio" name="iconid" value="17">
                    <img src="face/17.gif" width="20" height="20" alt="求助"> </td>
                  <td width="8%" height="20" > 
                    <input type="radio" name="iconid" value="18">
                    <img src="face/18.gif" width="20" height="20" alt="赞扬"> </td>
                  <td width="8%" height="20" > 
                    <input type="radio" name="iconid" value="19">
                    <img src="face/19.gif" width="20" height="20" alt="汗颜"> </td>
                  <td width="8%" height="20" > 
                    <input type="radio" name="iconid" value="20">
                    <img src="face/20.gif" width="20" height="20" alt="贴图"> </td>
                  <td width="8%" height="20" > 
                    <input type="radio" name="iconid" value="21">
                    <img src="face/21.gif" width="20" height="20" alt="得意"> </td>
                  <td width="8%" height="20" >
                    <input type="radio" name="iconid" value="22">
                    <img src="face/22.gif" width="20" height="20" alt="胜利"> </td>
                </tr>
              </table>
		<div class="floatright">

<%if Request.Cookies("asp163")("username") <>"" then%>

<textarea maxLength="30" name="Content" cols="145" rows="2" class="inputnoa" id="comment"></textarea>


	
			<%else%>

		
			<img src="images/p_-1.gif" alt="" class="button" />




&nbsp;&nbsp;<input type="text" disabled="disabled" name="comment" style="width: 705px;" class="normaltext" maxlength="255" value="请您登录后发表评论" />
			<%end if%>
		<input name="userid" type="hidden" size="50" value="<%=request("userid")%>">			<input name="classid" type="hidden" size="50" value="<%=request("classid")%>">			<input name="articleid" type="hidden" size="50" value="<%=rs("articleid")%>">
              <%if Request.Cookies("asp163")("username") <>"" then%>
             
          <%else%><%end if%>





</DIV></DIV>
<DIV id=post> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="imageField" type="image" src="user/comment_back.gif" width="81" height="21" border="0"></BUTTON> &nbsp;<B><font color="#C00000">&nbsp;&nbsp;&nbsp;&nbsp;温馨提示：1、评论请文明用语,多给作者一点支持；2、禁止发布广告评论。</font></B></DIV></FORM>


  <%
articleid=rs("articleid")
set rsc=server.createobject("adodb.recordset")
sql="select * from [articlecomment] where articleid="&articleid
rsc.open sql,Conn,1,1

%>
<%do while not rsc.eof %>
  <%
usernames=rsc("UserName")
set rsuser=server.createobject("adodb.recordset")
sql="select * from [user] where username='"&usernames&"'"
rsuser.open sql,Conn_user,1,1

%> 




<DIV class=comments><dl>
<dt>网友&nbsp;<font color="#C00000">『<%=rsc("username")%>』</font>&nbsp;&nbsp;发布时间:(<%=rsc("writetime")%>)</dt>
<dd><img src="face/<%=rsc("Score")%>.gif">&nbsp;&nbsp;<%=rsc("content")%></dd>
</dl>
	</div><%rsc.movenext
  loop
  %>
</div>
</body>
</html><%end if%>
<%
end if
rs_flv.close
set rs_flv=nothing
conn.close
set conn=nothing
%>  