myspace.html.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /**
  3. * The mySpace view file of doc 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 Shujie Tian<tianshujie@easycorp.ltd>
  7. * @package doc
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. include 'lefttree.html.php';
  12. if($libID && common::hasPriv('doc', 'create')) include 'createbutton.html.php';
  13. jsVar('browseType', $browseType);
  14. jsVar('docLang', $lang->doc);
  15. jsVar('confirmDelete', $lang->doc->confirmDelete);
  16. jsVar('appTab', $app->tab);
  17. /* zin: Define the set::module('doc') feature bar on main menu. */
  18. featureBar
  19. (
  20. set::current($browseType),
  21. set::linkParams("type={$type}&libID={$libID}&moduleID={$moduleID}&browseType={key}"),
  22. li(searchToggle(set::module($type . $libType . 'Doc')))
  23. );
  24. toolbar
  25. (
  26. $canExport ? item(set(array
  27. (
  28. 'icon' => 'export',
  29. 'class' => 'ghost export',
  30. 'id' => 'mine2export',
  31. 'text' => $lang->export,
  32. 'url' => createLink('doc', 'mine2export', "libID={$libID}&moduleID={$moduleID}"),
  33. 'data-size' => 'sm',
  34. 'data-toggle' => 'modal'
  35. ))) : null,
  36. common::hasPriv('doc', 'createLib') ? item(set(array
  37. (
  38. 'icon' => 'plus',
  39. 'class' => 'btn secondary',
  40. 'text' => $lang->doc->createLib,
  41. 'url' => createLink('doc', 'createLib', 'type=mine'),
  42. 'data-toggle' => 'modal',
  43. 'data-size' => '500'
  44. ))) : null,
  45. $libID && common::hasPriv('doc', 'create') ? $createButton : null
  46. );
  47. include 'mydoclist.html.php';
  48. $docContent;