当前位置: 首页>>代码示例>>PHP>>正文


PHP database1类代码示例

本文整理汇总了PHP中database1的典型用法代码示例。如果您正苦于以下问题:PHP database1类的具体用法?PHP database1怎么用?PHP database1使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了database1类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: database1

<?php

include "../../../myDatabase1.php";
$title = $_GET['title'];
$templateNo = $_GET['templateNo'];
$ro = new database1();
$ro->coconutDesign();
echo "<br>";
echo "<font size=4>TITLE:&nbsp;</font>";
$ro->coconutFormStart("post", "editResultForm1.php");
$ro->coconutTextBox("title", $title);
$ro->coconutHidden("templateNo", $templateNo);
?>

<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>

<?php 
echo "<textarea id='formTemplate' name='formTemplate'>" . $ro->selectNow("labResultList", "template", "templateNo", $templateNo) . "</textarea>";
$ro->coconutFormStop();
?>

<script type="text/javascript">
			
			CKEDITOR.replace( 'formTemplate',
	{
		enterMode : CKEDITOR.ENTER_BR,
		skin : 'office2003',
		extraPlugins:'autogrow'
	});
		
开发者ID:rickyx12,项目名称:protacio,代码行数:29,代码来源:editResultForm.php

示例2: database1

<?php

include "../../myDatabase1.php";
$ro = new database1();
$ro->coconutDesign();
echo "<br><br><br><br><br>";
$ro->coconutFormStart("get", "addPackage1.php");
$ro->coconutBoxStart("500", "80");
echo "<Br>";
echo "<table border=0>";
echo "<tr>";
echo "<Td>Package Name&nbsp;</tD>";
echo "<td>";
$ro->coconutTextBox("packageName", "");
echo "</td>";
echo "</tr>";
echo "</table>";
echo "<br>";
$ro->coconutButton("Proceed");
$ro->coconutBoxStop();
$ro->coconutFormStop();
开发者ID:rickyx12,项目名称:protacio,代码行数:21,代码来源:addPackage.php

示例3: revenueLineChart

 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 */
/**
 * Multiple line chart demonstration.
 *
 */
include "../../../COCONUT/libchart/libchart/classes/libchart.php";
$chart = new revenueLineChart("1500", "500");
$ro = new database1();
$serie1 = new XYDataSet();
$serie1->addPoint(new Point("Jan {$year}", $ro->getPHICReceivablesAnnual("Jan", $year) / 1000));
$serie1->addPoint(new Point("Feb {$year}", $ro->getPHICReceivablesAnnual("Feb", $year) / 1000));
$serie1->addPoint(new Point("Mar {$year}", $ro->getPHICReceivablesAnnual("Mar", $year) / 1000));
$serie1->addPoint(new Point("Apr {$year}", $ro->getPHICReceivablesAnnual("Apr", $year) / 1000));
$serie1->addPoint(new Point("May {$year}", $ro->getPHICReceivablesAnnual("May", $year) / 1000));
$serie1->addPoint(new Point("Jun {$year}", $ro->getPHICReceivablesAnnual("Jun", $year) / 1000));
$serie1->addPoint(new Point("Jul {$year}", $ro->getPHICReceivablesAnnual("Jul", $year) / 1000));
$serie1->addPoint(new Point("Aug {$year}", $ro->getPHICReceivablesAnnual("Aug", $year) / 1000));
$serie1->addPoint(new Point("Sep {$year}", $ro->getPHICReceivablesAnnual("Sep", $year) / 1000));
$serie1->addPoint(new Point("Oct {$year}", $ro->getPHICReceivablesAnnual("Oct", $year) / 1000));
$serie1->addPoint(new Point("Nov {$year}", $ro->getPHICReceivablesAnnual("Nov", $year) / 1000));
$serie1->addPoint(new Point("Dec {$year}", $ro->getPHICReceivablesAnnual("Dec", $year) / 1000));
$serie2 = new XYDataSet();
$serie2->addPoint(new Point("Jan {$year}", $ro->getPHICReceivablesAnnual_package("Jan", $year) / 1000));
开发者ID:rickyx12,项目名称:protacio,代码行数:31,代码来源:annualPHIC_receivables.php

