<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="inc/ubbcode.asp"-->
<!--#include file="inc/function.asp"-->
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/Conn_User.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Untitled Document</title>
<link href="../css/Mpage_main.css" rel="stylesheet" type="text/css">
<link href="../css/Mpage_blog.css" rel="stylesheet" type="text/css">
<script language='javascript' src="../page_style/js/menu.js"></script>
</head>
<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("每个用户最多添加10个分类！");
	document.form1.Content.focus();
	return false;
  }
  return true; 
  }
function ConfirmDel()
{
     alert("每个用户最多添加10个分类！");
}

</SCRIPT>



<body style="margin-left:5px">
<br>
<div id="s_user_count"><strong><span id="font_2"> 　　我的视频 </span></strong> </div>
<img src="../page_style/icon/video1.gif">






<br>
<div style="margin:10px 0 10px 5px;border-top:1px dotted #ccc;width:93%;background:#F6F6F6;border-bottom:1px dotted #ccc;"></div>




	<div id="pro_ico0" style="margin-left:-3">
		<div id="pro_ico1" ><img  src="../page_style/icon/ico_1.gif"></div>
		<div id="pro_ico2" style="margin-left:-7">我的视频</div>
	</div>



 <%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
usernamed=rs("username")

rs.close
set rs=nothing
%>
        <%
set rsp=server.createobject("adodb.recordset")
rsp.open "select * from flvClass where username='"&usernamed&"' order by classID desc",conn,1,1
%>
        <%if rsp.recordcount=0 then%>








<%else%>
      <%
dim i
i=rsp.recordcount
do while not rsp.eof 
%>
<%
if request("action")<>"" and request("action")="modify" then
%>

<div id="pro_ico" style="margin:0 0 0 10px;background:#fff;border:0">

	     <form action="classmodifysave.asp" method="post" name="form" id="form" >  

     <input name="classname" type="text" size="12" maxlength="20" value="<%=rsp("classname")%>" class="save" />
              <input name="classid" type="hidden" size="12" maxlength="30" value="<%=rsp("classid")%>" />
            <input name="userid" type="hidden" size="12" maxlength="30" value="<%=userid%>" />
            
            <input type="image" name="imageField" src="user/ps_0816_save.gif" /> 

<%else%>






	<div id="pro_ico0">






		<div id="pro_ico0">
		<div id="pro_ico1"><img src="../page_style/icon/dtox2.gif"><img id="xsrc2" src="../page_style/icon/ico_fo_1a.gif"></div>
		<div id="pro_ico2"><a href="flv.asp?userid=<%=userid %>&classid=<%=rsp("classid")%>" target=content><%=rsp("classname")%> </a></div>


	      
<%end if%>      
	  <%rsp.movenext
loop%>
      <%end if%>
      <%rsp.close
set rsp=nothing
%>



	<div id="pro_ico0">
		<div id="pro_ico1"><img src="../page_style/icon/dtox2.gif"><img id="xsrc3" src="../page_style/icon/ico_fo_1a.gif"></div>
		<div id="pro_ico2"><a   id="xhre2" href="flvu.asp?userid=<%=userid %>" target=content><strong><span id="font_2">录制的视频</a></span></strong></div>

	<div id="pro_ico0">
		<div id="pro_ico1"><img src="../page_style/icon/dtox2.gif"><img id="xsrc3" src="../page_style/icon/ico_fo_1a.gif"></div>
		<div id="pro_ico2"><a   id="xhre2" href="flvu.asp?userid=<%=userid %>" target=content><strong><span id="font_2">上传的视频</a></span></strong></div>


	<div id="pro_ico0">
		<div id="pro_ico1"><img src="../page_style/icon/dtox2.gif"><img id="xsrc3" src="../page_style/icon/ico_fo_1a.gif"></div>
		<div id="pro_ico2"><a href="flvu.asp?userid=<%=userid %>" target=content>列表显示</a>&nbsp;</td><td width="14"><img src="user/lf_right.gif" width="7" height="5" /></td>
</div>



<%
if request("action")<>"" and request("action")="add" then
%>

</div>


















<table width="149" height="25" border="0" align="center" cellpadding="0" cellspacing="0"  class="hero2">
  <tr>
    <td height="28" align="center" bgcolor="#f9f9f9" class="hero"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <form action="userclasssave.asp" method="post" name="form" id="form" >
        <tr>
          <td width="25" align="center"><img src="user/ico_folders_orange.gif" width="13" height="11" /></td>
          <td align="left"><input name="classname" type="text" size="12" maxlength="30" class="save" />
              <input name="userid" type="hidden" size="12" maxlength="30" value="<%=userid%>" /><input type="image" name="imageField2" src="user/ps_0816_save.gif" /></td>
        </tr>
      </form>
    </table></td>
  </tr>
</table>
<%else
end if%>
<table width='100%' border='0' cellspacing='0' cellpadding='0'>
 




 <tr>

















  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="30"><table border="0" align="right" cellpadding="0" cellspacing="0">
      <tr>


      </tr>
    </table></td>
  </tr>
</table></td>
  </tr>

</table>
<%
	  userid=request("userid")
	
	  if CheckUserLogined()=true then
	  UserNamed=Request.Cookies("asp163")("UserName")
	 
	 set userq=server.createobject("adodb.recordset")
sql="select * from [user] where UserName='"&UserNamed&"' order by userid desc"
userq.open sql,Conn_User,1,1

	  
	  userw=userq("userid")
	 
	  If cint(userw)=cint(userid) then
	  
	  %>




</div>
	</div>

</div>















<%else%>


	  <%end if%>
<%
	  else
	  end if
	  %>

</body>
</html>
