<?php 

$mas_company_details = MasCompany::model()->findByPk(Yii::app()->user->master_user_company_id);
$condition= 't.quotes_id ="' . $id.'"';
$total=0;
$modelQuotes = Quotes::model()->findByPk($id);
$modelQuotesItems = QuotesItem::model()->findAll(array('condition'=>$condition,'order' => 'id ASC','limit'=>1));
$condition_1= 't.quotes_id ="' . $id.'" AND hiring_master="N"';
$modelQuotessubItems = QuotesItem::model()->with('hiringitem')->findAll(array('condition'=>$condition_1,'order' => 't.id ASC'));
$modelQuotesServiceItems = QuotesServiceItem::model()->findAll(array('condition'=>$condition,'order' => 'id ASC'));
$condition= 't.quotes_id ="' . $id.'" AND hiring_master="Y"';
$modelQuotesMainItems = QuotesItem::model()->find(array('condition'=>$condition));
$modelHiringItems = Hiring::model()->findByPk($modelQuotesMainItems->hiring_id);
//Application Images
$prdt_id=$modelQuotesItems[0]['product_id'];
$hiring_application=$modelQuotes->hiring_application;
$model_application_image = Hiring::model()->find(array('condition'=>'product_id="'.$prdt_id.'" and application_id="'.$hiring_application.'"'));
$arr_application_images=array();
if($model_application_image->application_image!=''){
    $arr_application_images = explode(",",$model_application_image->application_image);
    //$arr_application_images = explode(",",$modelHiringItems->application_image);
}
$modelcontact = CustomerContact::model()->findByPk($modelQuotes->contact_id);

?>


<!DOCTYPE html>
<html>
<head>
 <title>Hiring List</title>
<style>
body{padding:0px!important;font-size:12px;}
table{
  border-collapse: collapse;}
.item_table {
  border-collapse: collapse;
  font-size:12px!important;
  margin:0px;
}
table.item_table,.item_table th,.item_table td {
  border: 1px solid #7a1d8b; 
  font-family:'Times New Roman', Times, serif;
  padding:1px;
} 

table.item_table th{
	/*background: #7a1d8b;*/
	background: #Fff;
	color: #7a1d8b;
}

 .second-colom{

      height:100px;

       border-bottom:1px solid;

        text-align:center;

        width:100%;

 }


.nobdr_table, .nobdr_table td{ border:none!important;padding:0px!important}
@media print {
.start-newpage{page-break-before:always;display: block;}
}
</style>

</head>
<body style="font-family: "Times New Roman", Times, serif">

<div class="main" >
<!--Page 1 Start -->
<div >
    <div class="header" style="width:100%;float: left;border-bottom: 6px solid #850EA6;padding-bottom:10px;">

   <div style="text-align:left; float:left; width:37%; font-family:'Times New Roman', Times, serif;"> 

    

     <p style="margin:0px;padding:0px;font-size: 18px;"><span style="color:#b61f70;">ACE</span><span style="color:#0080e2;"> CENTRO </span><span style="color:#782a88;" > ENTERPRISES</span></p>

     <div style="float:left;font-size:12px;line-height:16px;">

      <p style="padding: 0px;margin:0px;float: left;">P. O. Box 95325, Abu Dhabi - U.A.E.</p>

      <p style="padding: 0px;margin:0px;float: left;">TRN	:	100226227500003</p>

      <p style="padding: 0px;margin:0px;float: left;">T	&nbsp;	&nbsp; &nbsp;: +971 2 6737900 </p>

      <p style="padding: 0px;margin:0px;float: left;">F	&nbsp;	&nbsp; &nbsp;:	+971 2 6737800</p>

      <p style="padding: 0px;margin:0px;float: left;">E	&nbsp;	&nbsp; &nbsp;:	info@acecentro.com</p>

      <p style="padding: 0px;margin:0px;float: left;">W&nbsp;	&nbsp; &nbsp;:	www.acecentro.com </p>

      </div>

   </div>

   <div style="text-align:center; float:left; width:30%;"> 

   <img src="images/logo.png" style="margin-top:10px;height:110px;"/>

   </div>

   <div style="float:right; width:30%;"> 

   <p style="text-align:right;margin:0px;padding:0px;font-size: 20px;"><span style="color:#b61f70;float:right;text-align:right;font-family:tahoma;">ايـــس</span><span style="color:#0080e2;float:right;text-align:right;font-family:tahoma;"> سينـتـرو </span><span style="color:#782a88;float:right;text-align:right;font-family:tahoma;" > للــمشـاريع</span></p>
   <div style="float:left;font-size:12px;text-align:right;">
 	<p style="margin:0px;float: right;font-family:tahoma;">صندوق بريد 95325 ، أبو ظبي - الإمارات العربية المتحدةم.</p>
      <p style="margin:0px;float: right;font-family:tahoma;">رقم التسجيل الضريبي : 100226227500003</p>
      <p style="margin:0px;float: right;font-family:tahoma;">+9741 6737900	:ت </p>

      <p style="margin:0px;float: right;font-family:tahoma;">+972 6737800: ف </p>

      <p style="margin:0px;float: right;font-family:tahoma;">info@acecentro.com : لإ </p>

      <p style="margin:0px;float: right;font-family:tahoma;">www.acecentro.com : إ    </p>

      </div>

 </div>

