public function admin_navbar() { return '<li><a href="#" onclick="return false;">' . \Lang::get('tmd_test_module') . '</a> <ul> <li>' . \Extension\Html::anchor('tmd/admin', \Lang::get('tmd_manage')) . '</li> </ul> </li>'; }
/** * automatic generate admin navbar menu * * @return string */ public function admin_navbar() { return '<li><a href="#" onclick="return false;">' . \Lang::get('blog') . '</a> <ul> <li>' . \Extension\Html::anchor('blog/admin', \Lang::get('blog_manage')) . '</li> <li>' . \Extension\Html::anchor('blog/admin/comment', \Lang::get('blog_manage_comment')) . '</li> </ul> </li>'; }
<div class="btn-group"> <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"><?php echo __('acperm_module_permissison'); ?> <span class="caret"></span></button> <ul class="dropdown-menu" role="menu"> <?php if (isset($list_modules_perm) && is_array($list_modules_perm) && !empty($list_modules_perm)) { ?> <?php foreach ($list_modules_perm as $module) { ?> <li><?php echo \Extension\Html::anchor('admin/account-level-permission/module/' . $module['module_system_name'], $module['module_name']); ?> </li> <?php } // endforeach; ?> <?php } else { ?> <li><a href="#" onclick="return false;">—</a></li> <?php } // endif;
if (\Model_AccountLevelPermission::checkAdminPermission('accountlv_perm', 'accountlv_delete_perm')) { ?> <option value="del"><?php echo __('admin_delete'); ?> </option><?php } ?> </select> <button type="submit" class="bb-button btn btn-warning"><?php echo __('admin_submit'); ?> </button> <?php echo \Extension\Html::anchor('admin', __('admin_cancel'), array('class' => 'btn btn-default')); ?> </div> <div class="col-sm-6"> </div> </div> <?php echo \Form::close(); ?> <script type="text/javascript"> $(function() {
<h1><?php echo __('acperm_level_permission_of_module', array('module_name' => $module['name'])); ?> </h1> <div class="row cmds"> <div class="col-sm-6"> <?php echo \Extension\Html::anchor('admin/account-level-permission', '<span class="glyphicon glyphicon-chevron-left"></span> ' . __('acperm_go_back_to_system_permission'), array('class' => 'btn btn-default')); ?> </div> </div> <?php include_once __DIR__ . DS . 'permission_table.php'; ?>
public function action_index() { echo \Extension\Html::anchor('blog/admin/setup/install', 'Install') . '<br />'; echo \Extension\Html::anchor('blog/admin/setup/uninstall', 'Uninstall') . '<br />'; echo 'Warning! The link action as you click. No confirm.'; }
public function action_index() { // check permission if (\Model_AccountLevelPermission::checkAdminPermission('blog_perm', 'blog_manage_perm') == false) { \Session::set_flash('form_status', array('form_status' => 'error', 'form_status_message' => \Lang::get('admin_permission_denied', array('page' => \Uri::string())))); \Response::redirect(\Uri::create('admin')); } // check table exists and link to install page. if (!\DBUtil::table_exists('blog') && !\DBUtil::table_exists('blog_comment')) { echo \Extension\Html::anchor('blog/admin/setup', 'Installation required'); exit; } // read flash message for display errors. $form_status = \Session::get_flash('form_status'); if (isset($form_status['form_status']) && isset($form_status['form_status_message'])) { $output['form_status'] = $form_status['form_status']; $output['form_status_message'] = $form_status['form_status_message']; } unset($form_status); // list posts ----------------------------------------------------------------------------------------------------- $option['limit'] = \Model_Config::getval('content_admin_items_perpage'); $option['offset'] = trim(\Input::get('page')) != null ? ((int) \Input::get('page') - 1) * $option['limit'] : 0; $list_items = \Blog\Model_Blog::listItems($option); // pagination config $config['pagination_url'] = \Uri::main() . \Uri::getCurrentQuerystrings(true, true, false); $config['total_items'] = $list_items['total']; $config['per_page'] = $option['limit']; $config['uri_segment'] = 'page'; $config['num_links'] = 3; $config['show_first'] = true; $config['show_last'] = true; $config['first-inactive'] = "\n\t\t<li class=\"disabled\">{link}</li>"; $config['first-inactive-link'] = '<a href="#">{page}</a>'; $config['first-marker'] = '«'; $config['last-inactive'] = "\n\t\t<li class=\"disabled\">{link}</li>"; $config['last-inactive-link'] = '<a href="#">{page}</a>'; $config['last-marker'] = '»'; $config['previous-marker'] = '‹'; $config['next-marker'] = '›'; $pagination = \Pagination::forge('viewlogins_pagination', $config); $output['list_items'] = $list_items; $output['pagination'] = $pagination; unset($config, $list_accounts, $option, $pagination); // <head> output ---------------------------------------------------------------------------------------------- $output['page_title'] = $this->generateTitle(\Lang::get('blog')); // <head> output ---------------------------------------------------------------------------------------------- return $this->generatePage('admin/blog_v', $output, false); }
echo \Lang::get('blog'); ?> </h1> <?php if (isset($list_items['items']) && is_array($list_items['items']) && !empty($list_items['items'])) { ?> <?php foreach ($list_items['items'] as $row) { ?> <article class="each-blog-post"> <h1><?php echo \Extension\Html::anchor('blog/blog/post/' . $row->post_id, $row->post_name); ?> </h1> <time datetime="<?php echo \Extension\Date::gmtDate('', $row->post_date); ?> "><?php echo \Extension\Date::gmtDate('', $row->post_date); ?> </time> <div class="post-content"> <?php echo $row->post_body; ?> </div>
?> </th> <th><?php echo \Extension\Html::fuelStartSortableLink(array('orders' => 'login_browser', 'sort' => $next_sort), $except_querystring, null, __('accountlogins_browser')); ?> </th> <th><?php echo \Extension\Html::fuelStartSortableLink(array('orders' => 'login_ip', 'sort' => $next_sort), $except_querystring, null, __('accountlogins_ip')); ?> </th> <th><?php echo \Extension\Html::fuelStartSortableLink(array('orders' => 'account_timezone', 'sort' => $next_sort), $except_querystring, null, __('accountlogins_date_time')); ?> </th> <th><?php echo \Extension\Html::fuelStartSortableLink(array('orders' => 'login_attempt', 'sort' => $next_sort), $except_querystring, null, __('accountlogins_result')); ?> </th> </tr> </thead> <tbody> <?php if (isset($list_logins['items']) && is_array($list_logins['items']) && !empty($list_logins['items'])) { ?> <?php foreach ($list_logins['items'] as $row) { ?> <tr> <td><?php