PageRenderTime 39ms CodeModel.GetById 46ms RepoModel.GetById 8ms app.codeStats 0ms

/cmsdemo/Admin/News/ClassInfo.php

http://cmsdemo1.googlecode.com/
PHP | 99 lines | 92 code | 2 blank | 5 comment | 1 complexity | e9443095025003e36a9f510199067015 MD5 | raw file
Possible License(s): LGPL-2.1
  1. <?php
  2. ob_start();
  3. session_start();
  4. /**
  5. * 包含用户配置文件、页眉页脚文件、数据库类文件、菜单类文件
  6. * 调用父类News的getInfo()方法实现菜单信息数据的提取
  7. * 由菜单列表文件连接过来传递菜单ID
  8. */
  9. require_once "../header_footer.php";
  10. require_once '../../config.inc.php';
  11. require_once '../../Include/db.inc.php';
  12. require_once '../../Include/News.inc.php';
  13. html_header("菜单信息");
  14. $news = new News();
  15. $Id=$_GET['Id'];
  16. $MenuId=$_GET['MenuId'];
  17. $info = $news->getInfo($_GET['Id'],'em_class_info');
  18. @extract($info);
  19. $count=$news->GetClassCount($_GET['Id']); //获取当前菜单的条数
  20. $news_count = $news->GetNewsCount($_GET['Id']); //获取文章的条数
  21. $subclass_count = $news->GetSubClassCount($_GET['Id']); //获取当前菜单的子菜单数目
  22. $parentid = $news->GetFatherClass($info['F_PARENT_ID']); //获取当前菜单的父菜单ID
  23. if(isset($_SESSION['F_ID'])){ //判断是否已登录
  24. ?>
  25. <html>
  26. <head>
  27. <meta http-equiv="Content-Type" content="text/html; charset=utf8" />
  28. </head>
  29. <body>
  30. <table width="80%" border="0" align="center">
  31. <tr>
  32. <th height="23" align="center" >基本信息</th>
  33. </tr>
  34. <tr>
  35. <td bgcolor="#cccccc">
  36. <table width="100%" border="0" cellspacing="1" cellpadding="0">
  37. <tr bgcolor="#ffffff">
  38. <td height="22" align="center">菜单名称</td>
  39. <td height="22" align="left">&nbsp;&nbsp;<?php echo $info['F_CLASS_NAME']?></td>
  40. <td height="22" align="center">父菜单</td>
  41. <td height="22" align="left">&nbsp;&nbsp;<?php echo $parentid['F_CLASS_NAME']?></td>
  42. </tr>
  43. <tr bgcolor="#ffffff">
  44. <td width="15%" height="22" align="center">子菜单数量</td>
  45. <td width="35%" height="22" align="left">&nbsp;&nbsp;<?php echo $subclass_count['F_PARENT_ID']?></td>
  46. <td width="15%" height="22" align="center">备注</td>
  47. <td width="35%" height="22" align="left">&nbsp;&nbsp;<?php echo $info['F_CLASS_NOTE']?></td>
  48. </tr>
  49. <tr bgcolor="#ffffff">
  50. <td width="15%" height="22" align="center">菜单目录</td>
  51. <td width="35%" height="22" align="left">&nbsp;&nbsp;<?php echo $info['F_CLASS_URL_NAME']?></td>
  52. <td width="15%" height="22" align="center">页面模板</td>
  53. <td width="35%" height="22" align="left">&nbsp;&nbsp;<?php echo $info['F_CLASS_NEWS_TEMPLATE']?></td>
  54. </tr>
  55. <tr bgcolor="#ffffff">
  56. <td width="15%" height="22" align="center">每页文章数目</td>
  57. <td width="35%" height="22" align="left">&nbsp;&nbsp;<?php echo $info['F_CLASS_NEWS_COUNT']?></td>
  58. <td width="15%" height="22" align="center">每页文章列数</td>
  59. <td width="35%" height="22" align="left">&nbsp;&nbsp;<?php echo $info['F_CLASS_NEWS_ROW']?></td>
  60. </tr>
  61. </table>
  62. </td>
  63. </tr>
  64. </table>
  65. <table width="80%" border="0" align="center">
  66. <tr>
  67. <th height="23" align="center" >菜单操作</th>
  68. </tr>
  69. </table>
  70. <table width="80%" border="0" align="center">
  71. <tr>
  72. <td width="20%" align="center"><img src="../Img/menu_edit.png" alt="修改菜单信息" class="img" />
  73. <a href='EditClass.php?Id=<?php echo $Id ?>&MenuId=<?php echo $MenuId?>'>修改菜单信息</a>
  74. </td>
  75. <td width="20%" align="center"><img src="../Img/menu_delete.png" alt="删除菜单" class="img" />
  76. <a href='DeleteClass.php?Id=<?php echo $Id ?>&MenuId=<?php echo $MenuId?>'
  77. onclick="return confirm('真的要删除该菜单吗?')">删除菜单</a>
  78. </td>
  79. <td width="20%" align="center"><img src="../Img/menu_add1.png" alt="添加子菜单" class="img" />
  80. <a href='AddSubClass.php?Id=<?php echo $Id ?>&MenuId=<?php echo $MenuId?>'>添加子菜单</a>
  81. </td>
  82. <td width="20%" align="center"><img src="../Img/news.png" alt="文章列表" class="img" />
  83. <a href='NewsList.php?Id=<?php echo $Id ?>&MenuId=<?php echo $MenuId?>'>文章列表</a>
  84. </td>
  85. <td width="20%" align="center"><img src="../Img/html.png" alt="生成页面" class="img" />
  86. <a href='GenPage.php?Id=<?php echo $Id ?>&MenuId=<?php echo $MenuId?>'>生成页面</a>
  87. </td>
  88. </tr>
  89. </table>
  90. </body>
  91. <?php
  92. }
  93. else{
  94. header("location:../login.php");
  95. }
  96. html_footer();
  97. ?>