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

<SCRIPT FOR = aa EVENT = onload>
var MaxWidth=400;
if(aa.readyState!="complete"){
 return false;//确保图片完全加载
}
if(aa.width>MaxWidth){ 
aa.width=MaxWidth; 
}

</script>






<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>

<%userid=request("userid")
set rs=server.createobject("adodb.recordset")
sql="select * from [user] where userid="&userid&" order by userid desc"
rs.open sql,Conn_User,1,1
username=rs("username")

rs.close
set rs=nothing
%>
<%if request("classid")="" then%>
<%
myPagesize=1
set rs=server.createobject("adodb.recordset")
rs.open "select * from photo where editor='"&username&"' and Deleted=false order by photoid desc",conn,1,1
call myPages(rs,myPagesize)
%>
<%else%>
<%
myPagesize=1
classidd=request("classid")
set rs=server.createobject("adodb.recordset")
rs.open "select * from photo where editor='"&username&"' and classid="&classidd&" and Deleted=false order by photoid desc",conn,1,1
call myPages(rs,myPagesize)
%>
<%end if%>
<%if rs.recordcount=0 then %>



<A class="sbody" href="javascript:window.history.back() "target=_self>返回视频列表</A>



<%line=myPagesize
do while not rs.eof and line>0
%>


  <%rs.movenext
   line=line-1
loop
  %>
   <%end if%>


