<?php require ("header.php")?>


       <?php
session_start();
if(isset($_SESSION['SESS_ADMINLOGGEDIN']) == FALSE) {
    header("Location: " . $config_basedir."access");
}
require_once("achieved/config.php");
require_once("achieved/db.php");
require_once("achieved/functions.php");
?>
        
                <?php


    $id = pf_validate_number($_GET['id'], "redirect", $config_basedir);
    $funcsql = "UPDATE invest SET verify = 2 WHERE id = " . $_GET['id'];
    mysql_query($funcsql);

 
 
 ?>
 
 
 <?php
 






if (isset($_POST['IR'])) {
    $IR = mysql_real_escape_string($_POST['IR']);
    $addresssql = mysql_query("UPDATE invest SET IR='$IR'  WHERE id='$id'");
    echo mysql_error();
    $success="<div class='alert alert-success' style='margin-bottom:20px;'>closed_date Set Successfully<meta http-equiv='refresh' content='5; url=' /></div>";
}



if (isset($_POST['PL'])) {
   
    $PL = mysql_real_escape_string($_POST['PL']);
   
      
    $addresssql = mysql_query("UPDATE invest SET PL='$PL'  WHERE id='$id'");
    echo mysql_error();
    $success="<div class='alert alert-success' style='margin-bottom:20px;'>closed_date Set Successfully<meta http-equiv='refresh' content='5; url=' /></div>";
}



 if (isset($_POST['invest'])) {
    $inv_bal = mysql_real_escape_string($_POST['inv_bal']);
     $status = mysql_real_escape_string($_POST['status']);
      $closed_date = mysql_real_escape_string($_POST['closed_date']);
       $amount = mysql_real_escape_string($_POST['amount']);
         $phone = mysql_real_escape_string($_POST['phone']);
          $email = mysql_real_escape_string($_POST['email']);
          
          
           $cname = mysql_real_escape_string($_POST['cname']);
       $cemail = mysql_real_escape_string($_POST['cemail']);
        $caddress = mysql_real_escape_string($_POST['caddress']);
      $copyright = mysql_real_escape_string($_POST['copyright']);
      $cphone = mysql_real_escape_string($_POST['cphone']);
      $remarks = mysql_real_escape_string($_POST['remarks']);
   
      
    $addresssql = mysql_query("UPDATE invest SET inv_bal='$inv_bal',status='$status', closed_date='$closed_date', amount='$amount',phone='$phone',email='$email' WHERE id='$id'");
    echo mysql_error();
    $success="<div class='alert alert-success' style='margin-bottom:20px;'>Payment Remark Set Successfully<meta http-equiv='refresh' content='5; url=' /></div>";
}
   {
         
   
  //   =============TO==USER=================  
       
       

   $cmail = $row['cemail'];
     
        
       if (isset($invest))
       {
            $to = $email;
            $subject = 'INVESTMENT';
       
        $body ='
    
 <table cellpadding="0" cellspacing="0" color="" style="color: rgb(116, 120, 126); font-family: -apple-system, BlinkMacSystemFont, ;" width="100%">
    <tbody>
        <tr>
            <td cellpadding="0" cellspacing="0" color="" style="font-family: -apple-system, BlinkMacSystemFont, ;" width="100%">
                <table align="center" cellpadding="0" cellspacing="0" color="" style="font-family: -apple-system, BlinkMacSystemFont, ;" width="570">
                    <tbody>
                        <tr>
                            <td color="" style="font-family: -apple-system, BlinkMacSystemFont, ;">
                                <table cellpadding="0" cellspacing="0" color="" style="font-family: -apple-system, BlinkMacSystemFont, ;" width="100%">
                                    <tbody>
                                        <tr>
                                            <td color="" style="font-family: -apple-system, BlinkMacSystemFont, ;">
                                                <table cellpadding="0" cellspacing="0" color="" style="font-family: -apple-system, BlinkMacSystemFont, ;" width="100%">
                                                    <tbody>
                                                        <tr>
                                                            <td color="" style="font-family: -apple-system, BlinkMacSystemFont, ;">
                                                                <p color="" style="font-family: -apple-system, BlinkMacSystemFont, ;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="font-size: 20px;"><strong>&nbsp; INVESTMENT</strong></span></p>
                                                            </td>
                                                        </tr>
                                                    </tbody>
                                                </table>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                                
                                
                                <p>Welcome to '.$cname.'</p>
                                <p color="" style="font-family: -apple-system, BlinkMacSystemFont, ;">Your Investment Request has been approved &nbsp;Successfully.</p>
                                <p color="" style="font-family: -apple-system, BlinkMacSystemFont, ;">Below are your Investment informations.</p>
                                INVESTOR NAME : '.$bname.'<br>
                                ACCOUNT NUMBER : '.$acc_no.' <br>
                                 INVESTMENT AMOUNT : $'.number_format($amount,2).'<br>
                                RETURN INVESTMENT : $'.number_format($inv_bal,2).'<br>
                               
                               
                               
                            </td>
                        </tr>
                    </tbody>
                </table>
            </td>
        </tr>
        <tr>
            <td color="" style="font-family: -apple-system, BlinkMacSystemFont, ;">
                <table align="center" cellpadding="0" cellspacing="0" color="" style="font-family: -apple-system, BlinkMacSystemFont, ;" width="570">
                    <tbody>
                        <tr>
                            <td align="center" color="" style="font-family: -apple-system, BlinkMacSystemFont, ;">
                                <p color="" style="font-family: -apple-system, BlinkMacSystemFont, ;">&copy;'.$copyright.'</p>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </td>
        </tr>
    </tbody>
</table>
    
    
    <hr style="border-top: 1px solid #00B9CD;" >
    
    FOR MORE INFORMATION : <br> CONTACT THE CUSTOMER CARE SERVICE ('.$cemail.') or DIAL THE NUMBER TO SPEAK WITH ONE OF OUR AGENTS : ('.$cphone.'),or Visit '.$url.', Thank You.
       
       
      
      
       
     
      
      
       ';
      
        $header = "From:". $cemail."\r\n";
       
        $header .= "MIME-Version: 1.0\r\n";
       
        $header .= "Content-Type: text/html; charset=UTF-8\r\n";
       
        if(@mail($to, $subject, $body, $header)){
            
             $sender = "$cname";
                        $mobile = validate_phone_number($phone);
                        $msg = 'Welcome to '.$cname.', Your Investment has been approved.  Contact Us for any further Enquries @ '.$cphone.' or Visit '.$service1.', Thank You.
                                ';
                        sendBulkSMS($sender,$mobile, $msg);


}
}


}
?>     
   

 
 
 
 
 
 
   
 
  <div class='page-wrapper'>
           
            <div class='page-breadcrumb'>
                <div class='row'>
                    <div class='col-12 d-flex no-block align-items-center'>
                       
                       
                    </div>
                </div>
            </div>
           
            <div class='container-fluid'>
               
                <div class='row'>
                    <div class='col-12'>
                        <div class='card'>
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
 
     <!-- Content Wrapper. Contains page content -->
      <div class='content-wrapper'>
      
        <!-- Main content -->
        <section class='content'>

          <div class='row'>
            <!-- /.col -->
            <div class='col-md-12'>
              <div class='nav-tabs-custom'>
                <ul class='nav nav-tabs'>
                    <li class='active'>
                          <a href='index.php' class='rowtab'><strong>HOME</strong></a>
                          
                          </li>
