0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
USER
/
[
Home
]
File: employee_edit.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>| OFMSP</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"> <!-- .style2 {font-family: "Times New Roman", Times, serif} .style8 {font-family: Arial; font-size: 18; } --> </style> </head> <body> <p> <!--<div id="headerbg"> <div id="headerblank">--> <?php include("include/first_userheader.php"); include "../USER/employee_edit_ctrl.php";?> </div> </div> </p> <p> </p> <p> </p> <form action="employee_edit.php" method="post" enctype="multipart/form-data" name="form1" id="form1"> <table width="577" height="303" 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 $_GET['id'];?>" 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> <span class="valText"> <?php 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">Address</span></div></th> <th class="projectboldtxt" scope="row"><label> <textarea name="txEmpaddress" id="txEmpaddress" cols="30" rows="3"><?php if (isset($_POST['Update'])) { echo $editempAddress; } else { echo $address; }?> </textarea> </label> <label></label> </th> <th class="projectboldtxt" scope="row"><div align="left"> <span class="valText"> <?php if(isset($error['address_null'])) { echo $error['address_null']; } ?> </span></div></th> </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"><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="44" 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(@$editJD_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(@$editJD_mm==$i) { echo "selected='selected'"; } ?> ><?php echo $month[$i]; ?></option> <?php } ?> </select> <input name="txtJoinyy" type="text" class="moreproject" id="txtJoinyy" value="<?php if (isset($_POST['Update'])) { echo $editJD_yy; } else { echo $editJD_yy; } ?>" size="5" 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"> </th> <th height="44" class="projectboldtxt" scope="row"><label> <input type="submit" name="update" id="update" value="Update" /> </label></th> <th class="projectboldtxt" scope="row"> </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>