<?php

/* FIRESHOP: Advanced Content Market System                         */

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

/*                                                                      */

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

/* http://Firedesign.ir                                                   */

/*                                                                      */

/* This program is free software.  */

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

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

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


echo"<table dir=\"rtl\" style=\"width: 670px;border: 1px solid #C0C0C0\"><tr>
<td style=\"width: 48px; border-left-style: solid; border-left-width: 1px; border-left-color: #C0C0C0;\">آيدي</td>
<td style=\"width: 400px; border-left-style: solid; border-left-width: 1px; border-left-color: #C0C0C0;\">عنوان</td>
<td style=\"width: 80px; border-left-style: solid; border-left-width: 1px; border-left-color: #C0C0C0;\">وضعيت</td>
<td style=\"width: 206px\">اختيارات</td></tr>";

$datasql = $db->sql_query("SELECT * FROM fireshop_pay where `is_view` > 0 ORDER BY `time_stamp` DESC");
while ($mydata = $db->sql_fetchrow($datasql)) {

$id  	= $mydata['id'];
$is_app  	= $mydata['status'];

if($is_app==0){$is_app="منتظر تاييد";}
if($is_app==1){$is_app="تاييد شده ";}
if($is_app==2){$is_app="مورد تاييد نيست";}


echo"<tr>
<td style=\"width: 48px; border-left-style: solid; border-left-width: 1px; border-left-color: #C0C0C0;border-top-style: solid; border-top-width: 1px; border-top-color: #C0C0C0;\">$id</td>
<td style=\"width: 400px; border-left-style: solid; border-left-width: 1px; border-left-color: #C0C0C0;border-top-style: solid; border-top-width: 1px; border-top-color: #C0C0C0;\">پرداختي شماره ي $id</td>
<td style=\"width: 80px; border-left-style: solid; border-left-width: 1px; border-left-color: #C0C0C0;border-top-style: solid; border-top-width: 1px; border-top-color: #C0C0C0;\">$is_app</td>
<td style=\"width: 226px;border-top-style: solid; border-top-width: 1px; border-top-color: #C0C0C0;\">
<form style='float:right;' action=\"admin.php?do=del_pay\" method=\"post\">
<input  type='hidden' size='10' name='id'  value='$id'/>
<input  type='submit' name='del_pay' value='حذف'/></form>
<form style='float:right;' action=\"admin.php?do=view_pay\" method=\"post\">
<input  type='hidden' size='10' name='id'  value='$id'/>
<input  type='submit' name='view_pay' value='مشاهده و تغيير وضعيت'/></form>
<div class=\"clear\"></div>
</td></tr>";}echo"</table>";


?>