Ejemplo n.º 1
0
 public function onDisableLocations()
 {
     $enable = post('enable', false);
     if (($checkedIds = post('checked')) && is_array($checkedIds) && count($checkedIds)) {
         foreach ($checkedIds as $objectId) {
             if (!($object = City::find($objectId))) {
                 continue;
             }
             $object->is_enabled = $enable;
             $object->save();
         }
     }
     if ($enable) {
         Flash::success(Lang::get('xavier.events::lang.locations.enable_success'));
     } else {
         Flash::success(Lang::get('xavier.events::lang.locations.disable_success'));
     }
     return Redirect::to(Backend::url('xavier/events/cities'));
 }
Ejemplo n.º 2
0
 /**
  * Registers back-end navigation items for this plugin.
  *
  * @return array
  */
 public function registerNavigation()
 {
     return ['statefull' => ['label' => 'Statefull Website', 'url' => \Backend::url('ebussola/statefull/urldynamics'), 'icon' => 'icon-rocket', 'permissions' => ['ebussola.statefull.*'], 'order' => 500, 'sideMenu' => ['urldynamics' => ['label' => 'Dynamics URL', 'icon' => 'icon-code', 'url' => \Backend::url('ebussola/statefull/urldynamics'), 'permissions' => ['ebussola.statefull.*']], 'urlblacklist' => ['label' => 'URL Blacklist', 'icon' => 'icon-minus-circle', 'url' => \Backend::url('ebussola/statefull/urlblacklist'), 'permissions' => ['ebussola.statefull.*']], 'getparamblacklist' => ['label' => 'Get Param Blacklist', 'icon' => 'icon-minus-circle', 'url' => \Backend::url('ebussola/statefull/getparamblacklist'), 'permissions' => ['ebussola.statefull.*']], 'urlpurge' => ['label' => 'URL Purge', 'icon' => 'icon-trash', 'url' => \Backend::url('ebussola/statefull/urldynamics/purge'), 'permissions' => ['ebussola.statefull.*']]]]];
 }
Ejemplo n.º 3
0
 public function registerSettings()
 {
     return ['settings' => ['label' => 'martin.ssologin::lang.plugin.name', 'description' => 'martin.ssologin::lang.plugin.description', 'icon' => 'icon-key', 'class' => '\\Martin\\SSOLogin\\Models\\Settings', 'order' => 800, 'permissions' => ['martin.ssologin.access'], 'category' => 'system::lang.system.categories.system'], 'logs' => ['label' => 'martin.ssologin::lang.plugin.name', 'description' => 'martin.ssologin::lang.plugin.description_log', 'icon' => 'icon-key', 'url' => \Backend::url('martin/ssologin/logs'), 'order' => 800, 'permissions' => ['martin.ssologin.access'], 'category' => SettingsManager::CATEGORY_LOGS]];
 }
Ejemplo n.º 4
0
 public function registerNavigation()
 {
     return ['poll' => ['label' => 'Poll', 'url' => \Backend::url('shahiemseymor/poll/polls'), 'icon' => 'icon-bar-chart-o', 'sideMenu' => ['polls' => ['label' => 'Polls', 'icon' => 'icon-bar-chart-o', 'url' => Backend::url('shahiemseymor/poll/polls')]]]];
 }
Ejemplo n.º 5
0
 public function registerSettings()
 {
     return ['channels' => ['label' => 'Channels', 'description' => 'Manage Channels', 'category' => 'Feedback', 'icon' => 'icon-arrows', 'url' => \Backend::url('ebussola/feedback/channels'), 'order' => 500, 'keywords' => 'feedback channel', 'permissions' => ['ebussola.feedback.settings.channel']]];
 }
