0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
USER
/
[
Home
]
File: edit_leave_entry.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 stockcategory |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 { font-size: 18px; color: #FF0000; } #apDiv1 { position:absolute; width:61px; height:38px; z-index:1; left: 759px; top: 266px; } --> </style> </head> <body> <?php require_once "edit_leave_entry_ctrl.php"; include("include/first_userheader.php"); ?> <p> </p> <p align="center" class="projectboldtxt">Edit the details of item in stock</p> </p> <form action="edit_leave_entry.php" method="post" enctype="multipart/form-data" name="form1" id="form1"> <table width="564" height="209" align="center"> <tr> <th height="36" class="projectboldtxt" scope="row"><div align="left">leave id</div></th> <th class="projectboldtxt" scope="row"><div align="left"> <input type="text" name="txtid" id="txtid" value="<?php echo $leave_id_db; if (isset($_POST['Update'])) { echo $editstockentryid; }?>" readonly="readonly"/> </div> <tr> <th width="142" height="24" class="projectboldtxt" scope="row"><div align="left"><span class"projectboldtxt style5">Employee Name</span></div></th> <th width="243" class="projectboldtxt" scope="row"><div align="left"> <label> <input type="text" name="txtemp" id="txtemp" value="<?php echo $emp_name_db; if (isset($_POST['Update'])) { echo $empname; }?>"/> </label> </div></th> <th width="163" class="projectboldtxt" scope="row"><label></label> <div align="left"><span class="valText"> <?php if(isset($error['item_add'])) { echo $error['item_add']; } else if(isset($error['empname_null'])) { echo $error['empname_null']; } ?> </span></div></th> </tr> <tr> <th height="24" class="projectboldtxt" scope="row"><div align="left">leave Type</div></th> <th class="projectboldtxt" scope="row"><div align="left"> <select name="cmbtype" id="cmbtype"> <option value="1" <?php if(isset($_POST['Update'])) { if(@$leavetype=="CL") { echo "selected='selected'"; } } else { if(@$leave_type=="CL") { echo "selected='selected'"; } }?>>CL</option> <option value="2" <?php if(isset($_POST['Update'])) { if(@$leavetype=="LWOS") { echo "selected='selected'"; } } else { if(@$leave_type=="LWOS") { echo "selected='selected'"; } }?> >LWOS</option> </select> </div> </label></th> <th class="projectboldtxt" scope="row"><div align="left"><span class="valText"><?php // if(isset($error['leavetype_null'])) // { // echo $error['leavetype_null']; // } // // ?> </span></div></th> </tr> <tr> <th height="24" class="projectboldtxt" scope="row"><div align="left">leave entry date</div></th> <th class="projectboldtxt" scope="row"><div align="left"> <select name="cmbdd" id="cmbdd"> <?php for ($i=1; $i<=31; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(isset($_POST['Update'])) { if(@$dd_restore==$i) { echo "selected='selected'"; } } else { if(@$start_dd==$i) { echo "selected='selected'"; } } ?> ><?php echo $i ?></option> <?php } ?> </select> <select name="cmbmm" id="cmbmm"> <?php for($i=1; $i<=12; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(isset($_POST['Update'])) { if(@$mm_restore==$i) { echo "selected='selected'"; } } else { if(@$start_mm==$i) { echo "selected='selected'"; } } ?> ><?php echo $month[$i]; ?></option> <?php } ?> </select> <input name="txtyy" type="text" id="txtyy" value= "<?php if (isset($_POST['Update'])) { echo $yy_restore; } else { echo $start_yy; } ?>" size="2" maxlength="4"/> </div></th> <th class="projectboldtxt" scope="row"><div align="left"> <label></label> <span class="valText"> <?php if(isset($error['yy__null'])) { echo $error['yy__null']; } else if(isset($error['year_numeric'])) { echo $error['year_numeric']; } ?> </span></div></th> </tr> <tr> <th height="24" class="projectboldtxt" scope="row"><div align="left"></div></th> <th class="projectboldtxt" scope="row"><div align="left"> <label> Halfday <input type="radio" name="radio" id="radio" value="half" /> Fullday </label> <label> <input type="radio" name="radio" id="radio2" value="full" /> </label> </div> </label></th> <th class="projectboldtxt" scope="row"><div align="left"> <span class="valText"> <?php if(isset($error['leavecount_null'])) { echo $error['leavecount_null']; } ?> </span></div></th> </tr> <tr> <th height="24" class="projectboldtxt" scope="row"><div align="left">Description</div></th> <th class="projectboldtxt" scope="row"><div align="left"> <textarea name="txtdescription" id="txtdescription" cols="20" rows="5"><?php if (isset($_POST['Update'])) { echo $editdescription; } else { echo $description; }?></textarea> </div></th> <th class="projectboldtxt" scope="row"><div align="left"> <label></label> <?php /* if(isset($error['editdescription_null'])) { echo $error['editdescription_null']; }*/ ?> </div></th> </tr> <tr> <th height="26" scope="row"> </th> <th scope="row"><div align="left"> <input type="submit" name="Update" id="Update" value="Update" /> <a href="search_leave_entry.php" class="projectboldtxt style2">Back</a></div></th> <th scope="row"><span class="style2"><div align="left"></div> </span></th> </tr> </table> </form> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> <?php include "include/footer.php"; ?> </p> </body> </html>