[TEP-COMMIT] [CVS admin] udpate to the new template structure / standards updates
hpdl-OfajU3CKLf1/[email protected] 15 Aug 2004 18:13:24 -0000
| Newsgroups | gmane.comp.web.oscommerce.cvs |
|---|---|
| Message-ID | <[email protected]> |
Commit in admin/admin on MAIN
whos_online.php +4 -193 1.37 -> 1.38
includes/languages/english/whos_online.php +16 -6 1.5 -> 1.6
includes/languages/espanol/whos_online.php +14 -6 1.6 -> 1.7
includes/languages/german/whos_online.php +14 -6 1.7 -> 1.8
templates/pages/whos_online.php +228 added 1.1
+276 -211
1 added + 4 modified, total 5 files
udpate to the new template structure / standards updates
----------
admin /admin
whos_online.php 1.37 -> 1.38
diff -u -r1.37 -r1.38
--- whos_online.php 2004/07/22 23:33:00 1.37
+++ whos_online.php 2004/08/15 18:13:19 1.38
@@ -10,204 +10,15 @@
Released under the GNU General Public License
*/
- $xx_mins_ago = (time() - 900);
-
require('includes/application_top.php');
$selected_box = 'tools';
- require(DIR_WS_CLASSES . 'currencies.php');
- $currencies = new currencies();
+ $action = (isset($_GET['action']) ? $_GET['action'] : '');
-// remove entries that have expired
- tep_db_query("delete from " . TABLE_WHOS_ONLINE . " where time_last_click < '" . $xx_mins_ago . "'");
-?>
-<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html <?php echo HTML_PARAMS; ?>>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
-<title><?php echo TITLE; ?></title>
-<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
-<script language="javascript" src="includes/general.js"></script>
-</head>
-<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">
-<!-- header //-->
-<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
-<!-- header_eof //-->
+ $page_contents = 'whos_online.php';
-<!-- body //-->
-<table border="0" width="100%" cellspacing="2" cellpadding="2">
- <tr>
- <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft">
-<!-- left_navigation //-->
-<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
-<!-- left_navigation_eof //-->
- </table></td>
-<!-- body_text //-->
- <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
- <tr>
- <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
- <tr>
- <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
- <td class="pageHeading" align="right"><?php echo tep_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
- </tr>
- </table></td>
- </tr>
- <tr>
- <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
- <tr>
- <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
- <tr class="dataTableHeadingRow">
- <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_ONLINE; ?></td>
- <td class="dataTableHeadingContent" align="center"><?php echo TABLE_HEADING_CUSTOMER_ID; ?></td>
- <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_FULL_NAME; ?></td>
- <td class="dataTableHeadingContent" align="center"><?php echo TABLE_HEADING_IP_ADDRESS; ?></td>
- <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_ENTRY_TIME; ?></td>
- <td class="dataTableHeadingContent" align="center"><?php echo TABLE_HEADING_LAST_CLICK; ?></td>
- <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_LAST_PAGE_URL; ?> </td>
- </tr>
-<?php
- $whos_online_query = tep_db_query("select customer_id, full_name, ip_address, time_entry, time_last_click, last_page_url, session_id from " . TABLE_WHOS_ONLINE);
- while ($whos_online = tep_db_fetch_array($whos_online_query)) {
- $time_online = (time() - $whos_online['time_entry']);
- if ((!isset($HTTP_GET_VARS['info']) || (isset($HTTP_GET_VARS['info']) && ($HTTP_GET_VARS['info'] == $whos_online['session_id']))) && !isset($info)) {
- $info = $whos_online['session_id'];
- }
+ require('templates/default.php');
- if ($whos_online['session_id'] == $info) {
- echo ' <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">' . "\n";
- } else {
- echo ' <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . tep_href_link(FILENAME_WHOS_ONLINE, tep_get_all_get_params(array('info', 'action')) . 'info=' . $whos_online['session_id'], 'NONSSL') . '\'">' . "\n";
- }
-?>
- <td class="dataTableContent"><?php echo gmdate('H:i:s', $time_online); ?></td>
- <td class="dataTableContent" align="center"><?php echo $whos_online['customer_id']; ?></td>
- <td class="dataTableContent"><?php echo $whos_online['full_name']; ?></td>
- <td class="dataTableContent" align="center"><?php echo $whos_online['ip_address']; ?></td>
- <td class="dataTableContent"><?php echo date('H:i:s', $whos_online['time_entry']); ?></td>
- <td class="dataTableContent" align="center"><?php echo date('H:i:s', $whos_online['time_last_click']); ?></td>
- <td class="dataTableContent"><?php if (eregi('^(.*)' . tep_session_name() . '=[a-f,0-9]+[&]*(.*)', $whos_online['last_page_url'], $array)) { echo $array[1] . $array[2]; } else { echo $whos_online['last_page_url']; } ?> </td>
- </tr>
-<?php
- }
+ require('includes/application_bottom.php');
?>
- <tr>
- <td class="smallText" colspan="7"><?php echo sprintf(TEXT_NUMBER_OF_CUSTOMERS, tep_db_num_rows($whos_online_query)); ?></td>
- </tr>
- </table></td>
-<?php
- $heading = array();
- $contents = array();
-
- if (isset($info)) {
- $heading[] = array('text' => '<b>' . TABLE_HEADING_SHOPPING_CART . '</b>');
-
- if (STORE_SESSIONS == 'mysql') {
- $session_data = tep_db_query("select value from " . TABLE_SESSIONS . " WHERE sesskey = '" . $info . "'");
- $session_data = tep_db_fetch_array($session_data);
- $session_data = trim($session_data['value']);
- } else {
- if ( (file_exists(tep_session_save_path() . '/sess_' . $info)) && (filesize(tep_session_save_path() . '/sess_' . $info) > 0) ) {
- $session_data = file(tep_session_save_path() . '/sess_' . $info);
- $session_data = trim(implode('', $session_data));
- }
- }
-
- if ($length = strlen($session_data)) {
- $start_id = strpos($session_data, 'osC_Customer|O');
- $start_cart = strpos($session_data, 'cart|O');
- $start_currency = strpos($session_data, 'currency|s');
-
-// set the customer class from the customers session
- if ($start_id !== false) {
- for ($i=$start_id; $i<$length; $i++) {
- if ($session_data[$i] == '{') {
- if (isset($tag)) {
- $tag++;
- } else {
- $tag = 1;
- }
- } elseif ($session_data[$i] == '}') {
- $tag--;
- } elseif ( (isset($tag)) && ($tag < 1) ) {
- break;
- }
- }
-
- $session_data_id = substr($session_data, $start_id, $i - $start_id);
- include(DIR_FS_CATALOG . 'includes/classes/customer.php');
- session_decode($session_data_id);
- $customer_id = $osC_Customer->id;
- $country_id = $osC_Customer->country_id;
- $zone_id = $osC_Customer->zone_id;
- }
-
-// set the shopping cart from the customers session
- if ($start_cart !== false) {
- if (isset($tag)) unset($tag);
-
- for ($i=$start_cart; $i<$length; $i++) {
- if ($session_data[$i] == '{') {
- if (isset($tag)) {
- $tag++;
- } else {
- $tag = 1;
- }
- } elseif ($session_data[$i] == '}') {
- $tag--;
- } elseif ( (isset($tag)) && ($tag < 1) ) {
- break;
- }
- }
-
- $session_data_cart = substr($session_data, $start_cart, $i - $start_cart);
- session_decode($session_data_cart);
- }
-
-// set the currency from the customers session
- if ($start_currency !== false) {
- $session_data_currency = substr($session_data, $start_currency, (strpos($session_data, ';', $start_currency) - $start_currency + 1));
- session_decode($session_data_currency);
- }
-
- if (is_object($cart)) {
- $products = $cart->get_products();
- for ($i = 0, $n = sizeof($products); $i < $n; $i++) {
- $contents[] = array('text' => $products[$i]['quantity'] . ' x ' . $products[$i]['name']);
- }
-
- if (sizeof($products) > 0) {
- $contents[] = array('text' => tep_draw_separator('pixel_black.gif', '100%', '1'));
- $contents[] = array('align' => 'right', 'text' => TEXT_SHOPPING_CART_SUBTOTAL . ' ' . $currencies->format($cart->show_total(), true, $currency));
- } else {
- $contents[] = array('text' => ' ');
- }
- }
- }
- }
-
- if ( (tep_not_null($heading)) && (tep_not_null($contents)) ) {
- echo ' <td width="25%" valign="top">' . "\n";
-
- $box = new box;
- echo $box->infoBox($heading, $contents);
-
- echo ' </td>' . "\n";
- }
-?>
- </tr>
- </table></td>
- </tr>
- </table></td>
-<!-- body_text_eof //-->
- </tr>
-</table>
-<!-- body_eof //-->
-
-<!-- footer //-->
-<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
-<!-- footer_eof //-->
-<br>
-</body>
-</html>
-<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
----------
admin /admin /includes /languages /english
whos_online.php 1.5 -> 1.6
diff -u -r1.5 -r1.6
--- whos_online.php 2002/03/30 15:48:55 1.5
+++ whos_online.php 2004/08/15 18:13:20 1.6
@@ -5,7 +5,7 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
- Copyright (c) 2002 osCommerce
+ Copyright (c) 2004 osCommerce
Released under the GNU General Public License
*/
@@ -16,11 +16,21 @@
define('TABLE_HEADING_CUSTOMER_ID', 'ID');
define('TABLE_HEADING_FULL_NAME', 'Full Name');
define('TABLE_HEADING_IP_ADDRESS', 'IP Address');
-define('TABLE_HEADING_ENTRY_TIME', 'Entry Time');
define('TABLE_HEADING_LAST_CLICK', 'Last Click');
define('TABLE_HEADING_LAST_PAGE_URL', 'Last URL');
+define('TABLE_HEADING_SHOPPING_CART_TOTAL', 'Total');
define('TABLE_HEADING_ACTION', 'Action');
-define('TABLE_HEADING_SHOPPING_CART', 'Users Shopping Cart');
-define('TEXT_SHOPPING_CART_SUBTOTAL', 'Subtotal');
-define('TEXT_NUMBER_OF_CUSTOMERS', 'Currently there are %s customers online');
-?>
\ No newline at end of file
+
+define('TEXT_SESSION_ID', 'Session ID:');
+define('TEXT_TIME_ONLINE', 'Time Online:');
+define('TEXT_CUSTOMER_ID', 'Customer ID:');
+define('TEXT_CUSTOMER_NAME', 'Customer Name:');
+define('TEXT_IP_ADDRESS', 'IP Address:');
+define('TEXT_ENTRY_TIME', 'Entry Time:');
+define('TEXT_LAST_CLICK', 'Last Click:');
+define('TEXT_LAST_PAGE_URL', 'Last Page URL:');
+define('TEXT_SHOPPING_CART_PRODUCTS', 'Products In Shopping Cart:');
+define('TEXT_SHOPPING_CART_TOTAL', 'Shopping Cart Total:');
+
+define('TEXT_DISPLAY_NUMBER_OF_WHOS_ONLINE', 'There are currently %s customers online');
+?>
----------
admin /admin /includes /languages /espanol
whos_online.php 1.6 -> 1.7
diff -u -r1.6 -r1.7
--- whos_online.php 2003/07/06 20:33:02 1.6
+++ whos_online.php 2004/08/15 18:13:21 1.7
@@ -5,7 +5,7 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
- Copyright (c) 2003 osCommerce
+ Copyright (c) 2004 osCommerce
Released under the GNU General Public License
*/
@@ -16,11 +16,19 @@
define('TABLE_HEADING_CUSTOMER_ID', 'ID');
define('TABLE_HEADING_FULL_NAME', 'Nombre');
define('TABLE_HEADING_IP_ADDRESS', 'Direccion IP');
-define('TABLE_HEADING_ENTRY_TIME', 'Hora Entrada');
define('TABLE_HEADING_LAST_CLICK', 'Ultimo Click');
define('TABLE_HEADING_LAST_PAGE_URL', 'Ultima URL');
+define('TABLE_HEADING_SHOPPING_CART_TOTAL', 'Total');
define('TABLE_HEADING_ACTION', 'Acción');
-define('TABLE_HEADING_SHOPPING_CART', 'Cesta del Usuario');
-define('TEXT_SHOPPING_CART_SUBTOTAL', 'Subtotal');
-define('TEXT_NUMBER_OF_CUSTOMERS', 'Hay actualmente %s clientes en línea');
-?>
\ No newline at end of file
+
+define('TEXT_SESSION_ID', 'Session ID:');
+define('TEXT_TIME_ONLINE', 'Time Online:');
+define('TEXT_CUSTOMER_ID', 'Customer ID:');
+define('TEXT_CUSTOMER_NAME', 'Customer Name:');
+define('TEXT_IP_ADDRESS', 'Direccion IP:');
+define('TEXT_ENTRY_TIME', 'Hora Entrada:');
+define('TEXT_LAST_CLICK', 'Ultimo Click:');
+define('TEXT_LAST_PAGE_URL', 'Ultima URL:');
+
+define('TEXT_DISPLAY_NUMBER_OF_WHOS_ONLINE', 'Hay actualmente %s clientes en l�ea');
+?>
----------
admin /admin /includes /languages /german
whos_online.php 1.7 -> 1.8
diff -u -r1.7 -r1.8
--- whos_online.php 2002/03/30 14:56:01 1.7
+++ whos_online.php 2004/08/15 18:13:21 1.8
@@ -5,7 +5,7 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
- Copyright (c) 2002 osCommerce
+ Copyright (c) 2004 osCommerce
Released under the GNU General Public License
*/
@@ -16,11 +16,19 @@
define('TABLE_HEADING_CUSTOMER_ID', 'ID');
define('TABLE_HEADING_FULL_NAME', 'Name');
define('TABLE_HEADING_IP_ADDRESS', 'IP Adresse');
-define('TABLE_HEADING_ENTRY_TIME', 'Startzeit');
define('TABLE_HEADING_LAST_CLICK', 'Letzter Klick');
define('TABLE_HEADING_LAST_PAGE_URL', 'Letzte URL');
+define('TABLE_HEADING_SHOPPING_CART_TOTAL', 'Insgesamt');
define('TABLE_HEADING_ACTION', 'Aktion');
-define('TABLE_HEADING_SHOPPING_CART', 'Warenkorb');
-define('TEXT_SHOPPING_CART_SUBTOTAL', 'Insgesamt');
-define('TEXT_NUMBER_OF_CUSTOMERS', 'Es sind zur Zeit %s Kunden online');
-?>
\ No newline at end of file
+
+define('TEXT_SESSION_ID', 'Session ID:');
+define('TEXT_TIME_ONLINE', 'Zeit Online:');
+define('TEXT_CUSTOMER_ID', 'Kunden ID:');
+define('TEXT_CUSTOMER_NAME', 'Kundenname:');
+define('TEXT_IP_ADDRESS', 'IP Adresse:');
+define('TEXT_ENTRY_TIME', 'Startzeit:');
+define('TEXT_LAST_CLICK', 'Letzte Klick');
+define('TEXT_LAST_PAGE_URL', 'Letzte URL');
+
+define('TEXT_DISPLAY_NUMBER_OF_WHOS_ONLINE', 'Es gibt zur Zeit %s Kunden online');
+?>
----------
admin /admin /templates /pages
whos_online.php added at 1.1
diff -N whos_online.php
--- /dev/null Sun Aug 15 20:13:21 2004
+++ /tmp/cvsAAA9eaOt0 Sun Aug 15 20:13:22 2004
@@ -0,0 +1,228 @@
+<?php
+/*
+ $Id$
+
+ osCommerce, Open Source E-Commerce Solutions
+ http://www.oscommerce.com
+
+ Copyright (c) 2004 osCommerce
+
+ Released under the GNU General Public License
+*/
+
+ require('../includes/classes/currencies.php');
+ $osC_Currencies = new osC_Currencies();
+
+ require('../includes/classes/tax.php');
+ $osC_Tax = new osC_Tax();
+
+ require('../includes/classes/weight.php');
+ $osC_Weight = new osC_Weight();
+
+ require('../includes/classes/customer.php');
+ require('../includes/classes/navigation_history.php');
+ require('../includes/classes/shopping_cart.php');
+
+ require('includes/classes/ip_locator.php');
+
+ $xx_mins_ago = (time() - 900);
+
+// remove entries that have expired
+ $Qdelete = $osC_Database->query('delete from :table_whos_online where time_last_click < :time_last_click');
+ $Qdelete->bindTable(':table_whos_online', TABLE_WHOS_ONLINE);
+ $Qdelete->bindValue(':time_last_click', $xx_mins_ago);
+ $Qdelete->execute();
+?>
+
+<h1><?php echo HEADING_TITLE; ?></h1>
+
+<div id="infoBox_wDefault" <?php if (!empty($action)) { echo 'style="display: none;"'; } ?>>
+ <table border="0" width="100%" cellspacing="0" cellpadding="2" class="dataTable">
+ <thead>
+ <tr>
+ <th><?php echo TABLE_HEADING_ONLINE; ?></th>
+ <th><?php echo TABLE_HEADING_CUSTOMER_ID; ?></th>
+ <th><?php echo TABLE_HEADING_FULL_NAME; ?></th>
+ <th><?php echo TABLE_HEADING_IP_ADDRESS; ?></th>
+ <th><?php echo TABLE_HEADING_LAST_CLICK; ?></th>
+ <th><?php echo TABLE_HEADING_LAST_PAGE_URL; ?></th>
+ <th><?php echo TABLE_HEADING_SHOPPING_CART_TOTAL; ?></th>
+ <th><?php echo TABLE_HEADING_ACTION; ?></th>
+ </tr>
+ </thead>
+ <tbody>
+<?php
+ $Qwho = $osC_Database->query('select customer_id, full_name, ip_address, time_entry, time_last_click, session_id from :table_whos_online order by time_last_click desc');
+ $Qwho->bindTable(':table_whos_online', TABLE_WHOS_ONLINE);
+ $Qwho->execute();
+
+ while ($Qwho->next()) {
+ if (STORE_SESSIONS == 'mysql') {
+ $session_data = tep_db_query("select value from " . TABLE_SESSIONS . " WHERE sesskey = '" . $Qwho->value('session_id') . "'");
+ $session_data = tep_db_fetch_array($session_data);
+ $session_data = trim($session_data['value']);
+ } else {
+ if ( (file_exists(tep_session_save_path() . '/sess_' . $Qwho->value('session_id'))) && (filesize(tep_session_save_path() . '/sess_' . $Qwho->value('session_id')) > 0) ) {
+ $session_data = trim(file_get_contents(tep_session_save_path() . '/sess_' . $Qwho->value('session_id')));
+ }
+ }
+
+ $osC_Customer = unserialize(tep_get_serialized_variable($session_data, 'osC_Customer', 'object'));
+
+ $navigation = unserialize(tep_get_serialized_variable($session_data, 'navigation', 'object'));
+ $last_page = end($navigation->path);
+
+ $currency = unserialize(tep_get_serialized_variable($session_data, 'currency', 'string'));
+
+ $cart = unserialize(tep_get_serialized_variable($session_data, 'cart', 'object'));
+
+ if (!isset($wInfo) && (!isset($_GET['info']) || (isset($_GET['info']) && ($_GET['info'] == $Qwho->value('session_id'))))) {
+ $wInfo = new objectInfo(array_merge($Qwho->toArray(), array('last_page' => $last_page)));
+ }
+
+ if (isset($wInfo) && ($Qwho->value('session_id') == $wInfo->session_id)) {
+ echo ' <tr class="selected">' . "\n";
+ } else {
+ echo ' <tr onMouseOver="rowOverEffect(this);" onMouseOut="rowOutEffect(this);" onClick="document.location.href=\'' . tep_href_link(FILENAME_WHOS_ONLINE, 'info=' . $Qwho->value('session_id')) . '\';">' . "\n";
+ }
+?>
+ <td><?php echo gmdate('H:i:s', time() - $Qwho->value('time_entry')); ?></td>
+ <td><?php echo $Qwho->value('customer_id'); ?></td>
+ <td><?php echo $Qwho->value('full_name'); ?></td>
+ <td><?php echo $Qwho->value('ip_address'); ?></td>
+ <td><?php echo date('H:i:s', $Qwho->value('time_last_click')); ?></td>
+ <td><?php echo $last_page['page']; ?></td>
+ <td><?php echo $osC_Currencies->format($cart->show_total(), true, $currency); ?></td>
+ <td align="right">
+<?php
+ if (isset($wInfo) && ($Qwho->value('session_id') == $wInfo->session_id)) {
+ echo '<a href="#" onClick="toggleInfoBox(\'wInfo\');">' . tep_image('templates/' . $template . '/images/icons/16x16/info.png', IMAGE_ICON_INFO, '16', '16') . '</a>';
+ } else {
+ echo '<a href="' . tep_href_link(FILENAME_WHOS_ONLINE, 'info=' . $Qwho->value('session_id') . '&action=wInfo') . '">' . tep_image('templates/' . $template . '/images/icons/16x16/info.png', IMAGE_ICON_INFO, '16', '16') . '</a>';
+ }
+?>
+ </td>
+ </tr>
+<?php
+ }
+?>
+ </tbody>
+ </table>
+
+ <p><?php echo sprintf(TEXT_DISPLAY_NUMBER_OF_WHOS_ONLINE, $Qwho->numberOfRows()); ?></p>
+</div>
+
+<?php
+ if (isset($wInfo)) {
+ $osC_IP_Locator = new osC_IP_Locator();
+
+ $last_page_url = $wInfo->last_page['page'];
+
+ if (isset($wInfo->last_page['get']['osCsid'])) {
+ unset($wInfo->last_page['get']['osCsid']);
+ }
+
+ if (sizeof($wInfo->last_page['get']) > 0) {
+ $last_page_url .= '?' . tep_array_to_string($wInfo->last_page['get']);
+ }
+?>
+
+<div id="infoBox_wInfo" <?php if ($action != 'wInfo') { echo 'style="display: none;"'; } ?>>
+ <div class="infoBoxHeading"><?php echo tep_image('templates/' . $template . '/images/icons/16x16/info.png', IMAGE_ICON_INFO, '16', '16') . ' ' . $wInfo->full_name; ?></div>
+ <div class="infoBoxContent">
+ <table border="0" width="100%" cellspacing="0" cellpadding="2">
+ <tr>
+ <td class="smallText" width="40%"><?php echo '<b>' . TEXT_SESSION_ID . '</b>'; ?></td>
+ <td class="smallText" width="60%"><?php echo $wInfo->session_id; ?></td>
+ </tr>
+ <tr>
+ <td class="smallText" colspan="2"> </td>
+ </tr>
+ <tr>
+ <td class="smallText" width="40%"><?php echo '<b>' . TEXT_TIME_ONLINE . '</b>'; ?></td>
+ <td class="smallText" width="60%"><?php echo gmdate('H:i:s', time() - $wInfo->time_entry); ?></td>
+ </tr>
+ <tr>
+ <td class="smallText" colspan="2"> </td>
+ </tr>
+ <tr>
+ <td class="smallText" width="40%"><?php echo '<b>' . TEXT_CUSTOMER_ID . '</b>'; ?></td>
+ <td class="smallText" width="60%"><?php echo $wInfo->customer_id; ?></td>
+ </tr>
+ <tr>
+ <td class="smallText" width="40%"><?php echo '<b>' . TEXT_CUSTOMER_NAME . '</b>'; ?></td>
+ <td class="smallText" width="60%"><?php echo $wInfo->full_name; ?></td>
+ </tr>
+ <tr>
+ <td class="smallText" colspan="2"> </td>
+ </tr>
+ <tr>
+ <td class="smallText" width="40%"><?php echo '<b>' . TEXT_IP_ADDRESS . '</b>'; ?></td>
+ <td class="smallText" width="60%"><?php echo $wInfo->ip_address; ?></td>
+ </tr>
+<?php
+ if ($osC_IP_Locator->isLoaded()) {
+ if (($data = $osC_IP_Locator->getData($wInfo->ip_address)) !== false) {
+ foreach ($data as $entry) {
+ echo ' <tr>' . "\n" .
+ ' <td class="smallText" width="40%"><b>' . $entry['key'] . '</b></td>' . "\n" .
+ ' <td class="smallText" width="60%">' . $entry['value'] . '</td>' . "\n" .
+ ' </tr>' . "\n";
+ }
+ }
+
+ $osC_IP_Locator->unload();
+ }
+?>
+ <tr>
+ <td class="smallText" colspan="2"> </td>
+ </tr>
+ <tr>
+ <td class="smallText" width="40%"><?php echo '<b>' . TEXT_ENTRY_TIME . '</b>'; ?></td>
+ <td class="smallText" width="60%"><?php echo date('H:i:s', $wInfo->time_entry); ?></td>
+ </tr>
+ <tr>
+ <td class="smallText" width="40%"><?php echo '<b>' . TEXT_LAST_CLICK . '</b>'; ?></td>
+ <td class="smallText" width="60%"><?php echo date('H:i:s', $wInfo->time_last_click); ?></td>
+ </tr>
+ <tr>
+ <td class="smallText" width="40%"><?php echo '<b>' . TEXT_LAST_PAGE_URL . '</b>'; ?></td>
+ <td class="smallText" width="60%"><?php echo $last_page_url; ?></td>
+ </tr>
+<?php
+ if (is_object($cart)) {
+ $products = $cart->get_products();
+
+ if (sizeof($products) > 0) {
+ echo ' <tr>' . "\n" .
+ ' <td class="smallText" colspan="2"> </td>' . "\n" .
+ ' </tr>' . "\n" .
+ ' <tr>' . "\n" .
+ ' <td class="smallText" width="40%" valign="top"><b>' . TEXT_SHOPPING_CART_PRODUCTS . '</b></td>' . "\n" .
+ ' <td class="smallText" width="60%"><table border="0" cellspacing="0" cellpadding="2">' . "\n";
+
+ for ($i=0, $n=sizeof($products); $i<$n; $i++) {
+ echo ' <tr>' . "\n" .
+ ' <td class="smallText" align="right">' . $products[$i]['quantity'] . ' x</td>' . "\n" .
+ ' <td class="smallText">' . $products[$i]['name'] . '</td>' . "\n" .
+ ' </tr>' . "\n";
+ }
+
+ echo ' </table></td>' . "\n" .
+ ' </tr>' . "\n" .
+ ' <tr>' . "\n" .
+ ' <td class="smallText" width="40%"><b>' . TEXT_SHOPPING_CART_TOTAL . '</b></td>' . "\n" .
+ ' <td class="smallText" width="60%">' . $osC_Currencies->format($cart->show_total(), true, $currency) . '</td>' . "\n" .
+ ' </tr>' . "\n";
+ }
+ }
+?>
+ </table>
+
+ <p align="center"><?php echo '<input type="button" value="' . IMAGE_BACK . '" onClick="toggleInfoBox(\'wDefault\');" class="operationButton">'; ?></p>
+ </div>
+</div>
+
+<?php
+ }
+?>
CVSspam 0.2.9
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285