{if $type|default:''=='list'}
{if $users|count >0}
<div id="user_message"></div>
<div class="grid_table01" style="margin-bottom:50px;border-bottom:#c6c6c6 solid 1px;">
	<table width="100%" class="table table-middle">
	<thead style="display:block;">
		<tr>
			<th width="30" align="left" valign="top" ></th>
			<th width="50" align="left" valign="top">ID</th>
			<th width="150" align="left" valign="top">Email</th>
			<th width="150" align="left" valign="top">Name</th>
			<th width="180" align="left" valign="top">Registered</th>
		</tr>
	</thead>
	<tbody style="display:block;height:125px;overflow:auto">
	
	{foreach from=$users item="user"}
	{assign var="userID" value=$user.userID}	
		 <tr>
			<td align="left" valign="top" class="left" width="30">
			<input type="radio" name="selected_user_id" class="selected_user_id" rel="{$userID}" value="{$userID}">
			</td>
			<td width="50" align="left" valign="top">{$user.userID}</td>
			<td width="150" align="left" valign="top"><span class="user-email">{$user.userEmail}</span></td>
			<td width="150" align="left" valign="top"><span class="user-name">{$user.userFirstName} {$user.userLastName}</span></td>
			<td width="180" align="left" valign="top">{$user.userRegistredDate|date_format:$date_format}</td>
		</tr>
	 {/foreach}
	</tbody></table>
    <div class="btn-fix">{html->anchor href="" 
				caption="{$language.lblChoose}" default="Choose" title="Choose" id="select_user" class="save-linkbtn click select_user"}
                </div>
	</div>
     {else}
    
           <div class="message_info">{$language.lblNoResults}</div>
           
	{/if}	
{else}
	{form->start name="formOrderAddUser" onsubmit="return false;" action="" method="post"}
<div class="content_wrapper">	
<div class="form_listing">
		  <ul class="levl-01">
			<li class="clearfix">
			  <div class="left1   mandatory"> {$language.lblName} </div>
			  <div class="right1"> {form->textbox name="Name" 
				class="textbox width-60per"  
				maxlength="200" 
				tabindex=11} </div>
			</li>
			<li class="clearfix">
			  <div class="left1   mandatory"> {$language.lblEmailID} </div>
			  <div class="right1 "> {form->textbox name="email" 
				class="textbox width-60per" 
				tabindex=12
				autocomplete=off} 
				</div>
			</li>
			<li class="clearfix">
			  <div class="left1   "> &nbsp;</div>
			  <div class="right1 ">
			  {form->submit tabindex=13 value=$language.lblOrderFindUser title=$language.lblOrderFindUser id="find_user" class="linkbtnt01 click find_user"} 
			  {html->anchor tabindex=14 href="" caption=$language.lblListAll title=$language.lblListAll id="reset_user" class="action-link"} </div>
			</li>
		  </ul>
          </div>
</div>		  
		<div id="usersFound"></div>  
	
	{form->close}
	{form->rootpath_script}
	{form->basepath_script} 
<script type="text/javascript" src="{$view_javascript}/orderAddAjaxUser.page.js"></script>

<script type="text/javascript" >
	var lblerrRequired="{$language.errEnterValidEmailID}";
	var lblerrInvalidEmail="{$language.errEnterValidEmailID}";
	</script>
{/if}