<a href='list_investment.php'  class='btn btn-primary' value='log in'>List INVESTMENT</a>
                   
                   </li>
                </ul>
                <div class='tab-content'>
                  <div class='active tab-pane' id='activity'>
                    <!-- Post -->
                    <div class='post'>
      
      
          
    <section class='content-header'>
      <h1>
        Investment's Details
        <small>Customer's panel</small>
      </h1>
      <ol class='breadcrumb'>
        <li><a href='index.php'><i class='fa fa-dashboard'></i> Home</a></li>
        <li class='active'> <a href='list_investment.php'>List INVESTMENT</a></li>
        <li class='active'>Add</li>
      </ol>
    </section>
	
	
    <section class='content'>
	<div class='row'>	
		
	 <section class='content'>
     
	<div class='alert alert-warning fade in' >
			<p><a href = '#' class = 'close' data-dismiss= 'alert'> &times;</a>
  				<strong>Please Note that&nbsp;</strong> &nbsp;&nbsp;You Must Tick All Added Checkbox Before Clicking on update button below</p>
				</div>	
				
				
				
				<div class='box box-success'>
            <div class='box-body'>
              <div class='table-responsive'>
             <div class='box-body'>

			 <!--<div class='col-md-14'>-->
           <div class='container'>
             <ul class='nav nav-tabs'>
              <li class='active'><a href='#tab_1' data-toggle='tab'>CUSTOMER INVESTMENT</a></li>
              <li><a href='#tab_5' data-toggle='tab'>CALCULATOR</a></li>
             
              <li>
                  
                   <!--====================================-->