Ejemplo n.º 6
0
 /**
  * Register Navigation
  * @return array
  */
 public function registerNavigation()
 {
     return ['mrc' => ['label' => 'abnmt.mrc::lang.plugin.navigation.mrc.label', 'url' => \Backend::url('abnmt/mrc/courses'), 'icon' => 'icon-university', 'order' => 400, 'sideMenu' => ['courses' => ['label' => 'abnmt.mrc::lang.plugin.navigation.mrc.courses.label', 'icon' => 'icon-clone', 'url' => \Backend::url('abnmt/mrc/courses')], 'events' => ['label' => 'abnmt.mrc::lang.plugin.navigation.mrc.events.label', 'icon' => 'icon-calendar', 'url' => \Backend::url('abnmt/mrc/events')], 'users' => ['label' => 'abnmt.mrc::lang.plugin.navigation.mrc.users.label', 'url' => \Backend::url('abnmt/mrc/users'), 'icon' => 'icon-users'], 'userevents' => ['label' => 'abnmt.mrc::lang.plugin.navigation.mrc.userevents.label', 'url' => \Backend::url('abnmt/mrc/userevents'), 'icon' => 'icon-calendar-check-o'], 'coursetypes' => ['label' => 'abnmt.mrc::lang.plugin.navigation.mrc.coursetypes.label', 'icon' => 'icon-eye', 'url' => \Backend::url('abnmt/mrc/coursetypes')], 'coursecategories' => ['label' => 'abnmt.mrc::lang.plugin.navigation.mrc.coursecategories.label', 'icon' => 'icon-tags', 'url' => \Backend::url('abnmt/mrc/coursecategories')], 'usereventstates' => ['label' => 'abnmt.mrc::lang.plugin.navigation.mrc.usereventstates.label', 'icon' => 'icon-sort', 'url' => \Backend::url('abnmt/mrc/usereventstates')]]], 'news' => ['label' => 'abnmt.mrc::lang.plugin.navigation.news.label', 'url' => \Backend::url('abnmt/mrc/news'), 'icon' => 'icon-newspaper-o', 'order' => 200]];
 }
Ejemplo n.º 7
0
 /**
  * Registers back-end navigation items for this plugin.
  *
  * @return array
  */
 public function registerNavigation()
 {
     #return []; // Remove this line to activate
     return ['home' => ['label' => 'Home page', 'url' => Backend::url('smony/home/theme'), 'icon' => 'icon-desktop', 'order' => 500, 'sideMenu' => ['contact' => ['label' => 'Contact', 'icon' => 'icon-list-alt', 'url' => \Backend::url('smony/home/theme')], 'coffee-items' => ['label' => 'Coffee items', 'icon' => 'icon-coffee', 'url' => \Backend::url('smony/home/coffee')], 'how-it-works' => ['label' => 'How it works', 'icon' => 'icon-files-o', 'url' => \Backend::url('smony/home/work')], 'social' => ['label' => 'Social', 'icon' => 'icon-share-alt', 'url' => \Backend::url('smony/home/social')], 'if-you-items' => ['label' => 'If you items', 'icon' => 'icon-columns', 'url' => \Backend::url('smony/home/item')]]]];
 }
 public function boot()
 {
     \Event::listen('backend.menu.extendItems', function ($manager) {
         $manager->addSideMenuItems('RainLab.Blog', 'blog', ['new' => ['label' => 'rainlab.blog::lang.posts.new_post', 'icon' => 'icon-plus', 'order' => 10, 'url' => \Backend::url('rainlab/blog/posts/create'), 'permissions' => ['rainlab.blog.access_posts']]]);
     });
 }
