0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
USER
/
[
Home
]
File: fileUpdation.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>FileUpdate | 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"> <!-- .style5 { font-weight: bold; color: #660000; font-family: Arial; } --> </style> </head> <body> <p> <!--<div id="headerbg"> <div id="headerblank">--> <?php include("include/first_userheader.php"); require_once "fileUpdation_ctrl.php"; ?></p> <p> </p> <p> </p> <p> </p><form action="fileUpdation.php" method="post" enctype="multipart/form-data" name="form1" id="form1"> <table width="441" height="165" align="center" bordercolor="#990000"> <tr> <th bordercolor="#990000" class="projectboldtxt" scope="row"><div align="left">File id</div></th> <td><label> <input type="text" name="txtfile_id" id="txtfile_id" value="<?php echo $filedb_id; if (isset($_POST['Update'])) { echo $file_id; }?>" readonly="readonly"/> </label></td> </tr> <tr> <th width="73" bordercolor="#990000" class="projectboldtxt" scope="row"><div align="left">File Name</div></th> <td width="218"><label> <input type="text" name="txtfilename" id="txtfilename" value="<?php if (isset($_POST['Update'])) { echo $filename_restore; } else { echo $file_name; } ?>" /> <span class="valText"> <?php if(isset($error['filename_null'])) { echo $error['filename_null']; } ?> </span></label></td> </tr> <tr> <th bordercolor="#990000" class="projectboldtxt" scope="row"><div align="left">Select file</div></th> <td bordercolor="#33FFFF"><label> <input type="file" name="ffshelf" id="ffshelf" /> </label></td> <td width="268"><label><span class="valText"> <?php if(isset($error['file_exist'])) { echo $error['file_exist']; } if(isset($error['fileformat'])) { echo $error['fileformat']; } ?> </span></label></td> </tr> <tr> <th bordercolor="#990000" class="projectboldtxt" scope="row"><div align="left">Date</div></th> <td bordercolor="#33FFFF"><label> <select name="cmbfiledd" id="cmbfiledd"> <?php for ($i=1; $i<=31; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(isset($_POST['Update'])) { if(@$filedate_restore==$i) { echo "selected='selected'"; } } else { if(@$file_dd==$i) { echo "selected='selected'"; } } ?> ><?php echo $i ?></option> <?php } ?> </select> <select name="cmbfilemm" id="cmbfilemm"> <?php for($i=1; $i<=12; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(isset($_POST['Update'])) { if(@$file_mm_restore==$i) { echo "selected='selected'"; } } else { if(@$file_mm==$i) { echo "selected='selected'"; } } ?> ><?php echo $month[$i]; ?></option> <?php } ?> </select> <input name="txtfileyy" type="text" id="txtfileyy" value= "<?php if (isset($_POST['Update'])) { echo $file_yy_restore; } else { echo $file_yy; } ?>" size="5" maxlength="4"/> <span class="valText"> <?php if(isset($error['filedate_yy_null'])) { echo $error['filedate_yy_null']; } else if(isset($error['filedate_numeric'])) { echo $error['filedate_numeric']; } ?> </span></label></td> </tr> <tr> <th bordercolor="#990000" class="projectboldtxt" scope="row"><div align="left">Description</div></th> <td bordercolor="#CC3300"><label> <textarea name="txtfiledesc" id="txtfiledesc" cols="22" rows="5"><?php if (isset($_POST['Update'])) { echo $filedescription_restore; } else { echo $file_description; } ?> </textarea> </label></td> <td><span class="valText"> <?php if(isset($error['filedescription_null'])) { echo $error['filedescription_null']; } ?> </span></td> </tr> <tr> <th bordercolor="#990000" scope="row"><div align="left"></div></th> <td bordercolor="#CC3300"><input type="submit" name="Update" id="Update" value="Update" /></td> <td> </td> </tr> </table> </form> <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>