:: **Zploit** v1.0 | Current Path: **/home/bbbncs7/amtechint.com/admin/**
:: Editing File: edit_content.php
<?php include "param.php"; include "func.php"; include "chk_login.php"; ?> <html> <head> <title><?=$web_title?></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link href="style.css" rel="stylesheet" type="text/css"> <script type="text/javascript" src="chk_frm.js"></script> <script language="JavaScript"> function chk_form() { if (checkempty(document.frm_add.pname,":.. Please enter Page Name.:")==false) return false; return true; } </script> <script src="//cdn.ckeditor.com/4.7.3/full/ckeditor.js"></script> </head> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="21" align="center" valign="top"><?php include("top_cp.php"); ?></td> </tr> <tr> <td align="center" valign="top"><table width="990" height="100%" border="0" cellpadding="0" cellspacing="0" class="base"> <tr> <td height="2" colspan="2"><img src="imgs/cp/spacer.gif" width="8" height="8"></td> </tr> <tr> <td width="190" valign="top"><?php include("left_cp.php"); ?></td> <td width="800" valign="top"><table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="681" height="29" background="imgs/cp/menu_cat_bg.jpg" class="left_menu_head" style="padding:4px;"><a href="home.php" class="left_menu_head">Home</a> | Content Pages</td> <td width="119" align="right" background="imgs/cp/menu_cat_bg.jpg" class="left_menu_head" style="padding:4px;"><a href="content.php" class="btn">Back</a></td> </tr> <tr> <td colspan="2"><div id="new" style="display:block"> <table width="800" border="0" cellpadding="4" cellspacing="0" class="base"> <form action="content_process.php" method="post" enctype="multipart/form-data" name="frm_add" onSubmit="javascript:return chk_form();"> <input type="hidden" name="sub_mit" value="Y"> <input type="hidden" name="LVL" value="1"> <input type="hidden" name="C_TYPE" value="EDIT"> <input type="hidden" name="mid" value="<?=ch_lvl('mid')?>"> <?php $QRY = qry_run("select * from tbl_contents WHERE mainid = ".ch_lvl('mid').""); if (num_rec($QRY) > 0) { $rs = fetch_rec($QRY); ?> <tr align="left"> <td height="29" colspan="4" background="imgs/cp/menu_bg.jpg"><strong>Update Page</strong></td> </tr> <tr> <td width="102" height="25" align="right">Page Name:</td> <td><input name="pname" type="text" class="txt_id" id="pname" value="<?=$rs['pname']?>" size="40" maxlength="100"></td> <td align="right">Publish:</td> <td><input name="pshow" type="checkbox" id="pshow" value="Yes"<?php if ($rs['pshow'] == "Yes"){ ?> checked<?php }?>></td> </tr> <tr> <td height="25" align="right">Page Type:</td> <td colspan="3"><select name="ptype" class="txt_id" id="ptype"> <option value="Normal Page"<?php if ($rs['ptype'] == "Normal Page"){ ?> selected<?php }?>>Normal Page</option> <option value="Home Page"<?php if ($rs['ptype'] == "Home Page"){ ?> selected<?php }?>>Home Page</option> <option value="URL Link"<?php if ($rs['ptype'] == "URL Link"){ ?> selected<?php }?>>URL Link</option> <option value="RSS Feed"<?php if ($rs['ptype'] == "RSS Feed"){ ?> selected<?php }?>>RSS Feed</option> <option value="Email Link"<?php if ($rs['ptype'] == "Email Link"){ ?> selected<?php }?>>Email Link</option> <option value="Special Services"<?php if ($rs['ptype'] == "Special Services"){ ?> selected<?php }?>>Special Services</option> </select></td> </tr> <tr> <td height="25" align="right">If Link:</td> <td colspan="3"><input name="plink" type="text" class="txt_id" id="plink" value="<?=$rs['plink']?>" style="width:100%;"></td> </tr> <tr> <td height="25" align="right" valign="top">Page Detail:</td> <td height="250" colspan="3" valign="top"> <textarea name="pdetail" id="pdetail"><?=$rs['pdetail']?></textarea> <script> CKEDITOR.replace( 'pdetail' ); </script> </td> </tr> <tr> <td>Video ID:</td> <td><input name="video_1" type="text" class="txt_id" id="video_1" value="<?=$rs['video_1']?>" style="width:100%;"></td> <td>Video ID:</td> <td><input name="video_2" type="text" class="txt_id" id="video_2" value="<?=$rs['video_2']?>" style="width:100%;"></td> </tr> <tr> <input type="hidden" name="imgs1" value="<?=$rs['img1']?>"> <input type="hidden" name="imgs2" value="<?=$rs['img2']?>"> <td height="25" align="right">Page Image:</td> <td width="291"><input name="img1" type="file" class="txt_id" id="img1"></td> <td width="86" align="right">Thumbnail:</td> <td width="289"><input name="img2" type="file" class="txt_id" id="img2"></td> </tr> <tr> <td height="25" align="right"> </td> <td><input type="checkbox" name="del_img1" id="del_img1" value="Yes"> <label for="del_img1">Remove Page Images</label></td> <td align="right"> </td> <td><input type="checkbox" name="del_img2" id="del_img2" value="Yes"> <label for="del_img2">Remove Thumbnail Images</label></td> </tr> <tr align="left" bgcolor="#F8FCFF"> <td height="25" colspan="4"><strong>SEO Detail</strong></td> </tr> <tr> <td height="25" align="right">Page Heading:</td> <td colspan="3"><input name="phead" type="text" class="txt_id" id="phead" value="<?=$rs['phead']?>" size="40" maxlength="100"></td> </tr> <tr> <td height="25" align="right">Keywords:</td> <td colspan="3"><input name="keywords" type="text" class="txt_id" id="keywords" value="<?=$rs['keywords']?>" style="width:100%;"></td> </tr> <tr> <td height="25" align="right">Description:</td> <td colspan="3"><input name="description" type="text" class="txt_id" id="description" value="<?=$rs['description']?>" style="width:100%;"></td> </tr> <tr> <td height="25" align="right"> </td> <td colspan="3"><input name="Submit" type="submit" class="btn" value="Submit"> <input name="Submit2" type="button" class="btn" value="Cancel" onClick="javascript:history.go(-1);"></td> </tr> <?php }?> </form> </table> </div></td> </tr> </table></td> </tr> <tr> <td height="2" colspan="2"><img src="imgs/cp/spacer.gif" width="8" height="8"></td> </tr> </table></td> </tr> <tr> <td height="29" align="center" background="imgs/cp/btm_bg22.jpg"><?php include("btm_cp.php"); ?></td> </tr> </table> </body> </html>