kohjhjhصثقص5572hjkhk7872ثقصثقgdfgdg
Ele57885fddfg872782782782 hjkhj782dfgfghgقفغفغفقhfg555434536
/
home4
/
kisgavwq
/
sisnikol.com
/
skpadmin
/
includes
/
Upload FileeE
HOME
<?php //page_edit.php $required = "<font color='#FF0000' size='1'>*</font>"; if(isset($_SESSION[SES]['pagedata'])) { $pdata = $_SESSION[SES]['pagedata']; extract($pdata); $page_contents = ($pdata['page_content_static']!="")?$pdata['page_content_static']:$pdata['page_content_dynamic']; unset($_SESSION[SES]['pagedata']); } else { $page_id = isset($_GET['pid'])?$_GET['pid']:0; $ped_res = $pageObj->getPageById($page_id); if($ped_res['NO_OF_ITEMS']>0) { $page_id = (int)$ped_res['oDATA'][0]['page_id']; $page_name = outText($ped_res['oDATA'][0]['page_name']); $page_url = outText($ped_res['oDATA'][0]['page_url']); $page_type = outText($ped_res['oDATA'][0]['page_type']); $page_title = outText($ped_res['oDATA'][0]['page_title']); $page_metakeywords = outText($ped_res['oDATA'][0]['page_metakeywords']); $page_metadesc = outText($ped_res['oDATA'][0]['page_metadesc']); $page_contents = outText($ped_res['oDATA'][0]['page_contents']); $editable = outText($ped_res['oDATA'][0]['editable']); if($editable) $ro = ""; else $ro = 'readonly="true" class="readonly"'; } } $page =filter($_REQUEST['page']); $getid = $_GET['rid']; $query = mysql_query("SELECT * FROM tbl_res_adv_diploma WHERE id = '".$getid."'"); $get = mysql_fetch_array($query); if($_REQUEST['act']=="updateres") { $regno = mysql_real_escape_string($_REQUEST['regno']); $roll_no = mysql_real_escape_string($_REQUEST['roll_no']); $sname = mysql_real_escape_string($_REQUEST['sname']); $dob = mysql_real_escape_string($_REQUEST['dob']); $fname = mysql_real_escape_string($_REQUEST['fname']); $year_pass = mysql_real_escape_string($_REQUEST['year_pass']); $safety_accident = mysql_real_escape_string($_REQUEST['safety_accident']); $fire_engg = mysql_real_escape_string($_REQUEST['fire_engg']); $orga_sefty = mysql_real_escape_string($_REQUEST['orga_sefty']); $occu_health = mysql_real_escape_string($_REQUEST['occu_health']); $seafty_work = mysql_real_escape_string($_REQUEST['seafty_work']); $saf_const = mysql_real_escape_string($_REQUEST['saf_const']); $prac_viva = mysql_real_escape_string($_REQUEST['prac_viva']); $total_mark = mysql_real_escape_string($_REQUEST['total_mark']); $mark_sec = mysql_real_escape_string($_REQUEST['mark_sec']); $res_desc = mysql_real_escape_string($_REQUEST['res_desc']); /*echo "UPDATE `tbl_res_adv_diploma` SET `reg_no`= '$regno',`roll_no`='$roll_no',`stu_nme`='$sname',`stu_dob`='$dob',`father_nme`='$fname',`year_pass`='$year_pass',`safety_accident`='$safety_accident',`fire_engg`='$fire_engg',`orga_sefty`='$orga_sefty',`occu_health`= '$occu_health',`seafty_work`= '$seafty_work',`saf_const`='$saf_const',`prac_viva` = '$prac_viva', total_mark = '$total_mark', mark_sec ='$mark_sec' , res_desc = '$res_desc' WHERE id = '".$getid."'"; exit;*/ $insert = mysql_query("UPDATE `tbl_res_adv_diploma` SET `reg_no`= '$regno',`roll_no`='$roll_no',`stu_nme`='$sname',`stu_dob`='$dob',`father_nme`='$fname',`year_pass`='$year_pass',`safety_accident`='$safety_accident',`fire_engg`='$fire_engg',`orga_sefty`='$orga_sefty',`occu_health`= '$occu_health',`seafty_work`= '$seafty_work',`saf_const`='$saf_const',`prac_viva` = '$prac_viva', total_mark = '$total_mark', mark_sec ='$mark_sec' , res_desc = '$res_desc' WHERE id = '".$getid."'"); if($insert){?> <script> window.location = "result-management.php"; </script> <?php $msg = 'Record Updated Successfully.'; setMessage($msg, "correct"); } } ?> <div class="content_header"> <div class="heading flleft">Edit Result <u><i> <?=$get['stu_nme'];?> </i></u></div> <div class="heading flright"><a href="<?=$_curpage?>">« Back</a></div> </div> <div class="bodycontent"> <form action="" method="post" name="resulteditform" > <input type="hidden" name="act" value="updateres" /> <input type="hidden" name="page_id" value="<?=$getid?>" /> <div id="validation_div" class="validation_error"></div> <table width="100%" border="0" cellspacing="0" cellpadding="3" align="center"> <tr> <td align="left" class="label" width="150">Registration No.<?=$required?><br /> <!--<span class="hint">(e.g. Page Name)</span>--></td> <td align="center">:</td> <td align="left"><input type="text" name="regno" value="<?=$get['reg_no'];?>" size="60" required /></td> </tr> <tr> <td align="left" class="label">Roll No.<?=$required?><br /> </td> <td align="center">:</td> <td align="left"><input type="text" name="roll_no" id="roll_no" value="<?=$get['roll_no'];?>" size="60" title="" required/></td> </tr> <tr> <td align="left" class="label">Student Name <?=$required?></td> <td align="center">:</td> <td align="left"><input type="text" name="sname" id="sname" value="<?=$get['stu_nme'];?>" size="60" title="" required/></td> </tr> <tr> <td align="left" class="label">Date Of Birth <?=$required?></td> <td align="center">:</td> <td align="left"><input type="text" id="datepicker" name="dob" value="<?=$get['stu_dob'];?>" readonly="" size="60" required/></td> </tr> <tr> <td align="left" class="label">Father's Name<?=$required?></td> <td align="center">:</td> <td align="left"><input type="text" name="fname" value="<?=$get['father_nme'];?>" size="60" required/></td> </tr> <tr> <td align="left" class="label">Year Of Passing<?=$required?></td> <td align="center">:</td> <td align="left"><input type="text" name="year_pass" value="<?=$get['year_pass'];?>" size="60" required/></td> </tr> <tr id="editor" class="label"> <td align="left" colspan="3"> </td> </tr> <tr id="editor" class="label"> <td align="left" colspan="3">Student All subject Enter Marks for( ADVANCE DIPLOMA IN INTERNATIONAL FIRE & INDUSTRIAL SAFETY ENGINEERING) </td> </tr> <tr id="editor" class="label"> <td align="left" colspan="3"> </td> </tr> <tr id="editor" class="label"> <td align="left" colspan="3">Safety and Accident Prevention <span class="subid">(ADFISE101)</span><?=$required?> : <input type="text" name="safety_accident" value="<?=$get['safety_accident'];?>" id="txt1" size="10" required/> </td> </tr> <tr id="editor" class="label"> <td align="left" colspan="3">Fundamental of Fire Engineering Science <span class="subid">(ADFISE102)</span><?=$required?> : <input type="text" name="fire_engg" value="<?=$get['fire_engg'];?>" size="10" id="txt2" required/> </td> </tr> <tr id="editor" class="label"> <td align="left" colspan="3">Organizational Leadership and Safety Communication <span class="subid">(ADFISE103)</span><?=$required?> : <input type="text" name="orga_sefty" value="<?=$get['orga_sefty'];?>" size="10" id="txt3" required/> </td> </tr> <tr id="editor" class="label"> <td align="left" colspan="3">Occupational Health and Industrial Safety Engineering <span class="subid">(ADFISE104)</span><?=$required?>: <input type="text" name="occu_health" value="<?=$get['occu_health'];?>" size="10" id="txt4" required/> </td> </tr> <tr id="editor" class="label"> <td align="left" colspan="3">Safety at Work Place <span class="subid">(ADFISE105)</span><?=$required?>: <input type="text" name="seafty_work" value="<?=$get['seafty_work'];?>" size="10" id="txt5" required/> </td> </tr> <tr id="editor" class="label"> <td align="left" colspan="3">Safety in Construction Industry <span class="subid">(ADFISE106)</span><?=$required?>: <input type="text" name="saf_const" value="<?=$get['saf_const'];?>" size="10" id="txt6" required/> </td> </tr> <tr id="editor" class="label"> <td align="left" colspan="3">Practical And Viva Voice<span class="subid">(ADFISE107)</span><?=$required?>: <input type="text" name="prac_viva" value="<?=$get['prac_viva'];?>" size="10" id="txt7" required/> </td> </tr> <tr id="editor" class="label"> <td align="left" colspan="3">Total Mark: <input type="text" name="total_mark" value="<?=$get['total_mark'];?>" size="10" required/> </td> </tr> <tr id="editor" class="label"> <td align="left" colspan="3">Mark Secured<?=$required?>: <input type="text" name="mark_sec" value="<?=$get['mark_sec'];?>" id="txt8" readonly="readonly" onclick="return sum();" size="10" required/> </td> </tr> <tr id="editor" class="label"> <td align="left" colspan="3">Result<?=$required?>: <input type="text" name="res_desc" value="<?=$get['res_desc'];?>" size="40" required/> <span class="hint">(e.g. First class with distinction)</span> </td> </tr> </tr> <tr> <td align="left" colspan="2"> </td> <td align="left" valign="middle" height="40"><input name="result" type="submit" value="Update Result" class="button" /> </td> </tr> </table> </form> </div>