<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../Include/Connect.asp"-->
<%
username=Checkstr(request.querystring("username"))
if username="" then
response.redirect("../default.asp")
end if
%>
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../CSS/Hompy/hompy.css" type=text/css rel=stylesheet>
<title></title>
<script language="JavaScript" type="text/JavaScript">
<!--
function winOpen(Url,width,height,scrollbar,resize)
{

ow = width;
oh = height;
os = scrollbar;
or = resize;
var xposition=0; 
var yposition=0;
if ((parseInt(navigator.appVersion) >= 4 ))
  {
    xposition = (screen.width - width) / 2;
    yposition = (screen.height - height-25) / 2;
  }
  window.open (Url,"","width ="+ow+",height="+oh+",scrollbars = "+os+",resizable="+or+",left="+xposition+",top="+yposition );
}
//-->
</script>
<script language="JavaScript">
<!--
function showPersonacon(persona_view_id) {
	var span_name = "persona"+persona_view_id;
	var open = document.getElementById(span_name).style.display;

	if(open == "none") {
		document.getElementById(span_name).style.display = '';
	}
	else {
		document.getElementById(span_name).style.display = 'none';
	}
}

function setPersona(frmName, cid, rid, pid, pimg) {
	var srcName = "personasrc" + cid;
	var span_name = "persona" + cid;
	document.getElementById(srcName).src = pimg;
	document.forms[frmName].personaconid.value = pid;
	if(document.getElementById(span_name).style.display == "") {
		document.getElementById(span_name).style.display = 'none';
	}
}

function formcheck(frmName) {
    if(frmName.comment.value.length ==0)
	{
	alert("评论不能为空！");
	frmName.comment.focus();
	return false;
	}
}
//-->
</script>
<script language="JavaScript">
<!--
//图片按比例缩放
var flag=false;
function DrawImage(ImgD,iwidth,iheight){
    //参数(图片,允许的宽度,允许的高度)
    var image=new Image();
    image.src=ImgD.src;
    if(image.width>0 && image.height>0){
    flag=true;
    if(image.width/image.height>= iwidth/iheight){
        if(image.width>iwidth){  
        ImgD.width=iwidth;
        ImgD.height=(image.height*iwidth)/image.width;
        }else{
        ImgD.width=image.width;  
        ImgD.height=image.height;
        }
        ImgD.alt=image.width+"×"+image.height+"点击察看原始尺寸";
        }
    else{
        if(image.height>iheight){  
        ImgD.height=iheight;
        ImgD.width=(image.width*iheight)/image.height;        
        }else{
        ImgD.width=image.width;  
        ImgD.height=image.height;
        }
        ImgD.alt=image.width+"×"+image.height+"点击察看原始尺寸";
        }
    }
} 
//-->
</script>
</head>
<body  oncontextmenu="window.event.returnValue=false" onselectstart="return false">

<TABLE cellSpacing=0 cellPadding=0 width=473 border=0>
  <TBODY>
    <TR> 
      <TD height=29 align="center"><table width="97%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td width="13%" class="orange2_b">我的视频</td>
            <td width="51%" style="PADDING-RIGHT: 10px">&nbsp; </td>
<%
if session("username")=username then
%> 
            <td width="36%" align="right"><a href="upload_video.asp?username=<%=username%>"><img src="../Images/Hompy/w_upvideo.gif" border="0"></a> 
              <a href="javascript:;" onClick="javascript:winOpen('rvideo.asp?username=<%=username%>', 620, 400, 'no','no')"><img src="../Images/Hompy/w_video.gif" width="82" height="19" border="0"></a></td>
<%
end if
%> 
		  </tr>
        </table> </TD>
    </TR>
    <TR> 
      <TD height=24><div align="center">
<%
groupid=request.querystring("groupid")
   if groupid="" then
     sql="select * from Show5_ALLVideo where Username='"&username&"' and audit=1 ORDER BY VideoID DESC"
   else
     sql="select * from Show5_ALLVideo where Username='"&username&"' and GroupID="&groupid&" and audit=1 ORDER BY VideoID DESC"
   end if
   if not isempty(request("page")) then        
      currentPage=cint(request("page"))        
   else        
      currentPage=1        
   end if
   MaxPerPage=6
