0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
USER
/
[
Home
]
File: search_advance_settlement_ctrl.php
<?php require_once "../lib/config.php"; require_once BASE_DIR."/lib/db/connection.php"; $error_flag=0; $completeday= @$_POST['checkcompletedays']; if(isset($_POST['show'])) { if($completeday!=fullday) { $name= @$_POST['txtname']; $fromdate_dd= @$_POST['cmbfromdd']; $fromdate_mm=@$_POST['cmbfrommm']; $fromdate_yy=@$_POST['txtfromyy']; $from_date=$fromdate_yy."-".$fromdate_mm."-".$fromdate_dd; $todate_mm= @$_POST['cmbtomm']; $todate_dd=@$_POST['cmbtodd']; $todate_yy=@$_POST['txttoyy']; $to_date=$todate_yy."-".$todate_mm."-".$todate_dd; if (!is_numeric(@$_POST['txtfromyy'])) { $error['fdate_numeric']="Please enter valid year"; $error_flag=1; } if (!is_numeric(@$_POST['txttoyy'])) { $error['todate_numeric']="Please enter valid year"; $error_flag=1; } if ($fromdate_yy="") { $error['fdate_yy']="Please enter year"; $error_flag=1; } if ($todate_yy="") { $error['todate_yy']="Please enter year"; $error_flag=1; } } if($error_flag==1) { $url=$server_ip."/USER/search_advancetakenentry.php"; echo "<script>window.location='$url'</script>"; exit(); } } class search_advanceSettelmententry { //50 public function printadvanceSettelmententrysheader($from_date,$to_date) { ?> <div align="center"><b><font color="#660000">Advance Taken Entry </font><?php echo"From:$from_date"?> <?php echo "To:$to_date";?></b></div> <table width="555" height="83" border="1" align="center" bordercolor="#CC0000"> <tr bgcolor="#853008"> <th width="17" height="42"><font color="#F7E7BD">S no</font></th> <th width="60"><p><font color="#F7E7BD">Voucher No:</font></p> </th> <th width="41"><font color="#F7E7BD">From entry</font></th> <th width="39"><font color="#F7E7BD">Type of item</font></th> <th width="53"><font color="#F7E7BD">Vender name</font></th> <th width="49"><font color="#F7E7BD">Invoice</font></th> <th width="54"><font color="#F7E7BD">Invoice Date</font></th> <th width="50"><font color="#F7E7BD">Bill amount</font></th> <th width="81"><font color="#F7E7BD">Descreption</font></th> <th width="19"><font color="#F7E7BD">Edit</font></th> <th width="22"><font color="#F7E7BD">Delete</font></th> </tr> <?php } public function printsearch_advanceSettelmentDetails($sql2) {//53 $sql=mysql_query($sql2); if(mysql_affected_rows()>0) {//57 ?> <tr><?php $i=0;$debit=0;$credit=0; while($row=mysql_fetch_array($sql)) {//75 ?> <th ><?php @$_SESSION['sl_no']=@$_SESSION['sl_no']+1; echo @$_SESSION['sl_no']; ?></th> <th><?php echo $row['voucher_no']; ?></th> <th><?php echo $row['advance_taken_entry_no'];; ?></th> <th><?php echo $row['type_of_item']; ?></th> <th><?php echo $row['vender_name']; ?></th> <th><?php echo $row['invoice_no']; ?></th> <th><?php echo $row['invoice_date']; ?></th> <th><?php echo $row['bill_amount']; ?></th> <th><?php echo $row['description']; ?></th> <th><a href="../USER/edit_advance_settlement_entry.php?id=<?php echo $row['settelment_id']; ?>&name=<?php echo $row['project_code'];?>"><img src="../images/edit.png" alt="edit" width="25" height="25" /></a></th> <th><a href="../USER/delete_advance_settlement_entry.php?id=<?php echo $row['settelment_id']; ?>&name=<?php echo $row['project_code'];?>"><img src="../images/delete.jpg" alt="Delete" width="25" height="25" /></a></th> <!-- <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 }//75 ?> </table> <?php }//57 else {//57 ?><font color="#CC0000"><b><?php echo "No Details to display"; ?></b></font><?php }//57 }//53 }//50 ?>