$t = array(); $t['d'] = $detlink . $l['customers_id'] . '</a>'; $t['c'] = $detlink . $l['customers_name'] . '</a>'; $action = '<a href="?open=customers-special-detail&id=' . $l['customers_id'] . '&hidemenu=true" class="view_webpage"></a>'; $action .= '<input type="button" name="detail" value="Detail" onclick="$(this).siblings(\'a\').click();" />'; $t['a'] = $action; $table[] = $t; } $result .= tep_draw_table('spo', $table); } echo utf8_encode($result); exit; } if (isset($_POST['me_action'])) { if ($_POST['me_action'] == 'RELOADCOUNTER') { $list_counter = $class_csl->listCounter(); $result = array(); foreach ($list_counter as $type => $lc) { $result[] = "{$type},{$lc}"; } ajaxReturn($result); exit; } } //START TEMPLATE $main_link = '?open=customers-special-list&type='; $content = ''; $content .= '<div id="customers-list">'; $content .= '<ul>'; $list_counter = $class_csl->listCounter(); foreach ($class_csl->types as $type => $name) {