<?php
if(!defined('InEmpireCMS'))
{
	exit();
}
?>
<?php
$public_diyr['pagetitle']='收藏夹分类';
$url="<a href=../../../../>首页</a>&nbsp;>&nbsp;<a href=../../cp/>会员中心</a>&nbsp;>&nbsp;<a href=../../fava/>收藏夹</a>&nbsp;>&nbsp;管理分类";
require(ECMS_PATH.'e/template/incfile/header.php');
?>
<script>
function DelFavaClass(cid)
{
var ok;
ok=confirm("确认要删除?");
if(ok)
{
self.location.href='../../doaction.php?enews=DelFavaClass&cid='+cid;
}
}
</script>
<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%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
          <form name="form1" method="post" action="../../doaction.php">
            <tr class="header"> 
              <td height="25">&nbsp;&nbsp;增加收藏夹分类</td>
            </tr>
            <tr> 
              <td height="25" bgcolor="#FFFFFF">&nbsp;&nbsp;分类名称: 
                <input name="cname" type="text" id="cname"> <input type="submit" name="Submit" value="增加"> 
              <input name="enews" type="hidden" id="enews" value="AddFavaClass"></td>
            </tr>
          </form>
        </table>
        <br>
        <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
          <tr class="header"> 
            <td width="10%" height="25"> <div align="center">ID</div></td>
            <td width="56%"><div align="center">分类名称</div></td>
            <td width="34%"><div align="center">操作</div></td>
          </tr>
		<?php
		while($r=$empire->fetch($sql))
		{
		?>
          <form name=form method=post action=../../doaction.php>
            <tr bgcolor="#FFFFFF"> 
              <td height="25"> <div align="center"> 
                  <?=$r[cid]?>
                </div></td>
              <td><div align="center"> 
                  <input name="enews" type="hidden" id="enews" value="EditFavaClass">
                  <input name="cid" type="hidden" value="<?=$r[cid]?>">
                  <input name="cname" type="text" id="cname" value="<?=$r[cname]?>">
                </div></td>
              <td><div align="center"> 
                  <input type="submit" name="Submit2" value="修改">
                  &nbsp; 
                  <input type="button" name="Submit3" value="删除" onclick="javascript:DelFavaClass(<?=$r[cid]?>);">
                </div></td>
            </tr>
          </form>
		<?php
		}
		?>
        </table>
        	 </div> 	
        <div class="clear"></div>  
        </div>  
<?php
require(ECMS_PATH.'e/template/incfile/footer.php');
?>