<html xmlns="http://www.w3.org/1999/xhtml">
<head>
      <!--#include file="QvodCms_Cookies.asp" -->
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
	<title>收藏夹</title>
    <script type="text/javascript" src="/js/QvodCms.windows.js"></script>
	
<link rel="stylesheet" type="text/css" href="/css/my.css" media="screen" />
<script type="text/javascript">
function kErr(){return true;}window.onerror = kErr;
//搜索关键词提示V2
var oKeyWordTips = new Kuaibo.KeyWordTips();
$(document).ready(function(){
	setFrameHeight();
	setInterval("setFrameHeight()",200);
	//Kuaibo.view.check();

	//搜索关键词提示V2
	oKeyWordTips.Init( $(".keywords_list"), $("#iWord") );
});

//复选表单全选事件 form：表单名
function CheckAll(form){
  var tagname=(arguments.length>1)?arguments[1]:'TR';
  for (var i=0;i<form.elements.length;i++){
    var e = form.elements[i];
    if (e.name != 'chkAll' && e.disabled == false && e.type == 'checkbox') {
      e.checked = form.chkAll.checked;
      if (e.checked){hL(e,tagname)};else{dL(e,tagname)};
    }
  }
}

function hL(E,tagname){
  while (E.tagName!=tagname) {E=E.parentElement;}
  E.className='tdbg2';
}
function dL(E,tagname){
  while (E.tagName!=tagname) {E=E.parentElement;}
  E.className='tdbg';
}
function favdel(id)
{
  if(confirm('删除后将不能恢复,确定要删除吗?'))
  {   
   window.location.href='QvodCms_myFav_save.asp?action=del&id='+id;
  }   
}
function exit()
{
  if(confirm('您确定要退出?'))
  {   
   window.location.href='login.asp?action=exit';
  }   
}
function html(id)
{
 window.location.href='../DetailsCs.asp?name_id='+id
}
</script>
<body>
<!---头文件开始--->


<div class="head">	
	<div class="mod_cont">
					
		<div class="mod_nav">
			<a href="#" onClick=" window.history.back()"  class="return _hotkey" _hot="sitemap.backward" id="btn_return" title="回退"><strong>回退</strong></a>
			<a href="#" onClick=" window.history.forward()" class="go _hotkey" id="btn_go" _hot="sitemap.forward" title="前进"><strong>前进</strong></a>
			<a href="#" onClick="sreload()" class="refresh _hotkey" _hot="sitemap.refresh" id="btn_refresh" title="刷新"><strong>刷新</strong></a>
			 <a href="#" onClick="LinkUrl('/indexcs.html')" class="_hotkey" _hot="sitemap.index"><strong>首页</strong></a>
			<a href="#" onClick="LinkUrl('/listbytypecs.asp?type_id=1')" class="_hotkey"><strong>综艺片</strong></a>
			<a href="#" onClick="LinkUrl('/listbytypecs.asp?type_id=2')" class="_hotkey"><strong>动画片</strong></a>
			<a href="#" onClick="LinkUrl('/listbytypecs.asp?type_id=20')" class="_hotkey"><strong>电影</strong></a>
			<a href="#" onClick="LinkUrl('/listbytypecs.asp?type_id=21')" class="_hotkey"><strong>电视剧</strong></a>
			<a href="#" onClick="LinkUrl('/listbytypecs.asp?type_id=11')" class="_hotkey"><strong>演唱会</strong></a>
			<a href="#" onClick="LinkUrl('tv.html')" class="_hotkey"><strong>电视台</strong></a>
		</div>
		
		<fieldset class="mod_search">
			<form method="get" id="search" name="form1"  action="../searchcs.asp">
	  			<legend><span>搜索</span></legend>
	 			<p>
					<label for="Search">搜索：</label>   
					<input id="iWord" name="keyword" type="text" value="请输入查询关键字！" maxLength="40" class="mod_search_txt" onFocus="this.value='';this.focus()" value="请输入查询关键字！"/>
                    <input type="submit" class="mod_search_bt" onClick="return CheckForm();" value="搜索" />
				</p>
				
			</form>
		</fieldset>
		
		<div class="mod_user">
			<p>
            <a href="#" onClick="LinkUrl('../LookHistory.html')" class="_hotkey" _hot="sitemap.history">历史观看</a>
            <a href="#" class="_hotkey" onClick="LinkUrl('../Windows/QvodCms_MyFav.asp')" _hot="sitemap.save">我的收藏</a>
            </p>
			
		</div>
		
	</div>	
