<?php

/* FIRESHOP: Advanced Content Market System                         */

/* ============================================                         */

/*                                                                      */

/* Copyright (c) 2012 by Mohamad Porhaji                                */

/* http://Firedesign.ir                                                   */

/*                                                                      */

/* This program is free software.  */

/************************************************************************/

/* $Id: view_static_page_del.php,v 1.0.0.1 2012/02/18 By Mohamad Porhaji $ */

if (stristr(htmlentities($_SERVER["PHP_SELF"]), "view_static_page_del.php")) {
    Header("Location: index.php");
    die();
}

if(isset($_POST['static_view'])){$id=$_POST['id'];
$datasql = $db->sql_query("SELECT * FROM fireshop_static  WHERE `id` ='$id' ") or die(mysql_error());
$mydata = $db->sql_fetchrow($datasql); $static_id  	= $mydata['id'];$static_title  	= $mydata['title'];$static_des  	= $mydata['des'];$static_date 	= $mydata['date'];$is_system 	= $mydata['is_system'];
echo"<div dir='rtl' align='right' style='padding:10px;'>$static_title <br/>$static_des<br/><br/>
$static_date  |  <a href='static.php?id=$page_id'>لينك مستقيم صفحه </a><br/><br/>";
if($is_system==0){echo"
<form style='float:right;' action=\"admin.php?do=static_page_del\" method=\"post\"><input  type='hidden' size='10' name='id'  value='$static_id'/><input  type='submit' name='static_del' value='حذف'/></form>";}else{}

echo"<form style='float:right;' action='admin.php?do=static_page' method='post'>
<input  type='hidden' size='50' name='id'  value='$static_id'/>
<input  type='submit' name='static_edit' value='ويرايش صفحه'/></form></div>";}else{echo"ورودي نامعتبر است";}
?>