echo utf8_encode($comment_id); exit; } elseif ($_POST['me_action'] == 'SAVETEXTALERT') { $text_alert = tep_db_prepare_input(utf8_decode($_POST['text_alert'])); $result = $class_jcs->updateCustomer($jng_sp_customers_id, 'text_alert', $text_alert); exit; } elseif ($_POST['me_action'] == 'CHANGELISTTYPE') { $new_type = tep_db_prepare_input(utf8_decode($_POST['new_type'])); $result = $class_jcs->updateCustomer($jng_sp_customers_id, 'list_type', $new_type); exit; } } //START TEMPLATE $customer = $class_jcust->retrieveDetail($jng_sp_customers_id); $sp_detail = $class_sp->retrieveDetail($customer['jng_sp_id']); $total_orders = $class_jcust->retrieveTotalOrders($jng_sp_customers_id); $total_products_ordered = $class_jcust->retrieveTotalProductsOrdered($jng_sp_customers_id); $typeimg = $class_jcs->getTypeSymbol($detail['list_type']); $typename = $class_jcs->getTypeName($detail['list_type']); $content = ''; $content .= '<div style="float:left;width:330px;">'; $content .= '<table border="0" cellpadding="0" cellspacing="0">'; $content .= '<tr><td colspan="2"><h2 style="margin:0;"><a href="?open=sp-customer&id=' . $jng_sp_customers_id . '" title="View Customer Detail">' . $customer['customer_firstname'] . ' ' . $customer['customer_lastname'] . '</a></h2></td></tr>'; //$content .= '<tr><td width="110">Partner</td><td>'.$sp_detail['name'].'</td></tr>'; //$content .= '<tr><td width="110">Email Address</td><td>'.$customer['customer_email'].'</td></tr>'; $content .= '<tr><td colspan="2"><div id="btn-mover">'; if ($detail['list_type'] == 'N') { $content .= '<input type="button" class="red" name="B" Value="Add to Blacklist" title="Add Customer to Blacklist" />'; $content .= '<input type="button" class="red" name="V" Value="Upgrade as VIP" title="Upgrade Customer as VIP" />'; } else { $content .= '<input type="button" class="red" name="N" Value="Remove ' . $typename . ' Status" title="Remove customer from ' . $typename . '" />';