/cmsdemo/Admin/News/ClassInfo.php
PHP | 99 lines | 92 code | 2 blank | 5 comment | 1 complexity | e9443095025003e36a9f510199067015 MD5 | raw file
Possible License(s): LGPL-2.1
- <?php
- ob_start();
- session_start();
- /**
- * 包含用户配置文件、页眉页脚文件、数据库类文件、菜单类文件
- * 调用父类News的getInfo()方法实现菜单信息数据的提取
- * 由菜单列表文件连接过来传递菜单ID
- */
- require_once "../header_footer.php";
- require_once '../../config.inc.php';
- require_once '../../Include/db.inc.php';
- require_once '../../Include/News.inc.php';
- html_header("菜单信息");
- $news = new News();
- $Id=$_GET['Id'];
- $MenuId=$_GET['MenuId'];
- $info = $news->getInfo($_GET['Id'],'em_class_info');
- @extract($info);
- $count=$news->GetClassCount($_GET['Id']); //获取当前菜单的条数
- $news_count = $news->GetNewsCount($_GET['Id']); //获取文章的条数
- $subclass_count = $news->GetSubClassCount($_GET['Id']); //获取当前菜单的子菜单数目
- $parentid = $news->GetFatherClass($info['F_PARENT_ID']); //获取当前菜单的父菜单ID
- if(isset($_SESSION['F_ID'])){ //判断是否已登录
- ?>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf8" />
- </head>
- <body>
- <table width="80%" border="0" align="center">
- <tr>
- <th height="23" align="center" >基本信息</th>
- </tr>
- <tr>
- <td bgcolor="#cccccc">
- <table width="100%" border="0" cellspacing="1" cellpadding="0">
- <tr bgcolor="#ffffff">
- <td height="22" align="center">菜单名称</td>
- <td height="22" align="left"> <?php echo $info['F_CLASS_NAME']?></td>
- <td height="22" align="center">父菜单</td>
- <td height="22" align="left"> <?php echo $parentid['F_CLASS_NAME']?></td>
- </tr>
- <tr bgcolor="#ffffff">
- <td width="15%" height="22" align="center">子菜单数量</td>
- <td width="35%" height="22" align="left"> <?php echo $subclass_count['F_PARENT_ID']?></td>
- <td width="15%" height="22" align="center">备注</td>
- <td width="35%" height="22" align="left"> <?php echo $info['F_CLASS_NOTE']?></td>
- </tr>
- <tr bgcolor="#ffffff">
- <td width="15%" height="22" align="center">菜单目录</td>
- <td width="35%" height="22" align="left"> <?php echo $info['F_CLASS_URL_NAME']?></td>
- <td width="15%" height="22" align="center">页面模板</td>
- <td width="35%" height="22" align="left"> <?php echo $info['F_CLASS_NEWS_TEMPLATE']?></td>
- </tr>
- <tr bgcolor="#ffffff">
- <td width="15%" height="22" align="center">每页文章数目</td>
- <td width="35%" height="22" align="left"> <?php echo $info['F_CLASS_NEWS_COUNT']?></td>
- <td width="15%" height="22" align="center">每页文章列数</td>
- <td width="35%" height="22" align="left"> <?php echo $info['F_CLASS_NEWS_ROW']?></td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <table width="80%" border="0" align="center">
- <tr>
- <th height="23" align="center" >菜单操作</th>
- </tr>
- </table>
- <table width="80%" border="0" align="center">
- <tr>
- <td width="20%" align="center"><img src="../Img/menu_edit.png" alt="修改菜单信息" class="img" />
- <a href='EditClass.php?Id=<?php echo $Id ?>&MenuId=<?php echo $MenuId?>'>修改菜单信息</a>
- </td>
- <td width="20%" align="center"><img src="../Img/menu_delete.png" alt="删除菜单" class="img" />
- <a href='DeleteClass.php?Id=<?php echo $Id ?>&MenuId=<?php echo $MenuId?>'
- onclick="return confirm('真的要删除该菜单吗?')">删除菜单</a>
- </td>
- <td width="20%" align="center"><img src="../Img/menu_add1.png" alt="添加子菜单" class="img" />
- <a href='AddSubClass.php?Id=<?php echo $Id ?>&MenuId=<?php echo $MenuId?>'>添加子菜单</a>
- </td>
- <td width="20%" align="center"><img src="../Img/news.png" alt="文章列表" class="img" />
- <a href='NewsList.php?Id=<?php echo $Id ?>&MenuId=<?php echo $MenuId?>'>文章列表</a>
- </td>
- <td width="20%" align="center"><img src="../Img/html.png" alt="生成页面" class="img" />
- <a href='GenPage.php?Id=<?php echo $Id ?>&MenuId=<?php echo $MenuId?>'>生成页面</a>
- </td>
- </tr>
- </table>
-
- </body>
- <?php
-
- }
- else{
- header("location:../login.php");
- }
- html_footer();
- ?>