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