0byt3m1n1
Path:
C:
/
GEOMATICS 23-01-2021
/
LAN
/
CPMS
/
USER
/
[
Home
]
File: search_div_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"; if(isset($_POST['search'])) { $Projectcode=@$_POST['txtproject_code']; //$u_name=@$_SESSION['username']; $p_id=@$_SESSION['project_id']; $u_id=@$_SESSION['user_id']; $sql1="select * from addproject where user_id='$u_id' and project_code LIKE '%$Projectcode%' ORDER BY end_date DESC"; ProjectSearch::printProjectDetails($sql1,$fund_array); } class ProjectSearch { //7 public function printProjectDetails($sql1,$fund_array) {//10 $sql=mysql_query($sql1); if(mysql_affected_rows()>0) {//14 ?> <div align="center"> <p><b><font color="#853008" size="5">Project Details of <?php $u_name=@$_SESSION['username']; $u_name_var=strtoupper($u_name);echo $u_name_var; ?></font></b></p> </div> <table width="1575" height="83" border="1" align="center" bordercolor="#CC0000"> <tr bgcolor="#853008"> <th width="35"><font color="#F4E7BD"> S No </font></th> <th width="61"><font color="#F4E7BD">Project code</font></th> <th width="232"><font color="#F4E7BD"> Project Title</font></th> <th width="110"><font color="#F4E7BD">Princilple Investigator</font></th> <th width="110"><font color="#F4E7BD">Investigators</font></th> <th width="98"><font color="#F4E7BD">FundAgency</font></th> <th width="65"><font color="#F4E7BD">Fund Type</font></th> <th width="59"><font color="#F4E7BD">Project outlay</font></th> <th width="59"><font color="#F4E7BD">Duration</font></th> <th width="78"><font color="#F4E7BD">Start date</font></th> <th width="76"><font color="#F4E7BD">End date</font></th> <th width="226"><font color="#F4E7BD">Abstract</font></th> <th width="220"><font color="#F4E7BD">Objective</font></th> <th width="58"><font color="#F4E7BD">Project Proposel</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['project_outlay']; ?></th> <th><?php echo $row['duration']; ?></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'];?>" target="_blank"><img src="../images/white_download.png" alt="download" width="44" height="44" /></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> <p><a href="#" class="projectboldtxt style2" onclick="window.print()">Print</a> <a href="search_div_project.php">Back</a></p>