コード例 #1
0
ファイル: jq_ajax.php プロジェクト: swash99/ims
    $order_number = 0;
    foreach ($_POST["categoryIds"] as $value) {
        CategoryTable::update_category_order($value, $order_number);
        $order_number++;
    }
}
if (isset($_POST["UpdateTimeslotOrder"])) {
    $order_number = 0;
    foreach ($_POST["timeslotNames"] as $value) {
        TimeslotTable::update_timeslot_order($value, $order_number);
        $order_number++;
    }
}
/*----------------edit_categories.php----------------*/
if (isset($_POST["UpdateItemsCategory"])) {
    ItemTable::update_items_category($_POST["categoryName"], $_POST["itemName"]);
}
/*---------user_account.php--------------*/
if (isset($_POST["userName"])) {
    if (UserTable::verify_credentials($_POST["userName"], $_POST['password'])) {
        echo "true";
    } else {
        echo "false";
    }
}
/*-------------------------user_account.php----------------------*/
if (isset($_POST["timeZoneRegion"])) {
    $timezones = array("Africa" => "1", "America" => "2", "Asia" => "16", "Australia" => "64", "Europe" => "128");
    foreach (timezone_identifiers_list($timezones[$_POST["timeZoneRegion"]]) as $tz) {
        $tzs = explode("/", $tz, 2);
        echo '<option value="' . $tzs[1] . '">' . $tzs[1] . '</option>';