0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
USER
/
[
Home
]
File: edit_student.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 Student | online project finanacial management system</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:200px; height:373px; z-index:1; left: 65px; top: 101px; } .style12 {font-size: 14px} #apDiv2 { position:absolute; width:41px; height:23px; z-index:1; left: 754px; top: 246px; } #apDiv3 { position:absolute; width:109px; height:45px; z-index:1; left: 659px; top: 244px; } .style13 {color: #F7E7BD} .style8 { font-size: 16px } --> </style> </head> <body> <p> <?php include("include/first_userheader.php"); require_once "edit_student_ctrl.php"; ?><span class="msgText"><?php if (isset($message)) echo $message;?></span></p> <p> </p> <p> </p> <form action="edit_student.php" method="post" enctype="multipart/form-data" name="form1" id="form1"> <p align="center"><span class="projectboldtxt style12">Student Details updation</span></p> <table width="468" height="312" border="1" align="center"> <tr> <td><table width="461" height="363" align="center" bordercolor="#663300"> <tr> <th bordercolor="#CC3300" scope="row"><div align="left" class="projectboldtxt"> <p> Student ID</p> </div></th> <td><input type="text" name="txtid" id="txtid"value="<?php if (isset($_POST['Update'])) echo $editempid; else echo $empdb_id; ?>" readonly="readonly"/></td> <td> </td> </tr> <tr> <th width="109" bordercolor="#CC3300" scope="row"><div align="left" class="projectboldtxt"> <p> Name</p> </div></th> <td width="244"><input type="text" name="txtename" id="txtename"value="<?php if ($empName!="") { echo $empName; } ?>" /></td> <td width="92"><span class="valText"> <?php if(isset($error['name_null'])) { echo $error['name_null']; } ?> </span></td> </tr> <tr> <th height="69" scope="row"><div align="left" class="projectboldtxt">Address</div></th> <td><label><textarea name="txtempaddress" id="txtempaddress" cols="22" rows="4"><?php if ($empAddress!="") { echo $empAddress; } ?></textarea> </label></td> <td> </td> </tr> <tr> <th bordercolor="#CC3300" scope="row"><div align="left" class="none"> <p class="projectboldtxt">Phone</p> </div></th> <td><label> <input type="text" name="txteph" id="txteph"value="<?php if ($empPhone!="") { echo $empPhone; } ?>" /> </label></td> <td> </td> </tr> <tr> <th bordercolor="#CC3300" scope="row"><div align="left" class="none"> <p class="projectboldtxt">E_mailId</p> </div></th> <td><label> <input type="text" name="txtmailid" id="txtmailid"value="<?php if ($empEmail!="") { echo $empEmail; } ?>" /> </label></td> <td> </td> </tr> <tr> <th bordercolor="#CC3300" class="projectboldtxt" scope="row"><div align="left">Course</div></th> <td><input type="text" name="txtcourse" id="txtcourse"value="<?php if ($course!="") { echo $course; } ?>" /></td> <td> </td> </tr> <tr> <th bordercolor="#CC3300" class="projectboldtxt" scope="row"><div align="left">College</div></th> <td><label> <input type="text" name="txtcollege" id="txtcollege" value="<?php if ($college!="") { echo $college; } ?>" /> </label></td> <td> </td> </tr> <tr> <th bordercolor="#CC3300" class="projectboldtxt" scope="row"><div align="left">Category</div></th> <td><select name="cmbcategory" id="cmbcategory"> <option value="Select" selected="selected">Select</option> <option value="Course Project" <?php if ($category == "Course Project") { ?>selected="selected" <?php }?>>Course Project</option> <option value="Ph.D" <?php if ($category == "Ph.D") { ?>selected="selected" <?php }?>>Ph.D</option> <option value="Training" <?php if ($category == "Training") { ?>selected="selected" <?php }?>>Training</option> </select></td> <td><span class="valText"> <?php if(isset($error['category'])) { echo $error['category']; } ?> </span></td> </tr> <tr> <th bordercolor="#CC3300" class="projectboldtxt" scope="row"><div align="left" class="none"> <p>Title of work</p> </div></th> <td><label> <input type="text" name="txttitle" id="txttitle" value="<?php if ($title!="") { echo $title; } ?>"/> </label></td> <td> </td> </tr> <tr> <th bordercolor="#CC3300" class="projectboldtxt" scope="row"><div align="left" class="none"> <p>Joining Date</p> </div></th> <td><label></label> <table width="126" border="0"> <tr> <td width="41"><select name="cmbjoindd" id="cmbjoindd"> <?php for ($i=1; $i<=31; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(@$JD_dd==$i) { echo "selected='selected'"; } ?> ><?php echo $i ?></option> <?php } ?> </select></td> <td width="41"><select name="cmbjoinmm" id="cmbjoinmm"> <?php for($i=1; $i<=12; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(@$JD_mm==$i) { echo "selected='selected'"; } ?> ><?php echo $month[$i]; ?></option> <?php } ?> </select></td> <td width="104"><input name="txtjoinyy" type="text" id="txtjoinyy" value="<?php if ($JD_yy!="") { echo $JD_yy; } ?>" size="5" /></td> </tr> </table></td> <td><span class="valText"> <?php if(isset($error['JD_null'])) { echo $error['JD_null']; } else if(isset($error['JD_numeric'])) { echo $error['JD_numeric']; } ?> </span></td> </tr> <tr> <th bordercolor="#CC3300" class="projectboldtxt" scope="row"><div align="left">Ending Date</div></th> <td><table width="126" border="0"> <tr> <td width="41"><select name="cmbenddd" id="cmbenddd"> <?php for ($i=1; $i<=31; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(@$ED_dd==$i) { echo "selected='selected'"; } ?> ><?php echo $i ?></option> <?php } ?> </select></td> <td width="41"><select name="cmbendmm" id="cmbendmm"> <?php for($i=1; $i<=12; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(@$ED_mm==$i) { echo "selected='selected'"; } ?> ><?php echo $month[$i]; ?></option> <?php } ?> </select></td> <td width="104"><input name="cmbendyy" type="text" id="cmbendyy" value="<?php if ($ED_yy!="") { echo $ED_yy; } ?>" size="5" /></td> </tr> </table></td> <td><span class="valText"> <?php if(isset($error['Ed_null'])) { echo $error['Ed_null']; } else if(isset($error['Ed_numeric'])) { echo $error['Ed_numeric']; } ?> </span></td> </tr> <tr> <th bordercolor="#CC3300" class="projectboldtxt" scope="row"><div align="left">Project</div></th> <td><label> <input type="file" name="ffphoto" id="ffphoto" /> </label></td> <td><span class="valText"> <?php if(isset($error['filename'])) { echo $error['filename']; } ?> </span></td> </tr> <tr> <th bordercolor="#CC3300" class="projectboldtxt" scope="row"><div align="left">Remarks</div></th><td><textarea name="txtremarks" id="txtremarks" cols="22" rows="4"><?php if ($remark!="") { echo $remark; } ?></textarea></td> <td> </td> </tr> <tr> <th scope="row"> </th> <td><label><span class="projectboldtxt"> <input type="submit" name="Update" id="Update" value="Update"/> </label> <label><a href="studentmanagement.php" class="projectboldtxt style8">Back</a></label></td> <td> </td> </tr> <tr> </tr> </table></td> </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>