0byt3m1n1
Path:
C:
/
GEOMATICS 23-01-2021
/
LAN
/
CPMS code
/
CPMS
/
USER
/
[
Home
]
File: projectdetail_ctrl.php
<?php require_once "../lib/config.php"; require_once BASE_DIR."/lib/db/connection.php"; class Projectreport { //7 public function printprojectDetails($sql) {//10 $sql=mysql_query($sql); if(mysql_affected_rows()>0) {//14 ?> <div align="center"><b><?php $p_code=@$_SESSION['project_code_s'];echo "Details of project:$p_code"?></div> <table width="1384" height="81" border="1" align="center" bordercolor="#CC0000"> <tr> <th width="96">Project code</th> <th width="116">Project title</th> <th width="188">Principle Investigator</th> <th width="125">Investigators</th> <th width="129">Fund Agency</th> <th width="65">Duration</th> <th width="113">Date of start</th> <th width="178">Abstract</th> <th width="170">Objective</th> <th width="140">Download project proposel</th> </tr> <tr><?php $i=0; while($row=mysql_fetch_array($sql)) {//32 ?> <th height="50"><?php echo $row['project_code'];; ?></th> <th><?php echo $row['project_title']; ?></th> <th><?php $pinvestigator=$row['principle_investigator']; $sql_pi="select name from pi where pi_id='$pinvestigator'"; $sql_pi=mysql_query($sql_pi); while($row_pi=mysql_fetch_array($sql_pi)) { $pinvestigator=$row_pi['name']; } echo $pinvestigator; ?></th> <th><?php echo $row['investigators']; ?></th> <th><?php echo $row['fundagency']; ?></th> <th><?php echo $row['duration']; ?></th> <th><?php echo $row['startdate']; ?></th> <th><?php echo $row['abstract']; ?></th> <th><?php echo $row['objective']; ?></th> <th><a href= "<?php echo "../Proposels/".$row['projectproposel'];?>" target="_blank"><img src="../images/white_download.png" alt="download" width="44" height="44" /></a></th> </tr> <?php }//32 ?> </table> <?php }//14 else {//14 ?><font color="#CC0000"><b><?php echo "No Details to display"; ?></b></font><?php }//14 }//10 }//7 ?>