</div>

<div  style="width:100%;float: left;margin-top: 10px;font-size:11px;font-family:'Times New Roman', Times, serif;"> 

 <div style="text-align:left; float:left; width:65%;" >

  <div style="float:left;">

  <span style="font-weight:bold;padding-bottom: 6px;float: left;"><?php echo $modelQuotes->customer->customer_name;?> </span><br />

  <span style="padding-bottom: 6px;float: left;"><?php if(!empty($modelQuotes->customer->customer_address)){echo $modelQuotes->customer->customer_address.",";}?>
<?php if(!empty($modelQuotes->customer->customer_postal_code)){?>P. O. Box <?php echo $modelQuotes->customer->customer_postal_code;?><?php } ?><br />
  <?php if(!empty($modelQuotes->customer->customer_city)){echo $modelQuotes->customer->customer_city.",";}?>
  <?php if(!empty($modelQuotes->customer->customer_country)){ echo " - ".$modelQuotes->customer->country->country_name;} ?><br />

  Tel&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;<?php echo $modelQuotes->customer->customer_phone_no;?><br />

  Fax&nbsp;&nbsp;&nbsp;:&nbsp;<?php echo $modelQuotes->customer->customer_fax;?><br />

  Attn.	:&nbsp;<?php echo $modelQuotes->customercontact->prefix;
  if(!empty($modelQuotes->customercontact->prefix)){echo '.';};
  echo $modelQuotes->customercontact->person_name;?> <span style="font-size:9px;font-family:'Times New Roman', Times, serif;">(E: <?php if($modelQuotes->customercontact->contact_email_id != ""){
      echo $modelQuotes->customercontact->contact_email_id;}else{
  echo $mas_company_details->genral_email;}?> M: <?php if($modelQuotes->customercontact->contact_mobile_no != ""){
      echo $modelQuotes->customercontact->contact_mobile_no;}else{ echo $modelQuotes->customer->customer_phone_no; }?>)</span></span><br />

  </div>

 </div>

 <div style="text-align:right; float:right;padding-left: 65px; width:25%;" >
     <?php 
  
  $qtn_day_superscript  =   '<sup>'.date('S',STRTOTIME($modelQuotes->qtn_start_date)).'</sup>';
  $qtn_day              =   date('d',STRTOTIME($modelQuotes->qtn_start_date));
  $qtn_month            =   date('M',STRTOTIME($modelQuotes->qtn_start_date));
  $qtn_year             =   date('Y',STRTOTIME($modelQuotes->qtn_start_date));
  ?>
     <table class="" style="width:100%">
                <tr>
                        <td style="width: 70px">Date</td>
                        <td style="width: 2px">:</td>
                        <td style="float: left;">
                            <?php echo $qtn_day.$qtn_day_superscript." ".$qtn_month." ".$qtn_year;; ?>
                        </td>
                </tr>
                 <tr>
                        <td style="width: 70px">Quotation#</td>
                        <td style="width: 2px">:</td>
                        <td style="float: left;">
                            <?php echo $modelQuotes->id; ?>
                        </td>
                </tr>
    </table>            

  <!--span>Date&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;:	<?php 
  
  $qtn_day_superscript  =   '<sup>'.date('S',STRTOTIME($modelQuotes->qtn_start_date)).'</sup>';
  $qtn_day              =   date('d',STRTOTIME($modelQuotes->qtn_start_date));
  $qtn_month            =   date('M',STRTOTIME($modelQuotes->qtn_start_date));
  $qtn_year             =   date('Y',STRTOTIME($modelQuotes->qtn_start_date));
  echo $qtn_day.$qtn_day_superscript." ".$qtn_month." ".$qtn_year;?></span><br />

  <span>Quotation#	:	<?php echo $modelQuotes->id;//$modelQuotes->project_reference;?><!--Qtn/05xx/19></span><br /-->

  </div>

 </div>

 <div style="width:100%;float:left;padding-top: 10px;font-size:11px;font-family:'Times New Roman', Times, serif;">

  <Span style="float:left; text-align:left;margin-left: 38px;">Dear Sir / Madam,</Span><br />

   <div style="float:left; width:100%; text-align:center;padding-top: 20px;">

   <Span  style="float:left; text-align:left; font-weight:bold; border-bottom:2px solid;margin-left: 39%;margin-bottom: 15px;font-size:13px; ">Sub: Hire of <?php echo MasHiringApplication::getHiringApplicationNameById($modelQuotes->hiring_application);?> Machine </Span><br />

   <div style="width:100%;float:left;margin-top:10px;text-align:left;">

   <span style="float:left; text-align:left;margin-top:10px;font-size:13px;">With reference to the above mentioned subject, please find herewith our best offer for hire of  <?php echo $modelQuotes->qtn_hiring_text;?>.</span></div>

   </div>

 </div>

 <div style="width:100%;float:left;padding-top:5px;">

