phprunner custom page view




<?php
ini_set("display_errors","0");

set_magic_quotes_runtime(0);

header("Expires: Thu, 01 Jan 1970 00:00:01 GMT");
header("Pragma: no-cache");
header("Cache-Control: no-cache");



include("include/dbcommon.php");
if(!@$_SESSION["UserID"])
{
        header("Location: login.php");
        return;
}
?>


<?php
   $idb = $_REQUEST['idb'];
 
 
   $sql = "SELECT * FROM badge WHERE idb='".$idb."'";


$results = CustomQuery($sql);
$data = db_fetch_array($results);
$Status = $data['Status'];
$Idb = $data['Idb'];
$Payment = $data['Payment'];
$Amount = $data['Amount'];
$DocNumber = $data['DocNumber'];
$Name = $data['Person Name'];
$Prof = $data['Profession'];
   $Comp = $data['Comp name'];
$Issue = $data['Issuing Date'];
$Exp = $data['ExpDate'];
$Photo = $data['Photo'];
$PhotoCam = $data['PhotoCam'];

//$newViews =  $data['views']+1;
// CustomQuery("update url_redirects set views = ".$newViews." where short='".$short."'");

// echo file_get_contents($url);
 // CustomQuery("update url_redirects set views = ".$newViews." where short='".$short."'");



  ///  if(!empty($data)) {
  //    header("Location: ".$data['url']."");
  //  } else {
 //    $html = "Error: cannot find short URL";
  //  }
 
?>
<style type="text/css">
<!--
.style1 {color: #999999}
.style2 {color: #FF0000}
.style3 {color: #666666; }
.style5 {color: #FF0000; font-weight: bold; }
.style9 {
font-size: x-large;
color: #000099;
font-style: italic;
}
-->
</style>


<div align="center"><br>
  <table width="827" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <th width="284" scope="col"><div align="left"><span class="style5">Sharjah Cooperative Society</span> </div></th>
    <th width="444" rowspan="5" scope="col">&nbsp;</th>
    <th width="108" rowspan="5" scope="col"><img src="images/logo.png" /></th>
  </tr>
  <tr>
    <th scope="col"><div align="left"><span class="style3">Ministry Approval No  </span></div></th>
    </tr>
  <tr>
    <th scope="col"><div align="left"><span class="style3">Tel : +971</span></div></th>
    </tr>
  <tr>
    <th scope="col"><div align="left"><span class="style3">Fax : +971 </span></div></th>
    </tr>
  <tr>
    <th scope="col"><div align="left"><span class="style3">P.O.Box :  </span></div></th>
    </tr>
</table>

  <br>
</div>
<h1 align="center" class="style3">Receiving Form</h1>
<center><svg height="10" width="830">
  <line x1="0" y1="0" x2="1000" y2="000" style="stroke:rgb(164, 155, 155);stroke-width:5" />
  Sorry, your browser does not support inline SVG.
</svg></center>
<table width="830" border="0" align="center" cellspacing="0">
  <tr>
    <th width="21%" height="85" scope="col"><div align="left">
      <h3 class="style1 style2">COMPANY NAME: </h3>
    </div></th>
    <th width="38%" scope="col"><h3><div align="left"><?php echo $Comp;?>
      </h3>    </th>
    <th width="41%" scope="col">&nbsp;</th>
  </tr>
</table>

<table width="830" border="1" align="center" cellpadding="5" cellspacing="2" bordercolor="#CCCCCC">
  <tr>
    <th width="12%" bgcolor="#CCCCCC" scope="col">IdRefNo</th>
    <th width="18%" bgcolor="#CCCCCC" scope="col">Type Of Badge</th>
    <th width="27%" bgcolor="#CCCCCC" scope="col">Name</th>
    <th width="13%" bgcolor="#CCCCCC" scope="col">Issuing Date </th>
    <th width="12%" bgcolor="#CCCCCC" scope="col">Expiry Date </th>
    <th width="18%" bgcolor="#CCCCCC" scope="col">Photo</th>
  </tr>
  <tr>
    <td><div align="center"><?php echo $Idb;?></div></td>
    <td><div align="center"><?php echo $Prof;?></div></td>
    <td><div align="center"><?php echo $Name;?></div></td>
    <td><div align="center"><?php echo $Issue = date("d-m-Y", strtotime($Issue));?></div></td>
    <td><div align="center"><?php echo $Issue = date("d-m-Y", strtotime($Exp));?></div></td>
    <td> 
  <div align="center">
    <?php if($data['Photo'] != ""): ?>
    <img src="https://example.com/<?php $test = json_decode($Photo, true);  echo $test[0]["name"]; ?>" width="80" height="93" style="left:0px;margin-left: -0px;margin-top: 0px;border: 1px solid transparent;padding: 0px;border-color: black;border-radius: 1px;">
    <?php endif; ?>
      </div></td>
  </tr>
</table>

<table width="830" border="1" align="center" cellpadding="5" cellspacing="2">
  <tr>
    <th height="93" scope="col"><div align="left"><span class="style5"><strong>Type Of Payment</strong></span><strong> : <?php echo $Payment;?></strong> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="style5">Amount:</span>&nbsp; AED <?php echo $Amount;?></div></th>
  </tr>
  <tr>
    <th height="93" scope="col"><div align="left"><span class="style5">Document Number :</span> <?php echo $DocNumber;?> </strong> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="style5">Status:</span>&nbsp;<?php echo $Status;?> </div></th>
  </tr>
</table>

<table width="830" height="229" align="center" cellpadding="5" cellspacing="2">
  <tr>
    <th height="223" scope="col"><div align="left"><span class="style9">The Undersigned hereby acknowledges:
     
    The Receipt of the Merchandiser & Sales Badges listed above</span></div></th>
  </tr>
</table>

<table width="830" border="1" align="center" cellpadding="5" cellspacing="2" bordercolor="#999999">
  <tr>
    <th width="90" scope="col"><div align="left">Name:</div></th>
    <th width="744" scope="col">&nbsp;</th>
  </tr>
  <tr>
    <td><strong>Mobile No: </strong></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td height="63"><strong>Signature:</strong></td>
    <td>&nbsp;</td>
  </tr>
</table>

Comments