0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
ADMIN
/
[
Home
]
File: employee_ctrl.php
<?php require_once "../lib/config.php"; require_once BASE_DIR."/lib/db/connection.php"; @$_SESSION['sl_no'] = 0; ?> <style type="text/css"> <!-- .style1 {color: #FF0000} .style2 {font-weight: bold} .style3 { font-size: 16px; font-weight: bold; } --> </style> <div align="center"><span class="style3">CWRDM Calicut</span><br /> <strong>Project Staff/Apprentice Details ( <?php $status =$_POST['radio']; if ($status == "rbstatusall") { echo "All List"; $sql="select * from employe order by emp_name"; } if ($status == "rbstatusactive") { echo "Active"; $sql="select * from employe where status = 1 order by emp_name"; } if ($status == "rbstatusinactive") { echo "Old staff"; $sql="select * from employe where status = 0 order by emp_name"; } ?>)</strong><?php //echo $sql_budget; ledgerreport::printledgerDetails($sql); class ledgerreport { //7 public function printledgerDetails($sql1) {//10 $sql=mysql_query($sql1); if(mysql_affected_rows()>0) {//14 //echo "By Account:$byaccount"; ?> <table width="1222" height="76" border="1" align="center" id="ledgertable"> <tr> <th width="28" height="42"> S No </th> <th width="114">Name</th> <th width="71">Division</th> <th width="52">Project Code</th> <th width="157">Address</th> <th width="90">Phone</th> <th width="81">Mobile</th> <th width="112">Designation</th> <th width="87">Joining Date</th> <th width="87">Project End Date</th> <th width="87">Mail ID</th> <th width="87">Salary(Basic Pay Only)</th> <th width="87">Photo</th> </tr> <tr><?php $i=0;$credit=0; while($row=mysql_fetch_array($sql)) {//32 ?> <td><div align="center"> <?php @$_SESSION['sl_no']=@$_SESSION['sl_no']+1; echo @$_SESSION['sl_no']; ?> </div></td> <td><div align="center"> <?php echo $row['emp_name']; ?> </div></td> <td><div align="center"> <?php $division=$row['user_id']; $sql_user = "select user_name from user where user_id='$division'"; $sql_user=mysql_query($sql_user); while($row_user=mysql_fetch_array($sql_user)) { $u_name_var=$row_user['user_name']; } $u_name_var=strtoupper($u_name_var); echo $u_name_var; ?> </div></td> <td><div align="center"> <?php $project_id=$row['project_id']; $sql_user = "select project_code from addproject where project_id='$project_id'"; $sql_user=mysql_query($sql_user); while($row_user=mysql_fetch_array($sql_user)) { echo $row_user['project_code']; } ?> </div></td> <td><div align="center"> <?php echo $row['address']; ?> </div></td> <td><div align="center"> <?php echo $row['phone']; ?> </div></td> <td><div align="center"> <?php echo $row['mobile']; ?> </div></td> <td><div align="center"> <?php echo $row['designation']; ?> </div></td> <td><div align="center"> <?php echo $row['join_date']; ?> </div></td> <td><div align="center"> <?php echo $row['validupto_date']; ?> </div></td> <td><div align="center"> <?php echo $row['mail_id']; ?> </div></td> <td><div align="center"> <?php echo $row['salary']; ?> </div></td> <td><div align="center"> <img src="../Proposels/<?php echo $row['photo'];?>"alt="" name="imgProfile<?php echo $row['photo'];?>" width="60" height="63" id="imgProfile<?php echo $row['photo'];?>"/> </div></td> <!-- <th><a href="../USER/edit_payment.php?id=</?php echo $row['payment_id']; ?>"><img src="../images/edit.png" alt="edit" width="25" height="25" /></a></th> <th> <a href="../USER/delete_payment.php?id=</?php echo $row['payment_id']; ?>"><img src="../images/delete.jpg" alt="Delete" width="25" height="25" /></a></th>--> </tr> <?php }//32 } //14 ?> </table> <blockquote> <p> </p> <p><a href="#" class="projectboldtxt style2" onclick="window.print()">Print</a> <a href="reports.php">Back</a></p> </blockquote> <?php }//10 } //7 ?>