<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>GT4</title>
<style type="text/css">
</style>
</head>
    <!--script src="../views/default/assets/js/jquery.js"></script-->

     
{literal}
<script language="javascript" type="text/javascript">
/*$(document).ready(function() {
//print_Custom('mycustomheader');

 // printDiv();
});*/
function printDiv(){
	
var divId=document.getElementById('printdiv');
divId.setAttribute("className","print_section print");
divId.setAttribute("class","print_section print");
print_Custom('mycustomheader');

window.close();
}
</script>
<style>
.td td
{
	border-right-widtd: 1px;
	border-bottom-widtd: 1px;
	border-left-widtd: 0px;
	border-top-style: none;
	border-right-style: dotted;
	border-bottom-style: solid;
	border-left-style: none;
	border-bottom-color: #999;
	font-size: 15px;
	border-right-color: #999;
}
.NEE
{
	font-size: 14px;
}
.newdesign
{
	font-size: 14px;
}
.copywrites
{
	font-size: 11px;
}
</style>
{/literal}
<body onLoad="printDiv()">
<div align="center" id="printdiv" >
<b>
<table width="{if {$billsettingsData[25]->billsettingsvalue} eq 0}420  {else} 250{/if}" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
  <!--  <td width="148" height="115" align="left" valign="middle">&nbsp;</td>-->
    <td width="142" colspan="2" align="right" valign="top"><p><strong><img src="../views/default/images/upload/{$Programsettingdata->logo}" alt="" width="122" height="75"><br>
   
   
 </td>
  </tr>
 


  <tr>
  
   
    <td dir="rtl" > {$allrecept->receiptserial}</td>
    
    <td dir="rtl"> رقم الايصال : </td>
   
  </tr>
  
  <tr >
   
   
    
     <td dir="rtl"> {$allrecept->receiptdat}</td>
     <td dir="rtl"> تاريخ الايصال :</td>
   
  </tr>
  <tr >
 
    <td dir="rtl">  {$allrecept->documentid}  </td>
     <td dir="rtl">  رقم مستندى : </td>
  
  </tr>
  <tr>

    <td dir="rtl"> {foreach $clientsData as $data}
                 {if {$allrecept->clientid} eq {$data->clientid}} {$data->clientname} {/if} 
                  {/foreach}</td>
    <td dir="rtl">  اسم العميل : </td>
  </tr>


 
  
  <tr>
 
 	
          <td colspan="3" class="td"align="right">
          {if !empty($clientdata)}
          <div style="font-size:24px"> ضمان عميل</div>
          <table width="100%" border="0" cellpadding="0" cellspacing="0" dir="rtl">
            
                <tr>        
                  <td align="center" bgcolor="#E8E8E8">اسم المنتج</td>

                  <td align="center" bgcolor="#E8E8E8" >سيريال </td>
     
                  <td align="center" bgcolor="#E8E8E8"> لسريال الخاص</td>
                    <td align="center" bgcolor="#E8E8E8">تكلفه مبدئيه </td>
                 
                  <td align="center" bgcolor="#E8E8E8"> تكلفه شحن </td>
                 
                  
                </tr>
            
             
              
             {foreach $clientdata as $data}
                <tr>
                 <td align="center" >{$data->productName}</td>
                  <td align="center" >
                   {$data->productserial}
                 
                  </td>
                 
                  
                  <td align="center">
                     
                    {$data->ourserial}
                 
                  </td>
                  
                  
                  <td align="center" >{$data->initialcost}
                  </td>
                  
                  
                  <td align="center" >{$data->shipcost}                  
                  </td>
                 
                  
                  
                </tr>
                
                {/foreach}
           
            </table>
            {/if}
            
            </br>
            
            {if !empty($companydata)}
          <div style="font-size:24px"> ضمان شركه</div>
          <table width="100%" border="0" cellpadding="0" cellspacing="0" dir="rtl">
            
                <tr>        
                  <td align="center" bgcolor="#E8E8E8">اسم المنتج</td>

                  <td align="center" bgcolor="#E8E8E8" >سيريال </td>
     
                  <td align="center" bgcolor="#E8E8E8"> لسريال الخاص</td>
                    <td align="center" bgcolor="#E8E8E8">تكلفه مبدئيه </td>
                 
                  <td align="center" bgcolor="#E8E8E8"> تكلفه شحن </td>
                 
                  
                </tr>
            
             
              
            {foreach $companydata as $data}
                <tr>
                 <td align="center" >{$data->productName}</td>
                  <td align="center" >
                   {$data->productserial}
                 
                  </td>
                 
                  
                  <td align="center">
                     
                    {$data->ourserial}
                 
                  </td>
                  
                  
                  <td align="center" >{$data->initialcost}
                  </td>
                  
                  
                  <td align="center" >{$data->shipcost}                  
                  </td>
                 
                  
                  
                </tr>
                
                {/foreach}
           
            </table>
            {/if}
            
            </br>
            
             {if !empty($mantancedata)}
          <div style="font-size:24px"> ضمان  صيانه</div>
          <table width="100%" border="0" cellpadding="0" cellspacing="0" dir="rtl">
            
                <tr>        
                  <td align="center" bgcolor="#E8E8E8">اسم المنتج</td>

                  <td align="center" bgcolor="#E8E8E8" >سيريال </td>
     
                  <td align="center" bgcolor="#E8E8E8"> لسريال الخاص</td>
                    <td align="center" bgcolor="#E8E8E8">تكلفه مبدئيه </td>
                 
                 
                  
                </tr>
            
             
              
           {foreach $mantancedata as $data}
                <tr>
                 <td align="center" >{$data->productName}</td>
                  <td align="center" >
                   {$data->productserial}
                 
                  </td>
                 
                  
                  <td align="center">
                     
                    {$data->ourserial}
                 
                  </td>
                  
                  
                  <td align="center" >{$data->initialcost}
                  </td>
                  
                  
                             
                  </td>
                 
                  
                  
                </tr>
                
                {/foreach}
           
            </table>
            {/if}
            </td>
            </tr>
            <tr>
             <td height="54" colspan="3" align="right"><table width="50%" border="0" align="left" cellpadding="0" cellspacing="0"  dir="rtl" class="td">
       
               <tr>
    <td>التكلفه المبدئيه الكليه</td>
    <td>{$allrecept->initialcost}</td>
  </tr>
  <tr>
   <td>التكلفه الشحن الكليه</td>
    <td>
     {$allrecept->shipcost}
     </td>
  </tr>
 
 
    <td ><p>&nbsp;</p>
      <p>&nbsp;</p>
    <p><span class="copywrites"><span class="copywrites">تصميم شركة جي تي فور 01110070882...</span></span></p></td>
  </tr>
  </table></b>
         </div>
         
</body>