set rs = server.CreateObject("adodb.recordset")
sql=""&sql&""
rs.open sql,cn,1,1
if rs.eof or rs.bof then
%>
<table width="97%" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td style="HEIGHT: 3px;BORDER-TOP: #cecfce 1px solid; BORDER-BOTTOM: #cecfce 1px dotted; BACKGROUND-COLOR: #f7f7f7"><img src="" width="3" height="3" alt=""></td>
  </tr>
  <tr> 
    <td></td>
  </tr>
  <tr> 
              <td height="108" align="center">暂无视频！</td>
  </tr>
  <tr> 
    <td height="1" style="BORDER-BOTTOM: #cecfce 1px solid;"><img name="" src="" width="1" height="1" alt=""> </td>
  </tr>
</table>
<table width="39%" height="45" border="0" cellpadding="0" cellspacing="0">
            <tr>
    <td><TABLE width="206">
                <TBODY>
                <FORM name=form onSubmit="return false;" method=get target=_self>
                  <TR> 
                    <TD><SELECT name=selsearchType>
                        <option value="wpname">标题</option>
                        <option value="title">内容</option>
                      </SELECT> <INPUT  maxLength=35 size=15 name=searchTxt> <img src="../Images/Hompy/search_b.gif" align="absmiddle"></TD>
                  </TR>
                </FORM>
              </TABLE></td>
  </tr>
</table>
<%
response.end()
else
   totalPut=rs.recordcount
   rs.move  (currentPage-1)*MaxPerPage
   rs.pagesize=MaxPerPage '得到每页数
   mpage=rs.pagecount     '得到总页数
   n= 1
   m= 3
%>
          <table width="97%" border="0" align="center" cellpadding="2" cellspacing="2">
            <tr>
<%
i=0
Do Until rs.EOF OR i>=MaxPerPage
%>
<td><TABLE cellSpacing=0 cellPadding=0 width=151 border=0>
              <TBODY>
              <TR>
                      <TD width=7 height=7><IMG height=7 src="../Images/Hompy/box_top01.gif" 
                  width=7></TD>
                      <TD width=137 background=../Images/Hompy/box_top03.gif height=7></TD>
                      <TD width=7 height=7><IMG height=7 src="../Images/Hompy/box_top02.gif" 
                  width=7></TD>
                    </TR>
              <TR>
                      <TD width=7 background=../Images/Hompy/box_left.gif height=122></TD>
                      <TD vAlign=top width=137 height=122> 
                        <TABLE cellSpacing=0 cellPadding=0 width=137 border=0>
                    <TBODY>
                    <TR>
                      <TD height=102>
                        <TABLE cellSpacing=1 cellPadding=0 width=137 
                        bgColor=#e9e9e9 border=0>
                          <TBODY>
                          <TR>
                                      <TD bgColor=#ffffff height=100 align="center"><a href="videoplay.asp?videoid=<%=rs("VideoID")%>&username=<%=rs("Username")%>&groupid=<%=rs("GroupID")%>"><img src="../Videoimage/<%=rs("Filename")%>.jpg" width="133" height="100" border="0" align="absmiddle" alt=<%=rs("Topic")%>></a></TD>
                                    </TR></TBODY></TABLE></TD></TR>
                    <TR>
                              <TD vAlign=bottom align=middle 
                        height=20><a href="videoplay.asp?videoid=<%=rs("VideoID")%>&username=<%=rs("Username")%>&groupid=<%=rs("GroupID")%>" title="<%=rs("Topic")%>"><%
											  a=rs("Topic")
											  if len(a)>8 then
											  a = left(a,8)&".." 
                                              end if 
                                              response.write ""&a&""
											  %></a></TD>
                            </TR></TBODY></TABLE></TD>
                      <TD width=7 background=../Images/Hompy/box_right.gif height=122></TD>
                    </TR>
              <TR>
                      <TD width=7 height=7><IMG height=7 
                  src="../Images/Hompy/box_bottom01.gif" width=7></TD>
                      <TD width=137 background=../Images/Hompy/box_bottom03.gif height=7></TD>
                      <TD width=7 background=../Images/Hompy/box_bottom02.gif 
              height=7></TD>
                    </TR></TBODY></TABLE></td>
