<?php
/* --------------------------------------------------------------
admin.php 2008-09-09 mb
Gambio OHG
http://www.gambio.de
Copyright (c) 2008 Gambio OHG
Released under the GNU General Public License (Version 2)
[http://www.gnu.org/licenses/gpl-2.0.html]
--------------------------------------------------------------
based on:
(c) 2000-2001 The Exchange Project (earlier name of osCommerce)
(c) 2002-2003 osCommercebased on original files from OSCommerce CVS 2.2 2002/08/28 02:14:35 www.oscommerce.com
(c) 2003 nextcommerce (admin.php,v 1.12 2003/08/13); www.nextcommerce.org
(c) 2003 XT-Commerce - community made shopping http://www.xt-commerce.com ($Id: admin.php 1262 2005-09-30 10:00:32Z mz $)
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
// reset var
$box_smarty = new smarty;
$box_content='';
$flag='';
$box_smarty->assign('tpl_path','templates/'.CURRENT_TEMPLATE.'/');
// include needed functions
require_once(DIR_FS_INC . 'xtc_image_button.inc.php');
$orders_contents = '';
$orders_status_validating = xtc_db_num_rows(xtc_db_query("select orders_status from " . TABLE_ORDERS ." where orders_status ='0'"));
$t_url = "'".xtc_href_link_admin(FILENAME_ORDERS, 'SELECTed_box=customers&status=0', 'NONSSL')."'";
$orders_contents .= '<a href="#" onclick="window.open('.$t_url.'); return false;">' . TEXT_VALIDATING . '</a>: ' . $orders_status_validating . '<br />';
$orders_status_query = xtc_db_query("select orders_status_name, orders_status_id from " . TABLE_ORDERS_STATUS . " where language_id = '" . (int)$_SESSION['languages_id'] . "'");
while ($orders_status = xtc_db_fetch_array($orders_status_query)) {
$orders_pending_query = xtc_db_query("select count(*) as count from " . TABLE_ORDERS . " where orders_status = '" . $orders_status['orders_status_id'] . "'");
$orders_pending = xtc_db_fetch_array($orders_pending_query);
$t_url = "'".xtc_href_link_admin(FILENAME_ORDERS, 'selected_box=customers&status=' . $orders_status['orders_status_id'], 'NONSSL')."'";
$orders_contents .= '<a href="#" onclick="window.location.href='.$t_url.'; return false;">' . $orders_status['orders_status_name'] . '</a>: ' . $orders_pending['count'] . '<br />';
}
$orders_contents = substr($orders_contents, 0, -6);
$customers_query = xtc_db_query("select count(*) as count from " . TABLE_CUSTOMERS);
$customers = xtc_db_fetch_array($customers_query);
$products_query = xtc_db_query("select count(*) as count from " . TABLE_PRODUCTS . " where products_status = '1'");
$products = xtc_db_fetch_array($products_query);
$reviews_query = xtc_db_query("select count(*) as count from " . TABLE_REVIEWS);
$reviews = xtc_db_fetch_array($reviews_query);
$t_url = "'".xtc_href_link_admin(FILENAME_START,'', 'NONSSL')."'";
$admin_image = '<a href="#" onclick="window.location.href='.$t_url.'; return false;">'.xtc_image_button('button_admin.gif', IMAGE_BUTTON_ADMIN).'</a>';
if ($product->isProduct()) {
// BOF GM_MOD:
$t_url = "'". xtc_href_link_admin(FILENAME_EDIT_PRODUCTS, 'cPath=' . $cPath . '&pID=' . $product->data['products_id'], 'NONSSL') . '&action=new_product'. "'";
$admin_link='<a href="#" onclick="window.location.href='.$t_url.'; return false;">' . xtc_image_button('edit_product.gif', IMAGE_BUTTON_PRODUCT_EDIT, 'style="margin-top:4px"') . '</a>';
}
$box_content= '<b>' . BOX_TITLE_STATISTICS . '</b><br />' . $orders_contents . '<br />' .
BOX_ENTRY_CUSTOMERS . ' ' . $customers['count'] . '<br />' .
BOX_ENTRY_PRODUCTS . ' ' . $products['count'] . '<br />' .
BOX_ENTRY_REVIEWS . ' ' . $reviews['count'] .'<br />' .
$admin_image . '<br />' .$admin_link;
if ($flag==true) define('SEARCH_ENGINE_FRIENDLY_URLS',true);
$box_smarty->assign('BOX_CONTENT', $box_content);
$box_smarty->caching = 0;
$box_smarty->assign('language', $_SESSION['language']);
$box_admin= $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_admin.html');
$gm_box_pos = $coo_template_control->get_menubox_position('admin');
$smarty->assign($gm_box_pos,$box_admin);
?>| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| add_a_quickie.php | 2013-11-12 21:13 | 2.27 KB | 76129f60960:kunden | -xw-x----- | |
| admin.php | 2013-11-12 21:13 | 4.32 KB | 76129f60960:kunden | -xw-x----- | |
| best_sellers.php | 2013-11-12 21:13 | 4.97 KB | 76129f60960:kunden | -xw-x----- | |
| categories.php | 2013-11-12 21:13 | 2.25 KB | 76129f60960:kunden | -xw-x----- | |
| content.php | 2013-11-12 21:13 | 3.59 KB | 76129f60960:kunden | -xw-x----- | |
| currencies.php | 2013-11-12 21:13 | 2.82 KB | 76129f60960:kunden | -xw-x----- | |
| ekomi.php | 2013-11-12 21:13 | 1.54 KB | 76129f60960:kunden | -xw-x----- | |
| extrabox1.php | 2013-11-12 21:13 | 3.05 KB | 76129f60960:kunden | -xw-x----- | |
| extrabox2.php | 2013-11-12 21:13 | 3.22 KB | 76129f60960:kunden | -xw-x----- | |
| extrabox3.php | 2013-11-12 21:13 | 3.16 KB | 76129f60960:kunden | -xw-x----- | |
| extrabox4.php | 2013-11-12 21:13 | 3.23 KB | 76129f60960:kunden | -xw-x----- | |
| extrabox5.php | 2013-11-12 21:13 | 3.21 KB | 76129f60960:kunden | -xw-x----- | |
| extrabox6.php | 2013-11-12 21:13 | 3.21 KB | 76129f60960:kunden | -xw-x----- | |
| extrabox7.php | 2013-11-12 21:13 | 3.22 KB | 76129f60960:kunden | -xw-x----- | |
| extrabox8.php | 2013-11-12 21:13 | 3.22 KB | 76129f60960:kunden | -xw-x----- | |
| extrabox9.php | 2013-11-12 21:13 | 3.22 KB | 76129f60960:kunden | -xw-x----- | |
| gm_bookmarks.php | 2013-11-12 21:13 | 2.68 KB | 76129f60960:kunden | -xw-x----- | |
| gm_counter.php | 2013-11-12 21:13 | 2.67 KB | 76129f60960:kunden | -xw-x----- | |
| gm_ebay.php | 2013-11-12 21:13 | 2.88 KB | 76129f60960:kunden | -xw-x----- | |
| gm_logo.php | 2013-11-12 21:13 | 1.4 KB | 76129f60960:kunden | -xw-x----- | |
| gm_scroller.php | 2013-11-12 21:13 | 1.61 KB | 76129f60960:kunden | -xw-x----- | |
| gm_topmenu.php | 2013-11-12 21:13 | 4.21 KB | 76129f60960:kunden | -xw-x----- | |
| gm_trusted_shops_widget.php | 2013-11-12 21:13 | 1.53 KB | 76129f60960:kunden | -xw-x----- | |
| index.html | 2013-11-12 21:13 | 13 B | 76129f60960:kunden | -xw-x----- | |
| infobox.php | 2013-11-12 21:13 | 3.22 KB | 76129f60960:kunden | -xw-x----- | |
| information.php | 2013-11-12 21:13 | 3.5 KB | 76129f60960:kunden | -xw-x----- | |
| languages.php | 2013-11-12 21:13 | 2.63 KB | 76129f60960:kunden | -xw-x----- | |
| last_viewed.php | 2013-11-12 21:13 | 5.1 KB | 76129f60960:kunden | -xw-x----- | |
| loginbox.php | 2013-11-12 21:13 | 2.48 KB | 76129f60960:kunden | -xw-x----- | |
| manufacturer_info.php | 2013-11-12 21:13 | 3.26 KB | 76129f60960:kunden | -xw-x----- | |
| manufacturers.php | 2013-11-12 21:13 | 4.28 KB | 76129f60960:kunden | -xw-x----- | |
| newsletter.php | 2013-11-12 21:13 | 2.1 KB | 76129f60960:kunden | -xw-x----- | |
| order_history.php | 2013-11-12 21:13 | 3.6 KB | 76129f60960:kunden | -xw-x----- | |
| paypal.php | 2013-11-12 21:13 | 2.19 KB | 76129f60960:kunden | -xw-x----- | |
| reviews.php | 2013-11-12 21:13 | 4.69 KB | 76129f60960:kunden | -xw-x----- | |
| search.php | 2013-11-12 21:13 | 2.62 KB | 76129f60960:kunden | -xw-x----- | |
| shopping_cart.php | 2013-11-12 21:13 | 5.94 KB | 76129f60960:kunden | -xw-x----- | |
| specials.php | 2013-11-12 21:13 | 3.91 KB | 76129f60960:kunden | -xw-x----- | |
| trusted.php | 2013-11-12 21:13 | 1.93 KB | 76129f60960:kunden | -xw-x----- | |
| whats_new.php | 2013-11-12 21:13 | 5.23 KB | 76129f60960:kunden | -xw-x----- | |
| yoochoose_also_clicked.php | 2013-11-12 21:13 | 2.13 KB | 76129f60960:kunden | -xw-x----- | |
| yoochoose_top_selling.php | 2013-11-12 21:13 | 2.13 KB | 76129f60960:kunden | -xw-x----- | |