0byt3m1n1
Path:
C:
/
GEOMATICS 23-01-2021
/
LAN
/
CPMS code
/
CPMS
/
ADMIN
/
[
Home
]
File: project_report.php
<?php require_once "../lib/config.php"; require_once BASE_DIR."/lib/db/connection.php"; ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Projectwise reports in admin</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link href="../style.css" rel="stylesheet" type="text/css" /> <link rel="icon" href="../images/icon.ico" /> <style type="text/css"> <!-- #apDiv1 { position:absolute; width:284px; height:199px; z-index:1; left: 258px; top: 106px; } #apDiv2 { position:absolute; width:390px; height:188px; z-index:1; left: 312px; top: 255px; } .style3 { color: #990000; font-weight: bold; } .style4 { color: #110000; font-weight: bold; } .style8 {color: #660000} .style9 {font-size: 14px} --> </style> </head> <body> <p> <?php include("include/adminheader.php"); include("project_report_ctrl.php"); @session_start(); ?> </p> <p> </p> <p> </p> <p align="center" class="projectboldtxt style9">Projectwise Report</p> <form action="project_report.php" method="post" enctype="multipart/form-data" name="form1" id="form1"> <p> </p> <table width="286" height="30" align="center"> <tr> <th width="110" height="24" class="projectboldtxt" scope="row">Project Code</th> <td width="182"><label> <select name="cmbprojectcode" id="cmbprojectcode" onchange=""> <?php for($j=1;$j<=$i;$j++) {?> <option value="<?php echo $j; ?>"><?php echo $p_code_array[$j]; ?></option> <?php } ?> </select> <a href="adminhome.PHP" class="projectboldtxt style9">Back</a></label></td> </tr> </table> <table width="269" height="69" align="center"> <tr> <th width="78" height="63" scope="row"><a href="daybook.php" class="style8"> <label></label> <input name="daybookbtn" type="submit" class="projectboldtxt" id="daybookbtn" value="Daybook" /> <label></label> </a></th> <td width="92"><div align="center" class="style3"> <label> <div align="center"> <input name="ledgerbtn" type="submit" class="projectboldtxt" id="ledgerbtn" value="Ledger" /> </div> </label> </div></td> <td width="83"><div align="center" class="style4"> <label> <input name="summarybtn" type="submit" class="projectboldtxt" id="summarybtn" value="Summary" /> </label> </div></td> </tr> </table> <p> </p> <p> </p> <p> </p> </form> <p> <?php include "include/footer.php"; ?> </p> </body> </html> <?php $p_code_index= $_POST['cmbprojectcode']; $p_code_value= $p_code_array[$p_code_index]; $sql1="select * from addproject where project_code='$p_code_value'"; $sql=mysql_query($sql1); while($row=mysql_fetch_array($sql)) { $p_id_db=$row['project_id']; } @$_SESSION['project_id_a']=$p_id_db; if (isset($_POST['daybookbtn'])) { $url=$server_ip."/ADMIN/daybook.php?pcode=".$p_code_value; echo "<script>window.location='$url'</script>"; } if (isset($_POST['ledgerbtn'])) { $url=$server_ip."/ADMIN/ledger.php?pcode=".$p_code_value; echo "<script>window.location='$url'</script>"; } if (isset($_POST['summarybtn'])) { $url=$server_ip."/ADMIN/summary.php?pcode=".$p_code_value; echo "<script>window.location='$url'</script>"; } ?>