<%
If n = m then
Response.Write("</tr><tr>")
n = 1
Else
n = n + 1
End If
rs.MoveNext
i=i+1
Loop
rs.close
set rs=nothing
End If
%>
</tr>
</table>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <TR>
    <TD height=5></TD></TR>
  <TR>
  <tr>
      <td height="27" align="center" style="FONT-SIZE: 11px"> 
<%
call page()
sub page()%>
<%                                                                                                                           
    pageno=currentPage
    if isempty(pageno) or cint(pageno)<1 or cint(pageno)>mpage then
        pageno=1
    end if
%> 
<%if cint(pageno)>1 then%><a href=photolist.asp?username=<%=username%>&viewmode=<%=viewmode%>&groupid=<%=groupid%>&page=<%=pageno-1%>><%end if%>
<img src="../Images/Hompy/K_play_middle_pre.gif" border="0" align="absmiddle">&nbsp;</a> <%                    
pp=cint(pageno)-3            
  if pp<1 then            
  pp=1            
  end if            
for pno=pp to mpage            
p=p+1            
if pno=cint(pageno) then%>&nbsp;<strong><font color="#FF0000"><%=pno%></font></strong>&nbsp;<%else%>&nbsp;<a href=videolist.asp?username=<%=username%>&viewmode=<%=viewmode%>&groupid=<%=groupid%>&page=<%=pno%>><u><%=pno%></u></a>&nbsp;<%end if%>                    
<%                    
if p>=7 then exit for            
next%>&nbsp;<%if cint(pageno)< mpage then%><a href=videolist.asp?username=<%=username%>&viewmode=<%=viewmode%>&groupid=<%=groupid%>&page=<%=pageno+1%>><%end if%>
<img src="../Images/Hompy/K_play_middle_next.gif" border="0" align="absmiddle"></a> <a href=videolist.asp?username=<%=username%>&viewmode=<%=viewmode%>&groupid=<%=groupid%>&page=<%=mpage%>>
</a> 
<%  
end sub%>
	</td>
  </tr>
</table>
          <table width="40%" height="45" border="0" cellpadding="0" cellspacing="0">
            <tr>
    <td><TABLE width="206">
              <TBODY>
              <FORM name=form onSubmit="return false;" method=get target=_self>
                <INPUT 
  type=hidden value=0 name=boardNo>
                <INPUT type=hidden value=傈眉焊扁 name=boardNm>
                <INPUT type=hidden name=boardSeq>
                <INPUT type=hidden value=9356721 name=fpnum>
                <INPUT type=hidden value=??? name=fpname>
                <INPUT type=hidden value=????? 
  name=fpid>
                <INPUT type=hidden name=delseq>
                <INPUT type=hidden value=4 
  name=degrees>
                <INPUT type=hidden name=mode>
                <INPUT type=hidden value=1 
  name=page>
                <INPUT type=hidden name=sortType>
                <INPUT type=hidden 
  name=searchType>
                <INPUT type=hidden name=searchStr>
                <INPUT type=hidden 
  value=10 name=listLine>
                <INPUT type=hidden value=7 name=totalRow>
                <TBODY>
                  <TR> 
                    <TD><SELECT name=selsearchType>
                        <option value="wpname">标题</option>
                        <option value="title">内容</option>
                      </SELECT> <INPUT  maxLength=35 size=15 name=searchTxt>
                        <img src="../Images/Hompy/search_b.gif" align="absmiddle"></TD>
                  </TR>
              </FORM>
            </TABLE></td>
  </tr>
</table>
        </div></TD>
    </TR>
  </TBODY>
</TABLE>
</body>
</html>