<button onclick='myFunction()' class='btn btn-success btn-flat'>
<i class='fa fa-print'>&nbsp;Print</i></button>

<!--<button onclick='window.print()'><i class='fa fa-print'>&nbsp;Print</i></button>-->


<!--===================================-->
                  
              </li>
              
              
              </ul>
              
              
            
            
            
            
             <div class='tab-content'>
            
            
     


<?php 
if(isset($success)){
    echo $success;
}
?>

            
            <?php
 $ordsql = "SELECT * from invest WHERE id = " . $id; 
$ordres = mysql_query($ordsql);
$ordrow = mysql_fetch_assoc($ordres);

echo "<div class='tab-pane fade in active' id='tab_1'>
             <hr>	
<div class='alert-danger'>&nbsp;CUSTOMER INFORMATION</div>
<hr>";	

           
           
            
            
           
            echo" <form class='form-horizontal' method='post' enctype='multipart/form-data' action=''>
			
			
 
			
						<div class='box-body'>
				
			
		
			  
		  <div class='form-group'>
                <label for='' class='col-sm-2 control-label' style='color:#009900'>Email</label>
				 <div class='col-sm-10'>
									<input name='email' type='text' class='form-control' value='" . $ordrow['email'] . "' readonly>
				              </div>
			  </div>
			  
			  
			<div class='form-group'>
                  <label for='' class='col-sm-2 control-label' style='color:#009900'>Account Number</label>
                  <div class='col-sm-10'>
                  <input name='acc_no' type='text' class='form-control' value='" . $ordrow['acc_no'] . "' readonly>
                  </div>
                  </div>
                  
                  
                  	<div class='form-group'>
                  <label for='' class='col-sm-2 control-label' style='color:#009900'>Phone Number</label>
                  <div class='col-sm-10'>
                  <input name='phone' type='text' class='form-control' value='" . $ordrow['phone'] . "' >
                  </div>
                  </div>
                  
                  
                  
                  
                 
				 
		<div class='form-group'>
                  <label for='' class='col-sm-2 control-label' style='color:#009900'>Investment Amount</label>
                  <div class='col-sm-10'>
                  <input name='amount' type='text' class='form-control' value='" . $ordrow['amount'] . "' readonly>
                  </div>
                  </div>
                  
                  
                  
                <div class='form-group'>
                  <label for='' class='col-sm-2 control-label' style='color:#009900'>Investment Income</label>
                  <div class='col-sm-10'>
                  <input name='inv_bal' type='text' class='form-control' value='".(($ordrow['amount'])+$ordrow['amount']*($ordrow['IR']/100))."' readonly>
                  </div>
                  </div>
		
		 <div class='form-group'>
                  	<label for='' class='col-sm-2 control-label' style='color:#009900'>Type of Investment</label>
                  	<div class='col-sm-10'>
					<input name='invtype' type='text' class='form-control' value='" . $ordrow['invtype'] . "' readonly>
           			 </div>
					 </div>
					 
				
			  
			<div class='form-group'>
                  <label for='' class='col-sm-2 control-label' style='color:#009900'>Agent</label>
                  <div class='col-sm-10'>
                  <input name='agent' type='text' class='form-control' value='ADMIN' readonly>
                  </div>
                  </div>";
                  
                  
        //  =================Applied==date==========================     
    
    
               echo"   <div class='form-group'>
                <label for='' class='col-sm-2 control-label' style='color:#009900'>Date Applied</label>
			 <div class='col-sm-10'>
              <div class='input-group date'>
                  <div class='input-group-addon'>
                    <i class='fa fa-calendar'></i>
                  </div>
                  <input name='appl_date' type='text' class='form-control pull-right' value='" . $ordrow['appl_date'] . "' readonly>
                </div>
              </div>
			  </div>";

// ================END=============================			  
	

