0byt3m1n1
Path:
C:
/
Users
/
Administrator
/
Desktop
/
CWRDM Backup
/
cpms_new
/
[
Home
]
File: addemployee.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>Add Employee | online project finanacial management system</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:200px; height:373px; z-index:1; left: 65px; top: 101px; } .style12 {font-size: 14px} #apDiv2 { position:absolute; width:41px; height:23px; z-index:1; left: 754px; top: 246px; } #apDiv3 { position:absolute; width:109px; height:45px; z-index:1; left: 659px; top: 244px; } .style13 {color: #F7E7BD} .style8 { font-size: 16px } --> </style> </head> <body> <p> <?php include("include/header.php"); require_once "lib/db/connection.php"; require_once "lib/config.php"; ?><span class="msgText"><?php if (isset($message)) echo $message;?></span></p> <p> </p> <p> </p> <form action="addemployee_ctrl.php" method="post" enctype="multipart/form-data" name="form1" id="form1"> <p align="center"><span class="projectboldtxt style12">Employee Registration for ID Card</span></p> <table width="90%" height="312" border="1" align="center"> <tr> <td><table width="90%" height="363" align="center" bordercolor="#663300"> <tr> <th bordercolor="#CC3300" scope="row"><div align="left" class="projectboldtxt"> <p>Employee Name</p> </div></th> <td ><input type="text" name="txtename" placeholder="Your Full Name" id="txtename"value="<?php if ($empName!="") { echo $empName; } ?>" /></td> <td ><span class="valText"> <?php if(isset($error['name_null'])) { echo $error['name_null']; } if(isset($error['empname_exist'])) { echo $error['empname_exist']; } ?> </span></td> </tr> <tr> <th height="69" scope="row"><div align="left" class="projectboldtxt">Address</div></th> <td><label><textarea placeholder="Type your address in short" name="txtempaddress" id="txtempaddress" cols="22" rows="4"><?php if ($empAddress!="") { echo $empAddress; } ?></textarea> </label></td> <td><span class="valText"> <?php if(isset($error['address_null'])) { echo $error['address_null']; } ?> </span></td> </tr> <tr> <th bordercolor="#CC3300" scope="row"><div align="left" class="none"> <p class="projectboldtxt">Phone</p> </div></th> <td><label> <input type="text" name="txteph" placeholder="Landline number" id="txteph"value="<?php if ($empPhone!="") { echo $empPhone; } ?>" /> </label></td> <td><span class="valText"> <?php if(isset($error['Phone_null'])) { echo $error['Phone_null']; } else if(isset($error['phone_numeric'])) { echo $error['phone_numeric']; } ?> </span></td> </tr> <tr> <th bordercolor="#CC3300" scope="row"><div align="left" class="none"> <p class="projectboldtxt">Mobile</p> </div></th> <td><label> <input type="text" name="txtemobile" placeholder="Mobile Number" id="txtemobile"value="<?php if ($empMobile!="") { echo $empMobile; } ?>" /> <span class="valText"></label></td> <td><?php if(isset($error['Mobile_null'])) { echo $error['Mobile_null']; } else if(isset($error['mobile_numeric'])) { echo $error['mobile_numeric']; } ?></td> </tr> <tr> <th height="30" bordercolor="#CC3300" class="projectboldtxt" scope="row"><div align="left" class="none"> <p>E_mailId</p> </div></th> <td><label> <input type="text" name="txtmailid" placeholder="Your valid email" id="txtmailid"value="<?php if ($empEmail!="") { echo $empEmail; } ?>" /> </label></td> <td><span class="valText"> <?php if(isset($error['Email_null'])) { echo $error['Email_null']; } ?> </span></td> </tr> <tr> <th bordercolor="#CC3300" class="projectboldtxt" scope="row"><div align="left">Designation</div></th> <td><label> <input type="text" name="txtdesignation" placeholder="Designation in Short" id="txtdesignation" value="<?php if ($designation!="") { echo $designation; } ?>" /> </label></td> <td><span class="valText"> <?php if(isset($error['designation_null'])) { echo $error['designation_null']; } ?> </span></td> </tr> <tr> <th bordercolor="#CC3300" class="projectboldtxt" scope="row"><div align="left" class="none"> <p>Salary</p> </div></th> <td><label> <input type="text" name="txtsalary" placeholder="Your salary" id="txtsalary" value="<?php if ($empSalary!="") { echo $empSalary; } ?>"/> </label></td> <td><span class="valText"> <?php if(isset($error['Salary_null'])) { echo $error['Salary_null']; } else if(isset($error['salary_numeric'])) { echo $error['salary_numeric']; } ?> </span></td> </tr> <tr> <th bordercolor="#CC3300" class="projectboldtxt" scope="row"><div align="left" class="none"> <p>Project</p> </div></th> <td > <?php $sql="select * from addproject"; $sql=mysql_query($sql); //$result=mysql_fetch_array($sql); //echo '<pre/>'; //print_r($result);exit; ?> <select name="cmbproject" id="cmbproject"> <?php while($row=mysql_fetch_array($sql)) { ?> <option value="<?php echo $row['project_id']; ?>"<?php if(@$pjt_id==$row['project_id']) { echo "selected='selected'"; } ?> ><?php echo $row['project_code']; ?></option> <?php } ?> </select> </td> <td> (If your project is not listed, pls contact your division) </td> </tr> <tr> <th bordercolor="#CC3300" class="projectboldtxt" scope="row"><div align="left" class="none"> <p>Joining Date</p> </div></th> <td><label></label> <table width="130" border="0"> <tr> <td width="40"><select name="cmbjoindd" id="cmbjoindd"> <?php for ($i=1; $i<=31; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(@$JD_dd==$i) { echo "selected='selected'"; } ?> ><?php echo $i ?></option> <?php } ?> </select></td> <td width="40"><select name="cmbjoinmm" id="cmbjoinmm"> <?php for($i=1; $i<=12; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(@$JD_mm==$i) { echo "selected='selected'"; } ?> ><?php echo $month[$i]; ?></option> <?php } ?> </select></td> <td width="98"><input name="txtjoinyy" type="text" id="txtjoinyy" placeholder="YYYY" value="<?php if ($JD_yy!="") { echo $JD_yy; } ?>" size="5" /></td> </tr> </table></td> <td><span class="valText"> <?php if(isset($error['JD_null'])) { echo $error['JD_null']; } else if(isset($error['JD_numeric'])) { echo $error['JD_numeric']; } ?> </span></td> </tr> <tr> <th bordercolor="#CC3300" class="projectboldtxt" scope="row"><div align="left">Date valid up to</div></th> <td><table width="124" border="0"> <tr> <td width="40"><select name="cmbenddd" id="cmbenddd"> <?php for ($i=1; $i<=31; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(@$JD_dd==$i) { echo "selected='selected'"; } ?> ><?php echo $i ?></option> <?php } ?> </select></td> <td width="40"><select name="cmbendmm" id="cmbendmm"> <?php for($i=1; $i<=12; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(@$JD_mm==$i) { echo "selected='selected'"; } ?> ><?php echo $month[$i]; ?></option> <?php } ?> </select></td> <td width="106"><input name="cmbendyy" type="text" id="cmbendyy" placeholder="YYYY" value="<?php if ($JD_yy!="") { echo $JD_yy; } ?>" size="5" /></td> </tr> </table></td> <td><span class="valText"> <?php if(isset($error['Ed_null'])) { echo $error['Ed_null']; } else if(isset($error['Ed_numeric'])) { echo $error['Ed_numeric']; } ?> </span></td> </tr> <tr> <th bordercolor="#CC3300" class="projectboldtxt" scope="row"><div align="left">Photo</div></th> <td><label> <input type="file" name="ffphoto" id="ffphoto" /> </label></td> <td><span class="valText"> <?php if(isset($error['filename'])) { echo $error['filename']; } else if(isset($error['filename'])) { echo $error['filename']; } ?> </span></td> </tr> <tr> <th scope="row"> </th> <td></td> <td> </td> </tr> <tr> <th scope="row"> </th> <td><label><span class="projectboldtxt"> <input type="submit" name="cmdsavebutton" id="cmdsavebutton" value="SAVE"/> </td> <td> </td> </tr> <tr> <th scope="row"> </th> <td></td> <td> </td> </tr> <tr></tr> </table></td> </tr> </table> </form> <p> </p> <p> </p> <p> <?php include "include/footer.php"; ?> </p> </body> </html>