<?php 
        if(!empty($arr_application_images[0]) && $arr_application_images[0]!=""){?>
        <img src="upload/applicationhiring/<?php echo $arr_application_images[0];?>" alt="Images"  width="230" height="150" style="float:left;border:1px solid #ff0000;"/>
        <?php } else{?>
       <img src="upload/hiring/download.jpeg" alt="Images"  style="float:left;width:230px;height:150px;border:1px solid #ff0000;"/>
        <?php } 
        
        if(!empty($arr_application_images[1]) && $arr_application_images[1]!=""){?>
        <img src="upload/applicationhiring/<?php echo $arr_application_images[1];?>" alt="Images"  width="230" height="150" style="float:right;border:1px solid #ff0000;"/>
        <?php } else{?>
       <img src="upload/hiring/download.jpeg" alt="Images"  style="float:right;width:230px;height:150px;border:1px solid #ff0000;"/>
<?php } ?>
  

 </div>

 <div style="width:100%;float:left;padding-top:5px; text-align:center;">
     <?php 
     if(!empty($modelQuotesMainItems->product->item_image) && $modelQuotesMainItems->product->item_image!=""){?>
        <img src="uploads/inventoryimages/<?php echo $modelQuotesMainItems->product->item_image;?>" alt="Images"  width="350" height="250"/>
        <?php } else{?>
        <img src="upload/hiring/download.jpeg" alt="Images"  style="width: 350px; height:250px;"/>
        <?php } ?>

 </div>

  <div style="width:100%;float:left;padding-top: 5px;">

  <?php 
        if(!empty($arr_application_images[2]) && $arr_application_images[2]!=""){?>
        <img src="upload/applicationhiring/<?php echo $arr_application_images[2];?>" alt="Images"  width="230" height="150" style="float:left;border:1px solid #ff0000;"/>
        <?php } else{?>
       <img src="upload/hiring/download.jpeg" alt="Images"  style="float:left;width: 230px;height:150px;border:1px solid #ff0000;"/>
        <?php } 
        
        if(!empty($arr_application_images[3]) && $arr_application_images[3]!=""){?>
        <img src="upload/applicationhiring/<?php echo $arr_application_images[3];?>" alt="Images"  width="230" height="150" style="float:right;border:1px solid #ff0000;"/>
        <?php } else{?>
       <img src="upload/hiring/download.jpeg" alt="Images"  style="float:right;width: 230px;height:150px;border:1px solid #ff0000;"/>
<?php } ?>

 </div>
<div style="text-align:center;margin-top:5px;width:100%; font-style:italic;font-family:'Times New Roman', Times, serif"><div style="width:90%; float:left;">(The above images are for illustrative purposes only)</div>  <div style="float:right;text-align:right;">Contd…. </div></div>
 
</div>
<!--Page 1 End -->

