Location: PHPKode > projects > Clinical Handover Database > output/templates/patients_list.htm
<html>
<head>
<title>Archived Patients</title>
<link REL="stylesheet" href="include/style.css" type="text/css">
</head>
<body topmargin=5 bgcolor=white {$onload}>
{$includes}

{include_if_exists file="include/header.php"}

<form name="frmSearch" method="GET" action="patients_list.php">
<input type="Hidden" name="a" value="search">
<input type="Hidden" name="value" value="1">
<input type="Hidden" name="SearchFor" value="">
<input type="Hidden" name="SearchOption" value="">
<input type="Hidden" name="SearchField" value="">
</form>


<table><tr>
<td width=30>&nbsp;</td>
<td align=center>
<font size=+0><b>&nbsp;Archived&nbsp;Patients</b></font>
</td><td width=50 align=center>

<td width=80% align=center>

<table align='center' border='0'>
<tr>
<td width=10>&nbsp;</td>


<td align=center>Logged as&nbsp;<b>{$userid}</b>&nbsp;
<a href="login.php?a=logout">Log out</a>
</td><td width=20>&nbsp;</td>


<td align=center>&nbsp;
<a href="changepwd.php">Change password</a>
</td><td width=20>&nbsp;</td>




<td valign=middle align=center>&nbsp;</td>
<td align=center>&nbsp;
</td>
<td width=20>&nbsp;</td>

 {if $allow_search} 
<td align=center>
<a href="patients_search.php">Advanced search</a>	
</td>
<td width=20>&nbsp;</td>
 {/if} 

 {if $allow_export} 
<td align=center>
<a target="_blank" href="patients_export.php">Export results</a>
</td><td width=20>&nbsp;</td>

<td align=center>
<a target="_blank" href="patients_print.php">
<img src="images/printer.gif" border=0></a>	
</td>
<td align=center>
<a target="_blank" href="patients_print.php">Printer-friendly version</a>
</td>
<td width=20>&nbsp;</td>
 {/if} 
</tr></table>
</tr></table>


{doevent name="ListOnLoad"}


<TABLE WIDTH=95% CELLPADDING=4 CELLSPACING=1 BORDER=0 align=center style="border: solid; border-width: 1px; border-color: #C0C0C0;">
	<tr>
		
 {if $allow_add} 
 <!-- Add new record -->
<td align=center class='shade'>
 	<a href="patients_add.php" >Add new</a>
</td>
 {/if} 

 {if $allow_search} 

<!-- how many records found-->
<td align=center class=shade>
Details found: {$records_found}<br>
Page {$page} of {$maxpages}
</td>
<!--Records per page-->
<td align=center class=shade>
Records Per Page::<br>
<select 
onChange="javascript: document.location='patients_list.php?pagesize='+this.options[this.selectedIndex].value;">
<option value="10" {$rpp10_selected}>10</option>
<option value="20" {$rpp20_selected}>20</option>
<option value="30" {$rpp30_selected}>30</option>
<option value="50" {$rpp50_selected}>50</option>
<option value="100" {$rpp100_selected}>100</option>
<option value="500" {$rpp500_selected}>500</option>
</select>
</td></tr></table>
{if $rowsfound}
 {if $allow_delete}  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="#" onClick = "var i; bSelected = !bSelected; 
if ((typeof frmAdmin.elements['mdelete[]'].length)=='undefined')
	frmAdmin.elements['mdelete[]'].checked=bSelected;
else
for (i=0;i<frmAdmin.elements['mdelete[]'].length;++i) 
	frmAdmin.elements['mdelete[]'][i].checked=bSelected;">Select/Unselect all</a>
&nbsp;&nbsp;
<a href="#" onClick="if (confirm('Do you really want to delete these records?')) frmAdmin.submit(); return false;">Delete selected</a>
 {/if}  


<!-- delete form -->
<form method="POST" action="patients_list.php" name="frmAdmin">
	<input type=hidden id="a" name="a" value="delete">

