| Current Path : /var/www/html/mmishra/iws8/html/indem/phq-bak/ |
| Current File : /var/www/html/mmishra/iws8/html/indem/phq-bak/search_result.php |
<?php
$arr = mysql_fetch_array($rs);
if ($pno == '') $pno = $arr['pno'];
$num_fields = mysql_num_fields($rs);
?>
<table width='100%'>
<tr><th>Personal Information</th></tr>
<tr valign='top'><td>
<?php
$rs = mysql_query("select * from t_recruitment where pno='$pno'", $link);
$arr = mysql_fetch_array($rs);
$num_fields = mysql_num_fields($rs);
echo "<table width='100%'>";
for ($y = 0; $y < $num_fields; $y++){
echo "<tr>";
$fld = mysql_field_name($rs, $y);
$lb = mysql_query("select * from labels where query='yes' and attribute='$fld'", $link);
if (mysql_num_rows($lb)){
$q = mysql_fetch_object($lb);
$lang = $q->language;
echo "<td width='30%'><b><span id='$lang'>" . $q->label . "</span><b></td>";
echo "<td width='70%'><span id='$lang'>" . $arr[$y] . "</span></td>";
}else{
//echo "<td width='30%'><b>" . ucwords(strtr($fld, "_", " ")) . "</b></td>";
//echo "<td width='70%'>" . $arr[$y] . "</td>";
}
echo "</tr>";
}
?>
</table></td></tr>
<tr><th>Other Information</th></tr>
<tr valign='top'><td align='center'><img src='photographs/<?=$pno?>.jpg' width='90' height='100'><br>|
<a href='search.php?url=posting&pno=$pno'>Posting</a> |
<a href='search.php?url=transfer&pno=$pno'>Transfer</a> |
<a href='search.php?url=promotion&pno=$pno'>Promotion</a> |
<a href='search.php?url=training&pno=$pno'>Training</a> |
<a href='search.php?url=leave&pno=$pno'>Leave</a> |
<a href='search.php?url=medal&pno=$pno'>Medal</a> |
<a href='search.php?url=sport&pno=$pno'>Sports</a> |
</td></tr></table>