Ejemplo n.º 1
0
        }
        $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}'");
}
$result = DB_query("SELECT * FROM {$_TABLES['prj_projects']} WHERE pid='{$pid}'");
$A = DB_fetchArray($result);
$sql = "SELECT {$_TABLES['users']}.fullname FROM {$_TABLES['prj_users']}, {$_TABLES['users']} WHERE ";
Ejemplo n.º 2
0
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;
}