</div>

<!---头文件结束--->	
<div id="MyPopTip"></div>

<div>				
	<div class="wrap">	
		<div class="main">	

			<div class="container">	

				<div class="mod_user_info">
								
				</div>
				
				<div class="mod_tab">
					<ul>
						<li style="height:36px;"><a href="##" onClick="LinkUrl('../LookHistory.html')">历史观看</a></li>
						<li class="current"><a href="##" onClick="LinkUrl('../Windows/QvodCms_MyFav.asp')">我的收藏</a></li>
                        <li style="height:36px;"><a href="##" onClick="exit();">退出登陆</a></li>
						
					</ul>
				</div>
				
				<div id="mydata" class="mod_history">

						<div class="mod_null">
                      <table width="99%" style="font-size:12px;" border="0" cellspacing="0" cellpadding="0">
            	<form name='myform' method='Post' action=''>
  <tr style="background:#333333;">
    <td height="25">&nbsp;&nbsp;&nbsp;影片名称</td>
    <td align="center">状态</td>
    <td align="center">收藏人气</td>
    <td align="">&nbsp;管理</td>
  </tr>
   <%
Call OpenConn()   
action=Trim(Request.QueryString("action"))
page=QvodCms_Clng(Request.QueryString("page")):If page<=0 or page="" Then page=1'初始化分页参数
pagelink="?"'分页路径    
   
   
   
   
   
   
			Set rs = Server.CreateObject("adodb.recordset")
            sql = "select ufav from qvodcms_user where uid="&uid&""
            rs.Open sql, Conn, 1, 1
			if Cint(len(rs("ufav")))>1 then
                ufavlist=rs("ufav")
                else
				Response.Write "<tr><td height=""25"" align=""center"" colspan=""4"">暂无收藏记录！</td></tr>"
                ufavlist="|123456790"
            End if
             temp=split(ufavlist,"|")
			  for j = 1 to ubound(temp)
			  did=did&","&temp(j)
			  next
		
			   didd=Replace(did,",123456790","123456790")
			    'Response.Write didd
			  'Response.End()
			   Set rss = Server.CreateObject("adodb.recordset")
			   sqll = "select data_name,name_id,class_id,data_reurl,data_fav from qvodcms_name where name_id in("&didd&")"
			   rss.Open sqll, Conn, 1, 1
			   if not(rss.eof and rss.bof) then
			   rss.pagesize=20'每页数据
	rss.AbsolutePage=page
	m=rss.recordcount     '总记录
	n=rss.PageCount       '总页数
	z=rss.pagesize        '每页数量
	i=0
	Do While Not rss.eof and i<rss.pagesize
	i=i+1
			%>
  <tr >
    <td height="22" class="mod_location">&nbsp;
      <input name='allid' type='checkbox' value='<%=rss("name_id")%>' style="border:none"> <a href="#" onClick="html(<%=rss("name_id")%>)"><%=rss("data_name")%></a></td>
    <td align="center" class="mod_location"><%=rss("data_reurl")%></td>
    <td align="center" class="mod_location"><%=rss("data_fav")%></td>
    <td class="mod_location"><a href="#" onClick="favdel(<%=rss("name_id")%>)">删除</a></td>
  </tr>
  <%
  rss.movenext:loop 
  End if
  rs.Close:rss.Close:set rs=nothing:Set rss=Nothing
  %>
  <tr>
    <td height="35" colspan="4"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30%">&nbsp;&nbsp;<input name='chkAll' type='checkbox' id='chkAll' onclick='CheckAll(this.form)' value='checkbox' style="border:none">
      全选 <input name='submit1' style="border:1px #999999 solid; background:#333; color:#fff; margin-top:0px; position:absolute" type='submit' disabled value='批量删除' onClick="document.myform.action='JaJa_myFav_save.asp?action=del';"></td>
        <td width="70%" valign="bottom" style="padding-top:8px;"><%=ShowPageCs(pagelink,m, z, page, True, True, "条", False)%></td>
      </tr>
    </table></td>
  </tr>
  </form>
</table>
										
</div>						
</div>	</div>	
			<div class="sidebar">
				<div class="mod_guess_video_list">
					<div id="myGuess"></div>
					<ul style="padding:5px;">
						  160*600广告位
					</ul>
				</div>
			</div>
		
		</div>
	</div>
</div>

</body>
</html>
<!-- pageend bigportal index.html  -->

