本文整理汇总了PHP中database::showOption方法的典型用法代码示例。如果您正苦于以下问题:PHP database::showOption方法的具体用法?PHP database::showOption怎么用?PHP database::showOption使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类database
的用法示例。
在下文中一共展示了database::showOption方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: database
$module = $_GET['module'];
$ro = new database();
?>
<link rel="stylesheet" type="text/css" href="http://<?php
echo $ro->getMyUrl();
?>
/COCONUT/myCSS/coconutCSS.css" />
<?php
echo "<form method='get' action='http://" . $ro->getMyUrl() . "/COCONUT/Reports/doctorReport/doctorPF.php'>";
echo "<br><br><Br><br><center><div style='border:1px solid #000000; width:500px; height:230px; border-color:black black black black;'>";
echo "<br><table border=0 cellpadding=0 cellspacing=0>";
echo "<Tr>";
echo "<font class='labelz'>Doctor</font> <select name='doctor' class='comboBox'>";
$ro->showOption("Doctors", "Name");
echo "</select>";
echo "</tr>";
echo "<tr>";
echo "<td><font class='labelz'>Date </font></td>";
echo "<td>\n<select name='month' class='comboBoxShort'> \n<option value='" . date("M") . "'>" . date("M") . "</option>\n<option value='Jan'>Jan</option>\n<option value='Feb'>Feb</option>\n<option value='Mar'>Mar</option>\n<option value='Apr'>Apr</option>\n<option value='May'>May</option>\n<option value='Jun'>Jun</option>\n<option value='Jul'>Jul</option>\n<option value='Aug'>Aug</option>\n<option value='Sep'>Sep</option>\n<option value='Oct'>Oct</option>\n<option value='Nov'>Nov</option>\n<option value='Dec'>Dec</option>\n</select>";
echo " <select name='day' class='comboBoxShort'>";
echo "<option value='" . date("d") . "'>" . date("d") . "</option>";
for ($x = 1; $x < 32; $x++) {
if ($x < 10) {
echo "<option value='0{$x}'>0{$x}</option>";
} else {
echo "<option value='{$x}'>{$x}</option>";
}
}
echo "</select>";
示例2:
echo "<br><input type=text name='height' id='height' class='myInformation' placeholder='HEIGHT' >";
echo "<br><input type=text name='weight' id='weight' class='myInformation' placeholder='WEIGHT' >";
echo "<br><input type=text name='pulse' id='pulse' class='myInformation' autocomplete='off' placeholder='PULSE RATE'>";
echo "<br><input type=text name='respiratory' id='respiratory' class='myInformation' autocomplete='off' placeholder='RESPIRATORY RATE'>";
echo "<br><br><textarea class='diagnosis'\nid='diagnosis'\nname='diagnosis'\nplaceholder='Chief Complaint'\n></textarea>";
echo "<Br><br><select name='diet' class='company'>";
echo "<option>Select Diet</option>";
$ro->showOption_with_value("dietList", "dietName", "dietNo");
echo "</select>";
echo "<Br><br><select name='company' class='company'>";
echo "<option>Select Company</option>";
$ro->getAllCompany();
echo "</select>";
echo "<Br><br><select name='casetype' class='company'>";
//echo "<option value='Standard_PHIC_Medicine'>Standard_PHIC_Medicine</option>";
$ro->showOption("phicLimit", "casetype");
echo "</select>";
echo "<Br><Br>";
echo "<select name='admittingDoctor' class='company' >";
echo "<option value='admitting'> Admitting Doctor</option>";
$ro->showOption("Doctors", "Name");
echo "</select>";
echo "<Br><Br>";
echo "<select name='attendingDoctor' class='company' >";
echo "<option value='attending'> Attending Doctor</option>";
$ro->showOption("Doctors", "Name");
echo "</select>";
echo "<Br><br><select name='room' class='company'>";
echo "<option value='OPD'>OPD</option>";
echo "<option value='OPD'>OPD</option>";
//echo "<option value='ER'>ER</option>";
示例3: database
<?php
include "../../myDatabase.php";
$ro = new database();
$ro->coconutHeading("NURSING SERVICE", "COCONUT/NURSING/initializeNursing.php");
$ro->coconutDesign();
echo "<br><br>";
$ro->coconutFormStart("get", "nursingStation.php");
$ro->coconutHidden("username", "");
$ro->coconutHidden("module", "");
$ro->coconutBoxStart("600px", "125px");
echo "<Br><br>";
$ro->coconutComboBoxStart_long("branch");
$ro->showOption("branch", "branch");
$ro->coconutComboBoxStop();
echo "<br>";
$ro->coconutComboBoxStart_long("floor");
$ro->showFloor();
$ro->coconutComboBoxStop();
echo "<br><Br>";
$ro->coconutButton("Proceed");
$ro->coconutBoxStop();
$ro->coconutFormStop();
示例4:
echo "<td>";
echo "<select name='casetype' class='comboBox'>";
echo "<option value='" . $ro->getRegistrationDetails_caseType() . "'>" . $ro->getRegistrationDetails_caseType() . "</option>";
echo "<option value=''></option>";
echo "<option value='" . $ro->showOption_where("patientICD", "icdCode", "registrationNo", $registrationNo) . "'></option>";
echo "<option value='" . $ro->showOption_where("patientICD", "rvsCode", "registrationNo", $registrationNo) . "'></option>";
echo "</select>";
echo "</td>";
echo "</tr>";
echo "<Tr>";
echo "<td>Package:</td>";
echo "<td>";
echo "<select name='package' class='comboBox'>";
echo "<option value='" . $ro->getRegistrationDetails_package() . "'>" . $ro->getRegistrationDetails_package() . "</option>";
echo "<option value=''></option>";
echo "<option value='" . $ro->showOption("package", "description") . "'></option>";
echo "</select>";
echo "</td>";
echo "</tr>";
if ($ro->getRegistrationDetails_type() == "IPD" || $ro->getRegistrationDetails_type() == "ICU" || $ro->getRegistrationDetails_type() == "OR/DR") {
//echo "<tr>";
//echo "<td><font class='labelz'>Room </font></td>";
//echo "<Td>";
//echo "<select name='room' class='comboBox'>";
//echo "<option value='".$ro->getRegistrationDetails_room()."'>".$ro->getRegistrationDetails_room()."</option>";
//$ro->showVacantRoom($ro->getRegistrationDetails_branch());
//echo "</select>";
//echo "</td>";
//echo "</tr>";
if ($ro->getRegistrationDetails_company() != "") {
/*
示例5:
echo "<td><div class='style1'>Location </div></td>";
echo "<td>";
echo "<select class='comboBox' name='inventoryLocation'>";
echo "<option value='PHARMACY'>PHARMACY</option>";
$ro->showInventoryLocation();
echo "</select>";
echo "</td>";
echo "</tr>";
$ro->coconutHidden("branch", "");
$ro->coconutHidden("transition", "");
$ro->coconutHidden("phic", "");
echo "<tr>\n<td><div class='style1'>Critical Level</div></td>\n<td><input type=text name='criticalLevel' class='txtBox' autocomplete='off'></td>\n</tr>";
echo "<tr>\n<td><div class='style1'>Remarks</div></td>\n<td><input type=text name='remarks' class='txtBox' autocomplete='off'></td>\n</tr>";
echo "<tr>\n<td><div class='style1'>Supplier</div></td>\n<td><select name='supplier' class='txtBox'>";
echo "<option value=''></option>";
$ro->showOption("supplier", "supplierName");
echo "</select></td>\n</tr>";
echo "<tr>\n<td><div class='style1'>Auto Dispense</div></td>\n<td><select name='autoDispense' class='txtBox'>";
echo "<option value='no'>no</option>";
echo "<option value='yes'>yes</option>";
echo "</select></td>\n</tr>";
echo "\n<tr>\n<td><div class='style1'>Classification</div></td>\n<td>\n<select name='classification' class='txtBox'>\n<option value='inventory'>Invnetory</option>\n<option value='noInventory'>No Invnetory</option>\n</select>\n</td>\n</tr>\n";
echo "</table>";
echo "<p id='curTime'>";
echo "</div>";
echo "<input type='submit' value='Proceed'>";
echo "<input type='hidden' name='preparation' value=''>";
echo "<input type='hidden' name='phicPrice' value=''>";
$ro->coconutHidden("stockCardNo", $stockCardNo);
$ro->coconutHidden("status", $status);
$ro->coconutHidden("ipdPrice", "");
示例6: database
include "../../../myDatabase.php";
$registrationNo = $_GET['registrationNo'];
$username = $_GET['username'];
$ro = new database();
?>
<link rel="stylesheet" type="text/css" href="http://<?php
echo $ro->getMyUrl();
?>
/COCONUT/myCSS/coconutCSS.css" />
<?php
echo "<form method='get' action='byCategory.php'>";
echo "<input type=hidden name='username' value='{$username}'>";
echo "<input type=hidden name='registrationNo' value='{$registrationNo}'>";
echo "<br><center><div style='border:1px solid #000000; width:495px; height:auto; border-color:black black black black;'>";
echo "<Br>";
echo "<Table border=0 cellpadding=0 cellspacing=0>";
echo "<tr>";
echo "<tD><font class='labelz'>Category </font></td>";
echo "<Td>";
echo "<select class='comboBox' name='category'>";
$ro->showOption("Category", "Category");
echo "</select>";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "<Br>";
echo "<br><input type=submit value='Proceed' style='border:1px solid #000; background-color:#3b5998; color:white;' >";
echo "</form>";
echo "</div>";
示例7:
fclose($fh);
echo "<form method='get' action='addResultValue.php'>";
echo "<input type=hidden name='labNoz' value='{$labNoz}'>";
echo "<input type=hidden name='registrationNo' value='{$registrationNo}'>";
echo "<input type=hidden name='itemNo' value='{$itemNo}'>";
echo "<br><center><font size=2>Examination Result Entry</font><center><div style='border:1px solid #000000; width:600px; height:280px; border-color:black black black black;'>";
echo "<br>";
echo "<table border=0>";
echo "<tr>";
echo "<td><font class='labelz'>Description</font></td>";
echo "<td><input type=text class='txtBox' name='description' value='{$description}' readonly></td>";
echo "</tr>";
echo "<tr>";
echo "<td><font class='labelz'>Pathologist</font></td>";
echo "<td><select name='pathologist' class='comboBox'>";
$ro->showOption("Doctors", "Name");
echo "</select></td>";
echo "</tr>";
echo "<tr>";
echo "<td><font class='labelz'>Med Tech</font></td>";
echo "<td><select name='medTech' class='comboBox'>";
$ro->showOption_where("registeredUser", "username", "module", "LABORATORY");
echo "</select></td>";
echo "</tr>";
echo "<tr>";
echo "<td><font class='labelz'>Date Received</font></td>";
echo "<td><select class='comboBoxShort' name='receivedMonth'>\n<option value='Jan'>Jan</option>\n<option value='Feb'>Feb</option>\n<option value='Mar'>Mar</option>\n<option value='Apr'>Apr</option>\n<option value='May'>May</option>\n<option value='Jun'>Jun</option>\n<option value='Jul'>Jul</option>\n<option value='Aug'>Aug</option>\n<option value='Sep'>Sep</option>\n<option value='Oct'>Oct</option>\n<option value='Nov'>Nov</option>\n<option value='Dec'>Dec</option>\n</select> \n<select class='comboBoxShort' name='receivedDay'>";
for ($x = 1; $x < 32; $x++) {
if ($x < 10) {
echo "<option value='0{$x}'>0{$x}</option>";
} else {
示例8: date
echo "<TD>";
$ro->coconutTextBox("description", "");
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<TD>Amount</tD>";
echo "<TD>";
$ro->coconutTextBox_short("amount", "");
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<TD>Payee</tD>";
echo "<TD>";
$ro->coconutComboBoxStart_long("payee1");
echo "<option value=''></option>";
$ro->showOption("supplier", "supplierName");
$ro->coconutComboBoxStop();
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<TD>Payee (Others)</tD>";
echo "<TD>";
$ro->coconutTextBox("payee", "");
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<TD>Date</tD>";
echo "<TD>";
$ro->coconutTextBox_short("dateIssued", date("Y-m-d"));
echo "</td>";
echo "</tr>";
示例9: date
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td><font class='labelz'>Date </font></td>";
echo "<td><input type=text class='shortField' name='date' value=" . date("M_d_Y") . "></></td>";
echo "</tr>";
echo "<tr>";
echo "<td><font class='labelz'>Location </font></td>";
echo "<td>";
echo "<select class='comboBox' name='inventoryLocation'>";
$ro->showInventoryLocation();
echo "</select>";
echo "</td>";
echo "</tr>";
echo "<tr>\n<td><font class='labelz'>Branch</font></td>\n<td><select name='branch' class='txtBox'>";
$ro->showOption("branch", "branch");
echo "</select></td>\n</tr>";
echo "<tr>\n<td><font class='labelz'>Transition</font></td>\n<td><select name='transition' class='txtBox'>";
$ro->showOption("inventoryTransition", "transition");
echo "</select></td>\n</tr>";
echo "<tr>\n<td><font class='labelz'>PhilHealth</font></td>\n<td><select name='phic' class='txtBox'>";
echo "<option value='no'>No</option>";
echo "<option value='yes'>Yes</option>";
echo "</select></td>\n</tr>";
echo "<tr>\n<td>";
echo "<select name='pricing' style='width=20%; border: 1px solid #000; color: #000;' >";
echo "<option value='Additional'>Additional</option>";
echo "<option value='sellingPrice'>sellingPrice</option>";
$ro->coconutComboBoxStop();
echo "</td>\n<td><input type=text name='additional' class='txtBox'></td>\n</tr>";
echo "<tr>\n<td><font class='labelz'>Remarks</font></td>\n<td><input type=text name='remarks' class='txtBox'></td>\n</tr>";
示例10:
echo $ro->selectNow('therapyCharges', 'pf', 'chargesCode', $chargesCode);
?>
">
</div>
<div class="form-group">
<label>Discount</label>
<input type="text" autocomplete="off" name="discount" class="form-control" value="0">
</div>
<div class="form-group">
<label>Therapist</label>
<select id="therapist" name="therapist" class="form-control">
<option></option>
<?php
$ro->showOption("therapist", "name");
?>
</select>
</div>
<div class="form-group text-right">
<input id="btn" type="submit" class="btn btn-success" value="Proceed >>">
</div>
<input type="hidden" name="status" value="<?php
echo $status;
?>
">
<input type="hidden" name="registrationNo" value="<?php
echo $registrationNo;
?>
">
<input type="hidden" name="chargesCode" value="<?php
示例11:
echo "<td>\n<select name='senior' class='comboBoxShort'>";
echo "<option value='" . $ro->getPatientRecord_senior() . "'>" . $ro->getPatientRecord_senior() . "</option>";
echo "<option value='YES'>YES</option>\n<option value='NO'>NO</option>\n</select>\n</td>";
echo "</tr>";
echo "<tr>";
echo "<td>PhilHealth </td>";
echo "<td>\n<select name='PhilHealth' class='comboBoxShort'>\n<option value='" . $ro->getPatientRecord_phic() . "'>" . $ro->getPatientRecord_phic() . "</option>\n<option value='YES'>YES</option>\n<option value='NO'>NO</option>\n</select>\n</td>";
echo "</tr>";
if ($ro->getPatientRecord_phic() == "YES") {
echo "<tr>";
echo "<td>PHIC Type:</td>";
echo "<td>";
echo "<select name='phicType' class='comboBox'>";
echo "<option value='" . $ro->getPHICtype_patientRecord() . "'>" . $ro->getPHICtype_patientRecord() . "</option>";
echo "<option value=''><option>";
$ro->showOption("phicType", "type");
echo "</select>";
echo "</td>";
echo "</tr>";
$pinNo = preg_split("/\\-/", $ro->getRegistrationDetails_PIN());
//kkuning ung phic pin No
echo "<tr>";
echo "<td>PhilHealth PIN#:</td>";
echo "<td>";
$ro->coconutTextBox("pinNo", $ro->getRegistrationDetails_PIN());
echo "</td>";
echo "</tr>";
} else {
$ro->coconutTextBox("pinNo");
}
echo "<tr>";
示例12:
echo "<option value='PRIVATE'>PRIVATE</option>";
echo "<option value='SEMIPRIVATE'>SEMIPRIVATE</option>";
echo "<option value='SUITE'>SUITE</option>";
echo "</select>";
echo "<td>";
echo "</tr>";
echo "<tr>";
echo "<td><font class='labelz'>Rate Per Day: </font></td>";
echo "<td><input type=text name='rate' value='{$rate}' class='shortField'></td>";
echo "</tr>";
echo "<tr>";
echo "<td><font class='labelz'>Branch</font></td>";
echo "<td>";
echo "<select name='branch' class='comboBox'>";
echo "<option value='{$branch}'>{$branch}</option>";
$ro->showOption("branch", "branch");
echo "</select>";
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td><font class='labelz'>Status</font></td>";
echo "<td>";
echo "<select name='status' class='comboBox'>";
echo "<option value='{$tatus}'>{$status}</option>";
echo "<option value='Occupied'>Occupied</option>";
echo "<option value='Vacant'>Vacant</option>";
echo "</select>";
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td>" . $ro->coconutText("Floor") . "</td>";
示例13:
</div>
<div class="form-group">
<label class="control-label col-sm-2">Generic</label>
<div class="col-sm-10">
<input type="text" name="genericName" class="form-control col-sm-10" autocomplete="off">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2">Preparation</label>
<div class="col-sm-7">
<select name="preparation" class="col-sm-7 form-control">
<option></option>
<?php
$ro->showOption("inventoryPreparation", "preparation");
?>
</select>
</div>
</div>
<div class="form-group">
<label class="form-label col-sm-2">Quantity</label>
<div class="col-sm-5">
<input type="text" name="quantity" class="form-control col-sm-5" autocomplete="off" placeholder="pcs" autocomplete="off">
</div>
</div>
<div class="form-group">
<label class="form-label col-sm-2">Unitcost</label>
<div class="col-sm-5">
示例14:
echo "<td>";
$ro->coconutTextBox("discount", "");
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td>Discount Company</td>";
echo "<td>";
$ro->coconutTextBox("companyDiscount", "");
echo "</td>";
echo "</tr>";
} else {
$ro->coconutHidden("discount", "");
$ro->coconutHidden("companyDiscount", "");
}
echo "<Tr>";
echo "<td>Discount Type</td>";
echo "<td>";
$ro->coconutComboBoxStart_long("discountType");
$ro->showOption("discountType", "discountType");
$ro->coconutComboBoxStop();
echo "</td>";
echo "</tr>";
} else {
echo $ro->coconutHidden("discount", "");
echo $ro->coconutHidden("companyDiscount", "");
echo $ro->coconutHidden("discountType", "");
}
echo "\n <tr>\n <td> </td>\n </tr>\n <tr>\n <td> </td>\n <td><input type=submit value=' Edit ' style='border:1px solid #000000; background:#3b5998 no-repeat 4px 4px; color:white;'></td>\n </tr>\n</table>\n<br />\n</div>\n</center>\n<input type='hidden' name='patientNo' value='" . $ro->getRegistrationDetails_patientNo() . "'>\n<input type='hidden' name='registrationNo' value='{$registrationNo}'>\n<input type='hidden' name='username' value='{$username}'>\n</form>\n";
?>
</body>
</html>
示例15:
<label class="control-label col-sm-2">Generic</label>
<div class="col-sm-10">
<input type="text" id="genericName" name="genericName" class="form-control col-sm-10" value="<?php
echo $ro->selectNow('inventoryStockCard', 'genericName', 'stockCardNo', $stockCardNo);
?>
" autocomplete="off">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2">Preparation</label>
<div class="col-sm-7">
<select id="preparation" name="preparation" class="col-sm-7 form-control">
<option></option>
<?php
$ro->showOption("inventoryPreparation", "preparation");
?>
</select>
</div>
</div>
<div class="form-group">
<label class="form-label col-sm-2">Quantity</label>
<div class="col-sm-5">
<input type="text" id="quantity" name="quantity" class="form-control col-sm-5" autocomplete="off" placeholder="pcs without free goods">
</div>
</div>
<div class="form-group">
<label class="form-label col-sm-2">Free</label>
<div class="col-sm-5">