示例4: database1

<?php

include "../../myDatabase1.php";
$itemNo = $_GET['itemNo'];
$username = $_GET['username'];
$ro = new database1();
$ro->editNow("patientCharges", "itemNo", $itemNo, "departmentStatus", "");
echo "Pls Click the Patient's Name to view his/her Laboratories..";
开发者ID:rickyx12,项目名称:protacio,代码行数:8,代码来源:unremit.php

示例5: database1

<?php

include "../../../myDatabase1.php";
$reports = $_POST['reports'];
$itemNo = $_POST['itemNo'];
$registrationNo = $_POST['registrationNo'];
$description = $_POST['description'];
$ro = new database1();
?>


<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>

<?php 
echo "\n<style type='text/css'>\n\n.txtArea {\n\tborder: 1px solid #000;\n\tcolor: #000;\n\theight: auto;\n\twidth:900px;\n\tpadding:4px 4px 4px 5px;\n\tfont-size:20px;\n}\n\n</style>\n";
$ro->getPatientProfile($registrationNo);
$ro->coconutFormStart("get", "radioReport_update.php");
$ro->coconutHidden("registrationNo", $registrationNo);
$ro->coconutHidden("itemNo", $itemNo);
echo "<table border=0 width='160%'>";
echo "<tr>";
echo "<td><b>Name:</b>&nbsp;" . $ro->getPatientRecord_lastName() . ", " . $ro->getPatientRecord_firstName() . "</td>";
echo "<td><b>Date:</b>&nbsp;" . $ro->selectNow("radioSavedReport", "date", "itemNo", $itemNo) . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td><b>Age/Sex</b>&nbsp;" . $ro->getPatientRecord_age() . "/" . $ro->getPatientRecord_gender() . "</td>";
echo "<td>Physician:&nbsp;<b>" . $ro->selectNow("radioSavedReport", "physician", "itemNo", $itemNo) . "</b></td>";
echo "</tr>";
echo "<tr>";
echo "<td><b>Room:</b>&nbsp;" . $ro->getRegistrationDetails_room() . "</td>";
echo "<td>Examination:&nbsp;<b>{$description}</b></td>";
开发者ID:rickyx12,项目名称:protacio,代码行数:31,代码来源:radioReport_edit.php

示例6: database1

<?php

include "../../../myDatabase1.php";
$username = $_GET['username'];
$registrationNo = $_GET['registrationNo'];
$chargesCode = $_GET['chargesCode'];
$itemNo = $_GET['itemNo'];
$ro = new database1();
$ro->getLabFormList($username, $registrationNo, $itemNo, $chargesCode);
开发者ID:rickyx12,项目名称:protacio,代码行数:9,代码来源:resultList.php

示例7: database1

<?php

include "../../myDatabase1.php";
$packageName = $_GET['packageName'];
$packagePrice = $_GET['packagePrice'];
$phicPrice = $_GET['phicPrice'];
$ro = new database1();
if ($packageName == "") {
    $ro->getBack("Pls Type the Package Name");
} else {
    if ($packagePrice == "") {
        $ro->getBack("Pls Type the Package Price");
    } else {
        echo "\n\n<frameset cols='150%,150%' framespacing='0' border='1'>\n   <frame src='http://" . $ro->getMyUrl() . "/COCONUT/hospitalPackage/searchCharges.php?packageName={$packageName}&packagePrice={$packagePrice}&phicPrice={$phicPrice}'  scrolling=no frameborder=1 framespacing=1 name='selection' />\n   <frame src='http://" . $ro->getMyUrl() . "/COCONUT/hospitalPackage/showAddedPackage_update.php?packageName={$packageName}' />\n\n</frameset>\n\n\n";
    }
}
开发者ID:rickyx12,项目名称:protacio,代码行数:16,代码来源:addPackage1.php

