0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
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"> <br/> <h4><b><?php $p_code=@$_SESSION['project_code_s'];echo "Details of project : $p_code"?> <b></h4> </div> <br/> <table class="table table-striped table-bordered"> <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">Actions</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> <td> <a class="btn btn-sm btn-info" href= "<?php echo "../Proposels/".$row['projectproposel'];?>" > <i class="fa fa-edit" title="Edit project details"></i> Edit </a> <a class="btn btn-sm btn-success" title="Download project proposel" > <i class="fa fa-download"></i> Download </a> </td> </tr> <?php }//32 ?> </table> <?php }//14 else {//14 ?><font color="#CC0000"><b><?php echo "No Details to display"; ?></b></font><?php }//14 }//10 }//7 ?>