Ejemplo n.º 9
0
 public function registerNavigation()
 {
     return ['subscribe' => ['label' => 'Subscribers', 'url' => \Backend::url('jorgeandrade/subscribe/subscribers'), 'icon' => 'icon-rss', 'permissions' => ['jorgeandrade.subscribe.*'], 'order' => 500, 'sideMenu' => ['subscribers' => ['label' => 'Subscribers', 'icon' => 'icon-rss', 'url' => \Backend::url('jorgeandrade/subscribe/subscribers'), 'permissions' => ['jorgeandrade.subscribe.access_subscribers']]]]];
 }
 /**
  * Registers back-end navigation items for this plugin.
  */
 public function registerNavigation()
 {
     return ['emailaccount' => ['label' => 'Email Accounts', 'url' => \Backend::url('ebussola/cmb/emailaccounts')], 'monthlygoals' => ['label' => 'Monthly Goals', 'url' => \Backend::url('ebussola/cmb/monthlygoals')], 'cmb' => ['label' => 'Purchases', 'url' => \Backend::url('ebussola/cmb/purchases'), 'sideMenu' => ['pendingPurchases' => ['label' => 'Pending', 'icon' => 'icon-copy', 'url' => \Backend::url('ebussola/cmb/purchases/pendingPurchases')], 'purchases' => ['label' => 'Purchases', 'icon' => 'icon-copy', 'url' => \Backend::url('ebussola/cmb/purchases')]]], 'purchasegroups' => ['label' => 'Groups', 'url' => \Backend::url('ebussola/cmb/purchasegroups')]];
 }
Ejemplo n.º 11
0
 public function registerNavigation()
 {
     return ['catalog' => ['label' => 'Каталог', 'url' => \Backend::url('iillexial/catalog/products'), 'icon' => 'icon-list-alt', 'order' => 500, 'sideMenu' => ['products' => ['label' => 'Товары', 'icon' => 'icon-list-alit', 'url' => \Backend::url('iillexial/catalog/products')]]]];
 }
Ejemplo n.º 12
0
 public function registerNavigation()
 {
     return ['theater' => ['label' => 'Театр', 'url' => \Backend::url('abnmt/theater/dashboard'), 'icon' => 'icon-university', 'order' => 400, 'sideMenu' => ['events' => ['label' => 'Афиша', 'icon' => 'icon-calendar', 'url' => \Backend::url('abnmt/theater/playbill')], 'performances' => ['label' => 'Спектакли', 'icon' => 'icon-clipboard', 'url' => \Backend::url('abnmt/theater/performances')], 'persons' => ['label' => 'Люди', 'icon' => 'icon-users', 'url' => \Backend::url('abnmt/theater/people')], 'backgrounds' => ['label' => 'Фоны', 'icon' => 'icon-ticket', 'url' => \Backend::url('abnmt/theater/backgrounds')]]]];
 }
Ejemplo n.º 13
0
 public function registerNavigation()
 {
     return ['theaterpartners' => ['label' => 'Партнеры', 'url' => \Backend::url('abnmt/theaterpartners/partners'), 'icon' => 'icon-pencil', 'order' => 600, 'sideMenu' => ['partners' => ['label' => 'Партнеры', 'icon' => 'icon-pencil', 'url' => \Backend::url('abnmt/theaterpartners/partners')], 'categories' => ['label' => 'Категории', 'icon' => 'icon-list', 'url' => \Backend::url('abnmt/theaterpartners/categories')]]]];
 }
Ejemplo n.º 14
0
 public function registerNavigation()
 {
     return ['gallery' => ['label' => 'zaweb.gallery::lang.gallery.menu_label', 'icon' => 'icon-flickr', 'url' => \Backend::url('zaweb/gallery/photos'), 'permissions' => ['zaweb.gallery.*'], 'order' => 500, 'sideMenu' => ['photos' => ['url' => \Backend::url('zaweb/gallery/photos'), 'label' => 'zaweb.gallery::lang.gallery.menu_label'], 'categories' => ['url' => \Backend::url('zaweb/gallery/categories'), 'label' => 'zaweb.gallery::lang.gallery.side_menu.categories_label']]]];
 }
