} $content .= '<tr><td class="l">Source</td><td>' . ($customer_info['dti_referrers_code'] == '' ? 'julie-grace.de' : '<strong class="red">' . $customer_info['dti_referrers_code'] . '</strong>') . '</td></tr>'; $content .= '<tr><td class="l">Register</td><td>' . date('d.m.Y H:i', strtotime($customer_info['customers_info_date_account_created'])) . '</td></tr>'; $content .= '<tr><td class="l">Last Login</td><td>' . date('d.m.Y H:i', strtotime($customer_info['customers_info_date_of_last_logon'])) . '</td></tr>'; if ($has_orders) { $order_total = number_format($orders['total'], 2, ',', '.'); $customer_name = "{$customer['customers_firstname']} {$customer['customers_lastname']}"; $customer_orders = '<a href="?open=orders&customers_id=' . $customer_id . '" title="View order list of ' . $customer_name . '">'; $customer_orders .= $orders['count'] . ' (' . $order_total . ' EUR)'; $customer_orders .= '</a>'; } else { $customer_orders = 'None'; } $content .= '<tr><td class="l">Order (Total Value)</td><td>' . $customer_orders . '</td></tr>'; $content .= '<tr><td class="l"><strong>Status</strong></td><td><strong>' . $status . '</strong></td></tr>'; $customer_credit = $class_mc->retrieveCredit($customer_id); $customer_credit_text = displayCurrency('EUR', $customer_credit); if ($customer_credit > 0) { $customer_credit_text = '<a href="?open=commissions&id=' . $customer_id . '&hidemenu=true" class="view_webpage" title="View Commission List">' . $customer_credit_text . '</a>'; } $content .= '<tr><td class="l">Credits</td><td>' . $customer_credit_text . '</td></tr>'; if ($customer['customers_referrer_id'] != '') { $referrer_id = $customer['customers_referrer_id']; if ($referrer_id == '1') { $ref_name = 'Not login Invite Friends'; } else { $referrer_query = tep_db_query("SELECT customers_id, CONCAT(customers_firstname,' ',customers_lastname) AS name FROM customers WHERE customers_id={$referrer_id}"); $referrer = tep_db_fetch_array($referrer_query); $ref_name = '<a href="?open=customer&id=' . $referrer_id . '" title="View customer detail">' . $referrer['name'] . '</a>'; } $content .= '<tr><td class="l">Referrer</td><td>' . $ref_name . '</td></tr>';