view.html.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?php
  2. /**
  3. * The view of meeting module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2024 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
  6. * @license ZPL(http://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  7. * @author Qiyu Xie <xieqiyu@chandao.com>
  8. * @package view
  9. * @version $Id
  10. * @link https://www.zentao.net
  11. */
  12. namespace zin;
  13. /* 初始化主栏内容。Init sections in main column. */
  14. $sections = array();
  15. $sections[] = setting()
  16. ->title($lang->meeting->date)
  17. ->control('text')
  18. ->content($meeting->date . ' ' . $meeting->begin . ' - ' . $meeting->end);
  19. $sections[] = setting()
  20. ->title($lang->meeting->participant)
  21. ->control('text')
  22. ->content($meeting->participantName);
  23. $sections[] = setting()
  24. ->title($lang->meeting->minutes)
  25. ->control('html')
  26. ->content($meeting->minutes);
  27. if($meeting->files)
  28. {
  29. $sections[] = array
  30. (
  31. 'control' => 'fileList',
  32. 'files' => $meeting->files,
  33. 'object' => $meeting,
  34. 'padding' => false
  35. );
  36. }
  37. /* 初始化底部操作栏。Init bottom actions. */
  38. $operateList = $this->loadModel('common')->buildOperateMenu($meeting);
  39. $actions = array();
  40. if(!$meeting->deleted)
  41. {
  42. $actions = $operateList['mainActions'];
  43. if(!empty($operateList['suffixActions'])) $actions = array_merge($actions, array(array('type' => 'divider')), $operateList['suffixActions']);
  44. }
  45. /* 初始化侧边栏标签页。Init sidebar tabs. */
  46. $tabs = array();
  47. /* 基本信息。Legend basic items. */
  48. $tabs[] = setting()
  49. ->group('basic')
  50. ->title($lang->meeting->legendBasicInfo)
  51. ->control('meetingBasicInfo');
  52. /* 一生信息。Legend life items. */
  53. $tabs[] = setting()
  54. ->group('basic')
  55. ->title($lang->meeting->legendLifeTime)
  56. ->control('meetingLifeInfo');
  57. detail
  58. (
  59. set::urlFormatter(array('{id}' => $meeting->id, '{from}' => $from)),
  60. set::sections($sections),
  61. set::tabs($tabs),
  62. set::actions(array_values($actions))
  63. );