<?php
include_once "invoice_includes.php";
////////////////////// CORE FUNCTION | MODULE FUNCTION (c) i2d Technologies //////////////////////////////////
////////////////////// CORE FUNCTION | MODULE FUNCTION (c) i2d Technologies //////////////////////////////////
include_once('tcpdf_vars_proposal.php');

include_once('tcpdf_proposal_fetch_i2dprohost.php');

require_once('tcpdf_include.php');




/////////////////////////////////////////////////////

$file_title="i2d_hosting_proposal";
$doc_title="i2d Technologies - Client Hosting Proposal";
$inv_title_old=strtoupper('Internet Brand Name Proposal');
$inv_title=$domain_name;
$doc_keywords="web hosting";
$doc_sub="Cloud Linux - Hosting Services";

$rec_id = $id;
$refno = $rec_id;

include_once('tcpdf_bottom.php');


$unit="PKR";

//$package_price="9500";
$tax_value=$package_price*$tax_rate1;
$price_with_tax=$package_price+$domain_price+$tax_value;


$inv_header='<p>&nbsp;</p><p>&nbsp;</p>

<table width="660" border="0" align="center" cellpadding="2" cellspacing="0">
  <tr>
    <td width="290" rowspan="2" align="left">ATTN : <br />
    '. $person_name .' <br />
    '. $company_name .'<br /> 
    '. $address .'</td>
    <td width="370" align="right"><h1>'. $inv_title .'</h1></td>
  </tr>
  <tr>
    <td align="right">Dated: '. $dated1 .'</td>
  </tr>
  
</table><br /><br />

';

//$html .=''.$package_feature0.'';
$html .='';


//////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////

$opening_old='
<table width="660" border="0" align="center" cellpadding="2" cellspacing="0">
  <tr>
    <td height="10" align="center">Get Started with <h3>'.$domain_name.'</h3> for your business!</td>
  </tr>
  
</table>
';

$opening='
<table width="660" border="0" align="center" cellpadding="2" cellspacing="0">
  <tr>
    <td height="10" align="center"></td>
  </tr>
  
</table>
';

$image_path1 = K_PATH_IMAGES."urdu.jpg";
$img1 = '<p align="center"><img src="'. $image_path1  .'"/></p>';
$image_path2 = K_PATH_IMAGES."coming_soon_2.jpg";
$img2 = '<p align="center"><img src="'. $image_path2  .'"/></p>';

$ending='
<table width="660" border="0" align="center" cellpadding="2" cellspacing="0">
  <tr>
    <td height="10" align="center">Get Started Again with <h3>'.$domain_name.'</h3> for your business!</td>
  </tr>
  
</table>
';

$note=
'

<table width="660" border="0" align="left" cellpadding="2" cellspacing="0">
  <tr>
    <td height="10" align="left"><br /><br /><strong>IMPORTANT NOTE : '.$domain_name.'</strong> is available for purchase on '.$dated1.'. <strong>
<br />Domain Availability</strong> is subject to International Market Purchases &amp; Global Domain Competition.</td>
  </tr>
  <tr>
    <td height="10" align="center"><h2>For Registration & Inquiries : Please Call us at 051-8774077 and 0345-8500096</h2></td>
  </tr>
  <tr>
    <td height="10" align="center"><h3>www.i2dtechnologies.com | fb.com/i2dtech</h3></td>
  </tr>
</table>
<table width="660" border="0" align="left" cellpadding="2" cellspacing="0">
  <tr>
    <td height="10">'.$line.'</td>
  </tr>
</table>
<table width="660" border="0" align="left" cellpadding="2" cellspacing="0">
  <tr>
    <td width="355" height="10"><br /><br />Looking Forward,<br />
i2d Marketing Department<br />
<strong>marketing@i2dtechnologies.com</strong></td>
    <td width="235" align="right">&nbsp;</td>
  </tr>
</table>

';

////////////////////////////////////////////




/// PART 2

$html = ''.$inv_header.'';

$html_old .='
'.$img1.''.$opening.''.$img2.''.$note.'

';

$html .='
'.$img1.''.$img2.''.$note.'

';


//$html .=''.$costing.'';




// output the HTML content
$pdf->writeHTML(utf8_encode($html), true, 0, true, 0);

include_once('tcpdf_bottom3.php');


$one=array();
$dated1 = date('d-m-Y H:i:s');
$dated=date( "d-m-Y H:i:s", strtotime( $dated1 )+5*60*60 );
$settings=array(
'date_time'=>$dated,
'sys_status'=>'Active',
'update_detail'=>'Whatsapp Proposal Downloaded',
'lead_ref'=>'lead_update',
'update_by'=>'system'
);
db_insertdata('sys_updates',$one,$settings,0);


?>