<?php
if(!defined('InEmpireCMS'))
{
	exit();
}
?>
<?php
$public_diyr['pagetitle']='收藏夹';
$url="<a href=../../../>首页</a>&nbsp;>&nbsp;<a href=../cp/>会员中心</a>&nbsp;>&nbsp;收藏夹";
require(ECMS_PATH.'e/template/incfile/header.php');
?>
<div id="currentPage" pagevalue="1"></div>
<div class="bgBox">
   		<div class="zhLeft">
        	<h3 class="leftTitle zh">账号信息</h3>
            <ul>
            	<li><a onfocus="this.blur();"  href="<?=$public_r['newsurl']?>e/member/EditInfo/"><span style="background-position:-24px 0;" class="zhIco_01"></span>个人中心</a></li>
                <li><a onfocus="this.blur();"  href="<?=$public_r['newsurl']?>e/member/EditInfo/EditSafeInfo.php"><span style="background-position:-96px 0;" class="zhIco_01"></span>修改密码</a></li>
                <li><a onfocus="this.blur();"  href="<?=$public_r['newsurl']?>e/member/my/"><span style="background-position:-312px 0;" class="zhIco_01"></span>账号状态</a></li>
                <li class="select"><a onfocus="this.blur();"  href="<?=$public_r['newsurl']?>e/member/fava/"><span style="background-position:-264px 0;" class="zhIco_01"></span>收藏夹</a></li>
                <li><a onfocus="this.blur();"  href="<?=$public_r['newsurl']?>e/member/friend/"><span style="background-position:-384px 0;" class="zhIco_01"></span>好友列表</a></li>
                <li><a onfocus="this.blur();"  href="<?=$public_r['newsurl']?>e/memberconnect/ListBind.php"><span style="background-position:-144px 0;" class="zhIco_01"></span>绑定外部登录</a></li>
            </ul>
            <!--<h3 class="leftTitle kj">空间设置</h3>
             <ul>
            	<li><a onfocus="this.blur();"  href="<?=$public_r['newsurl']?>e/member/mspace/SetSpace.php"><span style="background-position:-120px 0;" class="zhIco_02"></span>设置空间</a></li>
                <li><a onfocus="this.blur();"  href="<?=$public_r['newsurl']?>e/member/mspace/ChangeStyle.php"><span style="background-position:-24px 0;" class="zhIco_02"></span>选择模板</a></li>
                <li><a onfocus="this.blur();"  href="<?=$public_r['newsurl']?>e/member/mspace/gbook.php"><span style="background-position:-48px 0;" class="zhIco_01"></span>管理留言</a></li>
                <li><a onfocus="this.blur();"  href="<?=$public_r['newsurl']?>e/member/mspace/feedback.php"><span style="background-position:-144px 0;" class="zhIco_02"></span>管理反馈</a></li>
            </ul>-->
        </div>	
        <div class="zhRight">
       		<div class="bigTitle"><span style=" background-position:-520px 0;"></span>收藏夹</div>
                <div class="Bborder"></div>
      <table width="100%" style="border:#d1d1d1 solid 1px;" align="center" cellpadding="3" cellspacing="1" class="tableborder">
          <form name="form1" method="post" action="">
            <tr> 
              <td width="50%" height="30" bgcolor="#f2f2f2">&nbsp;&nbsp; 选择分类: 
                <select name="cid" id="select" onchange=window.location='../fava/?cid='+this.options[this.selectedIndex].value>
                  <option value="0">显示全部</option>
                  <?=$select?>
                </select></td>
              <td width="50%" bgcolor="#f2f2f2"><div align="right">[<a href="FavaClass/">管理分类</a>]&nbsp;&nbsp;</div></td>
            </tr>
          </form>
</table>
        <table width="100%" border="0" cellpadding="3" cellspacing="1" class="tableborder">
          <form name=favaform method=post action="../doaction.php" onsubmit="return confirm('确认要操作?');">
            <input type=hidden value=DelFava_All name=enews>
            <tr class="header"> 
              <td width="4%" height="25"><div align="center"></div></td>
              <td width="57%"><div align="center">标题</div></td>
              <td width="12%"><div align="center">点击</div></td>
              <td width="20%"><div align="center">收藏时间</div></td>
              <td width="7%"><div align="center">选择</div></td>
            </tr>
            <?php
			while($fr=$empire->fetch($sql))
			{
				if(empty($class_r[$fr[classid]][tbname]))
				{continue;}
				$r=$empire->fetch1("select title,isurl,titleurl,onclick,classid,id from {$dbtbpre}ecms_".$class_r[$fr[classid]][tbname]." where id='$fr[id]' limit 1");
				//标题链接
				$titlelink=sys_ReturnBqTitleLink($r);
				if(!$r['id'])
				{
					$r['title']="此信息已删除";
					$titlelink="#EmpireCMS";
				}
			?>
            <tr bgcolor="#FFFFFF"> 
              <td height="25"> <div align="center"><img src="../../data/images/dir.gif" border=0></div></td>
              <td> <div align="left"><a href="<?=$titlelink?>" target=_blank> 
                  <?=stripSlashes($r[title])?>
                  </a></div></td>
              <td> <div align="center"> 
                  <?=$r[onclick]?>
                </div></td>
              <td> <div align="center"> 
                  <?=$fr[favatime]?>
                </div></td>
              <td> <div align="center"> 
                  <input name="favaid[]" type="checkbox" id="favaid[]2" value="<?=$fr[favaid]?>">
                </div></td>
            </tr>
            <?php
			}
			?>
            <tr bgcolor="#FFFFFF"> 
              <td height="25" colspan="5"> &nbsp;&nbsp;&nbsp; 
                <?=$returnpage?>
                &nbsp;&nbsp; <select name="cid">
                  <option value="0">请选择要转移的目标分类</option>
                  <?=$select?>
                </select> <input type="submit" name="Submit" value="转移选中" onclick="document.favaform.enews.value='MoveFava_All'"> 
              &nbsp;&nbsp; <input type="submit" name="Submit" value="删除选中" onclick="document.favaform.enews.value='DelFava_All'"></td>
            </tr>
          </form>
        </table>
	 </div> 	
        <div class="clear"></div>  
        </div>       
<?php
require(ECMS_PATH.'e/template/incfile/footer.php');
?>