国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

37 líneas
1.1KB

  1. <?php
  2. /**
  3. * @version $Id: story_edit.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_Edit');
  11. if(!isset($action)) $action = '';
  12. //读取所有栏目
  13. $dsql->SetQuery("SELECT id,classname,pid,rank FROM #@__story_catalog ORDER BY rank ASC");
  14. $dsql->Execute();
  15. $ranks = Array();
  16. $btypes = Array();
  17. $stypes = Array();
  18. while($row = $dsql->GetArray())
  19. {
  20. if($row['pid']==0)
  21. {
  22. $btypes[$row['id']] = $row['classname'];
  23. }
  24. else
  25. {
  26. $stypes[$row['pid']][$row['id']] = $row['classname'];
  27. }
  28. $ranks[$row['id']] = $row['rank'];
  29. }
  30. $lastid = $row['id'];
  31. $msg = '';
  32. $books = $dsql->GetOne("SELECT S.*,A.membername FROM #@__arcrank AS A LEFT JOIN #@__story_books AS S ON A.rank=S.arcrank WHERE S.bid='$bookid' ");
  33. require_once(DEDEADMIN. '/templets/story_edit.htm');
  34. ?>