protected function _assign_menu() { $user_id = get_user_id(); $model = D("Node"); $top_menu_list = $model->get_top_menu($user_id); if (empty($top_menu_list)) { $this->assign('jumpUrl', U("Public/logout")); $this->error("没有权限"); } $this->assign('top_menu', $top_menu_list); //读取数据库模块列表生成菜单项 $menu = D("Node")->access_list(); $system_folder_menu = D("SystemFolder")->get_folder_menu(); $user_folder_menu = D("UserFolder")->get_folder_menu(); $menu = array_merge($menu, $system_folder_menu, $user_folder_menu); $menu = sort_by($menu, 'sort'); $top_menu = cookie('top_menu'); if (!empty($top_menu)) { $top_menu_name = $model->where("id={$top_menu}")->getField('name'); $this->assign("top_menu_name", $top_menu_name); $this->assign("title", get_system_config("SYSTEM_NAME") . "-" . $top_menu_name); $left_menu = list_to_tree($menu, $top_menu); $this->assign('left_menu', $left_menu); } else { $this->assign("title", get_system_config("SYSTEM_NAME")); } }
</th> <th class="<?php echo sort_header_class('rating'); ?> "><?php echo sort_by('rating', 'Rating'); ?> </th> <th class="<?php echo sort_header_class('mercato'); ?> "><?php echo sort_by('mercato', 'Mercato'); ?> </th> <th class="<?php echo sort_header_class('tipo'); ?> "><?php echo sort_by('tipo', 'Tipo'); ?> </th> <th class="<?php echo sort_header_class('divisa'); ?> "><?php echo sort_by('divisa', 'Divisa'); ?> </th> </tr>
echo sort_by('title', 'Titolo'); ?> </th> <th class="<?php echo sort_header_class('divisa'); ?> "><?php echo sort_by('divisa', 'Divisa'); ?> </th> <th class="<?php echo sort_header_class('quantita'); ?> "><?php echo sort_by('quantita', 'Quantità'); ?> </th> <th class="<?php echo sort_header_class('prezzo'); ?> "><?php echo sort_by('prezzo', 'Prezzo'); ?> </th> <th class="headout">Ultimo</th> <th class="headout">Variazione</th> <th class="headout">Valore investito</th> <th class="headout">Valore stimato</th> <th class="headout" colspan="2">Plus/Minus</th> </tr>
defined('ROOT') or die('Not allowed!'); require ADMIN_SIDEBAR; ?> <div id="main-contents"> <nav class="data-header toolbar"> <?php echo anchor('admin-shop/products/form', 'Baru', ['class' => 'btn toolbar-btn btn-edit']); ?> </nav> <table class="data"> <thead> <tr> <th>Gambar</th> <th><?php echo sort_by('nama', 'Nama'); ?> </th> <th>Tgl Masuk</th> <th>Stok</th> <th>Harga (Rp.)</th> <th>Pilihan</th> </tr> </thead> <tbody> <?php if (($total = $data->count()) > 0) { foreach ($data->fetch() as $row) { ?> <tr id="data-<?php echo $row->id_produk;
</th> <th class="<?php echo sort_header_class('investito'); ?> "><?php echo sort_by('investito', 'Investito'); ?> </th> <th class="<?php echo sort_header_class('break_even_date'); ?> "><?php echo sort_by('break_even_date', 'Break Even'); ?> </th> <th class="<?php echo sort_header_class('plusminus_percent'); ?> " colspan="2"><?php echo sort_by('plusminus_percent', 'Plus/Minus'); ?> </th> <th class="<?php echo sort_header_class('plusminus_percent_per_year'); ?> " colspan="2"><?php echo sort_by('plusminus_percent_per_year', 'Plus/Minus (Anno)'); ?> </th> </tr>
echo sort_header_class('min'); ?> "><?php echo sort_by('min', 'Soglia Min'); ?> </th> <th class="<?php echo sort_header_class('max'); ?> "><?php echo sort_by('max', 'Soglia Max'); ?> </th> <th class="<?php echo sort_header_class('alert'); ?> "><?php echo sort_by('alert', 'Avviso'); ?> </th> </tr> </table> <?php } else { ?> <div class="notice">Nessun risultato per i parametri specificati</div> <?php } ?> </form>
?> "><?php echo sort_by('tipo', 'Tipo'); ?> </th> <th class="<?php echo sort_header_class('importo'); ?> "><?php echo sort_by('importo', 'Importo'); ?> </th> <th class="headout">Tasso</th> <th class="<?php echo sort_header_class('stacco'); ?> "><?php echo sort_by('stacco', 'Stacco'); ?> </th> </tr> </table> <?php } else { ?> <div class="notice">Nessun risultato per i parametri specificati</div> <?php } ?> </form>
?> <div id="main-contents"> <nav class="data-header toolbar"> <?php echo anchor('admin-shop/categories/form', 'Baru', ['class' => 'btn toolbar-btn btn-edit']); ?> </nav> <table class="data"> <thead> <tr> <th><?php echo sort_by('nama', 'Nama'); ?> </th> <th><?php echo sort_by('alias', 'Alias'); ?> </th> <th>Keterangan</th> <th>Pilihan</th> </tr> </thead> <tbody> <?php if (($total = $data->count()) > 0) { foreach ($data->fetch() as $row) { ?> <tr id="data-<?php echo $row->id_kategori; ?> ">
$this->render(array('partial' => 'error', 'object' => $error)); } ?> <tr class="crystal"> <th></th> <th class="<?php echo sort_header_class('testo'); ?> "><?php echo sort_by('testo', 'Testo'); ?> </th> <th class="<?php echo sort_header_class('data'); ?> "><?php echo sort_by('data', 'Data'); ?> </th> </tr> </table> <?php } else { ?> <div class="notice">Nessun risultato per i parametri specificati</div> <?php } ?> </form>
function sort_play_score_ratio($a, $b) { return sort_by('play_score_ratio', $a, $b); }
defined('ROOT') or die('Not allowed!'); require ADMIN_SIDEBAR; ?> <div id="main-contents"> <nav class="data-header toolbar"> <?php echo anchor('admin-shop/banners/form', 'Baru', ['class' => 'btn toolbar-btn btn-edit']); ?> </nav> <table class="data"> <thead> <tr> <th>Gambar</th> <th><?php echo sort_by('judul', 'Judul'); ?> </th> <th>Penayangan</th> <th>Aktif</th> <th>Tipe</th> <th>Pilihan</th> </tr> </thead> <tbody> <?php if (($total = $data->count()) > 0) { foreach ($data->fetch() as $row) { ?> <tr id="data-<?php echo $row->id_banner;
<?php echo anchor('admin-shop/orders/form', 'Baru', ['class' => 'btn toolbar-btn btn-edit']); ?> </nav> <?php } ?> <table class="data"> <thead> <tr> <th><?php echo sort_by('id_order', 'ID'); ?> </th> <th><?php echo sort_by('nama_lengkap', 'Pelanggan'); ?> </th> <th>Tanggal</th> <th>Status</th> <th>Total Harga (Rp.)</th> <th>Pilihan</th> </tr> </thead> <tbody> <?php if (($total = $data->count()) > 0) { foreach ($data->fetch() as $row) { ?> <tr id="data-<?php echo $row->id_order;
<th class="<?php echo sort_header_class('prezzo'); ?> "><?php echo sort_by('prezzo', 'Prezzo'); ?> </th> <th class="<?php echo sort_header_class('quantita'); ?> "><?php echo sort_by('quantita', 'Quantità'); ?> </th> <th class="<?php echo sort_header_class('data'); ?> "><?php echo sort_by('data', 'Data'); ?> </th> <th class="<?php echo sort_header_class('negot_id'); ?> "><?php echo sort_by('negot_id', 'Negoziazione'); ?> </th> <th class="headout">Importo stimato</th> </tr>