當前位置: 首頁>>代碼示例>>PHP>>正文


PHP database2::gotoPage方法代碼示例

本文整理匯總了PHP中database2::gotoPage方法的典型用法代碼示例。如果您正苦於以下問題:PHP database2::gotoPage方法的具體用法?PHP database2::gotoPage怎麽用?PHP database2::gotoPage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在database2的用法示例。


在下文中一共展示了database2::gotoPage方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: date

<?php

include "../../../myDatabase2.php";
$username = $_POST['username'];
$registrationNo = $_POST['registrationNo'];
$ro = new database2();
$ro->addPermission($registrationNo, $ro->getSynapseTime(), date("Y-m-d"), $username);
$ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/currentPatient/locked/showLocked.php?registrationNo={$registrationNo}&username={$username}");
開發者ID:rickyx12,項目名稱:protacio,代碼行數:8,代碼來源:addPermission.php

示例2:

<?php

include "../../myDatabase2.php";
$registrationNo = $_GET['registrationNo'];
$username = $_GET['username'];
$package = $_GET['package'];
$ro = new database2();
$ro->editNow("registrationDetails", "registrationNo", $registrationNo, "prePackage", $package);
$ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientProfile_handler.php?registrationNo={$registrationNo}&username={$username}");
開發者ID:rickyx12,項目名稱:protacio,代碼行數:9,代碼來源:select_prePackage1.php

示例3:

<?php

include "../../myDatabase2.php";
$registrationNo = $_GET['registrationNo'];
$itemNo = $_GET['itemNo'];
$description = $_GET['description'];
$quantity = $_GET['quantity'];
$username = $_GET['username'];
$show = $_GET['show'];
$desc = $_GET['desc'];
$ro = new database2();
/*
if( ($ro->getTitle($itemNo) == "MEDICINE" || $ro->getTitle($itemNo) == "SUPPLIES")  && $ro->selectNow("registeredUser","module","username",$username) != "PHARMACY" ) {
echo "<br><Br><Br><font color=red>PHARMACY NA LANG MAG RERETURN.
<bR>
NAHIYA AKO SAYO EH BKA BUSY KA. =)</font>";
*/
//}else {
$ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/verifyDelete_redirect.php?registrationNo={$registrationNo}&itemNo={$itemNo}&description={$description}&quantity={$quantity}&username={$username}&show={$show}&desc={$desc}");
//}
開發者ID:rickyx12,項目名稱:protacio,代碼行數:20,代碼來源:verifyDelete_redirect_checkAllow.php

示例4:

<?php

include "../../../myDatabase2.php";
$templateNo = $_POST['templateNo'];
$ro = new database2();
$ro->deleteNow("labResultList", "templateNo", $templateNo);
$ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/Laboratory/resultList/resultFormMasterfile.php");
開發者ID:rickyx12,項目名稱:protacio,代碼行數:7,代碼來源:deleteTemplate1.php

示例5: DateTime

