本文整理匯總了PHP中database1::showOption方法的典型用法代碼示例。如果您正苦於以下問題:PHP database1::showOption方法的具體用法?PHP database1::showOption怎麽用?PHP database1::showOption使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類database1
的用法示例。
在下文中一共展示了database1::showOption方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
<?php
include "../../../myDatabase1.php";
$short = $_GET['short'];
$registrationNo = $_GET['registrationNo'];
$ro = new database1();
$ro->coconutDesign();
$ro->coconutFormStart("get", "insertMagicPackage.php");
$ro->coconutBoxStart("500", "120");
echo "<br>";
echo "Select Where do you want to put the <font color=red>" . number_format($short, 2) . "</font>";
echo "<br><br>";
$ro->coconutComboBoxStart_long("title");
$ro->showOption("Category", "Category");
$ro->coconutComboBoxStop();
$ro->coconutHidden("short", $short);
$ro->coconutHidden("registrationNo", $registrationNo);
echo "<br><br>";
$ro->coconutButton("Proceed");
$ro->coconutBoxStop();
$ro->coconutFormStop();
示例2:
$ro = new database1();
$ro->coconutDesign();
echo "<br><br><br>";
$ro->coconutFormStart("get", "radioReport_edit.php");
$ro->coconutHidden("registrationNo", $registrationNo);
$ro->coconutHidden("itemNo", $itemNo);
$ro->coconutHidden("description", $description);
$ro->coconutHidden("username", $username);
$ro->coconutBoxStart("500", "145");
echo "<br>";
echo "<table border=0>";
echo "<tr>";
echo "<td>Hospital</td>";
echo "<td>";
$ro->coconutComboBoxStart_long("hospital");
$ro->showOption("radioHeading", "hospital");
$ro->coconutComboBoxStop();
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td>Report</td>";
echo "<td>";
$ro->coconutComboBoxStart_long("report");
$ro->showOption("radioReportList", "title");
$ro->coconutComboBoxStop();
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td>Doctor</td>";
echo "<td>";
$ro->coconutComboBoxStart_long("doctor");
示例3:
echo "<option value='ER'>ER</option>";
echo "<option value='3A'>3A</option>";
echo "<option value='3B'>3B</option>";
echo "<option value='ICU'>ICU</option>";
echo "<option value='DR'>DR</option>";
echo "<option value='OR'>OR</option>";
$ro->coconutComboBoxStop();
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td>Request </td>";
echo "<td>";
$ro->coconutComboBoxStart_long("inventoryType");
echo "<option value='medicine'>Medicine</option>";
echo "<option value='supplies'>Supplies</option>";
$ro->coconutComboBoxStop();
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td>Request By:</td>";
echo "<td>";
$ro->coconutComboBoxStart_long("username");
$ro->showOption("registeredUser", "completeName");
$ro->coconutComboBoxStop();
echo "</td>";
echo "</tr>";
echo "</table>";
echo "<br>";
$ro->coconutButton("Proceed");
$ro->coconutBoxStop();
$ro->coconutFormStop();