//START TEMPLATE
$customer = $class_jcust->retrieveDetail($customers_id);
$customer_special = $class_jcs->getCustomerDetail($customers_id);
$order_sl_type = '';
$order_sl_icon = '';
if (!is_null($customer_special)) {
    $crown_img = $class_jcs->getTypeSymbol($customer_special['list_type'], $customers_id);
    $order_sl_icon = $crown_img . ' ';
    $order_sl_type = $class_jcs->getTypeName($customer_special['list_type']);
    if ($order_sl_type != '') {
        $order_sl_type = ' (' . $order_sl_type . ')';
    }
}
$sp_detail = $class_sp->retrieveDetail($customer['jng_sp_id']);
$addresses = $class_jcust->getAddresses($customers_id);
$phones = $class_jcust->getPhones($customers_id);
$fullname = $customer['customer_firstname'];
if ($customer['customer_lastname'] != '') {
    $fullname .= ' ' . $customer['customer_lastname'];
}
$order_count = '1' . '<a href="">(View Order List)</a>';
$formtitle = $fullname;
$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=sp-customer&id=' . $customer['jng_sp_customers_id'] . '" method="post">';
    $form .= '<input type="hidden" name="me_action" value="SETSPECIALLIST" />';
    $form .= '<input type="hidden" name="customer_id" value="' . $customer['jng_sp_customers_id'] . '" />';
    $form .= '<input type="submit" name="submit" value="Upgrade as VIP" />';
    $form .= '<input type="submit" name="submit" value="Add to Blacklist" />';
    $form .= '</form>';