//  ===================CLODE==DATE================================              



                  
                 if($ordrow['PL'] < 30)
          {
         
               echo "<p>SELECT DATE</p>";
  } 
               
                elseif($ordrow['PL'] == 30)
          {
              
               $date=date_create($ordrow['appl_date']);
date_add($date,date_interval_create_from_date_string("30 days"));
         
               echo"	<div class='form-group'>
                <label for='' class='col-sm-2 control-label' style='color:#009900'>Closed Date </label>
			 <div class='col-sm-10'>
              <div class='input-group date'>
                  <div class='input-group-addon'>
                    <i class='fa fa-calendar'></i>
                  </div>
                  <input id=datepicker name='closed_date' type='text' class='form-control pull-right' value='". date_format($date,'jS F Y g.iA')."' >
                </div>
              </div>
			  </div>";
  } 
                     
       
        elseif($ordrow['PL'] == 60)
          {
              
               $date=date_create($ordrow['appl_date']);
date_add($date,date_interval_create_from_date_string("60 days"));
         
               echo"	<div class='form-group'>
                <label for='' class='col-sm-2 control-label' style='color:#009900'>Closed Date </label>
			 <div class='col-sm-10'>
              <div class='input-group date'>
                  <div class='input-group-addon'>
                    <i class='fa fa-calendar'></i>
                  </div>
                  <input id=datepicker name='closed_date' type='text' class='form-control pull-right' value='". date_format($date,'jS F Y g.iA')."' >
                </div>
              </div>
			  </div>";
  }           
				  
				
	 elseif($ordrow['PL'] == 90)
          {
              
               $date=date_create($ordrow['appl_date']);
date_add($date,date_interval_create_from_date_string("90 days"));
         
               echo"	<div class='form-group'>
                <label for='' class='col-sm-2 control-label' style='color:#009900'>Closed Date </label>
			 <div class='col-sm-10'>
              <div class='input-group date'>
                  <div class='input-group-addon'>
                    <i class='fa fa-calendar'></i>
                  </div>
                  <input id=datepicker name='closed_date' type='text' class='form-control pull-right' value='". date_format($date,'jS F Y g.iA')."' >
                </div>
              </div>
			  </div>";
  } 
  
  
  
   elseif($ordrow['PL'] == 120)
          {
              
               $date=date_create($ordrow['appl_date']);
date_add($date,date_interval_create_from_date_string("120 days"));
         
               echo"	<div class='form-group'>
                <label for='' class='col-sm-2 control-label' style='color:#009900'>Closed Date </label>
			 <div class='col-sm-10'>
              <div class='input-group date'>
                  <div class='input-group-addon'>
                    <i class='fa fa-calendar'></i>
                  </div>
                  <input id=datepicker name='closed_date' type='text' class='form-control pull-right' value='". date_format($date,'jS F Y g.iA')."' >
                </div>
              </div>
			  </div>";
  } 
  
				  

		 elseif($ordrow['PL'] == 150)
          {
              
               $date=date_create($ordrow['appl_date']);
date_add($date,date_interval_create_from_date_string("150 days"));
         
               echo"	<div class='form-group'>
                <label for='' class='col-sm-2 control-label' style='color:#009900'>Closed Date </label>
			 <div class='col-sm-10'>
              <div class='input-group date'>
                  <div class='input-group-addon'>
                    <i class='fa fa-calendar'></i>
                  </div>
                  <input id=datepicker name='closed_date' type='text' class='form-control pull-right' value='". date_format($date,'jS F Y g.iA')."' >
                </div>
              </div>
			  </div>";
  } 		  
	
	
	
	 elseif($ordrow['PL'] == 180)
          {
              
               $date=date_create($ordrow['appl_date']);
date_add($date,date_interval_create_from_date_string("180 days"));
         
               echo"	<div class='form-group'>
                <label for='' class='col-sm-2 control-label' style='color:#009900'>Closed Date </label>
			 <div class='col-sm-10'>
              <div class='input-group date'>
                  <div class='input-group-addon'>
                    <i class='fa fa-calendar'></i>
                  </div>
                  <input id=datepicker name='closed_date' type='text' class='form-control pull-right' value='". date_format($date,'jS F Y g.iA')."' >
                </div>
              </div>
			  </div>";
  } 
	
	
	
	
	
	
	 elseif($ordrow['PL'] == 210)
          {
              
               $date=date_create($ordrow['appl_date']);
date_add($date,date_interval_create_from_date_string("210 days"));
         
               echo"	<div class='form-group'>
                <label for='' class='col-sm-2 control-label' style='color:#009900'>Closed Date </label>
			 <div class='col-sm-10'>
              <div class='input-group date'>
                  <div class='input-group-addon'>
                    <i class='fa fa-calendar'></i>
                  </div>
                  <input id=datepicker name='closed_date' type='text' class='form-control pull-right' value='". date_format($date,'jS F Y g.iA')."' >
                </div>
              </div>
			  </div>";
  } 
	
	
	 elseif($ordrow['PL'] == 240)
          {
              
               $date=date_create($ordrow['appl_date']);
date_add($date,date_interval_create_from_date_string("240 days"));
         
               echo"	<div class='form-group'>
                <label for='' class='col-sm-2 control-label' style='color:#009900'>Closed Date </label>
			 <div class='col-sm-10'>
              <div class='input-group date'>
                  <div class='input-group-addon'>
                    <i class='fa fa-calendar'></i>
                  </div>
                  <input id=datepicker name='closed_date' type='text' class='form-control pull-right' value='". date_format($date,'jS F Y g.iA')."' >
                </div>
              </div>
			  </div>";
  } 
	
	
	
 elseif($ordrow['PL'] == 270)
          {
              
               $date=date_create($ordrow['appl_date']);
date_add($date,date_interval_create_from_date_string("270 days"));
         
               echo"	<div class='form-group'>
                <label for='' class='col-sm-2 control-label' style='color:#009900'>Closed Date </label>
			 <div class='col-sm-10'>
              <div class='input-group date'>
                  <div class='input-group-addon'>
                    <i class='fa fa-calendar'></i>
                  </div>
                  <input id=datepicker name='closed_date' type='text' class='form-control pull-right' value='". date_format($date,'jS F Y g.iA')."' >
                </div>
              </div>
			  </div>";
  } 	
	
			
			
			
			 elseif($ordrow['PL'] == 300)
          {
              
               $date=date_create($ordrow['appl_date']);
date_add($date,date_interval_create_from_date_string("300 days"));
         
               echo"	<div class='form-group'>
                <label for='' class='col-sm-2 control-label' style='color:#009900'>Closed Date </label>
			 <div class='col-sm-10'>
              <div class='input-group date'>
                  <div class='input-group-addon'>
                    <i class='fa fa-calendar'></i>
                  </div>
                  <input id=datepicker name='closed_date' type='text' class='form-control pull-right' value='". date_format($date,'jS F Y g.iA')."' >
                </div>
              </div>
			  </div>";
  } 	  
	
	
	 elseif($ordrow['PL'] == 330)
          {
              
               $date=date_create($ordrow['appl_date']);
date_add($date,date_interval_create_from_date_string("330 days"));
         
               echo"	<div class='form-group'>
                <label for='' class='col-sm-2 control-label' style='color:#009900'>Closed Date </label>
			 <div class='col-sm-10'>
              <div class='input-group date'>
                  <div class='input-group-addon'>
                    <i class='fa fa-calendar'></i>
                  </div>
                  <input id=datepicker name='closed_date' type='text' class='form-control pull-right' value='". date_format($date,'jS F Y g.iA')."' >
                </div>
              </div>
			  </div>";
  } 
	
	
	
 elseif($ordrow['PL'] == 360)
          {
              
               $date=date_create($ordrow['appl_date']);
date_add($date,date_interval_create_from_date_string("360 days"));
         
               echo"	<div class='form-group'>
                <label for='' class='col-sm-2 control-label' style='color:#009900'>Closed Date </label>
			 <div class='col-sm-10'>
              <div class='input-group date'>
                  <div class='input-group-addon'>
                    <i class='fa fa-calendar'></i>
                  </div>
                  <input id=datepicker name='closed_date' type='text' class='form-control pull-right' value='". date_format($date,'jS F Y g.iA')."' >
                </div>
              </div>
			  </div>";
  } 
	
