Advertisement
Guest User

Untitled

a guest
Nov 9th, 2020
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 4.1.0.1
  8. * @ Author : DeZender
  9. * @ Release on : 29.08.2020
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. class myproject extends project
  15. {
  16. public function gantt($projectID, $type = '')
  17. {
  18. if (empty($type)) {
  19. $type = $this->cookie->ganttType;
  20.  
  21. if (empty($type)) {
  22. $type = 'type';
  23. }
  24. }
  25.  
  26. setcookie('ganttType', $type, $this->config->cookieLife, $this->config->webRoot, '', false, true);
  27. $project = $this->commonAction($projectID);
  28. $projectID = $project->id;
  29. $this->project->setMenu($this->project->getPairs(), $projectID);
  30. $users = $this->loadModel('user')->getPairs('noletter');
  31. $userList = [];
  32.  
  33. foreach ($users as $account => $realname) {
  34. $user = [];
  35. $user['key'] = $account;
  36. $user['label'] = $realname;
  37. $userList[] = $user;
  38. }
  39.  
  40. $this->view->userList = $userList;
  41. $ganttColor = [];
  42.  
  43. foreach ($this->lang->task->priList as $priKey => $priValue) {
  44. $ganttColor[$priKey] = zget($this->lang->project->gantt->color, $priKey, '');
  45.  
  46. if (empty($ganttColor[$priKey])) {
  47. .............................................................................
  48. ....................................................
  49. ...............................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement