コード例 #1
0
            $detlink = '<a href="?open=sp-customer&amp;id=' . $l['jng_sp_customers_id'] . '" title="View Customer Detail">';
            $t['d'] = $detlink . $l['jng_sp_customers_id'] . '</a>';
            $t['c'] = $detlink . $l['customers_name'] . '</a>';
            $action = '<a href="?open=sp-customers-special-detail&amp;id=' . $l['jng_sp_customers_id'] . '&amp;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_jcs->listCounter();
        $result = array();
        foreach ($list_counter as $type => $lc) {
            $result[] = "{$type},{$lc}";
        }
        ajaxReturn($result);
        exit;
    }
}
//START TEMPLATE
$main_link = '?open=sp-customers-special-list&type=';
$content = '';
$content .= '<div id="customers-list">';
$content .= '<ul>';
$list_counter = $class_jcs->listCounter();
foreach ($class_jcs->types as $type => $name) {