<table align="center" width="95%" border="0" cellpadding=3 cellspacing=2 style="border: solid; border-width: 1px; border-color: #C0C0C0;">
<!-- table header -->
<tr class="blackshade" valign="top">

<!--{if $column1show}-->

 {if $allow_edit} 
<td align="center"><img src="images/icon_edit.gif"></td>
 {/if}  


<td align="center"><img src="images/icon_view.gif"></td>

 {if $allow_delete} 
<td align="center"><img src="images/icon_delete.gif"></td>
 {/if}  

{if $allow_jobs}
<td>&nbsp;</td>
{/if}

<td><table><tr><td class=blackshade>
<a class="blackshade" 
href="patients_list.php?orderby={$order_dir_Patient_Name}Patient+Name">
Patient Name</a>
</td>
<td>{$order_image_Patient_Name}</td>
</table>
</td>
<td><table><tr><td class=blackshade>
<a class="blackshade" 
href="patients_list.php?orderby={$order_dir_Date_of_Birth}Date+of+Birth">
Date of Birth</a>
</td>
<td>{$order_image_Date_of_Birth}</td>
</table>
</td>
<td><table><tr><td class=blackshade>
<a class="blackshade" 
href="patients_list.php?orderby={$order_dir_Unit_Number}Unit+Number">
Unit Number</a>
</td>
<td>{$order_image_Unit_Number}</td>
</table>
</td>
<td><table><tr><td class=blackshade>
<a class="blackshade" 
href="patients_list.php?orderby={$order_dir_Sex}Sex">
Sex</a>
</td>
<td>{$order_image_Sex}</td>
</table>
</td>
<td><table><tr><td class=blackshade>
<a class="blackshade" 
href="patients_list.php?orderby={$order_dir_Ward}Ward">
Ward</a>
</td>
<td>{$order_image_Ward}</td>
</table>
</td>
<td><table><tr><td class=blackshade>
<a class="blackshade" 
href="patients_list.php?orderby={$order_dir_Bed}Bed">
Bed</a>
</td>
<td>{$order_image_Bed}</td>
</table>
</td>
<td><table><tr><td class=blackshade>
<a class="blackshade" 
href="patients_list.php?orderby={$order_dir_Consultant}Consultant">
Consultant</a>
</td>
<td>{$order_image_Consultant}</td>
</table>
</td>
<!--{/if}-->
</tr>

<!-- table data -->
<!--{foreach from=$rowinfo item=row}-->


<tr valign="top"
{$row.shadeclass} 
onmouseover="this.className = 'rowselected';" onmouseout="this.className = '{$row.shadeclassname}';"
> 



 {if $allow_edit} 
<td align="center">

<a href="patients_edit.php?{$row.1editlink}">
Edit</a>

&nbsp;
</td>
 {/if}  



<td align="center">
<a href="patients_view.php?{$row.1editlink}">
View</a>
&nbsp;</td>

 {if $allow_delete} 
<td align="center">

<input type=checkbox name="mdelete[]" value="{$row.1recno}">

<input type=hidden name="mdelete1[]" value="{$row.1id1}">
&nbsp;</td>
 {/if}  

{if $allow_jobs}
<td align="center">
<a href="jobs_list.php?{$row.1jobs_masterkeys}">
Archived Jobs</a>
</td>
{/if}



<td>
{$row.1Patient_Name_value}
</td>
<td>
{$row.1Date_of_Birth_value}
</td>
<td>
{$row.1Unit_Number_value}
</td>
<td>
{$row.1Sex_value}
</td>
<td>
{$row.1Ward_value}
</td>
<td>
{$row.1Bed_value}
</td>
<td>
{$row.1Consultant_value}
</td>



<!--{/foreach}-->
	
</tr>


{/if}
 {/if}  

</table>
</form>
<p>&nbsp;</p><p align=center><b>{$message}</b></p>
 {if $allow_search}  
{$pagination}
 {/if} 

{include_if_exists file="include/footer.php"}
</body>
</html>
Return current item: Clinical Handover Database