function project_task_admin_page() { echo ' <div class="wrap"> <div id="icon-themes" class="icon32" style="background: url(' . plugins_url('project-tasks') . '/files/project-task-icon-large.png' . ') no-repeat;"><br/></div> <h2>Project Tasks</h2> <div id="project_tasks_content">'; $task_list = new project_tasks_list(); $task_list->render_list(); echo ' </div></div> '; }
public function render_subtasks_list() { $task_id = project_tasks_general::get_var_from_request('task_id', '0'); if ($task_id == '0') { die('You must save this task before adding a sub task'); } $task_list = new project_tasks_list(); $task_list->render_list(array('parent_task' => project_tasks_general::get_var_from_request('task_id', $task_id), 'columns' => array('title', 'assigned_to', 'status'), 'show_controls' => '0', 'embed_selectors' => '1')); }
function render_task_list_ajax() { $task_list = new project_tasks_list(); $task_list->render_list(); die; }