123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <?php
- if(!defined('InEmpireCMS'))
- {
- exit();
- }
- ?>
- <?php
- $public_diyr['pagetitle']='收藏夹分类';
- $url="<a href=../../../../>首页</a> > <a href=../../cp/>会员中心</a> > <a href=../../fava/>收藏夹</a> > 管理分类";
- 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>
- <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">增加收藏夹分类</td>
- </tr>
- <tr>
- <td height="25" bgcolor="#FFFFFF">分类名称:
- <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="<?=stripSlashes($r[cname])?>">
- </div></td>
- <td><div align="center">
- <input type="submit" name="Submit2" value="修改">
-
- <input type="button" name="Submit3" value="删除" onclick="javascript:DelFavaClass(<?=$r[cid]?>);">
- </div></td>
- </tr>
- </form>
- <?php
- }
- ?>
- </table>
- <?php
- require(ECMS_PATH.'e/template/incfile/footer.php');
- ?>
|