示例8: count

<?php

include "../../../myDatabase1.php";
$packageNo = $_GET['packageNo'];
$countz = count($packageNo);
$registrationNo = $_GET['registrationNo'];
$username = $_GET['username'];
$ro = new database1();
$ro->getPatientProfile($registrationNo);
for ($x = 0; $x < $countz; $x++) {
    $packageIncluded = preg_split("/\\_/", $ro->selectNow("hospitalPackage", "packageIncluded_description", "packageNo", $packageNo[$x]));
    //addCharges_cash($status,$registrationNo,$chargesCode,$description,$sellingPrice,$discount,$total,$cashUnpaid,$phic,$company,$timeCharge,$dateCharge,$chargeBy,$service,$title,$paidVia,$cashPaid,$batchNo,$quantity,$inventoryFrom,$branch,$room)
    if ($packageIncluded[2] != "MEDICINE" || $packageIncluded[2] != "PROFESSIONAL FEE") {
        $services = "Examination";
    } else {
        if ($packageIncluded[2] == "MEDICINE") {
            $services = "Medication";
        } else {
            $services = "PROFESSIONAL FEE";
        }
    }
    $ro->addCharges_cash("UNPAID", $registrationNo, $packageIncluded[1], $packageIncluded[0], "0.00", "0.00", "0.00", "0.00", "0.00", "0.00", $ro->getSynapseTime(), date("M_d_Y"), $username, $services, $packageIncluded[2], "Cash", "0.00", "package", $ro->selectNow("hospitalPackage", "packageIncluded_qty", "packageNo", $packageNo[$x]), "", $ro->getRegistrationDetails_branch(), $ro->getRegistrationDetails_room());
}
echo "\n<script type='text/javascript'>\nwindow.parent.location.reload();\n</script>\n\n";
开发者ID:rickyx12,项目名称:protacio,代码行数:24,代码来源:applyPackage_oct_4_2012.php

示例9: database1

<?php

include "../../myDatabase1.php";
$username = $_GET['username'];
$ro = new database1();
$ro->coconutDesign();
echo "<br><br><Br>";
$ro->coconutFormStart("get", "cashCollection.php");
$ro->coconutHidden("username", $username);
$ro->coconutBoxStart("400", "115");
echo "<br>";
echo "<table border=0>";
echo "<tr>";
echo "<td>Date&nbsp;</td>";
echo "<td>";
$ro->coconutComboBoxStart_short("month");
echo "<option value='" . date("M") . "'>" . date("M") . "</option>";
echo "<option value='Jan'>Jan</option>";
echo "<option value='Feb'>Feb</option>";
echo "<option value='Mar'>Mar</option>";
echo "<option value='Apr'>Apr</option>";
echo "<option value='May'>May</option>";
echo "<option value='Jun'>Jun</option>";
echo "<option value='Jul'>Jul</option>";
echo "<option value='Aug'>Aug</option>";
echo "<option value='Sep'>Sep</option>";
echo "<option value='Oct'>Oct</option>";
echo "<option value='Nov'>Nov</option>";
echo "<option value='Dec'>Dec</option>";
$ro->coconutComboBoxStop();
echo "&nbsp;";
开发者ID:rickyx12,项目名称:protacio,代码行数:31,代码来源:selectOption.php

示例10: database1

<?php