// ==========END==CLOSED=DATE==============================	
	
	
	
	
	
	
				  
			echo"<div class='form-group'>
                  <label for='' class='col-sm-2 control-label' style='color:#009900'>Select Status</label>
                  <div class='col-sm-10'>
                  
                   <select name='status'>
  <option value='" . $ordrow['status'] . "' > ";
 
 if($ordrow['status'] == 0)
         {
         
               echo "<td class='danger'>Pending </td>";
 }
         elseif ($ordrow['status'] == 1)
         {
        echo "<td class='danger'> Processing </td>";
         }
         elseif ($ordrow['status'] == 2)
         {
        echo "<td class='danger'> Declined </td>";
         }
         elseif ($ordrow['status'] == 3)
         {
        echo "<td class='danger'> Completed </td>";
         }
        
       
     echo" </option>
           <option value='0' >Pending</option>
            <option value='1' >Processng</option>
            <option value='2' >Declined</option>
            <option value='3' >Completed</option>
            </select>
                  </div>
                  </div>
				  				";
           			               ?>	
	               <?php
  $orderssql = "SELECT * from settings  ORDER BY id DESC";
    $ordersres = mysql_query($orderssql);
    $numrows = mysql_num_rows($ordersres);
   

 while($row = mysql_fetch_assoc($ordersres))
     {


echo"<input type='hidden' class='form-control' name='cname' id='details'  value='".$row['domain_name']."'>

<input type='hidden' class='form-control' name='cemail' id='details'  value='".$row['email2']."'>

<input type='hidden' class='form-control' name='cphone' id='details'  value='".$row['phone']."'>

<input type='hidden' class='form-control' name='caddress' id='details'  value='".$row['address']."'>

<input type='hidden' class='form-control' name='copyright' id='details'  value='".$row['copyright']."'>
      
      
       
";

}
?>


			

           			 </div>
           			 <div align='right'>
              <div class='box-footer'>
               <button type='submit' class='btn btn-info btn-flat' name='invest'><i class='fa fa-save'>&nbsp;Update Investment</i></button>

              </div>
			  </div>
			  </form>
           			               </div>
           			               
           			               
           			               
           			               
           			   
           			   
           			   
           			   
           			   
           			   
           			   
           			   
           			   
           			   
           			   
           			   
           			   
           			   
           			   
           			   
           			   
           			   
           			   
           			   
           			   
           			   
           			   
           			   
           			   
           			   
           			               
           	           
    
				          
			  
			<?php
 $ordsql = "SELECT * from invest WHERE id = " . $id; 
