0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
USER
/
[
Home
]
File: search_project_ctrl.php
<?php require_once "../lib/config.php"; //require_once BASE_DIR."/lib/db/DBconnection.php"; require_once BASE_DIR."/lib/db/connection.php"; class ProjectSearch { //7 public function printProjectDetails($sql1,$fund_array) {//10 $sql=mysql_query($sql1); if(mysql_affected_rows()>0) {//14 ?> <div align="center"><b><font color="#853008">Project Details</font></b> </div> <table width="1179" height="83" border="1" align="center" bordercolor="#CC0000"> <tr bgcolor="#853008"> <th width="24" bgcolor="#853008"><font color="#F4E7BD"> S No </font></th> <th width="56"><font color="#F4E7BD">Project code</font></th> <th width="55"><font color="#F4E7BD"> Project Title</font></th> <th width="103"><font color="#F4E7BD">Princilple Investigator</font></th> <th width="97"><font color="#F4E7BD">Investigators</font></th> <th width="84"><font color="#F4E7BD">FundAgency</font></th> <th width="64"><font color="#F4E7BD">FundType</font></th> <th width="64"><font color="#F4E7BD">Duration</font></th> <th width="64"><font color="#F4E7BD">Project Outlay</font></th> <th width="62"><font color="#F4E7BD">Date of Start</font></th> <th width="76"><font color="#F4E7BD">Date of Completion</font></th> <th width="86"><font color="#F4E7BD">Abstract</font></th> <th width="88"><font color="#F4E7BD">Objective</font></th> <th width="66"><font color="#F4E7BD">Download</font></th> <th width="38"><font color="#F4E7BD"> Edit </font></th> <th width="52"><font color="#F4E7BD">Delete</font></th> </tr> <tr><?php while($row=mysql_fetch_array($sql)) {//32 ?> <th height="52"><?php @$_SESSION['sl_no']=@$_SESSION['sl_no']+1; echo @$_SESSION['sl_no']; ?></th> <th><?php echo $row['project_code']; ?></a></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 $fund_type=$row['fundtype']; echo $fund_array[$fund_type]; ?></th> <th><?php echo $row['duration']; ?></th> <th><?php echo $row['project_outlay']; ?></th> <th><?php echo $row['startdate']; ?></th> <th><?php echo $row['end_date']; ?></th> <th><?php echo $row['abstract']; ?></th> <th><?php echo $row['objective']; ?></th> <th><a href= "<?php echo "../Proposels/".$row['projectproposel'];?>" ><img src="../images/white_download.png" alt="download" width="44" height="44" /></a></th> <th><a href="../USER/Edit_project.php?id=<?php echo $row['project_id']; ?>&name=<?php echo $row['project_code'];?>"><img src="../images/edit.png" alt="edit" width="25" height="25" /></a></th> <th><a href="../USER/project_delete.php?id=<?php echo $row['project_id']; ?>&name=<?php echo $row['project_code'];?>"><img src="../images/delete.jpg" alt="Delete" width="25" height="25" /></a></th> </tr> <?php }//32 ?> </table> <p> <?php }//14 else {//14 ?> <font color="#CC0000"><b> <?php echo "No Project to display"; ?> </b></font> <?php }//14 }//10 }//7 ?> </p>