0byt3m1n1
Path:
C:
/
Users
/
Administrator
/
Desktop
/
CWRDM Backup
/
cpms_new
/
USER
/
[
Home
]
File: edit_emp.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>Employee edit |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"> <!-- .style1 {color: #FF0000} .style2 {font-family: "Times New Roman", Times, serif} .style8 {font-family: Arial; font-size: 18; } --> </style> </head> <body> <p><?php include("include/first_userheader.php"); require_once "edit_emp_ctrl.php";//include "../USER/edit_emp_ctrl.php"; ?> <marquee> <span class="style1">Edit the Employee details</span> </marquee> </p> <form action="edit_emp.php" method="post" enctype="multipart/form-data" name="form1" id="form1"> <table width="577" height="317" align="center"> <tr> <th height="36" class="projectboldtxt" scope="row"><div align="left">Employee id</div></th> <th class="projectboldtxt" scope="row"><label></label> <div align="left"> <label> <input type="text" name="txtempid" id="txtempid" value="<?php echo $empdb_id; if (isset($_POST['Update'])) { echo $editempid; }?>" readonly="readonly"/> </label> </div></th> <th class="projectboldtxt" scope="row"><div align="left"></div></th> </tr> <tr> <th width="146" height="36" class="projectboldtxt" scope="row"><div align="left"><span class="style8">Employee Name</span></div></th> <th width="200" class="projectboldtxt" scope="row"><div align="left" class="style8"> <label></label> <input type="text" name="txtempname" id="txtempname"value="<?php if (isset($_POST['Update'])) { echo $editempName; } else { echo $empname; } ?>" /> </div></th> <th width="198" class="projectboldtxt" scope="row"><div align="left"><span class="valText"> <?php if(isset($error['name_null'])) { echo $error['name_null']; } if(isset($error['name'])) { echo $error['name']; } ?> </span></div></th> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left"><span class="style8">Address</span></div></th> <th class="projectboldtxt" scope="row"><label> <div align="left"> <textarea name="txEmpaddress" id="txEmpaddress" cols="30" rows="3"><?php if (isset($_POST['Update'])) { echo $editempAddress; } else { echo $address; }?> </textarea> </div> </label> <label></label> <th class="projectboldtxt" scope="row"><div align="left"> <span class="valText"> <?php if(isset($error['address_null'])) { echo $error['address_null']; } ?> </span></div></tr> <tr> <th class="projectboldtxt" scope="row"><div align="left"><span class="style8">Phone</span></div></th> <th class="projectboldtxt" scope="row"><div align="left" class="style8"> <input name="txtEmpphone" type="text" class="style8" id="txtEmpphone" value="<?php if (isset($_POST['Update'])) { echo $editempPhone; } else { echo $phone; } ?>"/> </div></th> <th class="projectboldtxt" scope="row"><div align="left"><span class="style8"> <span class="valText"> <?php if(isset($error['Phone_null'])) { echo $error['Phone_null']; } else if(isset($error['phone_numeric'])) { echo $error['phone_numeric']; } ?> </span></span></div></th> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left"><span class="style8">Mobile</span></div></th> <th class="projectboldtxt" scope="row"><div align="left" class="style8"> <input type="text" name="txtEmpmobile" id="txtEmpmobile" value="<?php if (isset($_POST['Update'])) { echo $editempMobile; } else { echo $mobile; } ?>" /> </div></th> <th class="projectboldtxt" scope="row"><div align="left"><span class="valText"> <?php if(isset($error['Mobile_null'])) { echo $error['Mobile_null']; } else if(isset($error['mobile_numeric'])) { echo $error['mobile_numeric']; } ?> </span></div></th> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left"><span class="style8">E_mailId</span></div></th> <th class="projectboldtxt" scope="row"><div align="left" class="style8"> <input type="text" name="txtEmpemail" id="txtEmpemail" value="<?php if (isset($_POST['Update'])) { echo $editempEmail; } else { echo $mailid; } ?>"/> </div></th> <th class="projectboldtxt" scope="row"><div align="left"><span class="valText"> <?php if(isset($error['Email_null'])) { echo $error['Email_null']; } ?> </span></div></th> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left">Designation</div></th> <th class="projectboldtxt" scope="row"><div align="left"> <input type="text" name="txtdesignation" id="txtdesignation" value="<?php if (isset($_POST['Update'])) { echo $editdesignation; } else { echo $designation; } ?>"/> </div> </label></th> <th class="projectboldtxt" scope="row"><div align="left"><span class="valText"> <?php if(isset($error['Email_null'])) { echo $error['Email_null']; } ?> </span></div></th> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left"><span class="style8">Salary</span></div></th> <th class="projectboldtxt" scope="row"><div align="left" class="style8"> <input type="text" name="txtEmpsalary" id="txtEmpsalary" value="<?php if (isset($_POST['Update'])) { echo $editempSalary; } else { echo $salary; } ?>"/> </div></th> <th class="projectboldtxt" scope="row"><div align="left"><span class="valText"> <?php if(isset($error['Salary_null'])) { echo $error['Salary_null']; } else if(isset($error['salary_numeric'])) { echo $error['salary_numeric']; }?> </span></div></th> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left"><span class="style8">Joining Date</span></div></th> <th height="29" class="projectboldtxt" scope="row"><div align="left" class="style8"> <select name="cmbJoindd" class="style8" id="cmbJoindd"> <?php for ($i=1; $i<=31; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(isset($_POST['Update'])) { if(@$editJD_dd_restore==$i) { echo "selected='selected'"; } } else { if(@$JD_dd==$i) { echo "selected='selected'"; } } ?> ><?php echo $i ?></option> <?php } ?> </select> <select name="cmbJoinmm" class="style8" id="cmbJoinmm"> <?php for($i=1; $i<=12; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(isset($_POST['Update'])) { if(@$editJD_mm==$i) { echo "selected='selected'"; } } else { if(@$JD_mm==$i) { echo "selected='selected'"; } } ?> ><?php echo $month[$i]; ?></option> <?php } ?> </select> <input name="txtJoinyy" type="text" id="txtJoinyy" value="<?php if (isset($_POST['Update'])) { echo $editJD_yy; } else { echo $JD_yy; } ?>" size="2" maxlength="4"/> </div></th> <th class="projectboldtxt" scope="row"><div align="left"><span class="valText"> <?php if(isset($error['JD_null'])) { echo $error['JD_null']; } else if(isset($error['JD_numeric'])) { echo $error['JD_numeric']; } ?> </span></div></th> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left"><span class="style8">Valid up to</span></div></th> <th height="29" class="projectboldtxt" scope="row"><div align="left"><span class="style8"> <select name="cmbenddd" class="style8" id="cmbenddd"> <?php for ($i=1; $i<=31; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(isset($_POST['Update'])) { if(@$editED_dd_restore==$i) { echo "selected='selected'"; } } else { if(@$ED_dd==$i) { echo "selected='selected'"; } } ?> ><?php echo $i ?></option> <?php } ?> </select> </span><span class="style8"> <select name="cmbendmm" class="style8" id="cmbendmm"> <?php for($i=1; $i<=12; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(isset($_POST['Update'])) { if(@$editED_mm==$i) { echo "selected='selected'"; } } else { if(@$ED_mm==$i) { echo "selected='selected'"; } } ?> ><?php echo $month[$i]; ?></option> <?php } ?> </select> </span><span class="style8"> <input name="txtendyy" type="text" id="txtendyy" value="<?php if (isset($_POST['Update'])) { echo $editED_yy_restore; } else { echo $ED_yy; } ?>" size="2" maxlength="4"/> </span></div></th> <th class="projectboldtxt" scope="row"><div align="left"><span class="valText"> <?php if(isset($error['ED_null'])) { echo $error['ED_null']; } else if(isset($error['JD_numeric'])) { echo $error['JD_numeric']; } ?> </span></div></th> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left">Photo</div></th> <th height="29" class="projectboldtxt" scope="row"><label> <input type="file" name="ffphoto" id="ffphoto" /> </label></th> <th class="projectboldtxt" scope="row"><span class="valText"> <?php if(isset($error['empfile'])) { echo $error['empfile']; } ?> </span></th> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left">Status</div></th> <th ><div align="left"> <select name="cmbstatus" id="cmbstatus"> <?php for($i=0; $i<=1; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(isset($_POST['Update'])) { if(@$status_restore==$i) { echo "selected='selected'"; } } else { if(@$status==$i) { echo "selected='selected'"; } } ?> ><?php echo $status_array[$i]; ?></option> <?php } ?> </select> </div></th> <th scope="row"> </th> </tr> <tr> <th height="45" scope="row"> </th> <th scope="row"><span class="style2"><div align="left"><input type="submit" name="Update" id="Update" value="Update" /> <a href="search_emp.php">Back</a></div> </span></th> <th scope="row"><div align="left"></div></th> </tr> </table> </form> <p> </p> <p> </p> <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>