GIF89a;
Direktori : /home/serb/public_html/admin/ |
Current File : /home/serb/public_html/admin/edit_page.php |
<? include("sessionout.php"); include("../lib/globals.php"); include("../lib/common.php"); include("../lib/functions.php"); require_once('../fckeditor/fckeditor.php'); $id=$_REQUEST['id']; $sb=$_POST["Submit"]; $page=$_GET['page']; $sql="select * from page_content where id='$id'"; $res=execute_query($sql); $fetch=mysql_fetch_array($res); if($sb=="Process") { $page=$_POST['page']; $id=$_REQUEST['id']; $sql="select * from page_content where id='$id'"; $res=execute_query($sql); $fetch=mysql_fetch_array($res); $page_title=addslashes($_POST["page_title"]); $page_key=addslashes($_POST["page_key"]); $page_desc=addslashes($_POST["page_meta_desc"]); $page_name=addslashes($_POST["page_name"]); $page_content=addslashes($_POST["page_Content"]); $insert_sql="update page_content set page_title='$page_title',page_key='$page_key',page_desc='$page_desc',page_name='$page_name',page_content='$page_content' where id='$id'"; execute_query($insert_sql); ?> <script> window.location.href="list_page_content.php?page=<?=$page?>"; </script> <? } ?> <!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> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>:: Escortseries | Admin ::</title> <link href="../style.css" rel="stylesheet" type="text/css" /> <script language="javascript" src="../validator/frm_validator.js"></script> <script> function validate4() { if(frmValidate('f1','page_title','Page Title','YES','')== false) { return false; } if(frmValidate('f1','page_name','Page Name','YES','')== false) { return false; } } </script> </head> <body> <table width="790" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="left" valign="top"><table width="790" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top" class="td1"><table width="790" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="343" align="left" valign="top"> </td> <td width="447" align="left" valign="top"> </td> </tr> <tr> <td height="38" align="right" valign="middle" class="topnav"><p style="margin-left:23px;"><img src="../images/logo.png" alt="" /></p></td> <td align="center" valign="middle" class="footer-link">Administrator Control Panel</td> </tr> </table></td> </tr> <tr> <td align="left" valign="top" class="td2"> </td> </tr> </table></td> </tr> <tr> <td align="center" valign="top" class="td3"><table width="780" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="5"></td> </tr> <tr> <td align="center" valign="top" class="td4"><table width="768" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="6"></td> </tr> <tr> <td align="center" valign="top" class="td5"> </td> </tr> <tr> <td align="center" valign="top" class="td9"><table width="751" border="0" align="center" class="bordermain"> <tr> <td><? include("menu.php");?></td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td align="center"> <form action="<? print $_SERVER['PHP_SELF'];?>" method="post" enctype="multipart/form-data" name="f1" onSubmit="return validate4()" > <table width="735" border="0" align="center" cellspacing="1" class="Table4"> <tr> <td colspan="2" align="center" class="tblHeader2">Edit Page</td> </tr> <tr class="mouseOver"> <td align="right"> </td> <td align="left" > </td> </tr> <tr class="mouseOver"> <td width="22%" align="right"><strong>Page Title:</strong> </td> <td width="78%" align="left"> <input name="page_title" type="text" class="content" id="eng_menu" size="50" value="<?=stripslashes($fetch['page_title'])?>" /> </td> </tr> <tr class="mouseOver"> <td width="22%" align="right"><strong>Page Meta Keyword:</strong> </td> <td width="78%" align="left"> <input name="page_key" type="text" class="content" id="eng_menu" size="50" value="<?=stripslashes($fetch['page_key'])?>" /> </td> </tr> <tr class="mouseOver"> <td width="42%" align="right"><strong>Page Meta Description: </strong></td> <td width="58%" align="left"><input name="page_meta_desc" type="text" class="content" id="page_name" size="50" value="<?=stripslashes($fetch['page_desc'])?>" /></td> </tr> <tr class="mouseOver"> <td width="22%" align="right"><strong>Page Name : </strong></td> <td width="78%" align="left"><input name="page_name" type="text" class="content" id="page_name" size="50" value="<?=stripslashes($fetch['page_name'])?>" /></td> </tr> <tr align="left" class="mouseOver"> <td colspan="2"><strong><br /> Page Description:<br /> </strong></td> </tr> <tr class="mouseOver"> <td colspan="2" align="center"> <?php $sBasePath = "../fckeditor/" ; $oFCKeditor = new FCKeditor('page_Content') ; $oFCKeditor->BasePath = $sBasePath ; $oFCKeditor->CheckBrowser = true ; $oFCKeditor->Height = "350" ; // 250 pixels $oFCKeditor->Width = "725" ; // 250 pixels $oFCKeditor->Value= stripcslashes($fetch['page_content']); $oFCKeditor->Create(); ?> </td> </tr> <tr class="mouseOver"> <td width="22%" align="right"> </td> <td width="78%" align="left"> </td> </tr> <tr class="mouseOver"> <td width="22%" align="right"> </td> <td width="78%" align="left"> </td> </tr> <tr class="mouseOver"> <td align="right"> <input name="Submit" type="submit" class="butn3" value="Process" /> <input type="hidden" name="id" id="id" value="<?=$id?>" /> <input type="hidden" name="page" value="<?=$page;?>" /> </td> <td align="left" > <input name="Submit2" type="reset" class="butn3" value="Reset" /></td> </tr> <tr class="mouseOver"> <td align="right"> </td> <td align="left" > </td> </tr> </table> </form> </td> </tr> </table> </td> </tr> <tr> <td width="232" align="center" valign="top" class="td5"> </td> </tr> <tr> <td height="6"></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td align="center" valign="top" class="td3"><table width="780" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center" valign="top" class="footer-bac"> <p style="text-align:center; padding:35px 0 5px 0px;"><a href="main.php" class="footer-link">Administrator Control Panel </a></p> <p class="footer-text1" style="text-align:center;">Escortseries</p> </td> </tr> </table></td> </tr> </table> </body> </html>