<!-----Page 2 Start------>
<div class="start-newpage" style="page-break-before:always">
 <div style="text-align:center; float:left; width:100%;font-family:'Times New Roman', Times, serif;font-style:italic;"> 

   <img src="images/logo.png" style="height:90px;"/><br />
    ---- Page 2 ---- 
   </div>
 <div style="width:100%;float:left;padding-top:10px;font-size:9px; font-family:'Times New Roman', Times, serif">
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="item_table">
    <tr>
      <th width="10%" align="center" valign="middle" scope="col">Sr #</th>
      <th width=" " align="center" valign="middle" scope="col">Item Description</th>
      <th width="12%" align="center" valign="middle" scope="col">Quantity</th>
      <th width="12%" align="left" valign="middle" scope="col">U. Price<br />
      (AED)</th>
    </tr>
    
    <?php 
    foreach($modelQuotesItems as $i=>$eachItem){
        $model_daily_amount = QuotesItem::model()->find(array('condition'=>'t.quotes_id ="' . $eachItem->quotes_id.'" AND bill_type="1"')); 
        $model_monthly_amount= QuotesItem::model()->find(array('condition'=>'t.quotes_id ="' . $eachItem->quotes_id.'" AND bill_type="3"'));
        $model_weekly_amount = QuotesItem::model()->find(array('condition'=>'t.quotes_id ="' . $eachItem->quotes_id.'" AND bill_type="2"'));  
        ?>
         <tr>
          <td rowspan="3" align="center" valign="middle"><?php echo $i+1;?></td>
          <td rowspan="3" align="left" valign="middle">
              <?php echo nl2br($eachItem->description);?>
              <br/>
              <?php echo nl2br($eachItem->product->html_description);?>
              </td>
          <td rowspan="3" align="center" valign="middle"><?php echo (int) $eachItem->quantity;?></td>
          <?php if(!empty($model_daily_amount->rate)){?>
          <td align="left" valign="middle"><?php echo Yii::app()->numberFormatter->formatCurrency(round($model_daily_amount->rate,2),"");?><br>Per Day</td>
          <?php }
          ?>
          </tr>
      <tr>
          <?php //if(!empty($model_weekly_amount->rate)){?>
          <td><?php echo Yii::app()->numberFormatter->formatCurrency(round($model_weekly_amount->rate,2),"");?><br>Per Week</td>
          <?php //}?>
      </tr>
      <tr>
          <?php //if(!empty($model_monthly_amount->rate)){?>
          <td><?php echo Yii::app()->numberFormatter->formatCurrency(round($model_monthly_amount->rate,2),"");?><br>Per Month</td>
          <?php //}?>
      </tr>
        <?php
    }
    /*$accessories_flag=0;
    foreach($modelQuotessubItems as $i=>$eachItem){
          
      if($eachItem->hiringitem->type==4 || $eachItem->hiring_item_id==0){
          $accessories_flag=1;
      }
    }
    */
    
    /*if($accessories_flag==1){
    ?>
    <tr>
        <td colspan="4"><b>Accessories<?php echo '<pre>';print_r($modelQuotessubItems);?></b></td>
    </tr>
    <?php
    }*/
      $next_serial_no=2;
      foreach($modelQuotessubItems as $i=>$eachItem){
          
          if($eachItem->hiringitem->type==4 || $eachItem->hiring_item_id==0){
            ?>
             <tr>
              <td  align="center" valign="middle"><?php echo $next_serial_no;?></td>
              <td  align="left" valign="middle"><?php echo nl2br($eachItem->description);?></td>
              <td  align="center" valign="middle"><?php echo (int) $eachItem->quantity;?></td>
              <td align="left" valign="middle"><?php echo Yii::app()->numberFormatter->formatCurrency(round($eachItem->rate,2),"");?><br>&nbsp;</td>
              </tr>
            <?php
           $next_serial_no++;
          }
        }
   ?>
    <?php 
    
    foreach($modelQuotesServiceItems as $i=>$eachServiceItem){
      
        ?>
         <tr>
          <td align="center" valign="middle"><?php echo $next_serial_no;?></td>
          <td align="left" valign="middle"><?php echo nl2br($eachServiceItem->description);//$eachServiceItem->product->part_number;"<br>".;?></td>
          <td align="center" valign="middle"><?php echo (int) $eachServiceItem->quantity;?></td>
          <td align="left" valign="middle"><?php echo Yii::app()->numberFormatter->formatCurrency(round($eachServiceItem->rate,2),"");?><br>Per Day</td>
          </tr>
        <?php
        $next_serial_no++;
    }
    ?>
    <!--tr>
      <td align="center" valign="top"><strong>P. N.:</strong></td>
      <td colspan="3" align="left" valign="middle"><ul style="padding:0px;margin-left:10px;"><li> Availability: Ex-stock, subject to availability of plant and personnel at the time of award.</li>
      
          <li> Minimum hire period: 2 weeks chargeable.</li>
          <li> Standard daily hire of 8 hours is applicable, irrespective of actual machine operation, or non-availability of raw material.</li>
          <li> Daily working hours cannot be accumulated or adjusted with Public Holidays, overtime or hours per week/month.</li>
          <li> Minimum overtime of 8 hours per shift is chargeable for work done on Fridays and Public Holidays, irrespective of actual 
            machine operating hours on site.</li>
          <li> In case of unmanned operation i.e. without our Operator/s, a weekly rate of AED. 10,000.00 would be applicable.</li>
      </ul></td>
    </tr-->
    </table>
    <br>
 </div>



