<!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" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />    
<title>{$language.lblBusiness} : {$language.lblBusiLocations}</title>
{include file='CommonStyles.tpl'}
<link rel="stylesheet" type="text/css" href="{$view_styles}/listing.css" />
{include file='CommonJavaScript.tpl'}
</head>
<body class="{$languageDirection}">
<!-- Outer container starts-->
<div class="outer" id="main">
  {include file='CommonHeader.tpl'}
  <!-- Content Container starts-->
<div class="content-wrapper">
    <!-- left wrapper starts-->
    <div class="left_wrapper">
  <div class="container-fluid">
      
      <!-- Inner Content Container starts-->
      <div class="inner_content_wrapper">
          
	  {if $record==0}
	  <div class="message_info">{$language.lblNoResultFound}</div>
	   {else}
	   <div id="common_message"></div>
      <!--Start: Active Coupons List-->
       <div class="container-section">
                          <div class="right-sidebar">
    <div class="side_wrapper">
    <div>
    {html->anchor href="location/new/" class="btn-sm btn btn-primary" content="<strong><span class='add'></span>{$language.lblAddLocation}</strong>"}
     <div class="clear"></div>
    </div>
    </div>
    </div>
           <h3 class="border-bottom">{$language.lblBusiLocations}</h3>

      {form->start name="locationForm" method="POST"}
          <div class="grid_table00 product-list order-list location-list">
	  <table width="100%" border="0" cellspacing="0" cellpadding="0" >
      
            <thead>
              <tr>
                <th align="left" valign="middle">{form->checkbox name="orderid-selectall" value=""}  <label for="orderid-selectall"></label></th>
                <th {if $column=='location'} class="sort{$order}" {else} class="sort" {/if}  sort="location" align="left" valign="middle">
                <a >{$language.lblLocation}</a>
                </th>
                <th {if $column=='city'} class="sort{$order}" {else} class="sort" {/if} sort="city" align="left" valign="middle">
                <a >{$language.lblCity} & {$language.lblState}</a>
                </th>
                <th  align="left" valign="middle">
              {$language.lblContactDetails}
                 </th>
               
                <th align="left" valign="middle" width="12%"  ><div style="width:45px;">&nbsp;</div></th>
              </tr>
            </thead>
            <tbody>
               {assign var="checkboxCounter" value="1"}	
			   {foreach from=$resBusinessLocationDetails item="businessLocation"}
			  <tr>
              <td align="left" valign="top">
			  {form->checkbox name="businessLocationCheck[]" id="businessLocationCheck_{$checkboxCounter}" class='listLocCheck' value="{$businessLocation.businessLocID}"}
				<label for="businessLocationCheck_{$checkboxCounter}" class="checkLabel"></label>
			 </td>
                <td align="left" valign="top">{$businessLocation.location}</td>
                <td align="left" valign="top">{$businessLocation.city}{if $businessLocation.province==""}, {$businessLocation.stateName}{else}, {$businessLocation.province}{/if}</td>
                <td align="left" valign="middle">
                {$businessLocation.location},{$businessLocation.locAddress|address_format:$languageIDs:', '}
                
                <div class="text-style2">
                {if $businessLocation.locPhone}  <p>{$language.lblPhone}: <span>{$businessLocation.locPhone}  </span>  </p>{/if}
               {if $businessLocation.locEmail}   <p> {$language.lblEmail}:<span> {$businessLocation.locEmail}</span></p>{/if}
                </div>
				
                </td>
                <td valign="top" align="center">
                {if $businessLocation.locStatus=='Active'}{assign var="statusclass" value="icon-set status-active hide-txt"} {else} {assign var="statusclass" value="status-inactive icon-set hide-txt"} {/if} 
                {html->anchor href="" class="{$statusclass}" locid="{$businessLocation.businessLocID}" title="{$businessLocation.locStatus}" } 
				 {html->anchor href="location/edit/locid/{$businessLocation.businessLocID}"  title="{$language.lblEdit}" class="hide-txt icon-edit-fill" } 
              {html->anchor href="" title="{$language.lblDeleted}" locid="{$businessLocation.businessLocID}" task='delete' class="hide-txt icon-close2" }
               </li>
				</td>
            
              </tr>
			  {assign var="checkboxCounter" value=$checkboxCounter+1}
			  {/foreach}
            </tbody>
          </table>  
          </div>  
    </div>
      <!--end: Active Coupons List--> 
     <div class="pagination_outer fixing_right pull-right">{paginate->layout  key="page" label_record="{$language.lblRecorsFound}" results_per_page="{$language.lblResultsperpage}" label_pages="{$language.lblPages}"}</div>
      <div class="action_box input-group">
      <select class="form-control" name="statusSelect" id="statusSelect">
      <option value="">{$language.lblSelect}</option>
	  <option value="Active">{$language.lblActivate}</option>
      <option value="Inactive">{$language.lblInactivate}</option>
	  <option value="Deleted">{$language.lblDeleted}</option>
      </select>
	  {form->submit name="statusUpdate" value="{$language.lblUpdate}" class="btn btn-sm btn-primary"}
      <!--Start: Pagination-->
            
            <div class="clear"></div>
            <!--end: Pagination-->
      </div>
	  {form->close}
 		{/if}
      </div>
      <!-- Inner Content Container ends-->
      <div class="clear"></div>
    </div>
    </div>
    <!-- left wrapper ends-->
    <!-- right side bar starts-->

    <!-- right side bar ends-->
    <div class="clear"></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}/businessLocation.page.js"></script>
<script type="text/javascript" src="{$common_js}/validate.plugin.js"></script>
<script type="text/javascript">
var confirmation="{$language.lblConfirmation}";
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>

