RProjectController.php 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  1. <?php
  2. Doo::loadClass('auth');
  3. Doo::loadClass('attfile');
  4. Doo::loadClass('profile');
  5. Doo::loadClass('project');
  6. Doo::loadClass('contractact');
  7. Doo::loadClass('actmeasure');
  8. Doo::loadClass('measureauditact');
  9. Doo::loadClass('numofperact');
  10. /**
  11. * MainController
  12. * Feel free to delete the methods and replace them with your own code.
  13. *
  14. * @author darkredz
  15. */
  16. class RProjectController extends DooController
  17. {
  18. private $data, $auth, $attfile, $profile, $project, $contractact, $actmeasure, $measureauditact, $numofperact, $statusArray = array('uncheck' => '未审核', 'checking' => '审核中', 'checked' => '已审核', 'checkno' => '未通过');
  19. public function __construct()
  20. {
  21. $this->auth = new Auth();
  22. $this->attfile = new attFile();
  23. $this->profile = new Profile();
  24. $this->project = new Project();
  25. $this->contractact = new Contractact();
  26. $this->actmeasure = new actMeasure();
  27. $this->measureauditact = new MeasureauditAct();
  28. $this->numofperact = new NumofperAct();
  29. $this->data['rootUrl'] = Doo::conf()->APP_URL;
  30. $this->data['currChannle'] = 'r';
  31. $this->data['user'] = $this->profile->getProWithUid($this->auth->getUid());
  32. $mpidArray = $this->measureauditact->getAuditProject2($this->auth->getUid());
  33. if (isset($mpidArray[0]['pid'])) {
  34. foreach ($mpidArray as $key => $value) {
  35. // 审批操作按照时间排序多标段
  36. $this->data['numofchecking'] += $this->measureauditact->getCountMyChecking($value['pid'], $this->auth->getUid());
  37. }
  38. }
  39. if ($this->data['numofchecking'] == 0) {
  40. $this->data['numofchecking'] = null;
  41. }
  42. }
  43. public function beforeRun($resource, $action)
  44. {
  45. // $uGroups = $this->profile->getProWithUid($this->auth->getUid());
  46. // $falg = Doo::acl()->isAllowed($uGroups['groups'], $resource, $action);
  47. // if (!$falg)
  48. // return Doo::acl()->defaultFailedRoute;
  49. if ($this->auth->getUid()) {
  50. $uGroups = $this->profile->getProWithUid($this->auth->getUid());
  51. $falg = Doo::acl()->isAllowed($uGroups['groups'], $resource, $action);
  52. if (!$falg)
  53. return Doo::acl()->defaultFailedRoute;
  54. } else {
  55. return Doo::acl()->defaultFailedRoute;
  56. }
  57. }
  58. public function index()
  59. {
  60. $mpidArray = $this->measureauditact->getAuditProject2($this->auth->getUid());
  61. if (isset($mpidArray[0]['pid'])) {
  62. foreach ($mpidArray as $key => $value) {
  63. // 审批操作按照时间排序多标段
  64. $numOfChecking = $this->measureauditact->getCountMyChecking($value['pid'], $this->auth->getUid());
  65. // end
  66. $this->data['proArray'][$key] = $this->project->getRowByPid($value['pid']);
  67. $this->data['proArray'][$key]['numofchecking'] = $numOfChecking;
  68. $this->data['proArray'][$key]['contracttotal'] = $this->actmeasure->getTotalWithPid($value['pid']);
  69. $this->data['proArray'][$key]['changTotal'] = $this->numofperact->getChangTotal($value['pid']);
  70. // $this->data['proArray'][$key]['contracttotal'] += $this->data['proArray'][$key]['changTotal'];
  71. $this->data['proArray'][$key]['currdone'] = $this->numofperact->getCurrDoneNow($value['pid']);
  72. if (($this->data['proArray'][$key]['contracttotal'] > 0) && ($this->data['proArray'][$key]['currdone'] > 0)) {
  73. $this->data['proArray'][$key]['pcurrdone'] = round(($this->data['proArray'][$key]['currdone'] / $this->data['proArray'][$key]['contracttotal']) * 100) . '%';
  74. } else {
  75. $this->data['proArray'][$key]['pcurrdone'] = '0%';
  76. }
  77. $this->data['proArray'][$key]['bcontracttotal'] = number_format($this->data['proArray'][$key]['contracttotal'], 2, '.', ',');
  78. $this->data['proArray'][$key]['bchangTotal'] = number_format($this->data['proArray'][$key]['changTotal'], 2, '.', ',');
  79. }
  80. } else {
  81. $this->data['proArray'] = array();
  82. }
  83. $this->render('r-project', $this->data);
  84. }
  85. public function proOverview()
  86. {
  87. // $this->data['pros'] = $this->project->getAll();
  88. // if (isset($_POST['pname']) && $_POST['pname']) {
  89. // $this->project->insertProject($_POST['pname']);
  90. // return Doo::conf()->APP_URL . 'project/index';
  91. // }
  92. $this->data['pid'] = $this->params['pid'];
  93. $this->render('w-project-detail', $this->data);
  94. }
  95. public function proSection()
  96. {
  97. $mpidArray = $this->measureauditact->getAuditProject($this->auth->getUid());
  98. foreach ($mpidArray as $k1 => $v1) {
  99. if ($v1['pid'] != $this->params['pid'])
  100. $this->data['allproArray'][] = $this->project->getRowByPid($v1['pid']);
  101. }
  102. $this->data['currproArray'] = $this->project->getRowByPid($this->params['pid']);
  103. $this->data['conArray'] = $this->contractact->getRowByPid($this->params['pid']);
  104. $auditArray = $this->measureauditact->getUserPmid($this->auth->getUid());
  105. foreach ($auditArray as $key => $value) {
  106. $pmidArray[] = $value['pmid'];
  107. }
  108. foreach ($this->data['conArray'] as $key => $value) {
  109. $html = null;
  110. $hetongTotal = $dispstopnowtotal = $dispnowtotal = $countNum = 0;
  111. $nstopnowtotal = $ncurrdone = $nnowtotal = number_format(0, 2, '.', ',');
  112. $pstopnowtotal = '0%';
  113. $pcurrdone = '0%';
  114. $ncurrdone = number_format(0, 2, '.', ',');
  115. $pnowtotal = '0%';
  116. $dispcurrdone = '0%';
  117. $numStatusArray['currstatus'] = 'uncheck';
  118. $StidArray = $this->actmeasure->getAllbyStid($value['stid']);
  119. $currdoneInt = $this->numofperact->getCurrdoneSTID($value['stid'])['totalplus'];
  120. if (isset($StidArray))
  121. foreach ($StidArray as $k => $v) {
  122. if (in_array($v['pmid'], $pmidArray)) {
  123. $snTotal = $this->numofperact->getStopNowTotal($v['pmid']); //根据标段ID获取最新一期(包括不通过)
  124. $currcomTotal = $this->numofperact->getCurrdoneNew($v['pmid']); //截止目前
  125. $ncurrdone = number_format($currcomTotal['currtotal'], 2, '.', ',');
  126. $nstopnowtotal = number_format($snTotal['sntotal'], 2, '.', ',');
  127. if ($v['contracttotal'] > 0) {
  128. $nnowtotal = number_format($v['contracttotal'] - $currcomTotal['currtotal'] - $snTotal['sntotal'], 2, '.', ',');
  129. $pstopnowtotal = round(($snTotal['sntotal'] / $v['contracttotal']) * 100);
  130. $pcurrdone = round(($currcomTotal['currtotal'] / $v['contracttotal']) * 100);
  131. }
  132. $dispcurrdone = $pcurrdone . '%';
  133. $dispstopnowtotal = $pstopnowtotal . '%';
  134. $pnowtotal = 100 - $pcurrdone - $pstopnowtotal;
  135. $dispnowtotal = $pnowtotal . '%';
  136. $countNum = $this->numofperact->getLastNew2($v['pmid'])['numpname'];
  137. if (!isset($countNum)) {
  138. $countNum = 0;
  139. }
  140. $numStatusArray = $this->numofperact->getLastStatus($this->params['pid'], $v['pmid']);
  141. if (!isset($numStatusArray['currstatus'])) {
  142. $numStatusArray['currstatus'] = 'uncheck';
  143. }
  144. $datatmp = $this->measureauditact->getMyAuditStatus($numStatusArray['pmid'], $numStatusArray['numpname'], $numStatusArray['times'], $this->auth->getUid());
  145. if ($datatmp && ($datatmp['mastatus'] == 'checking')) {
  146. $buttonhtml = '<a class="btn btn-warning btn-small" href="/rproject/' . $this->params['pid'] . '/section/' . $v['pmid'] . '/report/' . $numStatusArray['mpid'] . '">开始审批</a>';
  147. } else {
  148. $buttonhtml = '(<span class="colOrange">' . $this->statusArray[$numStatusArray['currstatus']] . '</span>)';
  149. }
  150. $html .= '<tr>
  151. <td><a href="/rproject/' . $this->params['pid'] . '/section/' . $v['pmid'] . '/detail">' . $v['pmname'] . '</a></td>
  152. <td class="">第 ' . $countNum . ' 期 ' . $buttonhtml . '</td>
  153. <td class="taR">¥' . number_format($v['contracttotal'], 2, '.', ',') . '</td>
  154. <td>
  155. <div class="progress">
  156. <div class="bar bar-success" style="width: ' . $dispstopnowtotal . ';" data-placement="bottom" data-toggle="tooltip" data-original-title="截止上期完成:¥' . $nstopnowtotal . '">' . $dispstopnowtotal . '</div>
  157. <div class="bar" style="width:' . $dispcurrdone . ';" data-placement="bottom" data-toggle="tooltip" data-original-title="本期完成:¥' . $ncurrdone . '">' . $dispcurrdone . '</div>
  158. <div class="bar bar-gary" style="width:' . $dispnowtotal . ';" data-placement="bottom" data-toggle="tooltip" data-original-title="未完成:¥' . $nnowtotal . '">' . $dispnowtotal . '</div>
  159. </div>
  160. </td>
  161. </tr>';
  162. $hetongTotal += $v['contracttotal'];
  163. }
  164. }
  165. $this->data['conArray'][$key]['htmlstr'] = $html;
  166. $this->data['conArray'][$key]['hetongTotal'] = number_format($hetongTotal, 2, '.', ',');
  167. $this->data['conArray'][$key]['phetongTotal'] = 0;
  168. $this->data['conArray'][$key]['nhetongTotal'] = 0;
  169. $this->data['conArray'][$key]['phetongTotal2'] = 0;
  170. $this->data['conArray'][$key]['ncurrdoneInt'] = 0;
  171. $this->data['conArray'][$key]['phetongTotal'] = round(($currdoneInt / $hetongTotal) * 100) . '%';
  172. $this->data['conArray'][$key]['nhetongTotal'] = number_format($currdoneInt, 2, '.', ',');
  173. $this->data['conArray'][$key]['phetongTotal2'] = round((($hetongTotal - $currdoneInt) / $hetongTotal) * 100) . '%';
  174. $this->data['conArray'][$key]['ncurrdoneInt'] = number_format($hetongTotal - $currdoneInt, 2, '.', ',');
  175. }
  176. $this->render('r-project-section', $this->data, TRUE);
  177. }
  178. function proSectionMeasure()
  179. {
  180. $mpidArray = $this->measureauditact->getAuditProject($this->auth->getUid());
  181. foreach ($mpidArray as $k1 => $v1) {
  182. if ($v1['pid'] != $this->params['pid'])
  183. $this->data['allproArray'][] = $this->project->getRowByPid($v1['pid']);
  184. }
  185. $this->data['currproArray'] = $this->project->getRowByPid($this->params['pid']);
  186. $this->data['pid'] = $this->params['pid'];
  187. $this->data['mpid'] = $this->params['mpid'];
  188. $this->data['mastatus'] = $this->measureauditact->getStatusByMpid($this->params['mpid'])['mastatus'];
  189. if (isset($_POST['submit'])) {
  190. if ($_POST['submit'] == 'ok') {
  191. $this->measureauditact->setStatusTrue($this->params['mpid']);
  192. return Doo::conf()->APP_URL . 'rproject/' . $this->params['pid'] . '/section/' . $this->params['mpid'] . '/measure';
  193. }
  194. if ($_POST['submit'] == 'no') {
  195. $this->measureauditact->setStatusFalse($this->params['mpid']);
  196. return Doo::conf()->APP_URL . 'rproject/' . $this->params['pid'] . '/section/' . $this->params['mpid'] . '/measure';
  197. }
  198. }
  199. // $jsonpath = pathinfo($this->attfile->getMaxRow()['filepath']);
  200. // $extPathdir = Doo::conf()->SITE_PATH . $jsonpath['dirname'] . '/' . $jsonpath['filename'];
  201. // if ($handle = opendir($extPathdir)) {
  202. // while (false !== ($file = readdir($handle))) {
  203. // $filename = pathinfo($file);
  204. // if ($filename['extension'] == 'json')
  205. // $proArray = json_decode(file_get_contents($extPathdir . '/' . $file));
  206. // }
  207. // closedir($handle);
  208. // }
  209. // $this->data['proArray'] = $proArray;
  210. $this->render('r-project-section-measure', $this->data, TRUE);
  211. }
  212. Function fNumber($number)
  213. {
  214. if ($number == '')
  215. Return "-";
  216. $nlen = strlen($number);
  217. while ($nlen > 3) {
  218. $fNumber = "," . substr($number, $nlen - 3, 3);
  219. $number = substr($number, 0, -3);
  220. $nlen = strlen($number);
  221. }
  222. if ($nlen <= 3) {
  223. $fNumber = $number . $fNumber;
  224. }
  225. Return $fNumber;
  226. }
  227. public function welcome()
  228. {
  229. // if (!$this->auth->isLoggedIn())
  230. // return Doo::conf()->APP_URL;
  231. if ($this->profile->getProWithUid($_SESSION['uid'])['userid'])
  232. return Doo::conf()->APP_URL . 'project/list';
  233. if (isset($_POST['welform'])) {
  234. $profileUserArray = $_POST;
  235. $profileUserArray['userid'] = $_SESSION['uid'];
  236. $this->profile->insertProfile($profileUserArray); // 无自增字段返回0
  237. return Doo::conf()->APP_URL . 'project/list';
  238. }
  239. $this->render('welcome', $this->data);
  240. }
  241. public function prolist()
  242. {
  243. // if (!$this->auth->isLoggedIn())
  244. // return Doo::conf()->APP_URL;
  245. // $proArray = new stdClass();
  246. // $jsonpath = pathinfo($this->attfile->getMaxRow()['filepath']);
  247. // $extPathdir = Doo::conf()->SITE_PATH . $jsonpath['dirname'] . '/' . $jsonpath['filename'];
  248. // if ($handle = opendir($extPathdir)) {
  249. // while (false !== ($file = readdir($handle))) {
  250. // $filename = pathinfo($file);
  251. // if ($filename['extension'] == 'json')
  252. // $proArray = json_decode(file_get_contents($extPathdir . '/' . $file));
  253. // }
  254. // closedir($handle);
  255. // }
  256. // $this->data['proArray'] = null;
  257. $this->render('s-project', $this->data);
  258. }
  259. public function proDetail()
  260. {
  261. $numStatusArray = $this->numofperact->getLastStatus($this->params['pid'], $this->params['pmid']);
  262. // 项目名称
  263. $mpidArray = $this->measureauditact->getAuditProject($this->auth->getUid());
  264. foreach ($mpidArray as $k1 => $v1) {
  265. if ($v1['pid'] != $this->params['pid'])
  266. $this->data['allproArray'][] = $this->project->getRowByPid($v1['pid']);
  267. }
  268. $this->data['currproArray'] = $this->project->getRowByPid($this->params['pid']);
  269. $this->data['MeasureArray'] = $this->numofperact->getGroupByLastOne($this->params['pmid']);
  270. $this->data['MeasureArray'] = $this->numofperact->getGroupByLastOne($this->params['pmid']);
  271. $measureArray = $this->actmeasure->getRowByPmid($this->params['pmid']);
  272. foreach ($this->data['MeasureArray'] as $key => $value) {
  273. if ($measureArray['contracttotal'] > ($value['currdone'] > 0)) {
  274. $this->data['MeasureArray'][$key]['lessTotal'] = round(($value['currdone'] / $measureArray['contracttotal']) * 100);
  275. } else {
  276. $this->data['MeasureArray'][$key]['lessTotal'] = 0;
  277. }
  278. }
  279. $this->data['pmid'] = $this->params['pmid'];
  280. $this->data['pid'] = $this->params['pid'];
  281. $this->data['mpid'] = $numStatusArray['mpid'];
  282. $this->render('r-project-section-detail', $this->data, TRUE);
  283. }
  284. public function proReport()
  285. {
  286. // 面包屑导航
  287. // 期数列表
  288. $tmpArray = $this->numofperact->getGroupByLastOne($this->params['pmid']);
  289. foreach ($tmpArray as $k => $v) {
  290. if ($v['mpid'] == $this->params['mpid']) {
  291. $this->data['currnum'] = $v['numpname'];
  292. $this->data['mpid'] = $v['mpid'];
  293. $this->data['MeasureArray2'][] = $v;
  294. } else {
  295. $this->data['numArray'][] = $v;
  296. }
  297. }
  298. $measureArray = $this->actmeasure->getRowByPmid($this->params['pmid']);
  299. foreach ($this->data['MeasureArray2'] as $key => $value) {
  300. if ($value['mpid'] == $this->params['mpid']) {
  301. $this->data['MeasureArray2'][$key]['currstatus'] = $this->statusArray[$value['currstatus']];
  302. if ($measureArray['contracttotal'] > ($value['currdone'] > 0)) {
  303. $this->data['MeasureArray2'][$key]['lessTotal'] = round(($value['currdone'] / $measureArray['contracttotal']) * 100);
  304. } else {
  305. $this->data['MeasureArray2'][$key]['lessTotal'] = 0;
  306. }
  307. }
  308. }
  309. //
  310. $lastRowArray = $this->numofperact->getLastNew2($this->params['pmid']);
  311. $maxTimes = $this->numofperact->getMaxTimes($lastRowArray['pmid'], $lastRowArray['numpname']);
  312. $auditUserArray = $this->measureauditact->getAllAudit($lastRowArray['pmid'], $lastRowArray['numpname'], $maxTimes['times']);
  313. $auditArray = $this->measureauditact->getLastNewRowInfo($lastRowArray['pmid'], $lastRowArray['numpname'], $this->auth->getUid());
  314. if (isset($_POST['act'])) {
  315. $auditStatusArray = array('checkno', 'checked');
  316. $myAuditStatus = $this->measureauditact->getMyAuditStatus($lastRowArray['pmid'], $lastRowArray['numpname'], $maxTimes['times'], $this->auth->getUid());
  317. if (in_array($myAuditStatus['mastatus'], $auditStatusArray)) {
  318. echo json_encode(array('status' => 1), JSON_UNESCAPED_UNICODE);
  319. die();
  320. }
  321. }
  322. if ($_POST['act'] == 'p') {
  323. if ($this->measureauditact->setStatusTo($auditArray['maid'], 3, $_POST['content'], 1)) {
  324. $countAudit = count($auditUserArray);
  325. if ($auditArray['last'] == 1) {
  326. $this->measureauditact->setStatusTo($auditUserArray[0]['maid'], 3);
  327. $this->numofperact->updateAuditStatus($lastRowArray['pmid'], $lastRowArray['numpname'], 'checked', $maxTimes['times']);
  328. echo json_encode(array('status' => 1), JSON_UNESCAPED_UNICODE);
  329. die();
  330. } else {
  331. if (($countAudit == 2) && ($auditUserArray[1]['last'] == 1) && ($auditUserArray[0]['maid'] == $auditArray['maid'])) {
  332. $this->measureauditact->updateMastatus($auditUserArray[1]['maid']);
  333. $this->numofperact->updateAuditStatus($lastRowArray['pmid'], $lastRowArray['numpname'], 'checking', $maxTimes['times']);
  334. echo json_encode(array('status' => 1), JSON_UNESCAPED_UNICODE);
  335. die();
  336. }
  337. if (($countAudit > 2)) {
  338. foreach ($auditUserArray as $k => $v) {
  339. if ($v['maid'] == $auditArray['maid']) {
  340. if ($k == ($countAudit - 1)) {//如果是最后一个
  341. $this->measureauditact->updateMastatus($auditUserArray[0]['maid']);
  342. } else {
  343. $this->measureauditact->updateMastatus($auditUserArray[$k + 1]['maid']);
  344. }
  345. $this->numofperact->updateAuditStatus($lastRowArray['pmid'], $lastRowArray['numpname'], 'checking', $maxTimes['times']);
  346. echo json_encode(array('status' => 1), JSON_UNESCAPED_UNICODE);
  347. die();
  348. }
  349. }
  350. }
  351. }
  352. $this->attfile->updateHash($lastRowArray['pmid'], $lastRowArray['numpname'], $maxTimes['times']);
  353. }
  354. }
  355. if ($_POST['act'] == 'np') {
  356. $this->measureauditact->setCheckno($auditArray['maid'], $_POST['content'], 1);
  357. $this->numofperact->updateAuditStatus($lastRowArray['pmid'], $lastRowArray['numpname'], 'checkno', $maxTimes['times']);
  358. $this->attfile->updateHash($lastRowArray['pmid'], $lastRowArray['numpname'], $maxTimes['times']);
  359. echo json_encode(array('status' => 1), JSON_UNESCAPED_UNICODE);
  360. die();
  361. }
  362. $this->data['pmid'] = $lastRowArray['pmid'];
  363. $this->data['numpname'] = $lastRowArray['numpname'];
  364. $this->data['times'] = $lastRowArray['times'];
  365. $this->data['pid'] = $this->params['pid'];
  366. foreach ($auditUserArray as $key => $value) {
  367. $strAvatar = $this->auth->getAvatar($value['auditoruid']);
  368. $i = $key + 1;
  369. if ($value['auditoruid'] == $this->auth->getUid()) {
  370. $this->data['mastatus'] = $value['mastatus'];
  371. $this->data['maid'] = $value['maid'];
  372. }
  373. if ($value['mastatus'] == 'uncheck') {
  374. $statuStr = '';
  375. $statucolorStr = '';
  376. $statushtml = '<li title="" class=""><img src="' . Doo::conf()->APP_URL . 'global/images/avtra.png"></li>';
  377. }
  378. if ($value['mastatus'] == 'checking') {
  379. $statuStr = '<h4 class="colOrange">审核中</h4>';
  380. $statucolorStr = 'colOrange';
  381. $statushtml = '<li title="审批中" class="wait"><span data-icon="k" aria-hidden="true"></span> <img src="' . $strAvatar . '"></li>';
  382. }
  383. if ($value['mastatus'] == 'checked') {
  384. $statuStr = '<h4 class="colGreen">审批完成(' . date('Y-m-d', $value['audittime']) . ')</h4>';
  385. $statucolorStr = 'colGreen';
  386. $statushtml = '<li title="审批通过" class="pass"><span data-icon="d" aria-hidden="true"></span><img src="' . $strAvatar . '"></li>';
  387. }
  388. if ($value['mastatus'] == 'checkno') {
  389. $statuStr = '<h4 class="colRed">审批不通过(' . date('Y-m-d', $value['audittime']) . ')</h4>';
  390. $statucolorStr = 'colRed';
  391. $statushtml = '<li title="审批不通过" class="notpass"><span data-icon="e" aria-hidden="true"></span><img src="' . $strAvatar . '"></li>';
  392. }
  393. $auditUserArray[$key]['statuStr'] = $statuStr;
  394. $auditUserArray[$key]['statucolorStr'] = $statucolorStr;
  395. $auditUserArray[$key]['statushtml'] = $statushtml;
  396. $auditUserArray[$key]['k'] = $i;
  397. $auditUserArray[$key]['name'] = $this->profile->getProWithUid($value['auditoruid'])['name'];
  398. }
  399. $this->data['auditArray'] = $auditUserArray;
  400. $this->data['pmid'] = $this->params['pmid'];
  401. $this->data['pid'] = $this->params['pid'];
  402. $this->data['mpid'] = $this->params['mpid'];
  403. $this->render('r-project-section-report', $this->data, TRUE);
  404. }
  405. }
  406. ?>