<!--
 <div style="width:100%;float:left;padding-top: 10px;">

          <div style="width:33%;float:left;text-align:left;">
              <?php 
                if(!empty($arr_application_images[0]) && $arr_application_images[0]!=""){?>
                <img src="upload/applicationhiring/<?php echo $arr_application_images[0];?>" alt="Images"   style="float:left; height:100px;margin-left:30px"/>
                <?php } else{?>
               <img src="upload/hiring/download44.jpeg" alt="Images"  style="float:left; height:100px;margin-left:30px"/>
                <?php } ?>
          </div>

          <div style="width:33%;float:left;text-align:center;">
            <?php 
                if(!empty($arr_application_images[1]) && $arr_application_images[1]!=""){?>
                <img src="upload/applicationhiring/<?php echo $arr_application_images[1];?>" alt="Images"  style=" height:100px;"/>
                <?php } else{?>
               <img src="upload/hiring/download1561.jpeg" alt="Images"  style=" height:100px;"/>
            <?php } ?> 
          </div>

         <div style="width:33%;float:right;text-align:right;">
            <?php 
                if(!empty($arr_application_images[2]) && $arr_application_images[2]!=""){?>
                <img src="upload/applicationhiring/<?php echo $arr_application_images[2];?>" alt="Images"  style=" height:100px;"//>
                <?php } else{?>
               <img src="upload/hiring/download1561.jpeg" alt="Images"  style=" height:100px;"/>
            <?php } ?>
          </div> 
          
 </div>
 
 -->
 <!--div style="text-align:center;margin-top:5px;width:100%; font-style:italic;font-family:'Times New Roman', Times, serif">
 <div style="width:90%; float:left;">(The above images are for illustrative purposes only)</div>  <div style="float:right;text-align:right;">Contd…. </div></div--> 
 
 </div>
 <!--- Page 2 End--->
 
 
  <!--- Page 3 Start--->
 
 <div class="start-newpage"  style="page-break-before:always">
 <div style="text-align:center; float:left; width:100%;font-family:'Times New Roman', Times, serif;font-style:italic;"> 

   <img src="images/logo.png" style="height:90px;"/><br />
    ---- Page 3 ---- 
   </div>
 
 
 <div style="width:100%;float:left;padding-top:5px;padding-bottom:10px; text-align:center;font-size:11px;">

 <span style="border-bottom:2px solid; font-size:14px;font-family:'Times New Roman', Times, serif"><b>HIRE AGREEMENT CONTRACTUAL TERMS AND CONDITIONS</b></span>

</div>



<div style="width:100%;float:left;font-size:12px;margin:0px;padding:0px;font-family:'Times New Roman', Times, serif">
    <?php echo nl2br($modelQuotes->terms_and_conditions); ?>


</div>



<!--div style="text-align:center;margin-top:5px;width:100%; font-style:italic;font-family:'Times New Roman', Times, serif"> <div style="float:right;text-align:right;">Contd…. </div></div-->
 
 
</div>
 
 
 
 


<!--last page start-->
<div style=" ">
    
