<!--#include file="inc/ubbcode.asp"-->
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/Conn_User.asp"-->
<!--#include file="inc/function.asp"-->
<div id="user_pic" style="width:570px;height:102px;background:url( ) center 3 no-repeat;">

<%

mtv_id=request("id")

set rs=server.createobject("adodb.recordset")
sql="select * from mtv_photo where id=" & mtv_id
rs.open sql,conn,1,3
if rs.bof and rs.eof then
	response.redirect "error/domain_error.htm"
else
	title=rs("title")
	username=rs("username")
	content=rs("content")
	addtime=rs("addtime")
	types=rs("types")
	rs("click_num")=rs("click_num")+1
	rs.update
	click_num=rs("click_num")
end if
rs.close
set rs=nothing
%>







<%
const ChannelID=1
%>

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








<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Untitled Document</title>
<link href="css\Mpage_mainn.css" rel="stylesheet" type="text/css">
</head>
<script language="JavaScript">
<!-- Begin
function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit) 
field.value = field.value.substring(0,maxlimit);
else 
countfield.value = maxlimit - field.value.length;
}
// End -->
</script>
<body>
<body>

<SCRIPT LANGUAGE="JavaScript">

          <!--

          function stopError() {
            return true;
          }

          window.onerror = stopError;

          // -->
          

</SCRIPT>



<%
id=request("id")
if id="" 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 mtv_photo where id="&id&" order by id desc",conn,1,3
rs("click_num")=rs("click_num")+1
rs.update%>
<%if id<>"" then%>




<div id="r_left"><div id="r_top_1"><span><%=left (rs("title"),18)%>&nbsp;</span> <font color="#ff6600">播放:</B><%=rs("click_num")%></B></font> 
</div>

	<div id="r_roomy2"><div  id=MiniRoom><div >

<fieldset>  

&nbsp;
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="535" height="460">
          <param name="movie" value="mv/photo_player.swf" />
          <param name="quality" value="high" />
          <param name="FlashVars" value="id=<%=mtv_id%>" />
          <embed src="mv/photo_player.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="535" height="460"></embed>
        </object>


<IFRAME MARGINHEIGHT=0 MARGINWIDTH=0 FRAMEBORDER=0 WIDTH="550" height="116" SCROLLING=NO 
	SRC="ding.asp?wid=<%=rs("id")%>&types=2" name="textlink" id="textlink" allowTransparency="true"></iframe>

</div>
</div></div>







</div>


	<div >


<link href="../css/Mpage_video.css" rel="stylesheet" type="text/css">

	



<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>
&nbsp;<fieldset><legend><B>网友评论</B></legend>  
<table width="500" border="0" cellspacing="0" cellpadding="0">
<TABLE cellSpacing=1 cellPadding=0 width=500 align=center bgColor=#e6d5ea border=0>
<TBODY>
<TR>
<TD width=544 bgColor=#ffffff><IMG src="page_style/BG9.JPG"></TD></TR>
<TR>

  <%
id=rs("id")
set rsc=server.createobject("adodb.recordset")
sql="select * from [photocomment] where ID="&id
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 id=pageloopb style="PADDING-LEFT: 10px"></DIV></TD></TR></TBODY></TABLE>
<DIV id=guestbooks align=center>
<TABLE style="BORDER-RIGHT: #f4d4de 1px dotted; BORDER-TOP: #f4d4de 1px dotted; BORDER-LEFT: #f4d4de 1px dotted; BORDER-BOTTOM: #f4d4de 1px dotted" cellSpacing=0 cellPadding=0 width=546 border=0>
<TBODY>
<TR bgColor=#fdf0f4>
<TD align=left width=6 height=21></TD>
<TD width=327>芜湖播客家园用户： <a href="user.asp?userid=<%=rsuser("userid")%>" target="_blank"> <SPAN style="COLOR: #f0216f">『<%=rsc("username")%>』</SPAN></A> </TD>
<TD width=169><%=rsc("writetime")%></TD>
<TD width=146>发表评论说:</TD>
<TD align=right width=6></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=3 width=554 border=0>
<TBODY>
<TR>
<TD align=middle width=60><IMG alt="<%=rsc("writetime")%>" onerror=QX_NoImage(this) src="face/<%=rsc("Score")%>.gif"></TD>
<TD style="COLOR: #333333"><%=rsc("content")%></TD></TR></TBODY></TABLE></DIV>
  <%rsc.movenext
  loop
  %>
        



<DIV id=pageloopb style="PADDING-LEFT: 10px"></DIV></TD></TR></TBODY></TABLE>
<DIV id=guestbooks align=center>





  <table width="545" border="0" cellspacing="0" cellpadding="0">

<form name="form1" method="post" action="photoCommentsavee.asp" onSubmit="return CheckAll();">
    <tr>
      <td width="1" height="1" bgcolor="#FFFFFF"></td>
      <td height="1" background="user/li_x_02.gif"></td>
      <td width="1" height="1" bgcolor="#FFFFFF"></td>
    </tr>
    <tr>
      <td bgcolor="#BCBCBC"></td>
      <td height="20" align="left" bgcolor="#FFFFFF"><table height="20"  border="0" align="left" cellpadding="0" cellspacing="0">
          <tr>
            <td width="15">&nbsp;</td>
            <td width="35" align="left">评论: 
		 </td>
            <td><%if Request.Cookies("asp163")("username") <>"" then%>
<input type=hidden name=iconid id=imge value='1' onclick='SetSexImg("face/1.gif");' checked>
<textarea maxLength="30" name="Content" cols="50" rows="3" class="inputnoa" id="comment"></textarea>&nbsp; &nbsp;&nbsp;

	
			<%else%>
<div class="commentinput floatleft"><input type="text" disabled="disabled" name="comment" style="width: 304px;" 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="<%=reques("classid")%>">			<input name="id" type="hidden" size="50" value="<%=rs("id")%>"></td><td width="58" align="center">
              <%if Request.Cookies("asp163")("username") <>"" then%>
              <input name="imageField" type="image" src="imgs/HF.gif" width="61" height="31" border="0"></td><td width="15"></td>
          <%else%><table width="100%" height="3"  border="0" cellpadding="0" cellspacing="0">




                <tr>
                  <td></td>
                </tr>
              </table><img src="user/enter.gif"><%end if%>
		  </tr>
      </table></td>
      <td bgcolor="#BCBCBC"></td>
    </tr><tr>
      <td width="1" height="1"></td>
      <td height="1" bgcolor="#BCBCBC"><img src="" width="10" height="1" border="0"></td>
      <td width="1" height="1"></td>
    </tr>  </form>
  </table></fieldset>
<BR>
</div>
</body>
</html>


<%end if%>
<%
end if
rs_flv.close
set rs_flv=nothing
conn.close
set conn=nothing
%>