<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$language.lblBusiness} : {$language.lblManageBusinessUser}</title>
{include file='CommonStyles.tpl'}
<link rel="stylesheet" type="text/css" href="{$view_styles}/right-menu.css" />
{include file='CommonJavaScript.tpl'}
</head>
<body class="{$languageDirection}">
<!-- Outer container starts-->
<div class="outer_container" > {include file='CommonHeader.tpl'} 
  <!-- Content Container starts-->
  <div class="content_container2 clearfix">
    <div class="left_wrapper">
      <div class="content_wrapper">
        <h2>{$language.lblManageBusinessUser}</h2>
        <div id="common_message" ></div>
        <!--End: Right Block--> 
        {if empty($resBusinessUserDetails)}
        <div class="message_info">{$language.lblNoResultFound}</div>
        {else}
        {form->start name="updateBusinessUser"  action="" method="post" enctype="multipart/form-data"}
        <div class="grid_table00 " >
          <table width="100%" border="0" cellspacing="0" cellpadding="0"   >
            <tr>
              <th align="left" valign="middle"  class="checkbox_column" width="48"> <div class="chekingdiv">
                  <ul>
                    <li>
                      <input name="ListStatusLinkCheckbox" id="ListStatusLinkCheckbox"  type="checkbox"  value="" />
                    </li>
                  </ul>
                </div></th>
              <th width="124" align="left" valign="middle" >{$language.lblName}</th>
              <th  align="left" valign="middle"> {$language.lblEmail} </th>
              <th align="left" valign="middle"> {$language.lblUserName}</th>
              <th  align="left" valign="middle">{$language.lblLocations}</th>
              <th  align="left" valign="middle">{$language.lblLastAccessed}</th>
              <th width="70" align="left" valign="middle" >&nbsp;</th>
            </tr>
            {foreach from=$resBusinessUserDetails item="resBusinessUser"}
            {assign var="cityID" value="1"}
            <tr {if $resBusinessUser@iteration  is even by 1}  class="shade01" {/if} >
              <td align="left" valign="top" class="checkbox_column"> {form->checkbox tabindex="1"  name="checkBusinessUserID[]" value="{$resBusinessUser.businessUserID}" class="checkbox01 ListAll List"|cat :{$resBusinessUser.businessUserStatus}} </td>
              <td align="left" valign="top">{$resBusinessUser.businessUserFirstName}&nbsp;{$resBusinessUser.businessUserLastName}<br /></td>
              <td align="left" valign="top">{$resBusinessUser.businessUserEmail}<br /></td>
              <td align="left" valign="top">{$resBusinessUser.businessUserUserName}</td>
              <td align="left" valign="top">{$resBusinessUser.locName}</td>
              <td align="left" valign="top">{$resBusinessUser.businessUserUpdateDate}</td>
              <td align="left" valign="top">
              {assign var="statusclass" value=$resBusinessUser.businessUserStatus|strtolower}
              {if $resBusinessUser.businessUserStatus eq 'Active'}
              {assign var="changeStatus" value='Inactive'}
              {else}
              {assign var="changeStatus" value='Active'}
              {/if}
              {if $resBusinessUser.businessUserStatus eq 'Locked'}
              	  <img width="16" height="16" alt="Administrtor" src="/neethu/product/public/default/manage/standard/images/icon_lock.png">
              {else}
              	  {html->anchor title="change-status" class="status-{$statusclass} hide-txt" caption="{$resBusinessUser.businessUserStatus}" rel="{$changeStatus}" user="{$resBusinessUser.businessUserID}"} 
              {/if}
              {html->anchor href="user/edituser/userid/{$resBusinessUser.businessUserID}"  class="hide-txt edit00"  content="Edit"} 
              {html->anchor user="{$resBusinessUser.businessUserID}" title="Delete" class="hide-txt delete00"}</td>
            </tr>
            {/foreach}
          </table>
        </div>
        <div class="clearfix">
          <div class="fixing_left" > {form->select id="businessUserStatus" class="select-box width-auto" name="businessUserStatus" options="->{$language.lblDonotchange}~*Active->{$language.lblActivate}~*Inactive->{$language.lblInactivate}~*Deleted->{$language.lblDelete}" tabindex="1"}
            {form->submit class="update_btn_table button04" name="businessUserStatusUpdate" tabindex="1" id="businessUserStatusUpdate"  value={$language.lblUpdate}} </div>
          <div class="pagination_outer fixing_right"> {paginate->layout  key="page"} </div>
        </div>
        {form->close}{/if} 
        <!--End:From Listing--> 
      </div>
    </div>
    <div class="right-sidebar">
      <div class="side_wrapper">
        <div> {html->anchor href="user/newuser/" class="custom-btnt" content="<span class='plus-v'></span> <span class='plus-h'></span> <strong>{$language.lblAddNewUser}</strong>"}
          <div class="clear"></div>
        </div>
      </div>
      
      <div class="side_wrapper">
        <div> <div class="clear"></div>
        {html->anchor href="user/businessuser/" class="side_menu_a selected" content="{$language.lblManageBusinessUser}<br><span>{$language.lblListBusinessUser}</span>"}
        </div>
      </div>
      <div class="side_wrapper">
			<div> <div class="clear"></div>
				{html->anchor href="user/showreviews/" class="side_menu_a" content="{$language.lblMerchantReviews}<br><span>{$language.lblListUserReviews}</span>"}
			</div>
      </div>
    </div>
  </div>
  <!-- Content Container ends--> 
  <!-- Footer starts--> 
  {include file='CommonFooter.tpl'} 
  <!-- Footer ends--> 
</div>
<!-- Outer container ends--> 
{form->basepath_script}
{html->messages_script id="common_message"} 
<script type="text/javascript" src="{$view_javascript}/businessUser.page.js"></script> 
<script type="text/javascript" src="{$common_js}/validate.plugin.js"></script> 
<script type="text/javascript">
var statusItem="{$language.lblSelectUser}";
var confirmation="{$language.lblDeleteUser}";
var msg="{$language.lblAlert}";
var statusLocation="{$language.lblSelectLoc}";
var statusSelect="{$language.lblSelectStatus}";
var statusChange="{$language.lblStatusChanged}";
	$(document).ready(function(){
		$('.main_menu li a[rel=business]').addClass('active');
	});
</script>
</body>
</html>
