ZenCart_Documentation  1.5.0
http://www.collinsharper.com
C:/xampp/htdocs/zen-cart/admin/index.php File Reference

Go to the source code of this file.

Namespaces

namespace  admin

Variables

 $version_check_index = true
 $languages = zen_get_languages()
 $languages_array = array()
 $languages_selected = DEFAULT_LANGUAGE
 for ($i=0, $n=sizeof($languages);$i< $n;$i++)
 $customers = $db->Execute("select count(*) as count from " . TABLE_CUSTOMERS)
 $products = $db->Execute("select count(*) as count from " . TABLE_PRODUCTS . " where products_status = '1'")
 $products_off = $db->Execute("select count(*) as count from " . TABLE_PRODUCTS . " where products_status = '0'")
 $reviews = $db->Execute("select count(*) as count from " . TABLE_REVIEWS)
 $reviews_pending = $db->Execute("select count(*) as count from " . TABLE_REVIEWS . " where status='0'")
 $newsletters = $db->Execute("select count(*) as count from " . TABLE_CUSTOMERS . " where customers_newsletter = '1'")
 $counter_query = "select startdate, counter from " . TABLE_COUNTER
 $counter = $db->Execute($counter_query)
 $counter_startdate = $counter->fields['startdate']
 $counter_startdate_formatted = strftime(DATE_FORMAT_SHORT, mktime(0, 0, 0, substr($counter_startdate, 4, 2), substr($counter_startdate, -2), substr($counter_startdate, 0, 4)))
 $specials = $db->Execute("select count(*) as count from " . TABLE_SPECIALS . " where status= '0'")
 $specials_act = $db->Execute("select count(*) as count from " . TABLE_SPECIALS . " where status= '1'")
 $featured = $db->Execute("select count(*) as count from " . TABLE_FEATURED . " where status= '0'")
 $featured_act = $db->Execute("select count(*) as count from " . TABLE_FEATURED . " where status= '1'")
 $salemaker = $db->Execute("select count(*) as count from " . TABLE_SALEMAKER_SALES . " where sale_status = '0'")
 $salemaker_act = $db->Execute("select count(*) as count from " . TABLE_SALEMAKER_SALES . " where sale_status = '1'")
 if (REVIEWS_APPROVAL=='1')
 $orders_contents = ''
 $orders_status = $db->Execute("select orders_status_name, orders_status_id from " . TABLE_ORDERS_STATUS . " where language_id = '" . $_SESSION['languages_id'] . "'")
 while (!$orders_status->EOF)
 $orders = $db->Execute("select o.orders_id as orders_id, o.customers_name as customers_name, o.customers_id, o.date_purchased as date_purchased, o.currency, o.currency_value, ot.class, ot.text as order_total from " . TABLE_ORDERS . " o left join " . TABLE_ORDERS_TOTAL . " ot on (o.orders_id = ot.orders_id and class = 'ot_total') order by orders_id DESC limit 5")

Variable Documentation

$counter = $db->Execute($counter_query)

Definition at line 64 of file index.php.

while (!$customers->EOF) $counter_query = "select startdate, counter from " . TABLE_COUNTER

Definition at line 63 of file index.php.

$counter_startdate = $counter->fields['startdate']

Definition at line 65 of file index.php.

$counter_startdate_formatted = strftime(DATE_FORMAT_SHORT, mktime(0, 0, 0, substr($counter_startdate, 4, 2), substr($counter_startdate, -2), substr($counter_startdate, 0, 4)))

Definition at line 67 of file index.php.

$customers = $db->Execute("select count(*) as count from " . TABLE_CUSTOMERS)

Definition at line 52 of file index.php.

$featured = $db->Execute("select count(*) as count from " . TABLE_FEATURED . " where status= '0'")

Definition at line 71 of file index.php.

$featured_act = $db->Execute("select count(*) as count from " . TABLE_FEATURED . " where status= '1'")

Definition at line 72 of file index.php.

$languages = zen_get_languages()

Definition at line 12 of file index.php.

$languages_array = array()

Definition at line 13 of file index.php.

$languages_selected = DEFAULT_LANGUAGE

Definition at line 14 of file index.php.

$newsletters = $db->Execute("select count(*) as count from " . TABLE_CUSTOMERS . " where customers_newsletter = '1'")

Definition at line 61 of file index.php.

$orders = $db->Execute("select o.orders_id as orders_id, o.customers_name as customers_name, o.customers_id, o.date_purchased as date_purchased, o.currency, o.currency_value, ot.class, ot.text as order_total from " . TABLE_ORDERS . " o left join " . TABLE_ORDERS_TOTAL . " ot on (o.orders_id = ot.orders_id and class = 'ot_total') order by orders_id DESC limit 5")

Definition at line 155 of file index.php.

$orders_contents = ''

Definition at line 104 of file index.php.

$orders_status = $db->Execute("select orders_status_name, orders_status_id from " . TABLE_ORDERS_STATUS . " where language_id = '" . $_SESSION['languages_id'] . "'")

Definition at line 105 of file index.php.

$products = $db->Execute("select count(*) as count from " . TABLE_PRODUCTS . " where products_status = '1'")

Definition at line 54 of file index.php.

$products_off = $db->Execute("select count(*) as count from " . TABLE_PRODUCTS . " where products_status = '0'")

Definition at line 56 of file index.php.

$reviews = $db->Execute("select count(*) as count from " . TABLE_REVIEWS)

Definition at line 58 of file index.php.

$reviews_pending = $db->Execute("select count(*) as count from " . TABLE_REVIEWS . " where status='0'")

Definition at line 59 of file index.php.

$salemaker = $db->Execute("select count(*) as count from " . TABLE_SALEMAKER_SALES . " where sale_status = '0'")

Definition at line 73 of file index.php.

$salemaker_act = $db->Execute("select count(*) as count from " . TABLE_SALEMAKER_SALES . " where sale_status = '1'")

Definition at line 74 of file index.php.

$specials = $db->Execute("select count(*) as count from " . TABLE_SPECIALS . " where status= '0'")

Definition at line 69 of file index.php.

$specials_act = $db->Execute("select count(*) as count from " . TABLE_SPECIALS . " where status= '1'")

Definition at line 70 of file index.php.

$version_check_index = true

Definition at line 9 of file index.php.

for($i=0, $n=sizeof($languages);$i< $n;$i++)

Definition at line 15 of file index.php.

if(REVIEWS_APPROVAL=='1')

Definition at line 88 of file index.php.

while(!$orders->EOF)

Definition at line 107 of file index.php.

 All Data Structures Namespaces Files Functions Variables Enumerations