Location: PHPKode > projects > Clinical Handover Database > output/templates/users_list.htm
<html>
<head>
<title>Maintain Usernames</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="users_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;Maintain&nbsp;Usernames</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="users_search.php">Advanced search</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="users_add.php" >Add new</a>
</td>
 {/if} 

 {if $allow_search} 

<td align=center valign=middle class=shade>
<b>Search for: </b> &nbsp;&nbsp;&nbsp;
<select id="ctlSearchField">
<option value="">Any field</option>
<option value="User Type" {$search_User_Type}>User Type</option>
</select>
&nbsp;
<select id="ctlSearchOption">
<option value="Contains" {$search_contains_option_selected}>Contains</option>
<option value="Equals" {$search_equals_option_selected}>Equals</option>
<option value="Starts with ..." {$search_startswith_option_selected}>Starts with ...</option>
<option value="More than ..." {$search_more_option_selected}>More than ...</option>
<option value="Less than ..." {$search_less_option_selected}>Less than ...</option>
<option value="Equal or more than ..." {$search_equalormore_option_selected}>Equal or more than ...</option>
<option value="Equal or less than ..." {$search_equalorless_option_selected}>Equal or less than ...</option>
<option value="Empty" {$search_empty_option_selected}>Empty</option>
</select>
&nbsp;
<input type=text size=20 onkeydown="e = window.event;
	if (e.keyCode != 13) return true;
	e.cancel = true;
	RunSearch();
	return false;"
	  id="ctlSearchFor" {$search_searchfor}>
&nbsp;
<input type=button class="button" value="Search"
onClick="javascript: RunSearch();">
&nbsp;		
<input type=button class=button value="Show all" 
onClick="javascript: frmSearch.a.value = 'showall'; frmSearch.submit();"> 	
</td>
<!-- 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='users_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="users_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}  


<td><table><tr><td class=blackshade>
<a class="blackshade" 
href="users_list.php?orderby={$order_dir_User_Type}User+Type">
User Type</a>
</td>
<td>{$order_image_User_Type}</td>
</table>
</td>
<td><table><tr><td class=blackshade>
<a class="blackshade" 
href="users_list.php?orderby={$order_dir_Login}Login">
Login</a>
</td>
<td>{$order_image_Login}</td>
</table>
</td>
<td><table><tr><td class=blackshade>
<a class="blackshade" 
href="users_list.php?orderby={$order_dir_Name}Name">
Name</a>
</td>
<td>{$order_image_Name}</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="users_edit.php?{$row.1editlink}">
Edit</a>

&nbsp;
</td>
 {/if}  



<td align="center">
<a href="users_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}  




<td>
{$row.1User_Type_value}
</td>
<td>
{$row.1Login_value}
</td>
<td>
{$row.1Name_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