Ejemplo n.º 15
0
 public function registerNavigation()
 {
     return ['theaterpress' => ['label' => 'Пресса', 'url' => \Backend::url('abnmt/theaterpress/articles'), 'icon' => 'icon-newspaper-o', 'order' => 200, 'sideMenu' => ['articles' => ['label' => 'Статьи', 'icon' => 'icon-newspaper-o', 'url' => \Backend::url('abnmt/theaterpress/articles')], 'categories' => ['label' => 'Категории', 'icon' => 'icon-list', 'url' => \Backend::url('abnmt/theaterpress/categories')]]]];
 }
Ejemplo n.º 16
0
 public function registerSettings()
 {
     return ['settings' => ['label' => 'Cashier Settings', 'description' => 'Manage Stripe keys and subscriptions.', 'category' => 'rainlab.user::lang.settings.users', 'icon' => 'icon-cc-stripe', 'class' => 'Alxy\\Cashier\\Models\\Settings', 'order' => 500, 'keywords' => 'security stripe keys subscriptions billing'], 'invoices' => ['label' => 'Invoice template', 'description' => 'Customize the template used for invoices.', 'icon' => 'icon-file-excel-o', 'url' => \Backend::url('alxy/cashier/invoicetemplates'), 'category' => 'rainlab.user::lang.settings.users', 'order' => 500]];
 }
 public function registerNavigation()
 {
     return ['events' => ['label' => 'Events', 'url' => \Backend::url('jorgeandrade/events/events'), 'icon' => 'icon-calendar', 'permissions' => ['jorgeandrade.events.*'], 'order' => 200, 'sideMenu' => ['events' => ['label' => 'Events', 'icon' => 'icon-list', 'url' => \Backend::url('jorgeandrade/events/events'), 'permissions' => ['jorgeandrade.events.events']], 'calendars' => ['label' => 'Calendars', 'icon' => 'icon-calendar', 'url' => \Backend::url('jorgeandrade/events/calendars'), 'permissions' => ['jorgeandrade.events.calendars']]]]];
 }
Ejemplo n.º 18
0
 /**
  * Registers back-end navigation items for this plugin.
  */
 public function registerNavigation()
 {
     return ['popup' => ['label' => 'Popup', 'url' => \Backend::url('ebussola/popup/popups'), 'icon' => 'icon-pencil', 'sideMenu' => ['popups' => ['label' => 'Popups', 'icon' => 'icon-copy', 'url' => \Backend::url('ebussola/popup/popups')], 'layouts' => ['label' => 'Layouts', 'icon' => 'icon-copy', 'url' => \Backend::url('ebussola/popup/layouts')]]]];
 }
Ejemplo n.º 19
0
 public function registerNavigation()
 {
     return ['gallery' => ['label' => 'Галерея', 'url' => \Backend::url('kkkatya/gallery/pictures'), 'icon' => 'icon-picture-o', 'order' => 500, 'sideMenu' => ['pictures' => ['label' => 'Изображения', 'icon' => 'icon-list-alt', 'url' => \Backend::url('kkkatya/gallery/pictures')]]]];
 }
Ejemplo n.º 20
0
 public function registerNavigation()
 {
     return ['theaternews' => ['label' => 'Новости', 'url' => \Backend::url('abnmt/theaternews/posts'), 'icon' => 'icon-pencil', 'order' => 100, 'sideMenu' => ['posts' => ['label' => 'Новости', 'icon' => 'icon-pencil', 'url' => \Backend::url('abnmt/theaternews/posts')], 'categories' => ['label' => 'Категории', 'icon' => 'icon-list', 'url' => \Backend::url('abnmt/theaternews/categories')]]]];
 }
Ejemplo n.º 21
0
        <meta charset="utf-8">
        <title><?php 
echo Lang::get('backend::lang.page.access_denied.label');
?>
</title>
        <link href="<?php 
echo URL::to('/modules/system/assets/css/styles.css');
?>
" rel="stylesheet">
    </head>
    <body>
    <div class="container">
        <h1><i class="icon-lock warning"></i> <?php 
echo Lang::get('backend::lang.page.access_denied.label');
?>
</h1>
        <p class="lead"><?php 
