Пример #1
0
} elseif (isset($_POST["mode"]) && $_POST["mode"] == "deleteappt") {
    $body_code = ' onload="javascript:parent.Calendar.location.href=parent.Calendar.location.href;" ';
    deleteCalendarItem($_POST["calid"], $_POST["pid"]);
} elseif (isset($_POST["mode"]) && $_POST["mode"] == "saveappt") {
    $body_code = ' onload="javascript:parent.Calendar.location.href=parent.Calendar.location.href;" ';
    $year = $_POST["year"];
    $month = $_POST["month"];
    $day = $_POST["day"];
    $hour = $_POST["hour"];
    $minute = $_POST["minute"];
    if ($_POST["ampm"] == "pm") {
        $hour += 12;
    }
    $timesave = "{$year}-{$month}-{$day} {$hour}:{$minute}";
    $providerres = sqlQuery("select name from groups where user=? limit 1", array($_POST["provider"]));
    newCalendarItem($_POST["pid"], $timesave, $_POST["reason"], $_POST["provider"], $providerres["name"]);
} else {
    $body_code = "";
    $category = $_GET["event_category"];
    if (empty($category)) {
        $category = $_POST['category'];
    }
}
if (isset($_GET["mode"]) && $_GET["mode"] == "reset") {
    $_SESSION["lastname"] = "";
    $_SESSION["firstname"] = "";
    //$_SESSION["category"] = $_POST["category"];
    $category = $_POST["category"];
}
if (isset($_POST["mode"]) && $_POST["mode"] == "findpatient") {
    $_SESSION["findby"] = $_POST["findBy"];
Пример #2
0
            getProfile();
            break;
        case 'save_profile':
            saveProfile();
            break;
        case 'get_settings':
            getSettings();
            break;
        case 'save_settings':
            saveSettings();
            break;
        case 'get_current_event':
            return Events::getCurrentEvent(true);
            break;
        case 'new':
            newCalendarItem();
            break;
        case 'upload':
            upload();
            break;
        case 'get_files':
            getFiles();
            break;
        case 'remove_file':
            removeFile();
            break;
        default:
            die('no such action available');
    }
    exit;
} else {