kohjhjhصثقص5572hjkhk7872ثقصثقgdfgdg
Ele57885fddfg872782782782 hjkhj782dfgfghgقفغفغفقhfg555434536
/
home4
/
kisgavwq
/
dmcschool.ac.in
/
dmcadmin
/
includes
/
Upload FileeE
HOME
<?php $conn = mysqli_connect(SYSTEM_DBHOST, SYSTEM_DBUSER, SYSTEM_DBPWD, SYSTEM_DBNAME); $required = "<font color='#FF0000' size='1'>*</font>"; if($_GET['q']!="edit"){ header("Location:manage_footer.php"); } $id=$_GET['id']; $h_data=$dbObj->fetch_data("tbl_homecontent","id='$id'"); if(isset($_POST['update_tc'])){ $id=$_POST['h_id']; $address=$_POST['address']; $flike=$_POST['flike']; $map=$_POST['map']; $query_tc=$dbObj->updateToDb("tbl_homecontent","office_add='$address',facebook_likeurl='$flike',map_url='$map'","id='$id'"); echo "<script>alert('Data Updated Successfully.');</script>"; echo "<script>window.location='manage_footer.php';</script>"; //header("Location:manage_footer.php"); } ?> <div class="content_header"> <div class="heading flleft">Edit Header Content</div> <div class="heading flright"><a href="<?=$_curpage?>">« Back</a></div> </div> <div class="bodycontent"> <form name="form1" method="post" action="" enctype="multipart/form-data"> <table width="100%" cellpadding="3" cellspacing="0" border="0" align="center"> <tr> <td width="14%" align="left" class="label">Office Address<?=$required?></td> <td width="1%" align="center">:</td> <td width="85%" align="left"> <input type="hidden" name="h_id" value="<?=$h_data[0]['id']?>"> <textarea name="address" required="" cols="80" rows="4"><?=$h_data[0]['office_add']?></textarea> </td> </tr> <tr> <td width="14%" align="left" class="label">Facebool Like Url<?=$required?></td> <td width="1%" align="center">:</td> <td width="85%" align="left"> <textarea name="flike" required="" cols="80" rows="4"><?=$h_data[0]['facebook_likeurl']?></textarea> </td> </tr> <tr> <td colspan="4" align="left" class="label"><img src="images/Screenshot_2.jpg" width="100%" /></td> </tr> <tr> <td width="14%" align="left" class="label">Map Url<?=$required?></td> <td width="1%" align="center">:</td> <td width="85%" align="left"> <textarea name="map" required="" cols="80" rows="4"><?=$h_data[0]['map_url']?></textarea> </td> </tr> <tr> <td colspan="4" align="left" class="label"><img src="images/Screenshot_3.jpg" width="100%" /></td> </tr> <tr> <td colspan="3" align="center"> <p> <input type="submit" value="Update" class="button" name="update_tc" /> </p> </td> </tr> </table> </form> </div>