本文整理汇总了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();