PK

ADDRLIN : /home/anibklip/pcfcindia.com/bkp2019/
FLL :
Current File : /home/anibklip/pcfcindia.com/bkp2019/confirmedinsert.php

<?php
	session_start();
	require_once 'common/common.php';
	require_once 'common/secure.php';
include("connexion.php");

$sql="SELECT count(id) FROM certificate";
$result=mysql_fetch_array(mysql_query($sql));
$count=$result[0];

include"head.php";
?>
<strong>DONE </strong>>> <strong>PRINT CERTIFICATE & INVOICE</strong>
<table align="center" width="100%" border="0" cellpadding="0" cellspacing="0">
<form action="forminsert.php" method="get">
<input type="hidden" name="clntid" value="<?php echo"$clntid";?>">
	     <tr><td align="center" colspan="4"><center><strong><h2>PEST CONTROL & FUMIGATION COMPANY</h2></strong>
		22,Waraich Market,Partap Bazar,Chheharta,Amritsar.(Pb.)<br>
                       Mobile:93162-37377,98155-02088</center></td></tr>
	<tr><td colspan="2">Invoice no.<?php echo"<strong>$count</strong>";?></td><td align="Center" colspan="2">Invoice Date : <?php echo"$issuedate";?></td></tr>
	<tr><td align="left" colspan="2">Certificate No.<?php echo"$certificateno";?></td><td colspan="2" align="center">Date of Issue : <?php echo"$issuedate";?></td></tr>
		<tr><td colspan="2" valign="top">Name of fumigant : <?php echo"$namefumigant";?></td><td>Date of fumigant : <?php echo"$datefumigantion";?></td></tr>
	<tr><td colspan="2" align="right">Amount :</td><td align="center" colspan="2">Rs. <?php echo"$amount";?>/-</td></tr>

	<tr><td colspan="2" align="right">Discount:<i>(<?php if($discount=='0'){echo"n/a";} else {echo "$discount %";} ?>)</i></td>
	<td colspan="2" align="center">
	<?php if($discount!='0'){
	$fdiscount=$amount*$discount/100;
	echo"Rs. $fdiscount /-";
	} 
	else {
	echo "n/a";
	}?></td></tr>
	
	<tr><td colspan="2" align="right">ServiceTax :<i>(<?php if($stax=='yes'){echo"$srtax %";} else {echo "n/a";}?>)</i></td><td colspan="2" align="center"> 
    <?php if($stax=='yes'){
	$fgrandtotal=$amount-$fdiscount;
	$staxnet=$fgrandtotal*$srtax/100;
	echo"Rs. $staxnet /-";
	} 
	else {
	$staxnet=0;
	echo "n/a";
	}?></td></tr>
	<?php
	$fgrandtotal=$amount-$fdiscount;
	$finalone=$fgrandtotal+$staxnet;
	 ?>
	<tr><td align="right" colspan="2"><strong>Grand Total :</strong></td><td colspan="2" align="center">Rs. <?php echo"<strong>$finalone</strong>";?>/-
	</td></tr>
	<tr><td colspan="4" height="50" valign="bottom">Siganture.............................</td></tr>
	<tr><td colspan="4" align="center"><br><center><input type="submit" class="amo-submit" value=" &raquo; Invoice Certificate &raquo;"></center></td></tr>
<input type="hidden" name="certificateno" value="<?php echo"$certificateno";?>">
<input type="hidden" name="finalone" value="<?php echo"$finalone";?>">
<input type="hidden" name="amount" value="<?php echo"$amount";?>">
<input type="hidden" name="discount" value="<?php echo"$discount";?>">
<?php if($stax=='yes'){
	$srtax="$srtax";
	} 
	else {
	$srtax=0;
	}?>
<input type="hidden" name="srtax" value="<?php echo"$srtax";?>">
	</form>
	</table>
<?php
include"foot.php";
?>


PK 99