
PK 
<?php
session_start();
require_once 'common/common.php';
require_once 'common/secure.php';
include("connexion.php");
include "head.php";
$branch_get=$_SESSION['city'];
/*if($_GET['action']=='reason')
{
$sql_edit="SELECT * FROM invoices WHERE branch='$branch_get' AND invid='".$_GET['invid']."'";
$result_edit=mysql_query($sql_edit) or die('error in fetch');
$row_edit=mysql_fetch_array($result_edit);
}
elseif($_GET['action']=='canceled')
{*/
$sql_edit="SELECT * FROM invoices WHERE branch='$branch_get' AND invid='".$_GET['id']."'";
$result_edit=mysql_query($sql_edit) or die('error in fetch');
$row_edit=mysql_fetch_array($result_edit);
$sql_cert="SELECT * FROM certificate WHERE certificateno='".$row_edit['certid']."'";
$result_cert=mysql_query($sql_cert);
$row_result=mysql_fetch_array($result_cert);
//}
?>
</table>
<br><br>
<table width="550px" border="1px" align="center">
<tr>
<th colspan="2">
Reason of cancelled
</th>
</tr>
<tr>
<td colspan="2"><strong>Payment Invoice No. :</strong><strong ><?php echo $inv_no=$row_edit['invid']; ?></strong></td>
</tr>
<tr>
<td><strong>Client Id:</strong><?php echo $cert_no=$row_edit['clnid']; ?></td>
<td><strong>Certificate No:</strong><?php echo $cert_no=$row_edit['certid']; ?></td>
</tr>
<tr>
<td><strong>Amount</strong></td>
<td><?php echo $amt=$row_edit['grandtotal']; ?></td>
</tr>
<tr>
<td colspan="2">
<strong><br/>
Status: <span style='color: #F83A3A;'>Cancelled</span>
<?php
/*if($row_edit['invstatus']=='pending')
{
$status=ucfirst($row_edit['invstatus']);
echo "<span style='color: #F83A3A;'>".$status."</span>";
}
else
{
$status=ucfirst($row_edit['invstatus']);
echo "<span style='color: #009600;'>".$status."</span>";
}*/
?><br/> </strong>
</td>
</tr>
<tr>
<td valign="top"><strong>Reason</strong></td>
<td>
<?php
echo $ddd=$row_result["cancel_reason"];
?>
</td>
</tr>
<tr>
<td colspan="3" align="center">
<center><input type="button" value="Back" onClick="history.go(-1);"></center>
</td>
</tr>
</table>
<?php
include "foot.php";
?>


PK 99