Exemplo n.º 1
0
/**
 * Return HTML for a uiSelectTable component.
 * 
 * Optionally, returns the HTML for a uiSelectPager at the top and bottom of the table.
 * 
 * @param  uiSelectTable $table
 * @param  uiSelectPager $pager   Optional pager, to display paging links and rows-per-page
 * 
 * @return string  HTML representation
 */
function ui_select_table(uiSelectTable $table, uiSelectPager $pager = null)
{
    ob_start();
    if (!is_null($pager)) {
        echo ui_select_pager($pager);
    }
    $view = new coreView(coreContext::getInstance());
    $view->getParameterHolder()->add(array('table' => $table));
    $view->setTemplate(dirname(__FILE__) . '/templates/ui_select_table.php');
    echo $view->render();
    if (!is_null($pager)) {
        echo ui_select_pager();
    }
    return ob_get_clean();
}
Exemplo n.º 2
0
    ?>
</span>
        <span class="keywo"><?php 
    echo $S['keyword'];
    ?>
</span>
        <span class="kanji"><?php 
    echo cjk_lang_ja($S['kanji']);
    ?>
</span>
        <span class="bookstyle"><?php 
    echo $S['story'];
    ?>
</span>
        <span class="laste">Last edited: <?php 
    echo $S['dispdate'];
    ?>
</span>
      </a>
    </li>
<?php 
}
?>
  </ul>

  <?php 
echo ui_select_pager($pager);
?>

</form>