view.html.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /**
  3. * The view view file of caselib module of ZenTaoPMS.
  4. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
  5. * @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  6. * @author Mengyi Liu <liumengyi@easycorp.ltd>
  7. * @package caselib
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. $isInModal = isAjaxRequest('modal');
  12. data('caselib', $lib);
  13. detailHeader
  14. (
  15. $isInModal ? to::prefix('') : '',
  16. to::title(entityLabel(set(array('entityID' => $lib->id, 'level' => 1, 'text' => $lib->name))))
  17. );
  18. $commonActions = $this->loadModel('common')->buildOperateMenu($lib);
  19. detailBody
  20. (
  21. sectionList(section
  22. (
  23. set::title($lang->caselib->legendDesc),
  24. set::content($lib->desc),
  25. set::useHtml(true)
  26. )),
  27. history(set::objectID($lib->id)),
  28. floatToolbar
  29. (
  30. !$isInModal ? set::prefix
  31. (
  32. array(array('icon' => 'back', 'text' => $lang->goback, 'url' => 'javascript:goBack("execution-task", "execution-task")'))
  33. ) : '',
  34. set::suffix($commonActions['mainActions']),
  35. set::object($lib)
  36. )
  37. );
  38. render();