<?php

/* FIRESHOP: Advanced Content Market System                         */

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

/*                                                                      */

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

/* http://Firedesign.ir                                                   */

/*                                                                      */

/* This program is free software.  */

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

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

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



global $db,$new_order,$new_pay,$new_contact;

$sql = $db->sql_query("SELECT * FROM fireshop_counter where id=1;");
$row = $db->sql_fetchrow($sql);
$todaycounts  = number_format($row['todaycounts'], 0);
$yescounts  = number_format($row['yescounts'], 0);
$total   = number_format($row['total'], 0);
$month  = number_format($row['month'], 0);
$year  = number_format($row['year'], 0);
$num_product = $db->sql_numrows($db->sql_query("SELECT * FROM fireshop_product "));
$online = $db->sql_numrows($db->sql_query("SELECT * FROM fireshop_onlines "));

echo"
<div align='right' style='padding:10px'>
<table bgcolor=#ffffff width='100%' style='border:1px solid #cccccc'>
<tr>
<td valign='top'>
<img src=\"template/fireshop_default/images/news-bul.jpg\"/> بازديد امروز : $todaycounts<br/>
<img src=\"template/fireshop_default/images/news-bul.jpg\"/> بازديد ديروز : $yescounts <br/>
<img src=\"template/fireshop_default/images/news-bul.jpg\"/> بازديد كل : $total<br/>
<img src=\"template/fireshop_default/images/news-bul.jpg\"/> بازديد اين ماه : $month<br/>
<img src=\"template/fireshop_default/images/news-bul.jpg\"/> تعداد كل محصولات : $num_product<br/>
<img src=\"template/fireshop_default/images/news-bul.jpg\"/> افراد آنلاين : $online<br/>
</td>
<td valign='top'>
سفارشات جديد : <strong>$new_order</strong><br/>
پرداخت هاي جديد : <strong>$new_pay</strong><br/>
تماس هاي خوانده نشده : <strong>$new_contact</strong><br/>
سيستم امنيتي : فعال <br/>
نسخه فروشگاه : 1.0.0.1 نسخه رايگان<br/>
تعداد ماژولهاي فعال سيستم رايگان : 11
</td>
</tr>
</table>
</div>

<div style='padding:10px'>
<table bgcolor=#ffffff width='100%' style='border:1px solid #cccccc'>
<tr>
<td>
<div align='center'>
<div style='float:right;width:80px;padding:5px;text-align:center'><a href=\"admin.php?do=add_product\"><img src=\"img/admin/products.gif\"><br/><center>ارسال محصول جديد</center></a></div>

<div style='float:right;width:80px;padding:5px;text-align:center'><a href=\"admin.php?do=general\"><img src=\"img/admin/preferences.gif\"><br/><center>تنظيمات اصلي فروشگاه</center></a></div>

<div style='float:right;width:80px;padding:5px;text-align:center'><a href=\"admin.php?do=send_news\"><img src=\"img/admin/reviews.gif\" ><br/><center>ارسال خبر جديد</center></a></div>

<div style='float:right;width:80px;padding:5px;text-align:center'><a href=\"admin.php?do=static_page\"><img src=\"img/admin/static.gif\" ><br/><center>مديريت صفحات فروشگاه</center></a></div>

<div style='float:right;width:80px;padding:5px;text-align:center'><a href=\"http://firedesign.ir\"><img   src=\"img/admin/faq.gif\" ><br/><center>راهنماي مديريت فروشگاه</center></a></div>

<div style='float:right;width:80px;padding:5px;text-align:center'><a href=\"http://firedesign.ir/forum\"><img  src=\"img/admin/forums.gif\" ><br/><center>انجمن پشتيباني نرم افزار</center></a></div>

<div style='float:right;width:80px;padding:5px;text-align:center'><a href=\"admin.php?do=loguot\"><img  src=\"img/admin/logout.gif\" ><br/><center>خروج</center></a></div>

<div class='clear'></div></div>

</tr>
</table>
</div>


";

?>