<!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.lblAdmin}: {$language.lblCitiesProducts}:{$language.lblBusiness}:{$language.lblBusinessRequest}</title>
{include file='CommonStyles.tpl'}
<link rel="stylesheet" type="text/css" href="{$view_styles}/detail-listing.css" />
<link rel="stylesheet" type="text/css" href="{$view_styles}/colorbox.css" />

{include file='CommonJavaScript.tpl'}
{include file='CommonCustomStyles.tpl'}
</head><body>
<div class="outer_container">
   {include file='CommonTop.tpl'}
  <!--End:Header Container-->
  <!--***********************************************************************END HEADER CONTAINER******************************************************-->
 <div class="content_container">
            <div class="content_wrapper">
              
      		{assign var ='currbusinessReqID' value=$resListBusinessRequest.businessReqID}
            {html->anchor href=$previousURL caption="{$language.lblBack}" class="back-link fixing_right topspacing" history="yes"} 
            {if $resListBusinessRequest.businessReqStatus eq 'New'}
              {html->anchor priv_href="businessrequest/declinebusinessrequest/"  href="/businessrequest/declinebusinessrequest/rsid/{$currbusinessReqID}/" caption="{$language.lblDeclineRequest}" title="{$language.lblDeclineRequest}"  class="showDeclinebusiness button-link01 fixing_right"} 
           {/if}
            {if $resListBusinessRequest.businessReqStatus eq 'New' || $resListBusinessRequest.businessReqStatus eq 'Declined'}
            {html->anchor priv_href="business/approvemerchant/" href="business/approvemerchant/rid/$currbusinessReqID/" caption="{$language.lblEditApproveRequest}" class="button-link01 fixing_right"} 
            {/if}

        
            <h2> {$resListBusinessRequest.businessReqName|wordwrap:70:"<br />":true} </h2>
            
            {if $resListBusinessRequest.reqDeclinedMessage}
             <div id="declined_Message" class="message_info"><strong>{$language.lblAlreadyDeclined} </strong>{$language.lblDeclineReason} {$resListBusinessRequest.reqDeclinedMessage} </div>{/if}
                
  			<div class="first-block clearfix">
        		<h3><span>{$language.lblBusinessInfo}</span></h3>
            	 <div class="img-block">
          			<div>{if $resListBusinessRequest.businessReqLogo==''} <img src="{$view_images}/logo_noimg.gif" alt="logo img" width="140" height="125"  /> {else} <img src="{$view_host}/public/uploads/business-request/thumb/{$resListBusinessRequest.businessReqLogo}" ></img> {/if}</div>
        		 </div>
                 <div class="details-right ">
                 {if $resListBusinessRequest.businessReqAddress AND  $resListBusinessRequest.verificationStatus	neq 'Pending'   }
          			<address >
          				{$resListBusinessRequest.businessReqAddress|address_format:$languageIDs}
          			</address>{/if}
          				{$language.lblEmail} : <a href="mailto:{$resListBusinessRequest.businessReqEmail}">{$resListBusinessRequest.businessReqEmail}</a> {if $resListBusinessRequest.businessReqWebsite}<br />
          				{$language.lblWebsite} : 
                        {html->anchor href="{$resListBusinessRequest.website}" target="_blank"  content="{$resListBusinessRequest.website}"}
          				{/if} 
                        {if $resListBusinessRequest.businessReqPhone}
                        <span>{$language.lblPhone} :&nbsp; {$resListBusinessRequest.businessReqPhone}</span>
                        {/if}
                        {if $resListBusinessRequest.businessReqFax|escape}<span>&nbsp; | &nbsp;</span><span>{$language.lblFax} :&nbsp;</span>{$resListBusinessRequest.businessReqFax}{/if} </div>
        
      		</div>
             {if $resListBusinessRequest.businessReqComments || $resListBusinessRequest.businessReqProfile}
             <div class="detail_listing02">
       			<div class="default-style">{if $resListBusinessRequest.businessReqComments}{$resListBusinessRequest.businessReqComments|unescape:"html"|wordwrap:100} {else}{$resListBusinessRequest.businessReqProfile|unescape:"html"|wordwrap:100}{/if}</div>
       		 </div>
             {/if}
             <h3><span>{$language.lblAccountDetails}</span></h3>
               <div class="clearfix">
               {if $resListBusinessRequest.businessReqLatitude}
    			<div class="mapcontainer fixing_right"> {form->hidden name="businessLatitude" value=$resListBusinessRequest.businessReqLatitude id="frmLat"}
              		{form->hidden name="businessReqLongitude"  id="frmLon"}
              		<div id="map_canvas_" style="width: 100%;">
			 		 <img src="http://maps.google.com/maps/api/staticmap?center={$resListBusinessRequest.businessReqLatitude},{$resListBusinessRequest.businessReqLongitude}&amp;zoom=13&amp;markers={$resListBusinessRequest.businessReqLatitude},{$resListBusinessRequest.businessReqLongitude}&amp;size=621x300&amp;sensor=false" border="0">
			  		</div>
              	</div>
               {/if} 
               <div class="detail_listing02 fixing_left">
        		<ul>
           {if $resListBusinessRequest.businessReqFirstName}

        	<li class="clearfix">
            	<div class="left fixing_left">{$language.lblContactName}</div>
                <div class="right fixing_right">{assign var ='firstnameLastname' value=$resListBusinessRequest.businessReqFirstName|cat:'&nbsp;'|cat:$resListBusinessRequest.businessReqLastName}
                    {$firstnameLastname|wordwrap:80:"<br />
                    ":true} </div>
            </li>
             {/if}
            {if $resListBusinessRequest.PeriodofBusiness}
             <li class="clearfix">
            	<div class="left fixing_left">{$language.lblBusinessPeriod}</div>
                <div class="right fixing_right">{$resListBusinessRequest.PeriodofBusiness} </div>
            </li>
            {/if}
            {if $resListBusinessRequest.businessTypeOther ||  $resListBusinessRequest.businessTypeID}
             <li class="clearfix">
            	<div class="left fixing_left">{$language.lblTypeOfBusiness}</div>
                <div class="right fixing_right">{if !$resListBusinessRequest.businessTypeOther}{$resListBusinessRequest.businessTypeParent} >> {$resListBusinessRequest.businessTypeName}{else}{$resListBusinessRequest.businessTypeOther}{/if} </div>
            </li>
            {/if}
             {if $resListBusinessRequest.hearAbout}
             <li class="clearfix">
            	<div class="left fixing_left">{$language.lblHereAboutus}</div>
                <div class="right fixing_right">{$resListBusinessRequest.hearAbout} </div>
            </li>
            {/if}
          
            </ul></div>
            <!--End:inner-->
            <div class="clear"></div>
          </div>
        </div></div>
  <!--End:Content Container-->
 {include file='CommonBottom.tpl'}
</div><!--End:Outer Container-->
{include file='CommonJavaScriptBottom.tpl'}
<script type="text/javascript"  src="{$view_javascript}/jquery.colorbox.js"></script>
<script type="text/javascript">
{literal}
$(document).ready(function()
{
	  $(".showDeclinebusiness").colorbox({iframe:true, innerWidth:"500", innerHeight:"250"});
});
{/literal}
</script>
</body>
</html>
