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

Go to the source code of this file.

Namespaces

namespace  admin

Variables

 $currencies = new currencies()
 $_GET ['start_date'] = (!isset($_GET['start_date']) ? date("m-d-Y",(time())) : $_GET['start_date'])
 $_GET ['end_date'] = (!isset($_GET['end_date']) ? date("m-d-Y",(time())) : $_GET['end_date'])
 $_GET ['referral_code'] = (!isset($_GET['referral_code']) ? '0' : $_GET['referral_code'])
 $customers_referral_query = " where customers_referral != ''"
 $customers_referral = $db->Execute($customers_referral_query)
 $customers_referrals = array()
 $customers_referrals_array = array()
 $customers_referrals []
 while (!$customers_referral->EOF)
 $date1 = explode("-", $_GET['start_date'])
 $m1 = $date1[0]
 $d1 = $date1[1]
 $y1 = $date1[2]
 $date2 = explode("-", $_GET['end_date'])
 $m2 = $date2[0]
 $d2 = $date2[1]
 $y2 = $date2[2]
 $sd = $y1 . '-' . $m1 . '-' . $d1 . ' 00:00:00'
 $ed = $y2. '-' . $m2 . '-' . $d2 . ' 23:59:59'
 $customers_orders_query = $db->bindVars($customers_orders_query, ':sd:', $sd, 'date')
 $customers_orders = $db->Execute($customers_orders_query)

Variable Documentation

$_GET['start_date'] = (!isset($_GET['start_date']) ? date("m-d-Y",(time())) : $_GET['start_date'])

Definition at line 14 of file stats_customers_referrals.php.

$_GET['end_date'] = (!isset($_GET['end_date']) ? date("m-d-Y",(time())) : $_GET['end_date'])

Definition at line 15 of file stats_customers_referrals.php.

$_GET['referral_code'] = (!isset($_GET['referral_code']) ? '0' : $_GET['referral_code'])

Definition at line 16 of file stats_customers_referrals.php.

Definition at line 12 of file stats_customers_referrals.php.

$customers_orders = $db->Execute($customers_orders_query)

Definition at line 131 of file stats_customers_referrals.php.

$customers_orders_query = $db->bindVars($customers_orders_query, ':sd:', $sd, 'date')

Definition at line 129 of file stats_customers_referrals.php.

$customers_referral = $db->Execute($customers_referral_query)

Definition at line 64 of file stats_customers_referrals.php.

$customers_referral_query = " where customers_referral != ''"

Definition at line 63 of file stats_customers_referrals.php.

$customers_referrals = array()

Definition at line 66 of file stats_customers_referrals.php.

$customers_referrals[]
Initial value:
 array('id' => '0',
                                 'text' => TEXT_REFERRAL_UNKNOWN)

Definition at line 68 of file stats_customers_referrals.php.

$customers_referrals_array = array()

Definition at line 67 of file stats_customers_referrals.php.

$d1 = $date1[1]

Definition at line 110 of file stats_customers_referrals.php.

$d2 = $date2[1]

Definition at line 115 of file stats_customers_referrals.php.

$date1 = explode("-", $_GET['start_date'])

Definition at line 108 of file stats_customers_referrals.php.

$date2 = explode("-", $_GET['end_date'])

Definition at line 113 of file stats_customers_referrals.php.

$ed = $y2. '-' . $m2 . '-' . $d2 . ' 23:59:59'

Definition at line 119 of file stats_customers_referrals.php.

$m1 = $date1[0]

Definition at line 109 of file stats_customers_referrals.php.

$m2 = $date2[0]

Definition at line 114 of file stats_customers_referrals.php.

$sd = $y1 . '-' . $m1 . '-' . $d1 . ' 00:00:00'

Definition at line 118 of file stats_customers_referrals.php.

$y1 = $date1[2]

Definition at line 111 of file stats_customers_referrals.php.

$y2 = $date2[2]

Definition at line 116 of file stats_customers_referrals.php.

while(!$customers_referral->EOF)

Definition at line 71 of file stats_customers_referrals.php.

 All Data Structures Namespaces Files Functions Variables Enumerations