$content .= '</td></tr>'; //$content .= '<tr><td colspan="2"> </td></tr>'; //$content .= '<tr><td colspan="2"><h3>Order History</h3></td></tr>'; //$total_orders_text = $total_orders['orders'].' Order'; //if($total_orders['orders']>0) { // if($total_orders['orders']>1) $total_orders_text .= 's'; // $total_orders_text = ' <a href="?open=orders&customers_id='.$customers_id.'" title="View list of orders">'.$total_orders_text.'</a>'; //} //$content .= '<tr><td>Total</td><td>'.$total_orders_text.'</td></tr>'; //$content .= '<tr><td>Total Value</td><td>'.displayCurrency('EUR', $total_orders['orders_value']).'</td></tr>'; //$content .= '<tr><td>No. of Products</td><td>'.$total_products_ordered['products'].'</td></tr>'; //$content .= '<tr><td>Qty. of Products</td><td>'.$total_products_ordered['products_qty'].'</td></tr>'; $content .= '</table>'; $content .= '</div>'; //Comments $comments = $class_csl->retrieveComments($customers_id); $content .= '<div style="margin-left:350px;width:330px;">'; $content .= $class_csl->drawComments($comments, 'Comments', 'h3'); $content .= '</div>'; //$content .= '<div id="commentform" class="comment">'; //$content .= '<div><textarea id="comment-text" name="comment" style="width:100%;height:48px;"></textarea></div>'; //$content .= '<div style="padding-top:5px;text-align:right;">'; //$content .= '<input type="button" id="addcomment" value="Add Comment" />'; //$content .= '<img src="images/ajax-load-2.gif" id="comment-load" style="display:none;" />'; //$content .= '</div>'; //$content .= '</div>'; $content .= '</div>'; $javascript = drawCommentsJSAction('customer_id', $customers_id, 'ADDNEWCOMMENT', 'DELETECOMMENT', '') . ' function textAlertSaved(htmlResult, txtStatus) { if(txtStatus=="success") { $("#text-alert-load").css("display", "none");