<div style="width:100%;float:left;font-size:12px;margin-top:5px; font-family:'Times New Roman', Times, serif">

 <div style="width:50%;float:left;">
     
     <span>For and on behalf of,</span><br />

    <span><b>ACE CENTRO ENTERPRISES</b></span>


 </div>

 

  <div style="width:50%;float:left;margin-left:105px;margin-top:5px; font-family:'Times New Roman', Times, serif">
      
    <span>Terms and conditions accepted by:</span><br />

    <span><b><?php echo strtoupper($modelQuotes->customer->customer_name); ?></b></span>

 </div>

</div>



<div style="width:100%;float:left; text-align:center;font-size:12px;">

 <p style="padding:0px;margin:0px;">Sign</p> 
 <p style="padding:0px;margin:0px;">Date</p> 
 <p style="padding:0px;margin:0px;">Stamp</p> 

</div>



<div style="width:100%;float:left;font-size:12px;">

  <div style="width:50%;float:left; font-family:'Times New Roman', Times, serif">

 
<div style="border-bottom:1px solid #000;width:150px; "></div>

 <span><b><?php echo $modelQuotes->name1 ?></b></span><br />

 <em><?php echo $modelQuotes->designation1 ?></em><br />

 <?php if($modelQuotes->phn1!= ""){?><span>Cell : <?php echo $modelQuotes->phn1 ?></span><br /><?php } ?>   <br />

 </div>

 <div style="width:50%;float:left;font-size:12px;margin-left:105px; font-family:'Times New Roman', Times, serif">

 
<div style="border-bottom:1px solid #000;width:150px;"></div>

<span><b><?php echo  $modelQuotes->customercontact->person_name; ?></b></span><br />

 <em>Authorized Signatory</em><br />

 <span>Cell : <?php echo  $modelQuotes->customercontact->contact_mobile_no; ?></span><br />
    
    
    
    
    
    
    
    
    
    
    

<!--div style="width:100%;float:left;font-size:12px;margin-top:5px; font-family:'Times New Roman', Times, serif">

 <div style="width:50%;float:left;">

 <span>For and on behalf of,</span><br />

 <span><b>ACE CENTRO ENTERPRISES</b></span>

 </div>

 

  <div style="width:50%;float:left;margin-left:105px;margin-top:5px; font-family:'Times New Roman', Times, serif">

 <span>Terms and conditions accepted by:</span><br />

 <span><b><?php echo $modelQuotes->customer->customer_name;?><?php //echo $modelQuotes->designation3 ?></b></span><br />
 <?php if($modelQuotes->customercontact->person_name!= ""){?><em><?php echo $modelQuotes->customercontact->prefix.'.'. $modelQuotes->customercontact->person_name;?> </em><br /><?php } ?>
 <?php if($modelQuotes->customercontact->contact_mobile_no!= ""){?><span>Cell : <?php echo $modelQuotes->customercontact->contact_mobile_no; ?> </span><br /><?php } ?>
 </div>

</div>



<div style="width:100%;float:left; text-align:center;font-size:12px;">

 <p style="padding:0px;margin:0px;">Sign</p> 
 <p style="padding:0px;margin:0px;">Date</p> 
 <p style="padding:0px;margin:0px;">Stamp</p> 

</div>



<div style="width:100%;float:left;font-size:12px; margin-top:20px;">

  <div style="width:50%;float:left; font-family:'Times New Roman', Times, serif">

 
<div style="border-bottom:1px solid #000;width:150px; "></div>

 <span><b><?php echo $modelQuotes->name1 ?></b></span><br />

 <em><?php echo $modelQuotes->designation1 ?></em><br />

 <?php if($modelQuotes->phn1!= ""){?><span>Cell : <?php echo $modelQuotes->phn1 ?></span><br /><?php } ?>

 </div>

 <div style="width:50%;float:left;font-size:12px;margin-left:105px; font-family:'Times New Roman', Times, serif">

 
<div style="border-bottom:1px solid #000;width:150px;"></div>
 <span><b><?php echo $modelQuotes->name3 ?></b></span><br />

 <em>Authorized Signatory:<?php echo $modelQuotes->designation3 ?></em><br />

 <?php if($modelQuotes->phn3!= ""){?><span>Cell : <?php echo $modelQuotes->phn3 ?> </span><br /><?php } ?>

 </div>

</div-->


</div>
<!--last page end-->

 </div>
 

<htmlpagefooter name="myfooter">
<div style="text-align:center;width:100%;"> <img src="images/innovating.png" /></div> 
</htmlpagefooter>
<sethtmlpagefooter name="myfooter" page="all" value="on" />
 
</body>

</html>


<?php //exit;?>