echo Lang::get('backend::lang.page.access_denied.help');
?>
</p>
        <a href="<?php 
echo Backend::url('/');
?>
"><?php 
echo Lang::get('backend::lang.page.access_denied.cms_link');
?>
</a>
    </div>
    </body>
</html>
Ejemplo n.º 22
0
 private function runAdminerIFrame()
 {
     $this->addCss('/plugins/martin/adminer/assets/css/styles.css');
     return \View::make('martin.adminer::iframe', ['URL' => \Backend::url('martin/adminer/octoberadminer/iframe' . OctoberAdminerHelper::getAutologinURL())]);
 }
Ejemplo n.º 23
0
 public function registerNavigation()
 {
     return ['catalog' => ['label' => 'Catalog', 'url' => \Backend::url('elon/catalog/productitems'), 'icon' => 'icon-shopping-cart', 'order' => 500, 'sideMenu' => ['productitems' => ['label' => 'Products', 'icon' => 'icon-tags', 'url' => \Backend::url('elon/catalog/productitems')], 'categories' => ['label' => 'Categories', 'icon' => 'icon-list-alt', 'url' => \Backend::url('elon/catalog/categories')], 'tags' => ['label' => 'Tags', 'icon' => 'icon-list-alt', 'url' => \Backend::url('elon/catalog/tags')]]]];
 }
Ejemplo n.º 24
0
 public function registerNavigation()
 {
     return ['test' => ['label' => 'Test', 'url' => \Backend::url('abnmt/test/articles'), 'icon' => 'icon-university', 'order' => 500, 'sideMenu' => ['articles' => ['label' => 'Articles', 'icon' => 'icon-newspaper-o', 'url' => \Backend::url('abnmt/test/articles')], 'articleCategories' => ['label' => 'Categories', 'icon' => 'icon-newspaper-o', 'url' => \Backend::url('abnmt/test/articlecategories')]]]];
 }
        </div>

    <?php 
    echo Form::close();
    ?>

<?php 
} else {
    ?>

    <p class="flash-message static error"><?php 
    echo e($this->fatalError);
    ?>
</p>
    <p><a href="<?php 
    echo Backend::url('gatto/jobs/qualifications');
    ?>
" class="btn btn-default">Return to Qualifications list</a></p>

<?php 
}
?>





This is a query for the front-end, using Laravel query builder:
it retrieves all the appointments for the logged in customer.

<?php 
Ejemplo n.º 26
-1
 /**
  * Register the backend navigation menu.
  * @return array
  */
 public function registerNavigation()
 {
     $sideMenu['home'] = ['label' => trans('axc.datamanagement::lang.home.label.singular'), 'icon' => 'icon-home', 'url' => \Backend::url('axc/datamanagement/home')];
     $functionalities = ['abbreviation' => 'code', 'email' => 'envelope', 'phone' => 'phone', 'fax' => 'fax', 'insurance' => 'briefcase', 'link' => 'list', 'route' => 'road', 'slideshow' => 'image'];
     $settings = \AxC\DataManagement\Models\Settings::instance();
     foreach ($functionalities as $func => $icon) {
         if ($settings->{"enable_{$func}"}) {
             $sideMenu[$func] = ['label' => trans("axc.datamanagement::lang.{$func}.label.singular"), 'icon' => "icon-{$icon}", 'url' => \Backend::url("axc/datamanagement/{$func}"), 'permissions' => ["axc.data_management.{$func}_access"]];
         }
     }
     $sideMenu['settings'] = ['label' => trans('system::lang.settings.menu_label'), 'icon' => 'icon-cog', 'url' => \Backend::url('system/settings/update/axc/datamanagement/settings')];
     return ['data-management' => ['label' => trans('axc.datamanagement::lang.plugin.navigation'), 'url' => \Backend::url('axc/datamanagement/home'), 'icon' => 'icon-database', 'permissions' => ['axc.data_management.access'], 'order' => 2, 'sideMenu' => $sideMenu]];
 }