Esempio n. 1
0
include_once 'Core.php';
Headprint();
$AID = $_SESSION["idnum"];
$mode = $_POST["mode"];
$TID = 0;
$MINI = $_SESSION["MINI"];
$DISPLAY = $_SESSION["DISPLAY"];
if ($mode == "ViewTask") {
    $TID = $_POST["TID"];
} else {
    if ($mode == "ViewTasklist") {
    } else {
        if ($mode == "NextTasks") {
            $TID = getNextTask($AID);
            printSmartTaskUI($TID, $AID);
        } else {
            if ($mode == "CreateTasks") {
            } else {
                if ($mode == "CreateTemplate") {
                    $create = $_POST["create"];
                    if ($create == 1) {
                        $Req = $_POST["Req"];
                        $Fields = $_POST["Use"];
                        $Name = $_POST["Name"];
                        $Desc = $_POST["Desc"];
                        $Perm = $_POST["Perm"];
                        createTaskTemplate($Name, $Desc, $Fields, $Req, $Perm);
                        echo "<div class='confirmation'>A Template named {$Name}<br>Has been created successfully!</div>";
                    }
                } else {
Esempio n. 2
0
function printUI($AID, $mode, $TID, $MINI)
{
    echo "<div class='MainWindow'>";
    echo "<div class='MenuButtons'>";
    if ($mode == "0") {
        printTasksButtons();
    } else {
        if ($mode == "ViewTask") {
            printSmartTaskUI($TID, $AID);
        } else {
            if ($mode == "ViewTasklist") {
                printListofTasks($AID);
            } else {
                if ($mode == "Search") {
                    printlistofCustomers($TID, $AID);
                } else {
                    if ($mode == "CreateTemplate") {
                        printTemplateMaker($AID, $MINI);
                    } else {
                        if ($mode == "CreateTasks") {
                        }
                    }
                }
            }
        }
    }
    echo "</div>";
    //Closes MenuButtons
    if ($MINI == "X") {
        echo "<div class='Invis'>";
    }
    if ($MINI == "1" || $MINI == "0") {
        printchat($AID, $MINI);
        if ($MINI == "1") {
            echo "<div class='minibottom'>";
        } else {
            if ($MINI == "0") {
                echo "<div class='bottom'>";
            }
        }
        printCalendar($AID);
        echo "</div>";
    }
    echo "</div>";
    echo "</div>";
    //Closes MainWindow
}