0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
USER
/
[
Home
]
File: edit_advancetakenentry.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 advance taken entry edit| 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"> <!-- #apDiv1 { position:absolute; width:68px; height:38px; z-index:1; left: 713px; top: 408px; } --> </style> </head> <body> <p><?php include("include/first_userheader.php"); require_once "edit_advancetakenentry_ctrl.php";?> </p><span class="msgText"><?php if (isset($message)) echo $message;?></span> <span class="valText"> <?php if(isset($error['msg_title'])) { echo $error['msg_title']; } ?> </span> <form action="edit_advancetakenentry.php" method="post" enctype="multipart/form-data" name="form1" id="form1"> <p align="center"> </p> <p> </p> <p> </p> <table width="411" align="center" cellspacing="0"> <tr> <th width="136" class="projectboldtxt" scope="row"><div align="left">table id</div></th> <td width="134"><label> <input type="text" name="txtid" id="txtid" value="<?php echo $advance_id; if (isset($_POST['Update'])) { echo $payment_id_restore; }?>" readonly="readonly"/> </label></td> <td width="135"> </td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left">Advance/Imprest</div></th> <td colspan="2"><label> <select name="cmbad_im" id="cmbad_im"> <option value="1" <?php if(isset($_POST['Update'])) { if(@$Advance_Imp=="Advance") { echo "selected='selected'"; } } else { if(@$advance_impresed=="Advance") { echo "selected='selected'"; } }?>>Advance</option> <option value="2" <?php if(isset($_POST['Update'])) { if(@$Advance_Imp=="Imprest") { echo "selected='selected'"; } } else { if(@$advance_impresed=="Imprest") { echo "selected='selected'"; } }?> >Imprest</option> </select> </label></td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left">Date</div></th> <td colspan="2"><label> <select name="cmbadvancedd" id="cmbadvancedd"> <?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(@$dd==$i) { echo "selected='selected'"; } } ?> ><?php echo $i ?></option> <?php } ?> </select> </label> <label> <select name="cmbadvancemm" id="cmbadvancemm"> <?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(@$mm==$i) { echo "selected='selected'"; } } ?> ><?php echo $month[$i]; ?></option> <?php } ?> </select> </label> <label> <input name="txtadvanceyy" type="text" id="txtadvanceyy" value= "<?php if (isset($_POST['Update'])) { echo $yy_restore; } else { echo $yy; } ?>" size="5" maxlength="4"/> <span class="valText"> <?php if(isset($error['yy_null'])) { echo $error['y_null']; } else if(isset($error['date'])) { echo $error['date']; } ?> </span> </label></td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left">Account Name</div></th> <td colspan="2"><label> <select name="cmbaccname" class="leftboldtxtblank" id="cmbaccname"> <?php for($j=1;$j<=$i;$j++) {?> <option value="<?php echo $j; ?>"<?php if(isset($_POST['Update'])) { if(@$account_name_restore==$$acc_name_array[$j]) { echo "selected='selected'"; } } else { if(@$account_name==$acc_name_array[$j]) { echo "selected='selected'"; } } ?> ><?php echo $acc_name_array[$j]; ?></option><?php }?> </select> </label></td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left">Amount</div></th> <td colspan="2"><label> <input type="text" name="txtamount" id="txtamount" value= "<?php if (isset($_POST['Update'])) { echo $amount_restore; } else { echo $amount; } ?>"/> <span class="valText"> <?php if(isset($error['amount_null'])) { echo $error['amount_null']; } else if(isset($error['amount_numeric'])) { echo $error['amount_numeric']; } ?> </span> </label></td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left">Name of withdrawer</div></th> <td colspan="2"><label> <input type="text" name="txtname" id="txtname" value= "<?php if (isset($_POST['Update'])) { echo $name_restore; } else { echo $name; } ?>"/> <span class="valText"> <?php if(isset($error['name_restore'])) { echo $error['name_restore']; } ?> </span> </label></td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left">Description</div></th> <td colspan="2"><label> <textarea name="txtdes" id="txtdes" cols="20" rows="5"><?php if(isset($_POST['Update']))echo $description_restore;else echo $description;?></textarea> <span class="valText"> <?php //if(isset($error['description_null'])) // { // echo $error['description_null']; // } ?> </span> </label></td> </tr> <tr> <th scope="row"><div align="left"><span class="projectboldtxt">Closed</span></div></th> <td colspan="2"><input name="chkclosed" type="checkbox" id="chkclosed" <?php if (isset($_POST['Update'])) { if ($closed_restore==1) { echo 'checked="checked"'; } } else { if ($closed==1) { echo 'checked="checked"'; } } ?> /></td> </tr> <tr> <th scope="row"> </th> <td colspan="2"><label> <input type="submit" name="Update" id="Update" value="Update" /> </label> <label><a href="search_advancetakenentry.php" class="projectboldtxt style2">Back</a></label></td> </tr> </table> <p> </p> <p> </p> <div id="apDiv2"></div> </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> </p> <p> </p> <p> </div> <?php include "include/footer.php"; ?> </p> </body> </html>