国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.2KB

  1. <?php
  2. /**
  3. * @version $Id: story_add.php 1 9:02 2010年9月25日Z 蓝色随想 $
  4. * @package DedeCMS.Module.Book
  5. * @copyright Copyright (c) 2007 - 2020, DesDev, Inc.
  6. * @license http://help.dedecms.com/usersguide/license.html
  7. * @link http://www.dedecms.com
  8. */
  9. require_once(dirname(__FILE__). "/config.php");
  10. CheckPurview('story_Catalog');
  11. if(!isset($action)) $action = '';
  12. $keywords = $writer = '';
  13. //读取所有栏目
  14. $dsql->SetQuery("SELECT id,classname,pid,rank,booktype FROM #@__story_catalog ORDER BY rank ASC");
  15. $dsql->Execute();
  16. $ranks = Array();
  17. $btypes = Array();
  18. $stypes = Array();
  19. $booktypes = Array();
  20. while($row = $dsql->GetArray())
  21. {
  22. if($row['pid']==0)
  23. {
  24. $btypes[$row['id']] = $row['classname'];
  25. }
  26. else
  27. {
  28. $stypes[$row['pid']][$row['id']] = $row['classname'];
  29. }
  30. $ranks[$row['id']] = $row['rank'];
  31. if($row['booktype']=='0')
  32. {
  33. $booktypes[$row['id']] = '小说';
  34. }
  35. else
  36. {
  37. $booktypes[$row['id']] = '漫画';
  38. }
  39. }
  40. $lastid = $row['id'];
  41. $msg = '';
  42. require_once(dirname(__FILE__). "/templets/story_add.htm");