zentaomax.php 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531
  1. <?php
  2. global $lang,$config, $app;
  3. $app->loadLang('issue');
  4. $app->loadLang('risk');
  5. $app->loadLang('reviewissue');
  6. $app->loadLang('auditplan');
  7. $app->loadLang('meeting');
  8. $app->loadLang('nc');
  9. $app->loadLang('review');
  10. $app->loadLang('cm');
  11. $app->loadLang('baseline');
  12. $app->loadConfig('review');
  13. $app->loadConfig('reviewissue');
  14. $app->loadConfig('meeting');
  15. $isEn = $app->getClientLang() == 'en';
  16. $config->my->issue = new stdclass();
  17. $config->my->issue->actionList = array();
  18. $config->my->issue->actionList['confirm']['icon'] = 'ok';
  19. $config->my->issue->actionList['confirm']['text'] = $lang->issue->confirm;
  20. $config->my->issue->actionList['confirm']['hint'] = $lang->issue->confirm;
  21. $config->my->issue->actionList['confirm']['url'] = array('module' => 'issue', 'method' => 'confirm', 'params' => 'issueID={id}');
  22. $config->my->issue->actionList['confirm']['data-toggle'] = 'modal';
  23. $config->my->issue->actionList['confirm']['data-size'] = 'lg';
  24. $config->my->issue->actionList['resolve']['icon'] = 'checked';
  25. $config->my->issue->actionList['resolve']['text'] = $lang->issue->resolve;
  26. $config->my->issue->actionList['resolve']['hint'] = $lang->issue->resolve;
  27. $config->my->issue->actionList['resolve']['url'] = array('module' => 'issue', 'method' => 'resolve', 'params' => 'issueID={id}');
  28. $config->my->issue->actionList['resolve']['data-toggle'] = 'modal';
  29. $config->my->issue->actionList['resolve']['data-size'] = 'lg';
  30. $config->my->issue->actionList['close']['icon'] = 'off';
  31. $config->my->issue->actionList['close']['text'] = $lang->issue->close;
  32. $config->my->issue->actionList['close']['hint'] = $lang->issue->close;
  33. $config->my->issue->actionList['close']['url'] = array('module' => 'issue', 'method' => 'close', 'params' => 'issueID={id}');
  34. $config->my->issue->actionList['close']['data-toggle'] = 'modal';
  35. $config->my->issue->actionList['close']['data-size'] = 'lg';
  36. $config->my->issue->actionList['cancel']['icon'] = 'ban-circle';
  37. $config->my->issue->actionList['cancel']['text'] = $lang->issue->cancel;
  38. $config->my->issue->actionList['cancel']['hint'] = $lang->issue->cancel;
  39. $config->my->issue->actionList['cancel']['url'] = array('module' => 'issue', 'method' => 'cancel', 'params' => 'issueID={id}');
  40. $config->my->issue->actionList['cancel']['data-toggle'] = 'modal';
  41. $config->my->issue->actionList['cancel']['data-size'] = 'lg';
  42. $config->my->issue->actionList['activate']['icon'] = 'magic';
  43. $config->my->issue->actionList['activate']['text'] = $lang->issue->activate;
  44. $config->my->issue->actionList['activate']['hint'] = $lang->issue->activate;
  45. $config->my->issue->actionList['activate']['url'] = array('module' => 'issue', 'method' => 'activate', 'params' => 'issueID={id}');
  46. $config->my->issue->actionList['activate']['data-toggle'] = 'modal';
  47. $config->my->issue->actionList['activate']['data-size'] = 'lg';
  48. $config->my->issue->actionList['createForObject']['icon'] = 'time';
  49. $config->my->issue->actionList['createForObject']['text'] = $lang->issue->effort;
  50. $config->my->issue->actionList['createForObject']['hint'] = $lang->issue->effort;
  51. $config->my->issue->actionList['createForObject']['url'] = array('module' => 'effort', 'method' => 'createForObject', 'params' => 'objectType=issue&objectID={id}');
  52. $config->my->issue->actionList['createForObject']['data-toggle'] = 'modal';
  53. $config->my->issue->actionList['edit']['icon'] = 'edit';
  54. $config->my->issue->actionList['edit']['text'] = $lang->issue->edit;
  55. $config->my->issue->actionList['edit']['hint'] = $lang->issue->edit;
  56. $config->my->issue->actionList['edit']['url'] = array('module' => 'issue', 'method' => 'edit', 'params' => 'issueID={id}');
  57. $config->my->issue->actionList['edit']['data-toggle'] = 'modal';
  58. $config->my->issue->actionList['edit']['data-size'] = 'lg';
  59. $config->my->issue->actionList['delete']['icon'] = 'trash';
  60. $config->my->issue->actionList['delete']['text'] = $lang->issue->delete;
  61. $config->my->issue->actionList['delete']['hint'] = $lang->issue->delete;
  62. $config->my->issue->actionList['delete']['url'] = array('module' => 'issue', 'method' => 'delete', 'params' => 'issueID={id}&from=project&confirm=yes');
  63. $config->my->issue->actionList['delete']['className'] = 'ajax-submit';
  64. $config->my->issue->actionList['delete']['data-confirm'] = array('message' => $lang->issue->confirmDelete, 'icon' => 'icon-exclamation-sign', 'iconClass' => 'warning-pale rounded-full icon-2x');
  65. $config->my->issue->dtable = new stdclass();
  66. $config->my->issue->dtable->fieldList = array();
  67. $config->my->issue->dtable->fieldList['id']['name'] = 'id';
  68. $config->my->issue->dtable->fieldList['id']['title'] = $lang->idAB;
  69. $config->my->issue->dtable->fieldList['id']['type'] = 'id';
  70. $config->my->issue->dtable->fieldList['title']['name'] = 'title';
  71. $config->my->issue->dtable->fieldList['title']['title'] = $lang->issue->title;
  72. $config->my->issue->dtable->fieldList['title']['type'] = 'title';
  73. $config->my->issue->dtable->fieldList['title']['link'] = array('module' => 'issue', 'method' => 'view', 'params' => 'id={id}');
  74. $config->my->issue->dtable->fieldList['title']['fixed'] = 'left';
  75. $config->my->issue->dtable->fieldList['project']['name'] = 'project';
  76. $config->my->issue->dtable->fieldList['project']['title'] = $lang->issue->project;
  77. $config->my->issue->dtable->fieldList['project']['type'] = 'category';
  78. if($isEn)
  79. {
  80. $config->my->issue->dtable->fieldList['project']['width'] = '120';
  81. $config->my->issue->dtable->fieldList['project']['align'] = 'left';
  82. }
  83. $config->my->issue->dtable->fieldList['pri']['name'] = 'pri';
  84. $config->my->issue->dtable->fieldList['pri']['title'] = $lang->priAB;
  85. $config->my->issue->dtable->fieldList['pri']['type'] = 'pri';
  86. $config->my->issue->dtable->fieldList['severity']['name'] = 'severity';
  87. $config->my->issue->dtable->fieldList['severity']['title'] = $lang->issue->severity;
  88. $config->my->issue->dtable->fieldList['severity']['type'] = 'severity';
  89. $config->my->issue->dtable->fieldList['type']['name'] = 'type';
  90. $config->my->issue->dtable->fieldList['type']['title'] = $lang->issue->type;
  91. $config->my->issue->dtable->fieldList['type']['type'] = 'category';
  92. $config->my->issue->dtable->fieldList['type']['map'] = $lang->issue->typeList;
  93. $config->my->issue->dtable->fieldList['owner']['name'] = 'owner';
  94. $config->my->issue->dtable->fieldList['owner']['title'] = $lang->issue->owner;
  95. $config->my->issue->dtable->fieldList['owner']['type'] = 'user';
  96. $config->my->issue->dtable->fieldList['createdDate']['name'] = 'createdDate';
  97. $config->my->issue->dtable->fieldList['createdDate']['title'] = $lang->issue->createdDate;
  98. $config->my->issue->dtable->fieldList['createdDate']['type'] = 'date';
  99. if($isEn) {$config->my->issue->dtable->fieldList['createdDate']['width'] = '120';}
  100. $config->my->issue->dtable->fieldList['assignedBy']['name'] = 'assignedBy';
  101. $config->my->issue->dtable->fieldList['assignedBy']['title'] = $lang->issue->assignedBy;
  102. $config->my->issue->dtable->fieldList['assignedBy']['type'] = 'user';
  103. $config->my->issue->dtable->fieldList['assignedTo']['name'] = 'assignedTo';
  104. $config->my->issue->dtable->fieldList['assignedTo']['title'] = $lang->issue->assignedTo;
  105. $config->my->issue->dtable->fieldList['assignedTo']['type'] = 'assign';
  106. $config->my->issue->dtable->fieldList['assignedTo']['currentUser'] = $app->user->account;
  107. $config->my->issue->dtable->fieldList['assignedTo']['assignLink'] = array('module' => 'issue', 'method' => 'assignTo', 'params' => "riskID={id}");
  108. $config->my->issue->dtable->fieldList['assignedTo']['data-size'] = 'lg';
  109. if($isEn) $config->my->issue->dtable->fieldList['assignedTo']['width'] = '120';
  110. $config->my->issue->dtable->fieldList['status']['name'] = 'status';
  111. $config->my->issue->dtable->fieldList['status']['title'] = $lang->issue->status;
  112. $config->my->issue->dtable->fieldList['status']['type'] = 'status';
  113. $config->my->issue->dtable->fieldList['status']['statusMap'] = $lang->issue->statusList;
  114. $config->my->issue->dtable->fieldList['actions']['name'] = 'actions';
  115. $config->my->issue->dtable->fieldList['actions']['title'] = $lang->actions;
  116. $config->my->issue->dtable->fieldList['actions']['type'] = 'actions';
  117. $config->my->issue->dtable->fieldList['actions']['sortType'] = false;
  118. $config->my->issue->dtable->fieldList['actions']['list'] = $config->my->issue->actionList;
  119. $config->my->issue->dtable->fieldList['actions']['menu'] = array('confirm', 'resolve', 'close', 'cancel', 'activate', 'createForObject', 'edit', 'delete');
  120. $config->my->risk = new stdclass();
  121. $config->my->risk->actionList = array();
  122. $config->my->risk->actionList['track']['icon'] = 'checked';
  123. $config->my->risk->actionList['track']['text'] = $lang->risk->track;
  124. $config->my->risk->actionList['track']['hint'] = $lang->risk->track;
  125. $config->my->risk->actionList['track']['url'] = array('module' => 'risk', 'method' => 'track', 'params' => 'riskID={id}');
  126. $config->my->risk->actionList['track']['data-toggle'] = 'modal';
  127. $config->my->risk->actionList['track']['data-size'] = 'lg';
  128. $config->my->risk->actionList['close']['icon'] = 'off';
  129. $config->my->risk->actionList['close']['text'] = $lang->risk->close;
  130. $config->my->risk->actionList['close']['hint'] = $lang->risk->close;
  131. $config->my->risk->actionList['close']['url'] = array('module' => 'risk', 'method' => 'close', 'params' => 'riskID={id}');
  132. $config->my->risk->actionList['close']['data-toggle'] = 'modal';
  133. $config->my->risk->actionList['close']['data-size'] = 'lg';
  134. $config->my->risk->actionList['cancel']['icon'] = 'ban-circle';
  135. $config->my->risk->actionList['cancel']['text'] = $lang->risk->cancel;
  136. $config->my->risk->actionList['cancel']['hint'] = $lang->risk->cancel;
  137. $config->my->risk->actionList['cancel']['url'] = array('module' => 'risk', 'method' => 'cancel', 'params' => 'riskID={id}');
  138. $config->my->risk->actionList['cancel']['data-toggle'] = 'modal';
  139. $config->my->risk->actionList['cancel']['data-size'] = 'lg';
  140. $config->my->risk->actionList['hangup']['icon'] = 'pause';
  141. $config->my->risk->actionList['hangup']['text'] = $lang->risk->hangup;
  142. $config->my->risk->actionList['hangup']['hint'] = $lang->risk->hangup;
  143. $config->my->risk->actionList['hangup']['url'] = array('module' => 'risk', 'method' => 'hangup', 'params' => 'riskID={id}');
  144. $config->my->risk->actionList['hangup']['data-toggle'] = 'modal';
  145. $config->my->risk->actionList['hangup']['data-size'] = 'lg';
  146. $config->my->risk->actionList['activate']['icon'] = 'magic';
  147. $config->my->risk->actionList['activate']['text'] = $lang->risk->activate;
  148. $config->my->risk->actionList['activate']['hint'] = $lang->risk->activate;
  149. $config->my->risk->actionList['activate']['url'] = array('module' => 'risk', 'method' => 'activate', 'params' => 'riskID={id}');
  150. $config->my->risk->actionList['activate']['data-toggle'] = 'modal';
  151. $config->my->risk->actionList['activate']['data-size'] = 'lg';
  152. $config->my->risk->actionList['createForObject']['icon'] = 'time';
  153. $config->my->risk->actionList['createForObject']['text'] = $lang->risk->effort;
  154. $config->my->risk->actionList['createForObject']['hint'] = $lang->risk->effort;
  155. $config->my->risk->actionList['createForObject']['url'] = array('module' => 'effort', 'method' => 'createForObject', 'params' => 'objectType=risk&objectID={id}');
  156. $config->my->risk->actionList['createForObject']['data-toggle'] = 'modal';
  157. $config->my->risk->actionList['edit']['icon'] = 'edit';
  158. $config->my->risk->actionList['edit']['text'] = $lang->risk->edit;
  159. $config->my->risk->actionList['edit']['hint'] = $lang->risk->edit;
  160. $config->my->risk->actionList['edit']['url'] = array('module' => 'risk', 'method' => 'edit', 'params' => 'riskID={id}');
  161. $config->my->risk->actionList['edit']['data-toggle'] = 'modal';
  162. $config->my->risk->actionList['edit']['data-size'] = 'lg';
  163. $config->my->risk->dtable = new stdclass();
  164. $config->my->risk->dtable->fieldList = array();
  165. $config->my->risk->dtable->fieldList['id']['name'] = 'id';
  166. $config->my->risk->dtable->fieldList['id']['title'] = $lang->idAB;
  167. $config->my->risk->dtable->fieldList['id']['type'] = 'id';
  168. $config->my->risk->dtable->fieldList['name']['name'] = 'name';
  169. $config->my->risk->dtable->fieldList['name']['title'] = $lang->risk->name;
  170. $config->my->risk->dtable->fieldList['name']['type'] = 'title';
  171. $config->my->risk->dtable->fieldList['name']['link'] = array('module' => 'risk', 'method' => 'view', 'params' => 'id={id}');
  172. $config->my->risk->dtable->fieldList['name']['fixed'] = 'left';
  173. $config->my->risk->dtable->fieldList['project']['name'] = 'project';
  174. $config->my->risk->dtable->fieldList['project']['title'] = $lang->my->ncProgram;
  175. $config->my->risk->dtable->fieldList['project']['type'] = 'category';
  176. $config->my->risk->dtable->fieldList['pri']['name'] = 'pri';
  177. $config->my->risk->dtable->fieldList['pri']['title'] = $lang->priAB;
  178. $config->my->risk->dtable->fieldList['pri']['type'] = 'pri';
  179. $config->my->risk->dtable->fieldList['pri']['priList'] = $lang->risk->priList;
  180. $config->my->risk->dtable->fieldList['rate']['name'] = 'rate';
  181. $config->my->risk->dtable->fieldList['rate']['title'] = $lang->risk->rate;
  182. $config->my->risk->dtable->fieldList['rate']['type'] = 'number';
  183. $config->my->risk->dtable->fieldList['status']['name'] = 'status';
  184. $config->my->risk->dtable->fieldList['status']['title'] = $lang->risk->status;
  185. $config->my->risk->dtable->fieldList['status']['type'] = 'status';
  186. $config->my->risk->dtable->fieldList['status']['statusMap'] = $lang->risk->statusList;
  187. $config->my->risk->dtable->fieldList['category']['name'] = 'category';
  188. $config->my->risk->dtable->fieldList['category']['title'] = $lang->risk->category;
  189. $config->my->risk->dtable->fieldList['category']['type'] = 'category';
  190. $config->my->risk->dtable->fieldList['category']['map'] = $lang->risk->categoryList;
  191. $config->my->risk->dtable->fieldList['identifiedDate']['name'] = 'identifiedDate';
  192. $config->my->risk->dtable->fieldList['identifiedDate']['title'] = $lang->risk->identifiedDate;
  193. $config->my->risk->dtable->fieldList['identifiedDate']['type'] = 'date';
  194. $config->my->risk->dtable->fieldList['assignedTo']['name'] = 'assignedTo';
  195. $config->my->risk->dtable->fieldList['assignedTo']['title'] = $lang->risk->assignedTo;
  196. $config->my->risk->dtable->fieldList['assignedTo']['type'] = 'assign';
  197. $config->my->risk->dtable->fieldList['assignedTo']['currentUser'] = $app->user->account;
  198. $config->my->risk->dtable->fieldList['assignedTo']['assignLink'] = array('module' => 'risk', 'method' => 'assignTo', 'params' => "riskID={id}");
  199. $config->my->risk->dtable->fieldList['assignedTo']['data-size'] = 'lg';
  200. $config->my->risk->dtable->fieldList['strategy']['name'] = 'strategy';
  201. $config->my->risk->dtable->fieldList['strategy']['title'] = $lang->risk->strategy;
  202. $config->my->risk->dtable->fieldList['strategy']['type'] = 'category';
  203. $config->my->risk->dtable->fieldList['strategy']['map'] = $lang->risk->strategyList;
  204. $config->my->risk->dtable->fieldList['actions']['name'] = 'actions';
  205. $config->my->risk->dtable->fieldList['actions']['title'] = $lang->actions;
  206. $config->my->risk->dtable->fieldList['actions']['type'] = 'actions';
  207. $config->my->risk->dtable->fieldList['actions']['sortType'] = false;
  208. $config->my->risk->dtable->fieldList['actions']['list'] = $config->my->risk->actionList;
  209. $config->my->risk->dtable->fieldList['actions']['menu'] = array('track', 'close', 'cancel', 'hangup', 'activate', 'createForObject', 'edit');
  210. $config->my->reviewissue = new stdclass();
  211. $config->my->reviewissue->dtable = new stdclass();
  212. $config->my->reviewissue->dtable->fieldList = array();
  213. $config->my->reviewissue->dtable->fieldList['id']['name'] = 'id';
  214. $config->my->reviewissue->dtable->fieldList['id']['title'] = $lang->idAB;
  215. $config->my->reviewissue->dtable->fieldList['id']['type'] = 'id';
  216. $config->my->reviewissue->dtable->fieldList['title']['title'] = $lang->reviewissue->title;
  217. $config->my->reviewissue->dtable->fieldList['title']['type'] = 'title';
  218. $config->my->reviewissue->dtable->fieldList['title']['fixed'] = 'left';
  219. $config->my->reviewissue->dtable->fieldList['title']['link'] = array('module' => 'reviewissue', 'method' => 'view', 'params' => "issueID={id}");
  220. $config->my->reviewissue->dtable->fieldList['opinion']['title'] = $lang->reviewissue->opinion;
  221. $config->my->reviewissue->dtable->fieldList['opinion']['type'] = 'text';
  222. $config->my->reviewissue->dtable->fieldList['opinion']['link'] = array('module' => 'reviewissue', 'method' => 'view', 'params' => "issueID={id}");
  223. $config->my->reviewissue->dtable->fieldList['status']['name'] = 'status';
  224. $config->my->reviewissue->dtable->fieldList['status']['title'] = $lang->reviewissue->status;
  225. $config->my->reviewissue->dtable->fieldList['status']['type'] = 'status';
  226. $config->my->reviewissue->dtable->fieldList['status']['statusMap'] = $lang->reviewissue->statusList;
  227. $config->my->reviewissue->dtable->fieldList['type']['title'] = $lang->reviewissue->type;
  228. $config->my->reviewissue->dtable->fieldList['type']['type'] = 'category';
  229. $config->my->reviewissue->dtable->fieldList['type']['map'] = $lang->reviewissue->issueType;
  230. $config->my->reviewissue->dtable->fieldList['createdBy']['title'] = $lang->reviewissue->createdBy;
  231. $config->my->reviewissue->dtable->fieldList['createdBy']['type'] = 'user';
  232. $config->my->reviewissue->dtable->fieldList['createdBy']['width'] = '80';
  233. $config->my->reviewissue->dtable->fieldList['createdDate']['title'] = $lang->reviewissue->createdDate;
  234. $config->my->reviewissue->dtable->fieldList['createdDate']['type'] = 'date';
  235. $config->my->reviewissue->dtable->fieldList['createdDate']['sortType'] = 'date';
  236. $config->my->reviewissue->dtable->fieldList['actions']['title'] = $lang->actions;
  237. $config->my->reviewissue->dtable->fieldList['actions']['type'] = 'actions';
  238. $config->my->reviewissue->dtable->fieldList['actions']['width'] = 'auto';
  239. $config->my->reviewissue->dtable->fieldList['actions']['sortType'] = false;
  240. $config->my->reviewissue->dtable->fieldList['actions']['fixed'] = 'right';
  241. $config->my->reviewissue->dtable->fieldList['actions']['list'] = $config->reviewissue->actionList;
  242. $config->my->reviewissue->dtable->fieldList['actions']['menu'] = array('resolved', 'close', 'active', 'edit', 'delete');
  243. $config->my->auditplan = new stdclass();
  244. $config->my->auditplan->actionList = array();
  245. $config->my->auditplan->actionList['check']['icon'] = 'confirm';
  246. $config->my->auditplan->actionList['check']['text'] = $lang->auditplan->check;
  247. $config->my->auditplan->actionList['check']['hint'] = $lang->auditplan->check;
  248. $config->my->auditplan->actionList['check']['url'] = array('module' => 'auditplan', 'method' => 'check', 'params' => 'auditplanID={id}&projectID={project}');
  249. $config->my->auditplan->actionList['check']['data-toggle'] = 'modal';
  250. $config->my->auditplan->actionList['check']['data-size'] = 'lg';
  251. $config->my->auditplan->actionList['result']['icon'] = 'list-alt';
  252. $config->my->auditplan->actionList['result']['text'] = $lang->auditplan->result;
  253. $config->my->auditplan->actionList['result']['hint'] = $lang->auditplan->result;
  254. $config->my->auditplan->actionList['result']['url'] = array('module' => 'auditplan', 'method' => 'result', 'params' => 'auditplanID={id}');
  255. $config->my->auditplan->actionList['result']['data-toggle'] = 'modal';
  256. $config->my->auditplan->actionList['result']['data-size'] = 'lg';
  257. $config->my->auditplan->actionList['createNc']['icon'] = 'plus';
  258. $config->my->auditplan->actionList['createNc']['text'] = $lang->auditplan->createNc;
  259. $config->my->auditplan->actionList['createNc']['hint'] = $lang->auditplan->createNc;
  260. $config->my->auditplan->actionList['createNc']['url'] = array('module' => 'nc', 'method' => 'create', 'params' => 'project={project}&auditplanID={id}');
  261. $config->my->auditplan->actionList['createNc']['data-toggle'] = 'modal';
  262. $config->my->auditplan->actionList['createNc']['data-size'] = 'lg';
  263. $config->my->auditplan->actionList['edit']['icon'] = 'edit';
  264. $config->my->auditplan->actionList['edit']['text'] = $lang->auditplan->edit;
  265. $config->my->auditplan->actionList['edit']['hint'] = $lang->auditplan->edit;
  266. $config->my->auditplan->actionList['edit']['url'] = array('module' => 'auditplan', 'method' => 'edit', 'params' => 'auditplanID={id}');
  267. $config->my->auditplan->actionList['edit']['data-toggle'] = 'modal';
  268. $config->my->auditplan->actionList['edit']['data-size'] = 'lg';
  269. $config->my->auditplan->actionList['delete']['icon'] = 'trash';
  270. $config->my->auditplan->actionList['delete']['text'] = $lang->auditplan->delete;
  271. $config->my->auditplan->actionList['delete']['hint'] = $lang->auditplan->delete;
  272. $config->my->auditplan->actionList['delete']['url'] = array('module' => 'auditplan', 'method' => 'delete', 'params' => 'auditplanID={id}');
  273. $config->my->auditplan->actionList['delete']['className'] = 'ajax-submit';
  274. $config->my->auditplan->actionList['delete']['data-confirm'] = array('message' => $lang->auditplan->confirmDelete, 'icon' => 'icon-exclamation-sign', 'iconClass' => 'warning-pale rounded-full icon-2x');
  275. $config->my->auditplan->dtable = new stdclass();
  276. $config->my->auditplan->dtable->fieldList = array();
  277. $config->my->auditplan->dtable->fieldList['id']['name'] = 'id';
  278. $config->my->auditplan->dtable->fieldList['id']['title'] = $lang->idAB;
  279. $config->my->auditplan->dtable->fieldList['id']['type'] = 'id';
  280. $config->my->auditplan->dtable->fieldList['process']['name'] = 'process';
  281. $config->my->auditplan->dtable->fieldList['process']['title'] = $lang->auditplan->process;
  282. $config->my->auditplan->dtable->fieldList['process']['type'] = 'category';
  283. $config->my->auditplan->dtable->fieldList['objectID']['name'] = 'objectID';
  284. $config->my->auditplan->dtable->fieldList['objectID']['title'] = $lang->auditplan->objectID;
  285. $config->my->auditplan->dtable->fieldList['objectID']['type'] = 'text';
  286. $config->my->auditplan->dtable->fieldList['project']['name'] = 'project';
  287. $config->my->auditplan->dtable->fieldList['project']['title'] = $lang->auditplan->project;
  288. $config->my->auditplan->dtable->fieldList['project']['type'] = 'category';
  289. $config->my->auditplan->dtable->fieldList['project']['link'] = array('module' => 'auditplan', 'method' => 'browse', 'params' => 'projectID={project}');
  290. $config->my->auditplan->dtable->fieldList['execution']['name'] = 'execution';
  291. $config->my->auditplan->dtable->fieldList['execution']['title'] = $lang->auditplan->execution;
  292. $config->my->auditplan->dtable->fieldList['execution']['type'] = 'category';
  293. $config->my->auditplan->dtable->fieldList['execution']['link'] = array('module' => 'execution', 'method' => 'task', 'params' => 'executionID={execution}');
  294. $config->my->auditplan->dtable->fieldList['objectType']['name'] = 'objectType';
  295. $config->my->auditplan->dtable->fieldList['objectType']['title'] = $lang->auditplan->objectType;
  296. $config->my->auditplan->dtable->fieldList['objectType']['type'] = 'category';
  297. $config->my->auditplan->dtable->fieldList['objectType']['map'] = $lang->auditplan;
  298. $config->my->auditplan->dtable->fieldList['status']['name'] = 'status';
  299. $config->my->auditplan->dtable->fieldList['status']['title'] = $lang->auditplan->status;
  300. $config->my->auditplan->dtable->fieldList['status']['type'] = 'status';
  301. $config->my->auditplan->dtable->fieldList['status']['statusMap'] = $lang->auditplan->statusList;
  302. $config->my->auditplan->dtable->fieldList['checkDate']['name'] = 'checkDate';
  303. $config->my->auditplan->dtable->fieldList['checkDate']['title'] = $lang->auditplan->checkDate;
  304. $config->my->auditplan->dtable->fieldList['checkDate']['type'] = 'date';
  305. $config->my->auditplan->dtable->fieldList['actions']['name'] = 'actions';
  306. $config->my->auditplan->dtable->fieldList['actions']['title'] = $lang->actions;
  307. $config->my->auditplan->dtable->fieldList['actions']['type'] = 'actions';
  308. $config->my->auditplan->dtable->fieldList['actions']['sortType'] = false;
  309. $config->my->auditplan->dtable->fieldList['actions']['list'] = $config->my->auditplan->actionList;
  310. $config->my->auditplan->dtable->fieldList['actions']['menu'] = array('check', 'result', 'createNc', 'edit', 'delete');
  311. $config->my->nc = new stdclass();
  312. $config->my->nc->dtable = new stdclass();
  313. $config->my->nc->dtable->fieldList = array();
  314. $config->my->nc->dtable->fieldList['id']['name'] = 'id';
  315. $config->my->nc->dtable->fieldList['id']['title'] = $lang->idAB;
  316. $config->my->nc->dtable->fieldList['id']['type'] = 'id';
  317. $config->my->nc->dtable->fieldList['title']['name'] = 'title';
  318. $config->my->nc->dtable->fieldList['title']['title'] = $lang->my->ncName;
  319. $config->my->nc->dtable->fieldList['title']['type'] = 'title';
  320. $config->my->nc->dtable->fieldList['title']['link'] = array('module' => 'nc', 'method' => 'view', 'params' => 'ncID={id}');
  321. $config->my->nc->dtable->fieldList['title']['fixed'] = 'left';
  322. $config->my->nc->dtable->fieldList['project']['name'] = 'project';
  323. $config->my->nc->dtable->fieldList['project']['title'] = $lang->auditplan->project;
  324. $config->my->nc->dtable->fieldList['project']['type'] = 'category';
  325. $config->my->nc->dtable->fieldList['severity']['name'] = 'severity';
  326. $config->my->nc->dtable->fieldList['severity']['title'] = $lang->my->ncSeverity;
  327. $config->my->nc->dtable->fieldList['severity']['type'] = 'severity';
  328. $config->my->nc->dtable->fieldList['severity']['severityList'] = $lang->nc->severityList;
  329. $config->my->nc->dtable->fieldList['status']['name'] = 'status';
  330. $config->my->nc->dtable->fieldList['status']['title'] = $lang->my->ncStatus;
  331. $config->my->nc->dtable->fieldList['status']['type'] = 'status';
  332. $config->my->nc->dtable->fieldList['status']['statusMap'] = $lang->nc->statusList;
  333. $config->my->nc->dtable->fieldList['createdBy']['name'] = 'createdBy';
  334. $config->my->nc->dtable->fieldList['createdBy']['title'] = $lang->my->ncCreatedBy;
  335. $config->my->nc->dtable->fieldList['createdBy']['type'] = 'user';
  336. $config->my->nc->dtable->fieldList['createdDate']['name'] = 'createdDate';
  337. $config->my->nc->dtable->fieldList['createdDate']['title'] = $lang->my->ncCreatedDate;
  338. $config->my->nc->dtable->fieldList['createdDate']['type'] = 'date';
  339. $config->my->meeting = new stdclass();
  340. $config->my->meeting->dtable = new stdclass();
  341. $config->my->meeting->dtable->fieldList = array();
  342. $config->my->meeting->dtable->fieldList['id']['name'] = 'id';
  343. $config->my->meeting->dtable->fieldList['id']['title'] = $lang->idAB;
  344. $config->my->meeting->dtable->fieldList['id']['type'] = 'id';
  345. $config->my->meeting->dtable->fieldList['name']['name'] = 'name';
  346. $config->my->meeting->dtable->fieldList['name']['title'] = $lang->meeting->name;
  347. $config->my->meeting->dtable->fieldList['name']['type'] = 'title';
  348. $config->my->meeting->dtable->fieldList['name']['link'] = array('module' => 'meeting', 'method' => 'view', 'params' => 'meetingID={id}');
  349. $config->my->meeting->dtable->fieldList['name']['fixed'] = 'left';
  350. $config->my->meeting->dtable->fieldList['name']['data-app'] = 'my';
  351. $config->my->meeting->dtable->fieldList['mode']['name'] = 'mode';
  352. $config->my->meeting->dtable->fieldList['mode']['title'] = $lang->meeting->mode;
  353. $config->my->meeting->dtable->fieldList['mode']['type'] = 'category';
  354. $config->my->meeting->dtable->fieldList['mode']['map'] = $lang->meeting->modeList;
  355. $config->my->meeting->dtable->fieldList['mode']['show'] = true;
  356. $config->my->meeting->dtable->fieldList['dept']['name'] = 'dept';
  357. $config->my->meeting->dtable->fieldList['dept']['title'] = $lang->meeting->dept;
  358. $config->my->meeting->dtable->fieldList['dept']['type'] = 'category';
  359. $config->my->meeting->dtable->fieldList['dept']['show'] = true;
  360. $config->my->meeting->dtable->fieldList['project']['name'] = 'project';
  361. $config->my->meeting->dtable->fieldList['project']['title'] = $lang->meeting->project;
  362. $config->my->meeting->dtable->fieldList['project']['type'] = 'category';
  363. $config->my->meeting->dtable->fieldList['project']['show'] = true;
  364. if($isEn) $config->my->meeting->dtable->fieldList['project']['width'] = '120';
  365. $config->my->meeting->dtable->fieldList['execution']['name'] = 'execution';
  366. $config->my->meeting->dtable->fieldList['execution']['title'] = $lang->meeting->execution;
  367. $config->my->meeting->dtable->fieldList['execution']['type'] = 'category';
  368. $config->my->meeting->dtable->fieldList['execution']['show'] = true;
  369. if($isEn) $config->my->meeting->dtable->fieldList['execution']['width'] = '120';
  370. $config->my->meeting->dtable->fieldList['date']['name'] = 'date';
  371. $config->my->meeting->dtable->fieldList['date']['title'] = $lang->meeting->date;
  372. $config->my->meeting->dtable->fieldList['date']['type'] = 'text';
  373. $config->my->meeting->dtable->fieldList['date']['show'] = true;
  374. $config->my->meeting->dtable->fieldList['room']['name'] = 'room';
  375. $config->my->meeting->dtable->fieldList['room']['title'] = $lang->meeting->room;
  376. $config->my->meeting->dtable->fieldList['room']['type'] = 'category';
  377. $config->my->meeting->dtable->fieldList['room']['show'] = true;
  378. if($isEn) $config->my->meeting->dtable->fieldList['room']['width'] = '120';
  379. $config->my->meeting->dtable->fieldList['host']['name'] = 'host';
  380. $config->my->meeting->dtable->fieldList['host']['title'] = $lang->meeting->host;
  381. $config->my->meeting->dtable->fieldList['host']['type'] = 'user';
  382. $config->my->meeting->dtable->fieldList['host']['show'] = true;
  383. $config->my->meeting->dtable->fieldList['minutedBy']['name'] = 'minutedBy';
  384. $config->my->meeting->dtable->fieldList['minutedBy']['title'] = $lang->meeting->minutedBy;
  385. $config->my->meeting->dtable->fieldList['minutedBy']['type'] = 'user';
  386. $config->my->meeting->dtable->fieldList['minutedBy']['show'] = true;
  387. if($isEn) $config->my->meeting->dtable->fieldList['minutedBy']['width'] = '120';
  388. $config->my->meeting->dtable->fieldList['actions']['name'] = 'actions';
  389. $config->my->meeting->dtable->fieldList['actions']['title'] = $lang->actions;
  390. $config->my->meeting->dtable->fieldList['actions']['type'] = 'actions';
  391. $config->my->meeting->dtable->fieldList['actions']['sortType'] = false;
  392. $config->my->meeting->dtable->fieldList['actions']['width'] = '80px';
  393. $config->my->meeting->dtable->fieldList['actions']['list'] = $config->meeting->actionList;
  394. $config->my->meeting->dtable->fieldList['actions']['menu'] = array('edit', 'minutes');
  395. $config->my->baseline = new stdclass();
  396. $config->my->baseline->actionList['edit']['icon'] = 'edit';
  397. $config->my->baseline->actionList['edit']['text'] = $lang->edit;
  398. $config->my->baseline->actionList['edit']['hint'] = $lang->edit;
  399. $config->my->baseline->actionList['edit']['url'] = array('module' => 'cm', 'method' => 'edit', 'params' => 'baselineID={id}');
  400. $config->my->baseline->actionList['delete']['icon'] = 'trash';
  401. $config->my->baseline->actionList['delete']['text'] = $lang->delete;
  402. $config->my->baseline->actionList['delete']['hint'] = $lang->delete;
  403. $config->my->baseline->actionList['delete']['url'] = array('module' => 'cm', 'method' => 'delete', 'params' => 'baselineID={id}&confirm=yes');
  404. $config->my->baseline->actionList['delete']['className'] = 'ajax-submit';
  405. $config->my->baseline->actionList['delete']['data-confirm'] = array('message' => $lang->cm->confirmDelete, 'icon' => 'icon-exclamation-sign', 'iconClass' => 'warning-pale rounded-full icon-2x');
  406. $config->my->baseline->dtable = new stdclass();
  407. $config->my->baseline->dtable->fieldList['id']['title'] = $lang->idAB;
  408. $config->my->baseline->dtable->fieldList['id']['name'] = 'id';
  409. $config->my->baseline->dtable->fieldList['id']['type'] = 'id';
  410. $config->my->baseline->dtable->fieldList['id']['fixed'] = 'left';
  411. $config->my->baseline->dtable->fieldList['id']['sortType'] = true;
  412. $config->my->baseline->dtable->fieldList['category']['title'] = $lang->cm->object;
  413. $config->my->baseline->dtable->fieldList['category']['name'] = 'category';
  414. $config->my->baseline->dtable->fieldList['category']['type'] = 'category';
  415. $config->my->baseline->dtable->fieldList['category']['map'] = $lang->baseline->objectList;
  416. $config->my->baseline->dtable->fieldList['category']['align'] = 'left';
  417. $config->my->baseline->dtable->fieldList['category']['sortType'] = true;
  418. $config->my->baseline->dtable->fieldList['category']['fixed'] = 'left';
  419. $config->my->baseline->dtable->fieldList['category']['width'] = '150';
  420. $config->my->baseline->dtable->fieldList['title']['title'] = $lang->cm->title;
  421. $config->my->baseline->dtable->fieldList['title']['name'] = 'title';
  422. $config->my->baseline->dtable->fieldList['title']['type'] = 'title';
  423. $config->my->baseline->dtable->fieldList['title']['link'] = array('module' => 'cm', 'method' => 'view', 'params' => 'id={id}');
  424. $config->my->baseline->dtable->fieldList['version']['title'] = $lang->cm->version;
  425. $config->my->baseline->dtable->fieldList['version']['name'] = 'version';
  426. $config->my->baseline->dtable->fieldList['version']['width'] = '160';
  427. $config->my->baseline->dtable->fieldList['version']['type'] = 'text';
  428. $config->my->baseline->dtable->fieldList['version']['sortType'] = true;
  429. $config->my->baseline->dtable->fieldList['project']['title'] = $lang->my->projects;
  430. $config->my->baseline->dtable->fieldList['project']['name'] = 'project';
  431. $config->my->baseline->dtable->fieldList['project']['type'] = 'text';
  432. $config->my->baseline->dtable->fieldList['project']['sortType'] = true;
  433. $config->my->baseline->dtable->fieldList['createdBy']['title'] = $lang->cm->createdBy;
  434. $config->my->baseline->dtable->fieldList['createdBy']['name'] = 'createdBy';
  435. $config->my->baseline->dtable->fieldList['createdBy']['type'] = 'user';
  436. $config->my->baseline->dtable->fieldList['createdDate']['title'] = $lang->cm->createdDate;
  437. $config->my->baseline->dtable->fieldList['createdDate']['name'] = 'createdDate';
  438. $config->my->baseline->dtable->fieldList['createdDate']['type'] = 'date';
  439. $config->my->baseline->dtable->fieldList['actions']['title'] = $lang->actions;
  440. $config->my->baseline->dtable->fieldList['actions']['name'] = 'actions';
  441. $config->my->baseline->dtable->fieldList['actions']['type'] = 'actions';
  442. $config->my->baseline->dtable->fieldList['actions']['list'] = $config->my->baseline->actionList;
  443. $config->my->baseline->dtable->fieldList['actions']['menu'] = array('edit', 'delete');