<!DOCTYPE>
<html>
<head>
    <meta http-equiv="Content-Type"  content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{$language.lblBusiness} : {$language.lblMyProfile}</title>
    <link rel="dns-prefetch" href="//ajax.googleapis.com">
    <link rel="stylesheet" type="text/css" href="{$view_styles}/details.css" /> 
   {include file='CommonCustomStyles.tpl'}
   {include file='CommonStyles.tpl'}
    {include file='CommonJavaScript.tpl'}
</head>

<body class="{$languageDirection}">
    <!-- Outer container starts-->
    <div id="main" class="outer">
        {include file='CommonHeader.tpl'}
        <!-- Content Container starts-->
        <div class="content-wrapper profile">
            <div class="container-fluid">
                {*html->anchor id="showbizreviews" caption="{$language.lblUserReviews}" class="button01 curve-3" href='/user/showreviews/'*} {*html->anchor name="editProfile" caption="{$language.lblEdit}" class="button-link01 fixing_right" href='/user/edit/'*}
                
                   
                      <div class="clearfix">
                       <h2 class="pull-left">{$language.lblMyProfile}</h2>
                 {html->anchor name="editProfile" caption="{$language.lblEdit}" class="button-link01 btn btn-primary edit pull-right" href='/user/edit/'}
            </div>
               
                <div id="common_message"></div>
                <!-- Inner Content Container starts-->
             <div class="row">
                    <div class="col-md-8 col-sm-12 col-xs-12">
                        <div class="container-section basic-infosection clearfix">
                         <h3 class="head-title">{$language.lblBasicInformation}</h3>
                      <div class="info clearfix">
                            
                             <div class="col-sm-4 col-xs-12 mob-padding">
                            <div class="img-block">
                            {if $businessLogo==''} 
                            <img src="{$view_images}/logo_noimg.gif" alt="logo img" width="140" height="125" /> 
                            {else} 
                            <img class="img-responsive" src="{$view_public_path}/uploads/business/thumb/{$businessLogo}"></img>                             {/if}
                            </div>
                        </div>

                        <div class="col-sm-4 col-xs-12 mob-padding">
                            {if $businessProfile1}
                            <div class="business-name">
                                <div class="default-style">{$businessProfile1|unescape:"html"}</div>
                            </div>
                            {/if}
           
                            <address>
          {$businessAddress|address_format:$languageIDs}
          </address>
          
                        </div>
                        <div class="col-sm-4 col-xs-12 mob-padding info-details">{$language.lblEmail} :<a href="mailto:{$businessEmail}">{$businessEmail}</a> {if $businessWebsite}
                            <br /> {$language.lblWebsite} : {if $businessWebsite|stripos:"http://" !== false} {assign var="Website" value=$businessWebsite} {else} {assign var="Website" value="http://"|cat:$businessWebsite} {/if} {html->anchor href="{$Website}" target="_blank" content="{$businessWebsite|wordwrap:85:'
                            <br />':true}"} {/if}<br /> <span>{$language.lblPhone} :&nbsp; {$businessPhone}</span>
                            <br />{if $businessFax|escape}<span>{$language.lblFax} :&nbsp;</span>{$businessFax} {/if}
                           </div>
                        </div>
                    </div>
                    </div>
                    <div class="col-md-4 col-sm-12 col-xs-12 rmv-padding-left-md">
                        <div class="container-section basic-infosection">
                            <h3 class="head-title"> {$language.lblAgreement} </h3> 
                            <div class="agreement-content">
                            {if $resAgreement['agreeID']>0}
                                <div>{$language.lblSignedBy} :&nbsp; {$resAgreement.agreePersonName}</div>
                                <div>{$language.lblOn}  {$resAgreement.agreeDate|date_format:$dateFormat|default:''} {$resAgreement.agreeDate|date_format:$time_format}</div>
                               
                                <span class="openSign icon-set preview"></span> 
                                {html->anchor class="btn btn-primary margin-vertical" href="agreements/agree/" target="_blank" content="{$language.lblClickHereAgreement}"}
                            {else}
                                <p> {$language.lblPending}</p>
                                {html->anchor class="btn btn-primary" href="agreements/agree/" target="_blank" content="{$language.lblRequestAgreement}"} 
                            {/if}
                            </div>
                        </div>
                    </div>

                </div>
          

           
            <div class="clearfix container-section account-details">
          <h3 class="head-title">{$language.lblAccountDetails}</h3>
               <div class="mapcontainer text-center fixing_right col-xs-12 col-md-6 pull-right">
                    {form->hidden name="locLatitude" value=$locLatitude id="frmLat"} {form->hidden name="locLongitude" value=$locLongitude id="frmLon"}
                    <div id="map_canvas" style="width:100%;">
                        <img class="img-responsive" src="http://maps.google.com/maps/api/staticmap?center={$locLatitude},{$locLongitude}&zoom=13&markers={$locLatitude},{$locLongitude}&size=650x250&sensor=false" border="0" />
                    </div>
                </div>
                <div class="detail_listing02 fixing_left col-xs-12 col-md-6 pull-left">
                    
                    <ul>
                       
                        <li class="clearfix">
                            <div class="col-xs-6 col-sm-6 left fixing_left">{$language.lblLogin} : </div>
                            <div class="col-xs-6 col-sm-6 right fixing_right">{$businessLogin}</div>
                        </li>
                         <li class="clearfix">
                            <div class="col-xs-6 col-sm-6 left fixing_left">{$language.lblRegisterNum} : </div>
                            <div class="col-xs-6 col-sm-6 right fixing_right">{$businessRegNum}</div>
                        </li>
                        <li class="clearfix">
                            <div class="col-xs-6 col-sm-6 left fixing_left">{$language.lblEstablishment} : </div>
                            <div class="col-xs-6 col-sm-6 right fixing_right">{$businessEstablish}</div>
                        </li>
                        <li class="clearfix">
                            <div class="col-xs-6 col-sm-6 left fixing_left">{$language.lblProfileLanguage} : </div>
                            <div class="col-xs-6 col-sm-6 right fixing_right">{$languageName}</div>
                        </li>
                        <li class="clearfix">
                            <div class="col-xs-6 col-sm-6 left fixing_left">{$language.lblBusinessName} :</div>
                            <div class="col-xs-6 col-sm-6 right fixing_right">{$businessName} </div>
                        </li>
                        <li class="clearfix">
                            <div class="col-xs-6 col-sm-6 left fixing_left">{$language.lblFirstName} :</div>
                            <div class="col-xs-6 col-sm-6 right fixing_right">{$businessCFirstName}</div>
                        </li>
                        <li class="clearfix">
                            <div class="col-xs-6 col-sm-6 left fixing_left">{$language.lblLastName} :</div>
                            <div class="col-xs-6 col-sm-6 right fixing_right">{$businessCLastName}</div>
                        </li>
                        {if $businessCDesignation}
                        <li class="clearfix">
                            <div class="col-xs-6 col-sm-6 left fixing_left">{$language.lblDesignation} :</div>
                            <div class="col-xs-6 col-sm-6 right fixing_right">{$businessCDesignation}</div>
                        </li>
                        {/if}
                        <li class="clearfix">
                            <div class="col-xs-6 col-sm-6 left fixing_left">{$language.lblLocations} :</div>
                            <div class="col-xs-6 col-sm-6 right fixing_right default-style">
                                <ol>{foreach from=$resLocs item="locs"}
                                    <li>{$locs.full_add}</li>
                                    {/foreach}</ol>
                            </div>
                        </li>
                    </ul>
                </div>
                      
            </div>

            {if $businessAccountType!='' || $businessAccountName!='' || $businessAccountDetails!=''}
            <div class="clearfix container-section payment-details">
                <h3 class="head-title">{$language.lblPaymentInfo}</h3>
                <div class="detail_listing02 fixing_left col-xs-12 col-md-6">
                    <ul>
                        <li class="clearfix discription">
                            <div class="col-xs-12 col-sm-6 left fixing_left">{$language.lblAccountType} :</div>
                            <div class="col-xs-12 col-sm-6 right fixing_right">{$businessAccountType}</div>
                        </li> 
                        <li class="clearfix discription">
                            <div class="col-xs-12 col-sm-6 left fixing_left">{$language.lblNameAccount} : </div>
                            <div class="col-xs-12 col-sm-6 right fixing_right">{$businessAccountName}</div>
                        </li>
                        {if $businessPaypalEmail}
                        <li class="clearfix discription">
                            <div class="col-xs-12 col-sm-6 left fixing_left">{$language.lblPaypalEmail} : </div>
                            <div class="col-xs-12 col-sm-6 right fixing_right">{$businessPaypalEmail}</div>
                        </li>
                        {/if}
                        <li class="clearfix discription">
                            <div class="col-xs-12 col-sm-6 left fixing_left">{$language.lblAccountDetails} :</div>
                            <div class="col-xs-12 col-sm-6 right fixing_right">{$businessAccountDetails|nl2br|wordwrap:40:"
                                <br /> \n":true}
                            </div>
                        </li>
                    </ul>
                </div>
            </div>
            {/if}
            <!-- Inner Content Container ends-->
          
        </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}/jquery.colorbox.js"></script>
    <script>
        $(document).ready(function () {
            $('.main_menu li a[rel=business]').addClass('active');

            $("#showbizreviews").colorbox({
                iframe: true
                , width: "90%"
                , height: "90%"
            });
        });
    </script>
</body>

</html>