$itemNo = $_GET['itemNo'];
$dateIn = $_GET['dateIn'];
$month = $_GET['month'];
$day = $_GET['day'];
$year = $_GET['year'];
$username = $_GET['username'];
$ro = new database2();
$dateOut = $year . "-" . $month . "-" . $day;
$out = new DateTime($dateOut);
$in = new DateTime($dateIn);
$days = $out->diff($in)->d;
if ($ro->selectNow("patientCharges", "phic", "itemNo", $itemNo) < 1) {
    $ro->editNow("patientCharges", "itemNo", $itemNo, "quantity", $days);
    $ro->editNow("patientCharges", "itemNo", $itemNo, "total", $ro->selectNow("patientCharges", "sellingPrice", "itemNo", $itemNo) * $days);
    $ro->editNow("patientCharges", "itemNo", $itemNo, "cashUnpaid", $ro->selectNow("patientCharges", "sellingPrice", "itemNo", $itemNo) * $days);
    $ro->editNow("patientCharges", "itemNo", $itemNo, "phic", "0");
    $ro->editNow("patientCharges", "itemNo", $itemNo, "company", "0");
    $ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientChargesTitle.php?registrationNo={$registrationNo}&title=Room and Board&username={$username}&show=&desc=");
} else {
    $cashUnpaid = $ro->selectNow("patientCharges", "cashUnpaid", "itemNo", $itemNo);
    $hmo = $ro->selectNow("patientCharges", "company", "itemNo", $itemNo);
    $philhealth = $ro->selectNow("patientCharges", "phic", "itemNo", $itemNo);
    $newTotal = $ro->selectNow("patientCharges", "sellingPrice", "itemNo", $itemNo) * $days;
    $ro->editNow("patientCharges", "itemNo", $itemNo, "quantity", $days);
    $ro->editNow("patientCharges", "itemNo", $itemNo, "total", $newTotal);
    $ro->editNow("patientCharges", "itemNo", $itemNo, "cashUnpaid", $newTotal - $philhealth);
    $ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientChargesTitle.php?registrationNo={$registrationNo}&title=Room and Board&username={$username}&show=&desc=");
}
?>
t
開發者ID:rickyx12,項目名稱:protacio,代碼行數:30,代碼來源:computeDays1.php

示例6: date

<?php

include "../../../myDatabase2.php";
$registrationNo = $_GET['registrationNo'];
$phicPaymentNo = $_GET['phicPaymentNo'];
$username = $_GET['username'];
$ro = new database2();
$ro->editNow("phicPayment", "phicPaymentNo", $phicPaymentNo, "status", "DELETED_" . $username . "_" . date("Y-m-d"));
$ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/Payments/viewPHICPayment.php?registrationNo={$registrationNo}&username={$username}");
開發者ID:rickyx12,項目名稱:mendero,代碼行數:9,代碼來源:deletePHICPayment1.php

示例7:

<?php

include "../../myDatabase2.php";
$packageNo = $_GET['packageNo'];
$packageName = $_GET['packageName'];
$price = $_GET['price'];
$ro = new database2();
$ro->editNow("hospitalPackage", "packageNo", $packageNo, "Added", $price);
$ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/hospitalPackage/showAddedPackage_update.php?packageName={$packageName}");
開發者ID:rickyx12,項目名稱:protacio,代碼行數:9,代碼來源:editItem1.php

示例8:

$cashUnpaid = $_GET['cashUnpaid'];
$doctorsPF = $_GET['doctorsPF'];
$month = $_GET['month'];
$day = $_GET['day'];
$year = $_GET['year'];
$fromTime_hour = $_GET['fromTime_hour'];
$fromTime_minutes = $_GET['fromTime_minutes'];
$fromTime_seconds = $_GET['fromTime_seconds'];
$toTime_hour = $_GET['toTime_hour'];
$toTime_minutes = $_GET['toTime_minutes'];
$toTime_seconds = $_GET['toTime_seconds'];
$username = $_GET['username'];
$registrationNo = $_GET['registrationNo'];
$shift = $_GET['shift'];
$ro = new database2();
$totalz = $cashUnpaid + $doctorsPF;
if ($totalz == $total) {
    if ($ro->selectNow("patientCharges", "title", "itemNo", $itemNo) == "PROFESSIONAL FEE") {
        $ro->editNow("patientCharges", "itemNo", $itemNo, "sellingPrice", $sellingPrice . "/" . $sellingPrice);
    } else {
        $ro->editNow("patientCharges", "itemNo", $itemNo, "sellingPrice", $sellingPrice);
    }
    $ro->editNow("patientCharges", "itemNo", $itemNo, "quantity", $quantity);
    $ro->editNow("patientCharges", "itemNo", $itemNo, "total", $total);
    $ro->editNow("patientCharges", "itemNo", $itemNo, "cashUnpaid", $cashUnpaid);
    $ro->editNow("patientCharges", "itemNo", $itemNo, "company", $doctorsPF);
} else {
    $ro->getBack("ERROR!");
}
$ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/Cashier/patientUnpaidChargesCompany.php?month={$month}&day={$day}&year={$year}&fromTime_hour={$fromTime_hour}&fromTime_minutes={$fromTime_minutes}&fromTime_seconds={$fromTime_seconds}&toTime_hour={$toTime_hour}&toTime_minutes={$toTime_minutes}&toTime_seconds={$toTime_seconds}&username={$username}&registrationNo={$registrationNo}&shift={$shift}");
開發者ID:rickyx12,項目名稱:protacio,代碼行數:30,代碼來源:editChargesCashier1.php

