0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
USER
/
[
Home
]
File: edit_salary.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>edit salary|online project financial management system for CWRDM</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:64px; height:37px; z-index:1; left: 736px; top: 353px; } .style1 {color: #FF0000} --> </style> </head> <body> <p> <!--<div id="headerbg"> <div id="headerblank">--> <?php include("include/first_userheader.php"); require_once "edit_salary_ctrl.php"; ?> </div> </div></p> <p> </p> <p> </p> <p> </p> <p> </p> <p align="center" class="projectboldtxt"><strong>EDIT SALARY VOUCHER</strong></p> <form action="edit_salary.php" method="post" enctype="multipart/form-data" name="form1" id="form1"> <table width="374" align="center"> <tr> <th class="projectboldtxt" scope="row"><div align="left">Salary id</div></th> <td><label> <input type="text" name="txtsalaryid" id="txtsalaryid" value="<?php echo $salarydb_id; if (isset($_POST['Update'])) { echo $salary_id_restore; }?>" readonly="readonly"/> </label></td> </tr> <tr> <th width="177" class="projectboldtxt" scope="row"><div align="left">Salary voucher:</div></th> <td width="288"><label> <input type="text" name="txtsalaryvoucher" id="txtsalaryvoucher" value="<?php if (isset($_POST['Update'])) { echo $voucher_restore; } else { echo $voucher; } ?>" /> <?php if(isset($error['Voucher_number'])) { echo $error['Voucher_number']; } ?> </label></td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left">Employee name</div></th> <td><label> <input type="text" name="txtempname" id="txtempname" value="<?php if (isset($_POST['Update'])) { echo $empname_restore; } else { echo $emp_name; } ?>" /> <?php if(isset($error['emp_null'])) { echo $error['emp_null']; } ?></span> </label></td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left">Date</div></th> <td><label> <select name="cmbsalarydd" id="cmbsalarydd"> <?php for ($i=1; $i<=31; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(isset($_POST['Update'])) { if(@$rsalarydate_restore==$i) { echo "selected='selected'"; } } else { if(@$salary_dd==$i) { echo "selected='selected'"; } } ?> ><?php echo $i ?></option> <?php } ?> </select> </label> <label> <select name="cmbsalarymm" id="cmbsalarymm"> <?php for($i=1; $i<=12; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(isset($_POST['Update'])) { if(@$salary_mm_restore==$i) { echo "selected='selected'"; } } else { if(@$salary_mm==$i) { echo "selected='selected'"; } } ?> ><?php echo $month[$i]; ?></option> <?php } ?> </select> </label> <label> <input name="txtsalaryyy" type="text" id="txtsalaryyy" value= "<?php if (isset($_POST['Update'])) { echo $salary_yy_restore; } else { echo $salary_yy; } ?>" size="5" maxlength="4"/> <span class="valText"> <?php if(isset($error['salary_yy_null'])) { echo $error['salary_yy_null']; } else if(isset($error['salary_date'])) { echo $error['salary_date']; } ?></span> </label></td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left">Salary Paid</div></th> <td><label> <input type="text" name="txtsalarypaid" id="txtsalarypaid" value= "<?php if (isset($_POST['Update'])) { echo $salarypaid_restore; } else { echo $salarypaid; } ?>"/> <span class="valText"> <?php if(isset($error['amount_numeric'])) { echo $error['amount_numeric']; } ?> </span> </label></td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left">Description</div></th> <td><label> <textarea name="txtsalarydescription" id="txtsalarydescription" cols="25" rows="5"><?php if (isset($_POST['Update']))echo $description_restore;else echo $description;?></textarea> <span class="valText"> <?php if(isset($error['description_null'])) { echo $error['description_null']; } ?> </span> </label></td> </tr> <tr> <th scope="row"> </th> <td><label> <input type="submit" name="Update" id="Update" value="Update" /> </label> <label></label> <label><a href="search_salary.php" class="projectboldtxt style2">Back</a></label></td> </tr> </table> </form> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </div> <?php include "include/footer.php"; ?> </p> </body> </html>