} else { $p->set_var('log_entry', $strings['noresults']); $p->parse('task_log_entries', 'tasklog'); } $p->parse('output', 'task'); echo $p->finish($p->get_var('output')); echo "</div>"; echo COM_siteFooter(); exit; break; //although we handle this in ajax, these are catch alls in the //event the system has the up/dn/lft/right post/get-ed to it. //although we handle this in ajax, these are catch alls in the //event the system has the up/dn/lft/right post/get-ed to it. case 'movetaskup': prj_moveTaskUp($tid); break; case 'movetaskdn': prj_moveTaskDown($tid); break; case 'movetasklft': prj_moveTaskLeft($tid); break; case 'movetaskrht': prj_moveTaskRight($tid); break; default: } if (empty($pid)) { $pid = DB_getItem($_TABLES['prj_tasks'], 'pid', "tid = '{$tid}'"); }
header("content-type: text/xml"); if ($id > 0) { $sql = "SELECT pid FROM {$_TABLES['prj_tasks']} WHERE tid='{$id}'"; $res = DB_query($sql); list($pid) = DB_fetchArray($res); } switch ($mode) { case 'movetasklft': prj_moveTaskLeft($id); prj_displayMyTasks($blockPage, $pid); break; case 'movetaskrht': prj_moveTaskRight($id); prj_displayMyTasks($blockPage, $pid); break; case 'movetaskup': prj_moveTaskUp($id); prj_displayMyTasks($blockPage, $pid); break; case 'movetaskdn': prj_moveTaskDown($id); prj_displayMyTasks($blockPage, $pid); break; case 'myprj_refresh': COM_errorLog('myprj_refresh'); prj_displayMyProjectTasks($blockPage); break; case 'refresh': prj_displayMyTasks($blockPage, $pid); break; }