$ordres = mysql_query($ordsql);
$ordrow = mysql_fetch_assoc($ordres);


echo "  <div class='tab-pane fade' id='tab_5'>
		
	 <form class='form-horizontal' method='post' enctype='multipart/form-data' action=''>
			<div class='box-body'>	
				
			
<div align='center'>
    <h4>CALCULATOR</h4></div>
				
			
			<div class='form-group'>
	
					 
	
                
			
			 <div class='form-group'>
                  <label for='' class='col-sm-2 control-label' style='color:#009900'>Investment Rate:</label>
                  <div class='col-sm-10'>
				   <input name='IR' type='text' value='" . $ordrow['IR'] . "' class='form-control'>%
                  </div>
                  </div>
				  
				  
				 
				  
				   <div class='form-group'>
                  <label for='' class='col-sm-2 control-label' style='color:#009900'>Period of Contract:</label>
                  <div class='col-sm-10'>
				  <select name='PL' class='col-sm-10'>
				  <option value='" . $ordrow['PL'] . "'>" . $ordrow['PL'] . "</option>
				 
				  <option value='30'>1 Months</option>
				  <option value='60'>2 Months</option>
				  <option value='90'>3 Months</option>
				   <option value='120'>4 Months</option>
				    <option value='150'>5 Months</option>
				  <option value='180'>6 Months</option>
				  <option value='210'>7 Months</option>
				  <option value='240'>8 Months</option>
				  <option value='270'>9 Months</option>
				  <option value='300'>10 Months</option>
				  <option value='330'>11 Months</option>
				  <option value='360'>12 Months</option>
				  </select>
                  </div>
                  </div>
				  
				  
				  
			
				  
				
				  
				 
				  
				 
				  
              </div>

			  </div>
			  
			  
			  <div align='right'>
              <div class='box-footer'>
               <button type='submit' class='btn btn-info btn-flat' name='action'><i class='fa fa-save'>&nbsp;Auto Calculator</i></button>

              </div>
			  </div>
			  </form> 
			  
			  
             
             
            </div>
           
           
           
           
           
            <!-- /.tab-content -->
          </div>
				 
					
					
				       			               
           			               
           			               
           			               

              
              
              
      
			  
             
             
            </div>
           
           
           
           
           
            <!-- /.tab-content -->
          </div>
				 
					
					
				
				
				</div>
				

              </div>
			 

	
</div>	
</div>
</div></div>	
</div>
</div></div>	
</div>
</div></div>	
</div>
</div></div>	
</div>
</div>	
</div>		</section>
        
        
        
        
        
        
        
        
        
        
                    </div><!-- /.post -->

                
                  </div>
                  <!-- /.tab-pane -->
                  
                  
                  
                  

                  <!-- /.tab-pane -->
                </div><!-- /.tab-content -->
              </div><!-- /.nav-tabs-custom -->
            </div><!-- /.col -->
          </div><!-- /.row -->

        </section><!-- /.content -->
      </div>
                </div>
               
            </div>"
            ;
       
            ?>
           
           <?php require ("footer.php")?>
           
           <script>
function myFunction() {
  window.print(); }
</script>