Your IP : 216.73.216.40


Current Path : /var/www/html/mmishra/indem/phq-bak/
Upload File :
Current File : /var/www/html/mmishra/indem/phq-bak/training.php

<?php
include_once("header.php");
include_once("title.php");
?>
<span style="color:green;font-weight:bolder;background-color:khaki;padding:5px">Training Details</span>
<table id='khaki_box' width='100%'><tr><td>
<?php
if (isset($_GET['code'])){
  $code = $_GET['code'];
  $rs = mysql_query("select * from training where code='$code'", $link);
  if ($rs){
    $o = mysql_fetch_object($rs);
    $id = $o->id;
    $code = $o->code;
    $title = $o->title;
    $date_from = $o->date_from;
    $date_to = $o->date_to;
    if ($date_to == '0000-00-00'){
      $schedule = $date_from;
    }else{
      $schedule = $date_from . " to " . $date_to;
    }
    $resource_person = $o->resource_person;
    $content = $o->content;
    $participants = $o->participants;
    $date_expiry = $o->date_expiry;
    echo "<b>$title</b><div align='right'>Date expiry: $date_expiry</div>";
    echo "<table width='100%'>";
    echo "<tr><td><b>Schedule:</b></td><td>$schedule</td></tr>";
    echo "<tr><td><b>Resource Person:</b></td><td>$resource_person</td></tr>";
    echo "<tr><td><b>Content:</b></td><td>$content</td></tr>";
    echo "<tr><td><b>Participants:</b></td><td>$participants</td></tr>";
    echo "</table>";
  }
}
?>
</td></tr></table>
<?php
include_once("footer.php");
?>