Exemple #1
0
 * @var $pag          object  object Pagination
 * @var $module       string  current module name
 */
?>

<?php 
echo TB::btns_top([Route::url($request->routename, ['controller' => $request->controller, 'action' => 'add']) => __('shop.product_add'), Route::url($request->routename, ['controller' => $request->controller, 'action' => 'list']) => __('shop.product_manager')]);
?>

<?php 
if ($total_items > 0) {
    ?>

	<table class="table table-striped table-hover">
		<?php 
    echo TB_Table::head(['title' => __('settings.title'), 'price' => __('shop.product_price'), 'status' => __('shop.product_status'), 'enabled' => __('shop.product_enabled'), '_actions' => __('settings.actions')], true);
    ?>
		<?php 
    foreach ($obj as $o) {
        ?>
			<tr>
				<td>
					<?php 
        echo TB::act($request->routename, ['controller' => $request->controller, 'action' => 'edit', 'id' => $o->id], $o->title);
        ?>
					<br>
					<?php 
        if ($request->action != 'filter') {
            ?>
						<small>
							<span class="text-muted">
Exemple #2
0
 * @var $pag          object  object Pagination
 * @var $module       string  current module name
 */
?>

<?php 
echo TB::btns_top([Route::url($request->routename, ['controller' => $request->controller, 'action' => 'add']) => __('shop.category_add'), Route::url($request->routename, ['controller' => $request->controller, 'action' => 'order']) => $total_items > 1 ? __('settings.change_order') : '', Route::url($request->routename, ['controller' => $request->controller, 'action' => 'list']) => __('settings.sort_reset')]);
?>

<?php 
if ($total_items > 0) {
    ?>

	<table class="table table-striped table-hover">
		<?php 
    echo TB_Table::head(['title' => __('settings.title'), '_actions' => __('settings.actions')], true);
    ?>
		<?php 
    foreach ($obj as $o) {
        ?>
			<tr>
				<td>
					<?php 
        echo TB::act($request->routename, ['controller' => $request->controller, 'action' => 'edit', 'id' => $o->id], $o->title);
        ?>
				</td>
				<td class="icon_actions">
					<?php 
        if ($settings_mod['max_nested'] > 1 and $o->level < $settings_mod['max_nested'] - 1) {
            ?>
						<?php 
Exemple #3
0
?>
:</label>
			<?php 
echo $sel_category;
?>
		</div>
	</form>
</div>

<?php 
if ($total_items > 0) {
    ?>

	<table class="table table-striped table-hover">
		<?php 
    echo TB_Table::head(['title' => __('settings.title'), 'date' => __('publications.page_date'), 'enabled' => __('settings.status'), '_actions' => __('settings.actions')], $settings_mod['max_nested']);
    ?>
		<?php 
    foreach ($obj as $o) {
        ?>
			<tr>
				<td>
					<?php 
        echo TB::act($request->routename, ['controller' => $request->controller, 'action' => 'edit', 'id' => $o->id], $o->title);
        ?>
					<?php 
        if ($request->action != 'filter') {
            ?>
						<br>
						<small>
							<span class="text-muted">