function render() { $project_id = $this->app->stickyGET('project_id'); $model_task = $this->add('xepan\\projects\\Model_Task')->addCondition('project_id', $project_id)->addCondition('status', 'Pending')->addCondition('employee_id', $this->app->employee->id); $rows = []; foreach ($model_task as $task) { $rows[$task->id] = []; $rows[$task->id]['title'] = $task['task_name']; $rows[$task->id]['start'] = $task['created_at'] ?: '1970-01-01'; $rows[$task->id]['end'] = $task['deadline']; } $task = array_values($rows); $this->js(true)->_load('fullcalendar.min')->_load('xepan-taskscheduler'); $this->js(true)->_selector('#calendar')->univ()->taskDate($task); parent::render(); }
function render() { $this->js(true)->_load('gantt\\ganttUtilities')->_load('gantt\\ganttTask')->_load('gantt\\ganttDrawerSVG')->_load('gantt\\ganttGridEditor')->_load('gantt\\ganttMaster')->_load('gantt\\ganttTask'); $this->js(true)->_selector('#calendar')->GanttMaster(); parent::render(); }
function render() { $this->app->jui->addStaticInclude('jquery.easypiechart.min'); parent::render(); }