<!--#include file="../p_inc/Include_func.asp"-->
<!--#include file="../p_inc/openconn.asp"-->
<!--#include file="../members/config.asp"-->
<!--#include file="../members/function_u.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>用户中心-网址收藏夹</title>
<link href="css/user.css" rel="stylesheet" type="text/css" />
<link href="css/scj.css" rel="stylesheet" type="text/css" />
</head>
<script>
function copytext(meintext){
    copy_clip(meintext);
}

function copy_clip(copy){
	if (window.clipboardData){
		window.clipboardData.setData("Text", copy);
		alert("已复制 "+copy);
	}else if (window.netscape){
		netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
		var clip = Components.classes['@mozilla.org/widget/clipboard;1'].createInstance(Components.interfaces.nsIClipboard);
		if (!clip) return;
		var trans = Components.classes['@mozilla.org/widget/transferable;1'].createInstance(Components.interfaces.nsITransferable);
		if (!trans) return;
		trans.addDataFlavor('text/unicode');
		var str = new Object();
		var len = new Object();
		var str = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);
		var copytext=copy;
		str.data=copytext;
		trans.setTransferData("text/unicode",str,copytext.length*2);
		var clipid=Components.interfaces.nsIClipboard;
		if (!clip) return false;
		clip.setData(trans,null,clipid.kGlobalClipboard);
		alert("已复制 "+copy);
	} else {
		alert("浏览器不支持复制,请手动 CTRL+C 复制");	
	}
	
	return false;
}
</script>

<script src="../p_inc/public.js"></script>

<body>
  <div class="main">
	<div class="module_1 mod_height2">
		<input type="hidden" id="total_sort" value="">
		<input type="hidden" id="total_mm" value="">
		<div class="set-cnt">   
			  <h2 class="scjnav"><span class="h2l"></span><span class="h2bg"><b>网址收藏夹</b>自行上传，收藏随身行</span><span class="h2r"></span> </h2>
			 <!-- 网址收藏夹  -->
			 <div class="favs">
			 <ul class="favtab"> 
			 <li id="tab_li_1" class="f_acti"><a href="javascript:myfav.switchTab(1);">我的收藏</a></li>
			 <li id="tab_li_2"><a href="javascript:myfav.switchTab(2);">导入和导出</a></li>
			 <li id="tab_li_3"><a href="javascript:myfav.switchTab(3);">一键收藏</a></li> 
			 <li class="fav-sch"><input class="fav-s-btn" name="vKey" type="button" id="search_button" value="搜索" onclick="myfav.search(this);" /> <input class="fav-s-ipt" name="" onfocus="if(this.value == '请输入标题') this.value =''" onblur="if(this.value == '') this.value ='请输入标题'" onkeyup="myfav.searchEnter(event);" type="text" value="请输入标题" id="search_keyword" /></li></ul>
			 
			 <div class="favs-bd" id="tab1">
					<div class="favs-bd-lf"><h3><a onclick="myfav.showAddSort()">新建分类</a>收藏分类</h3>
					 <ul><li id="sortList">
					 </li></ul>
					</div>
				   <form id="mmForm" name="mmForm" action="action.asp" method="post" target="ajax_fav">
				   <div class="favs-bd-rt">
					 <h3><label><input class="fav-chk" id="favSelectAll" name="" type="checkbox" onclick="myfav.favSelectAll('mmForm');" /><span>全选</span></label>  <input class="favs-del" name="" type="button" value="删除" onclick="myfav.deleteAll();" />   <select name="" id="favMoveSelect" onchange="myfav.moveFav(this);"><option>移动到</option></select> <input class="favs-add" name="" type="button" value="新增网址"  onclick="myfav.showAddFav()" /></h3>
					 <ul id="fav_list">
<li><a href="http://www.xunbo.cc" target="_blank">共享网址1（讯播电影）</a></li>
<li><a href="http://www.yxytv.com" target="_blank">共享网址2（异性缘电影）</a></li>
<li><a href="http://www.p8pk.com" target="_blank">共享网址3（P8电影网）</a></li>
<li><a href="http://www.xunbo.cc" target="_blank">共享网址4</a></li>
<li><a href="http://www.xunbo.cc" target="_blank">共享网址5</a></li>
<li><a href="http://www.xunbo.cc" target="_blank">共享网址6</a></li>
				 </ul>
					 
					 <div class="page2" id="thePage"></div>
				   </div>
				   <input type="hidden" name="cmd" id="all_cmd" value="cmd" />
				   <input type="hidden" name="msid" id="msid" value="id" />
				   <input type="hidden" name="action" id="msids" value="del" />
				   </form>
			 </div>
		<!--导入导出开始-->     
		<div class="favs-bd" id="tab2" style="display:none;">
			 <div class="bdcnt"> <p>导入收藏夹步骤：<br />
			   1、先将浏览器的收藏夹导出为html文件(支持IE、傲游、火狐等)。<a href="export.htm" target="_blank"><span style="color:#fd5151;"><u>如何从浏览器导出?</u></span></a><br />
				 2、单击下面的"浏览"按钮,选择导出的html文件,单击"上传"即可将网址导入。</p>
				 <form id="upload_from" action="input.asp" enctype="multipart/form-data" method="post" target="_self" >
				 <input type="hidden" name="cmd" value="input" />
				 <table style="margin:0 auto; text-align:center;"width="90%" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td align="left"><div class="file">&nbsp;&nbsp;<input class="fileipt" name="file" type="file" /><input class="filebtn2" name="" type="button" onclick="if(!ifloginf()) return false;myfav.$('upload_from').submit();myfav.$('upload_from').action='input.asp?t='+new Date();"  value="上传"/></div></td>
		  </tr>
		  <tr>
			<td height="60" align="left" style="display:none;"><input name="input" type="button"  value="" class="favsub"/></td>
		  </tr>
		</table>
		</form>
				 
				 <p>&nbsp;</p>
			 </div>
		</div>
		<!--导入导出结束--> 
		<!--一键收藏开始--> 
		<div class="favs-bd" id="tab3" style="display:none;">
			 <div class="bdcnt yjsc">
				 
				 <p><b>为IE增加右键收藏网址功能：</b><br />
				   1、首先下载鼠标右键收藏小工具，<a href="../Ztool/favorite.asp"><font color="#FF0000">点此下载</font></a><br />
				   2、双击刚才下载的文件开始安装；<br />
				   3、在弹出的第一个对话框中选择"是(Y)",在第二对话框中选择"确定"；<br />
				   4、安装完毕后,重新启动你的浏览器,然后在浏览器中点击鼠标右键,菜单中将出现"收藏至<%=G_WEBURL_2%>收藏夹"选项,表<br />示已经安装成功；<br />
		以后,在浏览任何网页时,只需单击鼠标右键,选择"收藏至<%=G_WEBURL_2%>收藏夹",即可收藏该网页。<br />
				 </p>
			 </div>
			   </div>
		<!--意见收藏结束--> 
			 </div>
			  <!-- 网址收藏夹end  --> 
		</div>
	</div>

</div>

<script src="js/my2011.js?v=1" type="text/javascript"></script>
<script src="js/fav.js?v=1" type="text/javascript"></script>




<div id="divBg" style="DISPLAY: none;opacity: 0.3; FILTER: alpha(opacity=80); LEFT: 0px; WIDTH: 450px; POSITION: absolute; TOP: 0px; HEIGHT: 300px; BACKGROUND-COLOR: #888;"><iframe style="position:absolute;z-index:-1;width:100%;height:100%;top:0;left:0;scrolling:no;" frameborder="0" src="about:blank"></iframe></div>

<!--新建分类开始-->
<div id="addNewSort" class="alarm" style=" display:none; FILTER: alpha(opacity=100); z-index:1000; left: 1px; width: 410px; position: absolute; top: 1px; " disabled="disabled">
<h2><span id="add_sort_font">新建分类</span></h2>
<div class="alarm-bd" style="text-align:left;">
<form  action="action.asp" method="post" onsubmit="return c_add_sort();" target="ajax_fav">
<input id="add_sort_cmd" type="hidden" name="cmd" value="add_sort" />
<input type="hidden" id="add_sort_id" name="id" value="id" />
  <table class="edittab" width="300" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td colspan="2">请输入分类名称：</td>
    </tr>
  <tr>
    <th>分类名称：</th>
    <td><input class="inpt6" type="text" name="vSort" id="vSort" onkeyup="myfav.checkMKNum(this,8,event);" /></td>
  </tr>
  <tr>
    <th>&nbsp;</th>
    <td><input class="butn"  style="margin-left:0;" name="Submit" type="submit" value="确定" /> <a onclick="myfav.hideDiv('addNewSort')" >取消</a></td>
  </tr>
</table>
</form>
</div>

