Exemple #1
0
 if ($customer['customers_dob'] == '00.00.0000' || $customer['customers_dob'] == '') {
     $customer['customers_dob'] = 'dd.mm.yyyy';
 }
 $customer_special = $class_csl->getCustomerDetail($customer_id);
 $order_sl_type = '';
 $order_sl_icon = '';
 if (!is_null($customer_special)) {
     $crown_img = $class_csl->getTypeSymbol($customer_special['list_type'], $customer_id);
     $order_sl_icon = $crown_img . ' ';
     $order_sl_type = $class_csl->getTypeName($customer_special['list_type']);
     if ($order_sl_type != '') {
         $order_sl_type = ' (' . $order_sl_type . ')';
     }
 }
 $customer_info = $class_mc->retrieveDetailInfo($customer_id);
 $customer_profile = $class_mc->retrieveProfile($customer_id);
 $customer_addresses_query = tep_db_query("SELECT ab.*, c.countries_name FROM address_book ab LEFT JOIN countries c ON c.countries_id=ab.entry_country_id WHERE ab.customers_id={$customer_id}");
 $customer_addresses = array();
 while ($row = tep_db_fetch_array($customer_addresses_query)) {
     $customer_addresses[] = $row;
 }
 $customer_banktransfer_query = tep_db_query("SELECT * FROM customers_banktransfer WHERE customers_id={$customer_id}");
 $customer_banktransfer = tep_db_fetch_array($customer_banktransfer_query);
 $content = '';
 //LEFT COLUMN
 $form = '';
 $form .= '<div style="margin:10px 0 15px 0;text-align:center;">';
 if (is_null($customer_special)) {
     $form .= '<form name="customer_special_list" action="?open=customer&id=' . $customer_id . '" method="post">';
     $form .= '<input type="hidden" name="me_action" value="SETSPECIALLIST" />';
     $form .= '<input type="hidden" name="customer_id" value="' . $customer_id . '" />';