0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
USER
/
[
Home
]
File: edit_custemaccountcashentry.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>Custem account cash 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 require_once "edit_custemaccountcashentry_ctrl.php"; include("include/first_userheader.php"); ?> </p> <form action="edit_custemaccountcashentry.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="101" class="projectboldtxt" scope="row"><div align="left">Custem id</div></th> <td width="330"><label> <input type="text" name="txtcustemid" id="txtcustemid" value="<?php echo $custemdb_id; if (isset($_POST['Update'])) { echo $custemdb_id_restore; }?>" readonly="readonly"/> </label></td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left">Voucher no</div></th> <td><label> <input type="text" name="txtvoucher" id="txtvoucher" value="<?php if (isset($_POST['Update'])) { echo $voucher_restore; } else { echo $voucher; } ?>" /> <?php /*?><span class="valText"> <?php if(isset($error['Voucher_number'])) { echo $error['Voucher_number']; } ?> </span> <?php */?> </label></td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left">Date</div></th> <td><label> <select name="cmbcustemdd" id="cmbcustemdd"> <?php for ($i=1; $i<=31; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(isset($_POST['Update'])) { if(@$entry_dd_restore==$i) { echo "selected='selected'"; } } else { if(@$entry_dd==$i) { echo "selected='selected'"; } } ?> ><?php echo $i ?></option> <?php } ?> </select> </label> <label> <select name="cmbcustemmm" id="cmbcustemmm"> <?php for($i=1; $i<=12; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(isset($_POST['Update'])) { if(@$entry_mm_restore==$i) { echo "selected='selected'"; } } else { if(@$entry_mm==$i) { echo "selected='selected'"; } } ?> ><?php echo $month[$i]; ?></option> <?php } ?> </select> </label> <label> <input name="txtcustemyy" type="text" id="txtcustemyy" value= "<?php if (isset($_POST['Update'])) { echo $entry_yy_restore; } else { echo $entry_yy; } ?>" size="5" maxlength="4"/> <span class="valText"> <?php if(isset($error['year_null'])) { echo $error['year_null']; } else if(isset($error['year_null'])) { echo $error['year_null']; } ?> </span> </label></td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left">Group Name</div></th> <td><select name="cmbcustemacgroup" id="cmbcustemacgroup"> <?php for($m=1;$m<=$k; $m++) { ?> <option value="<?php echo $m; ?>"<?php if(isset($_POST['Update'])) { if(@$accounthead_restore==$acc_group_array[$m]) { echo "selected='selected'"; } } else { if(@$account_head==$acc_group_array[$m]) { echo "selected='selected'"; } } ?> ><?php echo $acc_group_array[$m]; ?></option> <?php } ?> </select></td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left">Account Name</div></th> <td><label> <select name="cmbcustemaccname" id="cmbcustemaccname"> <?php for($j=1;$j<=$i;$j++) { ?> <option value="<?php echo $j; ?>"<?php if(isset($_POST['Update'])) { if(@$accountname_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"> </th> <td><span class="projectboldtxt">Payment </span> <input name="radio" type="radio" id="radiopayment" value="radiopayment" /> <span class="projectboldtxt">Receipt <input type="radio" name="radio" id="radioreceipt" value="radioreceipt" /> </span><span class="valText"> <?php if(isset($error['leavecount_null'])) { echo $error['leavecount_null']; } ?> </span></td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left">Amount</div></th> <td><label> <input type="text" name="txtcustemamount" id="txtcustemamount" value= "<?php if (isset($_POST['Update'])) { echo $amount_restore; } else if($amount==0) { echo $amount_receipt; } 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">Description</div></th> <td><label> <textarea name="txtcustemdesc" id="txtcustemdesc" 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"> </th> <td><label> <input type="submit" name="Update" id="Update" value="Update" /> </label> <label><a href="search_custemaccountcashentry.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>