<?php   session_start();

if ( $_SESSION[ invcox ] == "" ) { header( "location:login.php?action=need" );} else { include( "config.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>
      <meta http-equiv="Content-Type" content="text/html;
 charset=iso-8859-1"/>
      <title>Room Entry</title>
      <link href="style.css" rel="stylesheet" type="text/css"/>
      <?php include("calendar.php");
?>   
   </head>
   <body>
      <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="box-wrap">
         <tr>
            <td>   <?php include("top.php");
?></td>
         </tr>
         <tr>
            <td>
               <table width="100%" border="0" cellspacing="1" cellpadding="0">
                  <tr>
                     <td align="left" class="link2">&nbsp;
</td>
                  </tr>
            
                  <tr>
                     <td align="center">&nbsp;
</td>
                  </tr>
                  <tr>
                     <td>
                        <form action="update_emp.php" method="post" enctype="multipart/form-data" name="form1" class="round_box" id="form1">
                           <table width="100%" border="0" align="center" cellpadding="2" cellspacing="1">
                              <tr>
                                 <td height="40" colspan="2" align="center" bgcolor="#466c74">Edit Employee Entry</td>
                              </tr>
                              <?php if($_GET[info]!=""){?>
                              <tr>
                                 <td height="40" colspan="2" align="center" bgcolor="#80E8F4"><?php echo $_GET[info];
 ?>   </td>
                              </tr>
                              <?php }
							   

$result=mysql_query("select * from hr_employee  where id='$_GET[id]' limit 1");
$row=mysql_fetch_array($result);
																					  
																					  
							   ?>
                              <tr>
                                <td height="30" >Joining Date</td>
                                <td height="30"  class="input200"><table width="180" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                      <td width="70%"><input name="date1" type="text" id="date1" size="15"  value="<?php echo dtformat($row[date1]);?>" required="required"/></td>
                                      <td width="30%" align="center"><a title="Calendar" onclick="displayDatePicker('date1', this);" href="javascript:;"><img src="images/calendar.gif" width="20" height="20" border="0" /></a></td>
                                    </tr>
                                </table></td>
                              </tr>
                              <tr>
                                <td width="14%"> Employee  Name: *</td>
                                <td width="86%" class="input200"><input name="customer_name" type="text" required="required" id="customer_name" value="<?php echo $row[customer_name];?>" /></td>
                              </tr>
                              <tr>
                                <td bordercolor="#CCCCCC">Salary :</td>
                                <td bordercolor="#CCCCCC" class="input200"><label>
                                  <input name="contact_person" type="text" id="contact_person"  value="<?php echo $row[contact_person];?>" />
                                </label></td>
                              </tr>
                              <tr>
                                <td>Mobile:<span class="red"></span>*</td>
                                <td class="input200"><input name="personal_phn" type="text" required="required" id="personal_phn" value="<?php echo $row[personal_phn];?>" /></td>
                              </tr>
                              <tr>
                                <td>Nid :<span class="red">*<span class="input200">
                                  <input name="id" type="hidden" id="id" value="<?php echo $_GET[id];?>"/>
                                </span></span></td>
                                <td class="input200"><input name="nid" type="text" required="required" id="nid" value="<?php echo $row[nid];?>" /></td>
                              </tr>
                              <tr>
                                <td>Email :</td>
                                <td class="input200"><input name="personal_email" type="text" id="personal_email" value="<?php echo $row[personal_email];?>" /></td>
                              </tr>
                              <tr>
                                <td>Address :</td>
                                <td class="input200"><input name="url" type="hidden" id="url" value="add_client.php"/>
                                  <textarea name="address" rows="5" required="required" id="address"><?php echo $row[address];?></textarea></td>
                              </tr>
                              <tr>
                                <td align="left">Nid / Passport :</td>
                                <td align="left"><input type="file" name="file1" />
                                <?php if($row[file1]!=""){?><img src="uploads_hr/<?php echo $row[file1];?>" width="164" height="163" alt=""/><?php }?></td>
                              </tr>
                              <tr>
                                <td align="left">Other :</td>
                                <td align="left"><input type="file" name="file2" />
								  <?php if($row[file2]!=""){?><img src="uploads_hr/<?php echo $row[file2];?>" width="164" height="163" alt=""/><?php }?>								  </td>
                              </tr>
                              <tr>
                                <td height="30" >Resign / Suspend / Terminate Date</td>
                                <td height="30"  class="input200"><table width="180" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                      <td width="70%"><input name="date2" type="text" id="date2" size="15"  value="<?php echo dtformat($row[date2]);?>" required="required"/></td>
                                      <td width="30%" align="center"><a title="Calendar" onclick="displayDatePicker('date2', this);" href="javascript:;"><img src="images/calendar.gif" width="20" height="20" border="0" /></a></td>
                                    </tr>
                                </table></td>
                              </tr>
                              <tr>
                                 <td height="50" align="center">&nbsp;</td>
                                 <td height="50" align="left"><input type="submit" name="Submit23" value="Submit"/>   </td>
                              </tr>
                           </table>
                        </form>
                     </td>
                  </tr>
                 
                 
               </table>
            </td>
         </tr>
         <tr>
            <td height="28" align="center">&nbsp;</td>
         </tr>
         <tr>
            <td height="28"><?php include("bot.php");
?></td>
         </tr>
      </table>
   </body>
</html>
<?php }?>