示例9:

<?php

include "../../myDatabase2.php";
$registrationNo = $_GET['registrationNo'];
$itemNo = $_GET['itemNo'];
$description = $_GET['description'];
$quantity = $_GET['quantity'];
$username = $_GET['username'];
$show = $_GET['show'];
$desc = $_GET['desc'];
$ro = new database2();
//if( ($ro->getTitle($itemNo) == "MEDICINE" || $ro->getTitle($itemNo) == "SUPPLIES")  && $ro->selectNow("registeredUser","module","username",$username) != "PHARMACY" ) {
//echo "<br><Br><Br><font color=red>PHARMACY NA LANG MAG RERETURN.
//<bR>
//NAHIYA AKO SAYO EH BKA BUSY KA. =)</font>";
//}else {
//}
if ($ro->selectNow("patientCharges", "inventoryFrom", "itemNo", $itemNo) != "PHARMACY" && $ro->selectNow("patientCharges", "inventoryFrom", "itemNo", $itemNo) != "CSR") {
    $ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/itemDepartment.php?itemNo={$itemNo}&username={$username}&return=main");
} else {
    $ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/verifyDelete_redirect_checkAllow.php?registrationNo={$registrationNo}&itemNo={$itemNo}&description={$description}&quantity={$quantity}&username={$username}&show={$show}&desc={$desc}");
}
開發者ID:rickyx12,項目名稱:mendero,代碼行數:22,代碼來源:verifyDelete_pass_checkAllow.php

示例10:

<?php

include "../../../myDatabase2.php";
$inventoryCode = $_GET['inventoryCode'];
$department = $_GET['department'];
$description = $_GET['description'];
$date = $_GET['date'];
$time = $_GET['time'];
$username = $_GET['username'];
$qty = $_GET['qty'];
$ro = new database2();
$newQTY = $ro->selectNow("inventory", "quantity", "inventoryCode", $inventoryCode) - $qty;
$ro->editNow("inventory", "inventoryCode", $inventoryCode, "quantity", $newQTY);
$ro->addConsumed($inventoryCode, $department, $qty, $description, $date, $time, $username);
echo "<script>alert('{$qty} pcs of {$description} is now Consumed and deducted to the inventory ')</script>";
$ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/inventory/department/searchInventory.php?username={$username}&department={$department}");
開發者ID:rickyx12,項目名稱:mendero,代碼行數:16,代碼來源:inventoryLog.php

示例11: date

<?php

include "../../myDatabase2.php";
$itemNo = $_GET['itemNo'];
$username = $_GET['username'];
$return = $_GET['return'];
$ro = new database2();
$ro->editNow("patientCharges", "itemNo", $itemNo, "status", "DELETED_" . $username . "[" . date("Y-m-d") . "@" . date("H:i:s") . "]");
$ro->editNow("inventory", "inventoryCode", $ro->selectNow("patientCharges", "chargesCode", "itemNo", $itemNo), "quantity", $ro->selectNow("patientCharges", "quantity", "itemNo", $itemNo) + $ro->selectNow("inventory", "quantity", "inventoryCode", $ro->selectNow("patientCharges", "chargesCode", "itemNo", $itemNo)));
$ro->editNow("inventory", "inventoryCode", $ro->selectNow("patientCharges", "chargesCode", "itemNo", $itemNo), "status", "");
$registrationNo = $ro->selectNow("patientCharges", "registrationNo", "itemNo", $itemNo);
$batchNo = $ro->selectNow("patientCharges", "batchNo", "itemNo", $itemNo);
if ($return == "main") {
    $title = $ro->selectNow("patientCharges", "title", "itemNo", $itemNo);
    $ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientChargesTitle.php?registrationNo={$registrationNo}&title={$title}&username={$username}&show=&desc=");
} else {
    $ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/ECART/showCart_update.php?registrationNo={$registrationNo}&batchNo={$batchNo}&username={$username}");
}
開發者ID:rickyx12,項目名稱:mendero,代碼行數:18,代碼來源:itemDepartment.php