include "../../myDatabase1.php";
$description = $_GET['description'];
$chargesCode = $_GET['chargesCode'];
$ro = new database1();
$ro->coconutDesign();
echo "<Br><Br><Br>";
$ro->coconutFormStart("post", "http://" . $ro->getMyUrl() . "/COCONUT/graphicalReport/bestSelling/fastMovingChart.php");
$ro->coconutHidden("description", $description);
$ro->coconutHidden("chargesCode", $chargesCode);
$ro->coconutBoxStart("500", "119");
echo "<br>";
echo "<table border=0>";
echo "<tr>";
echo "<Td>Month&nbsp;</tD>";
echo "<td>";
$ro->coconutComboBoxStart_short("month");
echo "<option value='" . date("m") . "'>" . date("M") . "</option>";
echo "<option value='01'>Jan</option>";
echo "<option value='02'>Feb</option>";
echo "<option value='03'>Mar</option>";
echo "<option value='04'>Apr</option>";
echo "<option value='05'>May</option>";
echo "<option value='06'>Jun</option>";
echo "<option value='07'>Jul</option>";
echo "<option value='08'>Aug</option>";
echo "<option value='09'>Sep</option>";
echo "<option value='10'>Oct</option>";
echo "<option value='11'>Nov</option>";
echo "<option value='12'>Dec</option>";
开发者ID:rickyx12,项目名称:protacio,代码行数:31,代码来源:monthlyChart_front.php

示例11: LineChart

 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 */
/**
 * Multiple line chart demonstration.
 *
 */
include "../../../COCONUT/libchart/libchart/classes/libchart.php";
$chart = new LineChart("1500", "500");
$ro = new database1();
$serie1 = new XYDataSet();
$serie1->addPoint(new Point("Jan {$year}", $ro->getGenderAnnual("01", $year, "male", "OPD")));
$serie1->addPoint(new Point("Feb {$year}", $ro->getGenderAnnual("02", $year, "male", "OPD")));
$serie1->addPoint(new Point("Mar {$year}", $ro->getGenderAnnual("03", $year, "male", "OPD")));
$serie1->addPoint(new Point("Apr {$year}", $ro->getGenderAnnual("04", $year, "male", "OPD")));
$serie1->addPoint(new Point("May {$year}", $ro->getGenderAnnual("05", $year, "male", "OPD")));
$serie1->addPoint(new Point("Jun {$year}", $ro->getGenderAnnual("06", $year, "male", "OPD")));
$serie1->addPoint(new Point("Jul {$year}", $ro->getGenderAnnual("07", $year, "male", "OPD")));
$serie1->addPoint(new Point("Aug {$year}", $ro->getGenderAnnual("08", $year, "male", "OPD")));
$serie1->addPoint(new Point("Sep {$year}", $ro->getGenderAnnual("09", $year, "male", "OPD")));
$serie1->addPoint(new Point("Oct {$year}", $ro->getGenderAnnual("10", $year, "male", "OPD")));
$serie1->addPoint(new Point("Nov {$year}", $ro->getGenderAnnual("11", $year, "male", "OPD")));
$serie1->addPoint(new Point("Dec {$year}", $ro->getGenderAnnual("12", $year, "male", "OPD")));
$serie2 = new XYDataSet();
$serie2->addPoint(new Point("Jan {$year}", $ro->getGenderAnnual("01", $year, "female", "OPD")));
开发者ID:rickyx12,项目名称:protacio,代码行数:31,代码来源:annualGenderCensus.php

示例12: database1

<?php

include "../myDatabase1.php";
$supplierName = $_GET['supplierName'];
$address = $_GET['address'];
$contactPerson = $_GET['contactPerson'];
$contactNo = $_GET['contactNo'];
$description = $_GET['description'];
$ro = new database1();
$ro->addSupplier($supplierName, $address, $contactPerson, $contactNo, $description);
开发者ID:rickyx12,项目名称:protacio,代码行数:10,代码来源:addSupplier1.php

示例13: PieChart

 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 */
/**
 * Pie chart demonstration
 *
 */
