本文整理匯總了PHP中UserDAO::ListPatients方法的典型用法代碼示例。如果您正苦於以下問題:PHP UserDAO::ListPatients方法的具體用法?PHP UserDAO::ListPatients怎麽用?PHP UserDAO::ListPatients使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類UserDAO
的用法示例。
在下文中一共展示了UserDAO::ListPatients方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: UserDAO
</div>
<div id="content">
<p>
<h2 class="welcome">Clinician List</h2>
<!-- Table of patient results -->
<?php
$u = new UserDAO();
$u->Username = $_SESSION["username"];
$u->Find();
//TODO: need a list clinicians function
$clinicianArray = $u->ListPatients();
?>
<p>
<?php
echo "Click a Column Heading to sort by that Field.";
?>
</p>
<table class="sortable" border="1">
<tr>
<th>Last Name</th>
<th>First Name</th>
<th>Middle Name</th>
<th>Address</th>
<th>Phone Number</th>
<th>ID Number</th>
示例2: UserDAO
</div>
<div id="content">
<p>
<h2 class="welcome">Stats: Patient List</h2>
<!-- Table of patient results -->
<?php
//$u = new StatsDAO();
$u = new UserDAO();
//$p = new PatientDAO();
$u->Username = $_SESSION["username"];
$u->Find();
$patientArray = $u->ListPatients();
?>
<p>
<?php
echo "Click a Column Heading to sort by that Field.";
?>
</p>
<table class="sortable" border="1">
<tr>
<th>Last Name, First Name</th>
<th>Username</th>
</tr>
<?php
foreach ($patientArray as $item) {
?>