示例#1
0
/**
 * Listar Itens.
 */
function listar($aDados)
{
    $tjax = new Tjax();
    $fg = new FrameworkGeneric();
    $model = new Model();
    $result = $model->Listar($aDados);
    $listar = $result['result'];
    foreach ($listar as $aItem) {
        $html .= '<a href="javascript:void(0);" onclick="path_state=\'\';$.listarItem(\'item=' . $fg->formataUrl($fg->retiraAcentos($aItem['tex_nome'])) . '\');" class="list-group-item">' . $aItem['tex_nome'] . '</a>';
        $i++;
        if ($i == 1) {
            $tjax->addScript('$.listarItem(\'item=' . $fg->formataUrl($fg->retiraAcentos($aItem['tex_nome'])) . '\');');
        }
    }
    $tjax->addAssign('#navegacaoModulo', 'html', $html);
    $tjax->display();
}