示例12:

<?php

include "../../myDatabase2.php";
$verificationNo = $_POST['verificationNo'];
$quantity = $_POST['quantity'];
$username = $_POST['username'];
$batchNo = $_POST['batchNo'];
$ro = new database2();
$ro->editNow("inventoryManager", "verificationNo", $verificationNo, "quantity", $quantity);
$ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/CSR/showRequest.php?username={$username}&batchNo={$batchNo}");
開發者ID:rickyx12,項目名稱:mendero,代碼行數:10,代碼來源:editItem1.php

示例13:

<?php

include "../../../myDatabase2.php";
$itemNo = $_POST['itemNo'];
$registrationNo = $_POST['registrationNo'];
$ro = new database2();
$ro->deleteNow("patientCharges", "itemNo", $itemNo);
$ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/android/doctor/viewHospitalCharges.php?registrationNo={$registrationNo}");
開發者ID:rickyx12,項目名稱:protacio,代碼行數:8,代碼來源:deleteCharges1.php

示例14:

<?php

include "../../../myDatabase2.php";
$verificationNo = $_GET['verificationNo'];
$batchNo = $_GET['batchNo'];
$username = $_GET['username'];
$ro = new database2();
$ro->deleteNow("inventoryManager", "verificationNo", $verificationNo);
$ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/requestition/batchRequest/showCart_update.php?batchNo={$batchNo}&username={$username}");
開發者ID:rickyx12,項目名稱:protacio,代碼行數:9,代碼來源:deleteRequest.php

示例15: date

}
if (isset($_GET['instruction1'])) {
    $instruction1 = $_GET['instruction1'];
} else {
    $instruction1 = "";
}
if (isset($_GET['indication1'])) {
    $indication1 = $_GET['indication1'];
} else {
    $indication1 = "";
}
$ro = new database2();
$ro->getPatientProfile($registrationNo);
$currentTotal = $quantity * $sellingPrice;
$grandTotal = $currentTotal;
if ($decision == "yes") {
    $dateCharge = date("Y-m-d");
    $ro->addCharges_cash_mobile($status, $registrationNo, $chargesCode, $description, $sellingPrice, "0", $grandTotal, $grandTotal, 0, 0, $timeCharge, $dateCharge, $username, $service, $title, $paidVia, $cashPaid, $batchNo, $quantity, $inventoryFrom, $ro->getRegistrationDetails_branch(), $room);
    if ($title == "MEDICINE") {
        $ro->addNewPlan($registrationNo, $description, $timing1, $instruction1, $indication1, $quantity);
    } else {
    }
} else {
    if ($title != "MEDICINE") {
        $ro->editNow("registrationDetails", "registrationNo", $registrationNo, "advised", $ro->selectNow("registrationDetails", "advised", "registrationNo", $registrationNo) . "," . $description);
        $ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/android/doctor/mobileAddCharges_charges.php?registrationNo={$registrationNo}&username={$username}&room={$room}&batchNo={$batchNo}");
    } else {
        $ro->addNewPlan_fromCharging($registrationNo, $description, $timing1, $instruction1, $indication1, $quantity, $batchNo, $room, $username);
        $ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/android/doctor/mobileAddCharges_medicine.php?registrationNo={$registrationNo}&username={$username}&room={$room}&batchNo={$batchNo}");
    }
}
開發者ID:rickyx12,項目名稱:protacio,代碼行數:31,代碼來源:addCharges.php


注:本文中的database2::gotoPage方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。