include "../../../COCONUT/libchart/libchart/classes/libchart.php";
$chart = new PieChart();
$ro = new database1();
$dataSet = new XYDataSet();
$dataSet->addPoint(new Point("OPD (" . number_format($ro->getPxRevenueDaily_opd($fromMonth, $fromDay, $fromYear), 2) . ")", $ro->getPxRevenueDaily_opd($fromMonth, $fromDay, $fromYear)));
$dataSet->addPoint(new Point("IPD (" . number_format($ro->getPxRevenueDaily_ipd($fromMonth, $fromDay, $fromYear), 2) . ")", $ro->getPxRevenueDaily_ipd($fromMonth, $fromDay, $fromYear)));
$chart->setDataSet($dataSet);
$chart->setTitle("Collection Report For {$fromMonth} {$fromDay}, {$fromYear} ");
$chart->render("../../../COCONUT/graphicalReport/chartList/dailyRevenue.png");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title></title>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15" />
</head>
<body>
	<img alt="Pie chart"  src="/COCONUT/graphicalReport/chartList/dailyRevenue.png" style="border: 1px solid gray;"/>
开发者ID:rickyx12,项目名称:protacio,代码行数:31,代码来源:revenuePie_dec5.php

示例14: revenueLineChart

 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 */
/**
 * Multiple line chart demonstration.
 *
 */
include "../../../COCONUT/libchart/libchart/classes/libchart.php";
$chart = new revenueLineChart("1500", "500");
$ro = new database1();
$serie1 = new XYDataSet();
$serie1->addPoint(new Point("Jan {$year}", $ro->getAnnualRevenue_opd("01", $year)));
$serie1->addPoint(new Point("Feb {$year}", $ro->getAnnualRevenue_opd("02", $year)));
$serie1->addPoint(new Point("Mar {$year}", $ro->getAnnualRevenue_opd("03", $year)));
$serie1->addPoint(new Point("Apr {$year}", $ro->getAnnualRevenue_opd("04", $year)));
$serie1->addPoint(new Point("May {$year}", $ro->getAnnualRevenue_opd("05", $year)));
$serie1->addPoint(new Point("Jun {$year}", $ro->getAnnualRevenue_opd("06", $year)));
$serie1->addPoint(new Point("Jul {$year}", $ro->getAnnualRevenue_opd("07", $year)));
$serie1->addPoint(new Point("Aug {$year}", $ro->getAnnualRevenue_opd("08", $year)));
$serie1->addPoint(new Point("Sep {$year}", $ro->getAnnualRevenue_opd("09", $year)));
$serie1->addPoint(new Point("Oct {$year}", $ro->getAnnualRevenue_opd("10", $year)));
$serie1->addPoint(new Point("Nov {$year}", $ro->getAnnualRevenue_opd("11", $year)));
$serie1->addPoint(new Point("Dec {$year}", $ro->getAnnualRevenue_opd("12", $year)));
$serie2 = new XYDataSet();
$serie2->addPoint(new Point("Jan {$year}", $ro->getAnnualRevenue_ipd("01", $year)));
开发者ID:rickyx12,项目名称:protacio,代码行数:31,代码来源:annualRevenue.php

示例15: database1

<?php

include "../../../myDatabase1.php";
$voucherNo = $_GET['voucherNo'];
$paymentMode = $_GET['paymentMode'];
$description = $_GET['description'];
$amount = $_GET['amount'];
$payee = $_GET['payee'];
$payee1 = $_GET['payee1'];
$dateIssued = $_GET['dateIssued'];
$timeIssued = $_GET['timeIssued'];
$accountTitle = $_GET['accountTitle'];
$userz = $_GET['username'];
$ro = new database1();
if ($payee != "") {
    $ro->addVoucher($voucherNo, $paymentMode, $description, $amount, $payee, $dateIssued, $timeIssued, $accountTitle, $userz);
} else {
    $ro->addVoucher($voucherNo, $paymentMode, $description, $amount, $payee1, $dateIssued, $timeIssued, $accountTitle, $userz);
}
开发者ID:rickyx12,项目名称:mendero,代码行数:19,代码来源:addVoucher1.php


注:本文中的database1类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。