本文整理汇总了PHP中database::editNow方法的典型用法代码示例。如果您正苦于以下问题:PHP database::editNow方法的具体用法?PHP database::editNow怎么用?PHP database::editNow使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类database
的用法示例。
在下文中一共展示了database::editNow方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: database
<?php
include "../../../myDatabase.php";
$itemNo = $_GET['itemNo'];
$batchNo = $_GET['batchNo'];
$registrationNo = $_GET['registrationNo'];
$username = $_GET['username'];
$ro = new database();
if ($ro->selectNow("inventory", "inventoryLocation", "inventoryCode", $ro->selectNow("patientCharges", "chargesCode", "itemNo", $itemNo)) != "PHARMACY") {
//echo "<script type='text/javascript'>alert('You cannot delete that meds/sup here its already dispensed pls return instead in Medicine menu');</script>";
$ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/itemDepartment.php?itemNo={$itemNo}&username={$username}&return=ecart");
} else {
//$ro->deleteNow("patientCharges","itemNo",$itemNo);
$ro->editNow("patientCharges", "itemNo", $itemNo, "status", "DELETED_" . $username . "[" . date("Y-m-d") . "@" . $ro->getSynapseTime() . "]");
}
$ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/ECART/showCart_update.php?registrationNo={$registrationNo}&batchNo={$batchNo}&username={$username}");
示例2: function
function () {
$(this).addClass("hover").children().addClass("hover");
$(this).parent().prev().find("span.arrow:first").addClass("pre_hover");
},
function () {
$(this).removeClass("hover").children().removeClass("hover");
$(this).parent().prev().find("span.arrow:first").removeClass("pre_hover");
}
);
</script>
<?php
if ($status == "new") {
$stockCardNo = $ro->selectNow("trackingNo", "value", "name", "stockCardNo");
$newStockCardNo = $stockCardNo + 1;
$ro->editNow("trackingNo", "name", "stockCardNo", "value", $newStockCardNo);
/*
$ro->getInventoryStockCardNo();
$myFile = $ro->getReportInformation("homeRoot")."/COCONUT/trackingNo/stockCardNo.dat";
$fh = fopen($myFile, 'r');
$stockCardNo = fread($fh, 100);
fclose($fh);
*/
} else {
$stockCardNo = $oldStockCardNo;
}
$description1 = $_GET['description'];
echo "<body onload='DisplayTime();'>";
echo "<form method='post' action='addInventory_insert.php'>";
echo "<input type='hidden' name='description1' value='{$description1}' />";
echo "<input type='hidden' name='genericName1' value='' />";
示例3: database
$registrationNo = $_GET['registrationNo'];
$casetype = $_GET['casetype'];
$cash = $_GET['cash'];
$case = $_GET['case'];
$ro = new database();
$ro->getPHIClimit_setter($casetype);
echo $cash - $ro->getPHIClimit_room();
echo "<br><br>";
$itemz = preg_split("/\\_/", $ro->getMaximumTotal_any($registrationNo, "Room And Board"));
echo "Price:" . $itemz[0];
echo "<br><br>item no." . $itemz[1];
$ro->getPatientChargesToEdit($itemz[1]);
if ($itemz[0] >= $ro->getPHIClimit_room()) {
$newCash = $ro->patientCharges_cashUnpaid() - ($ro->getPHIClimit_room() - $ro->getTotal("phic", "Room And Board", $registrationNo));
if ($newCash > 1) {
$ro->editNow("patientCharges", "itemNo", $itemz[1], "cashUnpaid", $newCash);
$ro->editNow("patientCharges", "itemNo", $itemz[1], "phic", $ro->getPHIClimit_room() - $ro->getTotal("phic", "Room And Board", $registrationNo));
} else {
$ro->editNow("patientCharges", "itemNo", $itemz[1], "cashUnpaid", "0");
$ro->editNow("patientCharges", "itemNo", $itemz[1], "phic", $ro->patientCharges_cashUnpaid());
}
} else {
$ro->editNow("patientCharges", "itemNo", $itemz[1], "cashUnpaid", "0");
$ro->editNow("patientCharges", "itemNo", $itemz[1], "phic", $ro->patientCharges_cashUnpaid());
}
if ($ro->getTotal("phic", "Room And Board", $registrationNo) != $ro->getPHIClimit_room()) {
$ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/phicLimit/phicFuller_room.php?registrationNo={$registrationNo}&casetype={$casetype}&cash=&case={$case}");
} else {
if ($ro->getMaximumTotal_any_checker($registrationNo, "Room And Board") == 0) {
$ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/phicLimit/phicFuller_PF.php?registrationNo={$registrationNo}&casetype={$casetype}&cash=&case={$case}");
} else {
示例4: database
<?php
include "../../../myDatabase.php";
$itemNo = $_GET['itemNo'];
$registrationNo = $_GET['registrationNo'];
$subjective = $_GET['subjective'];
$objective = $_GET['objective'];
$assessment = $_GET['assessment'];
$plan = $_GET['plan'];
$username = $_GET['username'];
$ro = new database();
$ro->getPatientProfile($registrationNo);
$ro->getSOAP($itemNo, $registrationNo);
$ro->editNow("SOAP", "soapNo", $ro->soap_soapNo(), "subjective", $subjective);
$ro->editNow("SOAP", "soapNo", $ro->soap_soapNo(), "objective", $objective);
$ro->editNow("SOAP", "soapNo", $ro->soap_soapNo(), "assessment", $assessment);
$ro->editNow("SOAP", "soapNo", $ro->soap_soapNo(), "plan", $plan);
$ro->editNow("SOAP", "soapNo", $ro->soap_soapNo(), "patientNo", $ro->getRegistrationDetails_patientNo());
echo "\n<script type='text/javascript'>\nwindow.location='http://" . $ro->getMyUrl() . "/COCONUT/Doctor/doctorModule/soapView.php?itemNo={$itemNo}®istrationNo={$registrationNo}&username={$username}';\n</script>\n\n";
示例5: database
$controlDay25 = $_POST['controlDay25'];
$day26 = $_POST['day26'];
$controlDay26 = $_POST['controlDay26'];
$day27 = $_POST['day27'];
$controlDay27 = $_POST['controlDay27'];
$day28 = $_POST['day28'];
$controlDay28 = $_POST['controlDay28'];
$day29 = $_POST['day29'];
$controlDay29 = $_POST['controlDay29'];
$day30 = $_POST['day30'];
$controlDay30 = $_POST['controlDay30'];
$day31 = $_POST['day31'];
$controlDay31 = $_POST['controlDay31'];
$ro = new database();
//itp dpat and eedit
$ro->editNow("patientRecord", "Birthdate", $day1, "Birthdate", $controlDay1);
$ro->editNow("patientRecord", "Birthdate", $day2, "Birthdate", $controlDay2);
$ro->editNow("patientRecord", "Birthdate", $day3, "Birthdate", $controlDay3);
$ro->editNow("patientRecord", "Birthdate", $day4, "Birthdate", $controlDay4);
$ro->editNow("patientRecord", "Birthdate", $day5, "Birthdate", $controlDay5);
$ro->editNow("patientRecord", "Birthdate", $day6, "Birthdate", $controlDay6);
$ro->editNow("patientRecord", "Birthdate", $day7, "Birthdate", $controlDay7);
$ro->editNow("patientRecord", "Birthdate", $day8, "Birthdate", $controlDay8);
$ro->editNow("patientRecord", "Birthdate", $day9, "Birthdate", $controlDay9);
$ro->editNow("patientRecord", "Birthdate", $day10, "Birthdate", $controlDay10);
$ro->editNow("patientRecord", "Birthdate", $day11, "Birthdate", $controlDay11);
$ro->editNow("patientRecord", "Birthdate", $day12, "Birthdate", $controlDay12);
$ro->editNow("patientRecord", "Birthdate", $day13, "Birthdate", $controlDay13);
$ro->editNow("patientRecord", "Birthdate", $day14, "Birthdate", $controlDay14);
$ro->editNow("patientRecord", "Birthdate", $day15, "Birthdate", $controlDay15);
$ro->editNow("patientRecord", "Birthdate", $day16, "Birthdate", $controlDay16);
示例6: database
<?php
include "../../../myDatabase.php";
$payee = $_POST['payee'];
$amount = $_POST['amount'];
$username = $_POST['username'];
$requestNo = $_POST['requestNo'];
$date = $_POST['date'];
$ro = new database();
$ro->coconutDesign();
$ro->editNow("admin2request", "requestNo", $requestNo, "releasedBy", $username);
$ro->editNow("admin2request", "requestNo", $requestNo, "releaseTime", $ro->getSynapseTime());
$ro->editNow("admin2request", "requestNo", $requestNo, "releaseDate", date("Y-m-d"));
$ro->editNow("admin2request", "requestNo", $requestNo, "releaseTo", $payee);
$ro->editNow("admin2request", "requestNo", $requestNo, "releasedAmount", $amount);
//$ro->gotoPage("http://".$ro->getMyUrl()."/COCONUT/ADMIN/request/viewApprovedRequest.php?date=$date&username=$username");
echo "\n<style type='text/css'>\ntr:hover { background-color:yellow; color:black;}\na { text-decoration:none; color:black; }\n</style>";
echo "Request#:" . $requestNo;
echo "<br>";
$ro->coconutTableStart();
$ro->coconutTableRowStart();
$ro->coconutTableData("<b>Description</b>");
$ro->coconutTableData($ro->selectNow("admin2request", "description", "requestNo", $requestNo));
$ro->coconutTableRowStart();
$ro->coconutTableData("<b>QTY</b>");
$ro->coconutTableData($ro->selectNow("admin2request", "qty", "requestNo", $requestNo));
$ro->coconutTableRowStop();
$ro->coconutTableRowStart();
$ro->coconutTableData("<b>Price</b>");
$ro->coconutTableData($ro->selectNow("admin2request", "price", "requestNo", $requestNo));
$ro->coconutTableRowStop();
示例7: database
<?php
include "../../myDatabase.php";
$radioSavedNo = $_GET['radioSavedNo'];
$username = $_GET['username'];
$module = $_GET['module'];
$doctorCode = $_GET['doctorCode'];
$ro = new database();
$ro->editNow("radioSavedReport", "radioSavedNo", $radioSavedNo, "approved", "yes");
$ro->editNow("radioSavedReport", "radioSavedNo", $radioSavedNo, "approvedDate", date("Y-m-d"));
$ro->editNow("radioSavedReport", "radioSavedNo", $radioSavedNo, "approvedTime", $ro->getSynapseTime());
$ro->editNow("radioSavedReport", "radioSavedNo", $radioSavedNo, "approvedBy", $username);
$ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/radiology/forApproval.php?username={$username}&module={$module}&doctorCode={$doctorCode}");
示例8: database
<?php
require_once "../authentication.php";
include "../../myDatabase.php";
include "../../myDatabase4.php";
$invoiceNo = $_POST['invoiceNo'];
$supplier = $_POST['supplier'];
$terms = $_POST['terms'];
$date = $_POST['date'];
$ro = new database();
$ro4 = new database4();
$purchaseDate = date("Ymd");
$counterDate = $ro->selectNow("counters", "counterDate", "id", "1");
$counter01 = $ro->selectNow("counters", "counter01", "id", "1");
if ($purchaseDate != $counterDate) {
$ro->editNow("counters", "id", "1", "counterDate", $purchaseDate);
$ro->editNow("counters", "id", "1", "counter01", "0");
} else {
$newCounter01 = $counter01 + 1;
$ro->editNow("counters", "counterdate", $purchaseDate, "counter01", $newCounter01);
}
if ($counter01 < 10) {
$sino = date("Ymd") . "000" . $counter01;
} else {
if ($counter01 > 9 && $counter01 < 100) {
$sino = date("Ymd") . "00" . $counter01;
} else {
if ($counter01 > 99 && $counter01 < 1000) {
$sino = date("Ymd") . "0" . $counter01;
} else {
$sino = date("Ymd") . $counter01;
示例9: database
<?php
include "../../myDatabase.php";
$sssID = $_POST['sssID'];
$range1 = $_POST['range1'];
$range2 = $_POST['range2'];
$monthlySalaryCredit = $_POST['monthlySalaryCredit'];
$ER = $_POST['ER'];
$EE = $_POST['EE'];
$total = $_POST['total'];
$EC_ER = $_POST['EC_ER'];
$username = $_POST['username'];
$ro = new database();
$ro->editNow("contribution_sss", "sssID", $sssID, "range1", $range1);
$ro->editNow("contribution_sss", "sssID", $sssID, "range2", $range2);
$ro->editNow("contribution_sss", "sssID", $sssID, "monthlySalaryCredit", $monthlySalaryCredit);
$ro->editNow("contribution_sss", "sssID", $sssID, "ER", $ER);
$ro->editNow("contribution_sss", "sssID", $sssID, "EE", $EE);
$ro->editNow("contribution_sss", "sssID", $sssID, "total", $total);
$ro->editNow("contribution_sss", "sssID", $sssID, "EC_ER", $EC_ER);
$ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/payroll/sssTable.php?username={$username}");
示例10: fopen
<li><a href="#" class="odd">Patient<span class="arrow"></span></a></li>
<li> </li>
</ol>
<?php
/*
$ro->getRegistrationNo();
$myFile = $ro->getReportInformation("homeRoot")."/COCONUT/trackingNo/registrationNo.dat";
$fh = fopen($myFile, 'r');
$registrationNo = fread($fh, 100);
fclose($fh);
*/
$registrationNo = $ro->selectNow("trackingNo", "value", "name", "registrationNo");
$incrementRegistrationNo = $ro->selectNow("trackingNo", "value", "name", "registrationNo") + 1;
$ro->editNow("trackingNo", "name", "registrationNo", "value", $incrementRegistrationNo);
/*
$ro->getPatientID();
$myFile = "/opt/lampp/htdocs/COCONUT/trackingNo/patientID.dat";
$fh = fopen($myFile, 'r');
$patientNo = fread($fh, 100);
fclose($fh);
*/
//newRecord_insert.php
echo "<br><br>";
echo "<body>";
/****
if($ro->checkBalance($patientNo) != 0) {
echo "<Center><font size=2 color=red>This patient has a Balance Pls Proceed to Cashier to pay the unpaid amount</font>";
}
*/
示例11: database
<?php
include "../../../myDatabase.php";
$username = $_POST['username'];
$user = $_POST['user'];
$password = $_POST['password'];
$module = $_POST['module'];
$branch = $_POST['branch'];
$completeName = $_POST['completeName'];
$employeeID = $_POST['employeeID'];
$show = $_POST['show'];
$station = $_POST['station'];
$position = $_POST['position'];
$ro = new database();
$ro->editNow("registeredUser", "employeeID", $employeeID, "username", $user);
$ro->editNow("registeredUser", "employeeID", $employeeID, "password", $password);
$ro->editNow("registeredUser", "employeeID", $employeeID, "module", $module);
$ro->editNow("registeredUser", "employeeID", $employeeID, "branch", $branch);
$ro->editNow("registeredUser", "employeeID", $employeeID, "station", $station);
$ro->editNow("registeredUser", "employeeID", $employeeID, "completeName", $completeName);
$ro->editNow("registeredUser", "employeeID", $employeeID, "position", $position);
echo "\n<script type='text/javascript'>\nwindow.location='http://" . $ro->getMyUrl() . "/COCONUT/masterfile/user.php?username={$username}&show={$show}';\n</script>\n\n\n";
示例12: database
<?php
include "../../../myDatabase.php";
$registrationNo = $_GET['registrationNo'];
$casetype = $_GET['casetype'];
$ro = new database();
$ro->getPatientProfile($registrationNo);
$ro->getPHIClimit_setter($casetype);
if ($ro->getPatientRecord_phic() == "yes" || $ro->getPatientRecord_phic() == "YES") {
//check kung phic
$phicMed = $ro->getTotal("cashUnpaid", "", $registrationNo) - $ro->getPHIClimit_medicine();
echo $phicMed;
$ro->editNow("patientCharges", "itemNo", $ro->getHighestCharges_itemNo("MEDICINE", "cashUnpaid", $registrationNo), "phic", $ro->getPHIClimit_medicine());
// magLLgay ng amount based on PHIC-med limit
$ro->editNow("patientCharges", "itemNo", $ro->getHighestCharges_itemNo("MEDICINE", "cashUnpaid", $registrationNo), "cashUnpaid", $ro->getTotal("cashUnpaid", "", $registrationNo) - $ro->getPHIClimit_medicine());
// magLLgay ng amount based on PHIC-med limit
} else {
echo "hello";
}
示例13: database
<?php
include "../../../myDatabase.php";
$registrationNo = $_GET['registrationNo'];
$advised = $_GET['advised'];
$followUp = $_GET['followUp'];
$ro = new database();
$ro->editNow("registrationDetails", "registrationNo", $registrationNo, "advised", $advised);
$ro->editNow("registrationDetails", "registrationNo", $registrationNo, "followUp", $followUp);
$ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/android/doctor/newPlan.php?registrationNo={$registrationNo}");
示例14: date
echo "alert('Pls Enter a Birth Year');";
echo "history.back();";
echo "</script>";
}
if ($company == "Select Company") {
$company = "";
}
$completeName = $lastname . " " . $firstname . " " . $middlename;
$x = 0;
$year = date("Y");
$x = (int) $year;
$birthDate = $birthYear . "-" . $month . "-" . $day;
try {
$incrementRegNo = $ro->selectNow("trackingNo", "value", "name", "registrationNo") + 1;
$incrementPatNo = $ro->selectNow("trackingNo", "value", "name", "patientNo") + 1;
$ro->editNow("trackingNo", "name", "registrationNo", "value", $incrementRegNo);
$ro->editNow("trackingNo", "name", "patientNo", "value", $incrementPatNo);
if ($pxCount > 0) {
$newPxCount = $pxCount + 1;
$ro->editNow("pxCount", "id", "1", "pxCount", $newPxCount);
$ro->editNow("pxCount", "id", "1", "currentDate", date("Y-m-d"));
} else {
}
if ($registrationStatus == "new") {
// Registration Status [new]
$ro->addNewPatientRecord($patientNo, $manual_patientID, $lastname, $firstname, $middlename, $completeName, $ro->calculate_age($birthDate), $patientContact, $birthDate, $gender, $seniorCitizen, $address, $philHealth, $civilStatus, $religion, $email);
if ($room == "OPD") {
$ro->addNewRegistration($patientNo, $registrationNo, $manual_patientID, $manual_caseno, $bloodpressure, $patientTemperature, $height, $weight, $company, $diagnosis, $dateRegistered, $serverTime, $ro->getUserBranch($password), "OPD", "OPD_OPD", $ro->getUserRegistered(), $casetype, "2000", date("Y-m-d"), $diet, $pulse, $respiratory, $from, $pxCount);
} else {
if ($room == "walkin") {
$ro->addNewRegistration($patientNo, $registrationNo, $manual_patientID, $manual_caseno, $bloodpressure, $patientTemperature, $height, $weight, $company, $diagnosis, $dateRegistered, $serverTime, $ro->getUserBranch($password), "walkin", "walkin_walkin", $ro->getUserRegistered(), $casetype, "2000", date("Y-m-d"), $diet, $pulse, $respiratory, $from, $pxCount);
示例15: database
<?php
include "../../../myDatabase1.php";
$registrationNo = $_GET['registrationNo'];
$username = $_GET['username'];
$ro = new database();
$ro->deletePatientCharges_batch($registrationNo, "package");
$ro->editNow("registrationDetails", "registrationNo", $registrationNo, "package", "");
echo "\r\n<script type='text/javascript'>\r\nalert('Package Removed');\r\nwindow.parent.location.reload();\r\n</script>\r\n\r\n";