0byt3m1n1
Path:
/
data
/
17
/
1
/
18
/
11
/
1670011
/
user
/
1801231
/
htdocs
/
metalsheetfabrication
/
admin
/
pages
/
[
Home
]
File: edit_contact_ca.php
<? if($_POST['Submit']=="Submit") { echo $q_update="update `tbl_pages` set `description`='".filter_var(trim($_POST['content']), FILTER_SANITIZE_STRING)."' where `page_name`='Contact_ca'"; $r_update=mysql_query($q_update); if($r_update) { ?> <script language="javascript" type="text/javascript"> window.location='index.php?page=edit_contact_ca&&status=updated'; </script> <? } } if($_GET['status']=='updated') { echo "Canada Contact page Updated."; exit(); } $q="select * from `tbl_pages` where `page_name`='Contact_ca'"; $r=mysql_query($q); $row=mysql_fetch_array($r); ?> <table width="750" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"><form name="form1" method="post" action=""> <table width="750" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"> <?php include("fckeditor/fckeditor.php") ; ob_start(); $oFCKeditor = new FCKeditor('content') ; $oFCKeditor->BasePath = 'fckeditor/' ; $oFCKeditor->Height = 500 ; $oFCKeditor->Width = "90%" ; $contents=$row['description']; $oFCKeditor->Value= $contents ; $oFCKeditor->Create() ; $out1 = ob_get_contents(); ob_end_clean(); echo $out1; ?> </td> </tr> <tr> <td align="center" valign="top"> </td> </tr> <tr> <td align="center" valign="top"><label> <input type="submit" name="Submit" id="Submit" value="Submit"> </label></td> </tr> </table> </form> </td> </tr> </table>