</div>
<!--新建分类结束-->
<!--新增网址开始-->
<div id="addFav" class="alarm" style=" display:none; FILTER: alpha(opacity=100); z-index:1001; left: 1px; width: 410px; position: absolute; top: 1px; " disabled="disabled">
<h2><span id="fav_operation_title">新增网址</span></h2>
<div class="alarm-bd" style="text-align:left;">
<form action="action.asp" method="post" onsubmit="return c_add_fav();" target="ajax_fav" >
<input type="hidden" name="cmd" id="add_fav_cmd" value="add_fav" />
<input type="hidden" name="id" id="add_fav_id" value="id" />
  <table class="edittab" width="280" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td colspan="2">请输入您要收藏网址的：</td>
    </tr>
  <tr>
    <th>名称：</th>
    <td><input class="inpt6" type="text" name="vTitle" id="vTitle" maxlength="25" onkeyup="myfav.checkMKNum(this,20);"  /></td>
  </tr>
  <tr>
    <th>网址：</th>
    <td><input class="inpt6"  type="text" name="vUrl" id="vUrl" size="30" maxlength="255" onkeyup="myfav.checkMKNum(this,255);" value="http://"  /></td>
  </tr>
  <tr>
    <th>分类：</th>
    <td>
      <select class="sel6" name="vSort" id="favSort"></select>    
	</td>
  </tr>
  <tr>
    <th>&nbsp;</th>
    <td><input class="butn"  style="margin-left:0;" name="submit" type="submit" value="确定" /> <a onclick="myfav.hideDiv('addFav');">取消</a></td>
  </tr>
</table>
</form>
</div>

</div>
<!--新增网址结束-->
<div id="show_msg" class="fav_tip" style=" display:none;filter:alpha(opacity=100); z-index:999;left:50%; top:50%; margin-left:-150px!important; margin-top:-60px!important; margin-top:0px; position:fixed!important; position:absolute!important; _top:expression(eval(document.compatMode && document.compatMode=='CSS1Compat' ? documentElement.scrollTop + (document.documentElement.clientHeight-this.offsetHeight)/2 : document.body.scrollTop + (document.body.clientHeight - this.clientHeight)/2)); "><b>删除</b>操作已成功！</div>
<iframe  name="ajax_fav" id="ajax_fav" style=" display:none"></iframe>
<!--删除表单开始-->
<form  method="post" action="action.asp" name="" target="ajax_fav" id="delconfirm" >
<input id="delconfirm_cmd" type="hidden" name="cmd" value="del_fav" />
<input type="hidden" id="delconfirm_id" name="del_id" value="id" />
<input type="hidden"  name="action" value="del" />
</form>
<!--删除表单结束-->
<!--上下移动表单开始-->
<form  method="post" action="action.asp" name="" target="ajax_fav" id="favmoveupdown" >
<input id="favmoveupdown_cmd" type="hidden" name="cmd" value="change_order" />
<input type="hidden" id="favmoveupdown_id" name="id" value="" />
<input type="hidden" id="favmoveupdown_op" name="op" value="" />
<input type="hidden" id="actionup" name="action" value="up" />
</form>
<!--上下移动表单结束-->

<script>
/*懒加载*/
var DE = document.documentElement;

if(parent && parent.$) {
	parent.$(parent).unbind('scroll').bind('scroll', function(){
		lazyLoad();
	});
}
/*http://www.1616.net/jd/1/news.htm也引用了新闻页面  orz...*/
else{
	parent.onscroll = function(){
		lazyLoad();
	}
}
lazyLoad();
function lazyLoad() {
	var pd = parent.document;
	var scrollHeight = Math.max(pd.body.scrollTop, pd.documentElement.scrollTop);
	var clientHeight = pd.documentElement.clientHeight;
	for(var i = 0, img; img = document.images[i]; i++ ) {
		/*如果把img的src属性设成about:blan; 在opera下，只能通过getAttribute来访问得到src属性*/
		if(img.getAttribute('src') !== 'about:blank;') continue;
		if(getOffsetTop(img) + 40 <= clientHeight + scrollHeight) {
			img.src = img.getAttribute('psrc');
		}
	}
}
function getOffsetTop(dom) {
	if(!dom) return 0;
	return dom.offsetParent === document.body ? dom.offsetTop : dom.offsetTop + getOffsetTop(dom.offsetParent);
}
/*---------------------------------------------*/
parent.J.add(
	'favorite', 
	{
		__keepAlive : 0,
		init : function(){
			var _this = this;
			window.onload = function(){
				_this.__updateHeight();
			}
		},
		__onUnload : function(){
			parent.$(parent).unbind('scroll');
		}
	}, 
	window
);
/*------------------------user login-------------*/
var soojs_id=qTcms.Cookie.get3(qTcms.Cookie.get("<%=G_u_Cookies%>"),"soojs_id");
var soojs_u=qTcms.Cookie.get3(qTcms.Cookie.get("<%=G_u_Cookies%>"),"soojs_u");	
if(soojs_id==null){soojs_id=0;};
if(soojs_id=="")soojs_id=0;

</script>
</body>
</html>