コード例 #1
0
<?php

/* @var $this \mpf\modules\forum\controllers\Manage */
/* @var $model \mpf\modules\forum\models\ForumSubcategory */
/* @var $category \mpf\modules\forum\models\ForumCategory */
echo \app\components\htmltools\Page::get()->title(\mpf\web\helpers\Html::get()->link($this->updateURLWithSection(['home', 'index']), $this->forumTitle) . " " . \mpf\modules\forum\components\Config::value('FORUM_PAGE_TITLE_SEPARATOR') . " " . $category->name . " " . \mpf\modules\forum\components\Config::value('FORUM_PAGE_TITLE_SEPARATOR') . " Subcategories", [['url' => $this->updateURLWithSection(['manage', 'groups']), 'label' => 'Manage Groups'], ['url' => $this->updateURLWithSection(['manage', 'categories']), 'label' => 'Manage Categories'], ['url' => $this->updateURLWithSection(['manage', 'users']), 'label' => 'Manage Users'], ['url' => $this->updateURLWithSection(['manage', 'titles']), 'label' => 'Manage Titles'], ['url' => $this->updateURLWithSection(['manage', 'newCategory']), 'label' => 'New Category'], ['url' => $this->updateURLWithSection(['manage', 'newSubcategory', ['category' => $category->id]]), 'label' => 'New Subcategory']]);
\mpf\widgets\datatable\Table::get(['dataProvider' => $model->getDataProvider($category->id), 'columns' => ['title', 'user_id' => ['value' => '$row->owner->name'], 'description', ['class' => 'Actions', 'buttons' => ['delete' => ['class' => 'Delete', 'iconSize' => 22, 'url' => $this->getUrlForDatatableAction('delete')], 'edit' => ['class' => 'Edit', 'iconSize' => 22, 'url' => $this->getUrlForDatatableAction('editSubcategory')]]]]])->display();
コード例 #2
0
ファイル: accessdenied.php プロジェクト: mpf-soft/app-basic
<?php

echo \app\components\htmltools\Page::title('Access denied!', array(), array('style' => 'color:orangered;'));
コード例 #3
0
ファイル: _header.php プロジェクト: mpf-soft/app-basic
<?php

use app\components\htmltools\Page;
$actions = ['profile' => 'View Profile', 'edit' => 'Edit Profile', 'email' => 'Change Email', 'password' => 'Change Password', 'login' => 'Login', 'register' => 'Create a new account', 'forgotpassword' => 'Forgot Password', 'registerauto' => 'Profile details - Last step'];
$menu = [];
foreach ($actions as $action => $label) {
    $menu[] = ['url' => ['user', $action], 'label' => $label, 'visible' => 'registerauto' == $action ? false : (in_array($action, ['login', 'register', 'forgotpassword']) ? \mpf\WebApp::get()->user()->isGuest() : \mpf\WebApp::get()->user()->isConnected()), 'htmlOptions' => $action == \mpf\WebApp::get()->request()->getAction() ? ['class' => 'selected'] : []];
}
?>

<?php 
echo Page::title('User', $menu);
コード例 #4
0
ファイル: _header.php プロジェクト: mpf-soft/app-basic
<?php

use app\components\htmltools\Page;
$actions = array('profile' => 'View Profile', 'edit' => 'Edit Profile', 'email' => 'Change Email', 'password' => 'Change Password', 'login' => 'Login', 'forgotpassword' => 'Forgot Password');
$menu = array();
foreach ($actions as $action => $label) {
    $menu[] = array('url' => array('user', $action), 'label' => $label, 'visible' => 'registerauto' == $action ? false : (in_array($action, array('login', 'register', 'forgotpassword')) ? \mpf\WebApp::get()->user()->isGuest() : \mpf\WebApp::get()->user()->isConnected()), 'htmlOptions' => $action == \mpf\WebApp::get()->request()->getAction() ? array('class' => 'selected') : array());
}
?>

<?php 
echo Page::title('User - ' . $actions[\mpf\WebApp::get()->request()->getAction()], $menu);
コード例 #5
0
ファイル: editcron.php プロジェクト: mpf-soft/app-basic
<?php

$actions = array('crontab' => 'View All', 'addcron' => 'Add Job');
$menu = array();
foreach ($actions as $action => $label) {
    $menu[] = array('url' => array('admin', $action), 'label' => $label, 'htmlOptions' => $action == \mpf\WebApp::get()->request()->getAction() ? array('class' => 'selected') : array());
}
echo \app\components\htmltools\Page::title('Crontab - Edit Job', $menu);
echo \mpf\widgets\form\Form::get(array('name' => 'save', 'model' => $model, 'theme' => 'default-wide', 'fields' => array('user', 'interval', 'command', 'log', array('name' => 'enabled', 'type' => 'select', 'options' => array('No', 'Yes'))), 'formHtmlOptions' => array('autocomplete' => 'off')))->display();
コード例 #6
0
ファイル: titles.php プロジェクト: mpf-soft/social-modules
<?php

/* @var $this \mpf\modules\forum\controllers\Manage */
/* @var $model \mpf\modules\forum\models\ForumTitle */
echo \app\components\htmltools\Page::get()->title(\mpf\web\helpers\Html::get()->link($this->updateURLWithSection(['home', 'index']), $this->forumTitle) . " " . \mpf\modules\forum\components\Config::value('FORUM_PAGE_TITLE_SEPARATOR') . " Users", \mpf\modules\forum\components\UserAccess::get()->isSectionAdmin($this->sectionId) ? [['url' => $this->updateURLWithSection(['manage', 'groups']), 'label' => 'Manage Groups'], ['url' => $this->updateURLWithSection(['manage', 'categories']), 'label' => 'Manage Categories'], ['url' => $this->updateURLWithSection(['manage', 'users']), 'label' => 'Manage Users'], ['url' => $this->updateURLWithSection(['manage', 'titles']), 'label' => 'Manage Titles', 'htmlOptions' => ['class' => 'selected']], ['url' => $this->updateURLWithSection(['manage', 'newTitle']), 'label' => 'New Title']] : [['url' => $this->updateURLWithSection(['manage', 'users']), 'label' => 'Manage Users'], ['url' => $this->updateURLWithSection(['manage', 'titles']), 'label' => 'Manage Titles', 'htmlOptions' => ['class' => 'selected']]]);
\mpf\widgets\datatable\Table::get(['dataProvider' => $model->getDataProvider($this->sectionId), 'columns' => ['id', 'title', ['class' => 'Actions', 'buttons' => ['delete' => ['class' => 'Delete', 'url' => $this->getUrlForDatatableAction('delete')], 'edit' => ['class' => 'Edit', 'url' => $this->getUrlForDatatableAction('editTitle')]]]]])->display();
コード例 #7
0
ファイル: editconfig.php プロジェクト: mpf-soft/app-basic
<?php

/* @var $this \app\controllers\Admin */
echo \app\components\htmltools\Page::title('Config Edit');
\mpf\widgets\form\Form::get(array())->publishAssets();
?>

<div class="mform mform-default-wide">
    <form method="post">
        <?php 
if ($this->getRequest()->secure) {
    ?>
            <?php 
    echo \mpf\web\helpers\Form::get()->hiddenInput($this->getRequest()->getCsrfKey(), $this->getRequest()->getCsrfValue());
    ?>
        <?php 
}
?>
        <?php 
foreach ($models as $model) {
    ?>
            <?php 
    /* @var $model \app\models\GlobalConfig */
    ?>
            <div class="row">
                <label class="label"><?php 
    echo $model->name;
    ?>
</label>
                <input class="input" type="text" name="GlobalConfig[<?php 
    echo $model->id;
コード例 #8
0
ファイル: recent.php プロジェクト: mpf-soft/social-modules
<?php

/* @var $this \mpf\modules\forum\controllers\Home */
/* @var $categories \mpf\modules\forum\models\ForumCategory[] */
/* @var $threads \mpf\modules\forum\models\ForumThread[] */
$menu = [];
if (\mpf\modules\forum\components\UserAccess::get()->isSectionAdmin($this->sectionId)) {
    ?>
    <?php 
    $menu = [['url' => $this->updateURLWithSection(['manage', 'groups']), 'label' => 'Manage Groups'], ['url' => $this->updateURLWithSection(['manage', 'categories']), 'label' => 'Manage Categories'], ['url' => $this->updateURLWithSection(['manage', 'users']), 'label' => 'Manage Users'], ['url' => $this->updateURLWithSection(['manage', 'titles']), 'label' => 'Manage Titles']];
}
echo \app\components\htmltools\Page::get()->title(\mpf\web\helpers\Html::get()->link($this->updateURLWithSection(['home']), \mpf\modules\forum\components\Translator::get()->translate($this->forumTitle)) . " " . \mpf\modules\forum\components\Config::value("FORUM_PAGE_TITLE_SEPARATOR") . " " . \mpf\modules\forum\components\Translator::get()->translate("Recent Threads"), $menu);
?>
<div class="forum-page <?php 
echo $this->forumPageTheme;
?>
">
    <?php 
$this->displayComponent('searchbar');
?>
    <?php 
$this->displayComponent('topuserpanel');
?>

    <?php 
if (!\mpf\modules\forum\components\UserAccess::get()->canRead($this->sectionId)) {
    ?>
        <?php 
    $this->displayComponent('accessdenied', ['location' => 'section']);
    ?>
        <?php 
コード例 #9
0
ファイル: index.php プロジェクト: mpf-soft/social-modules
<?php

/* @var $this \mpf\modules\forum\controllers\Home */
/* @var $subcategory \mpf\modules\forum\models\ForumSubcategory */
/* @var $threads \mpf\modules\forum\models\ForumThread[] */
/* @var $currentPage int */
$menu = [];
if (\mpf\modules\forum\components\UserAccess::get()->isSectionAdmin($this->sectionId)) {
    ?>
    <?php 
    $menu = [['url' => $this->updateURLWithSection(['manage', 'groups']), 'label' => 'Manage Groups'], ['url' => $this->updateURLWithSection(['manage', 'categories']), 'label' => 'Manage Categories'], ['url' => $this->updateURLWithSection(['manage', 'users']), 'label' => 'Manage Users'], ['url' => $this->updateURLWithSection(['manage', 'titles']), 'label' => 'Manage Titles']];
}
echo \app\components\htmltools\Page::get()->title(\mpf\web\helpers\Html::get()->link($this->updateURLWithSection(['home', 'index']), $this->forumTitle) . " " . \mpf\modules\forum\components\Config::value('FORUM_PAGE_TITLE_SEPARATOR') . " " . \mpf\web\helpers\Html::get()->link($this->updateURLWithSection(['category', 'index', ['category' => $subcategory->category->url_friendly_name, 'id' => $subcategory->category_id]]), $subcategory->category->name) . " " . \mpf\modules\forum\components\Config::value('FORUM_PAGE_TITLE_SEPARATOR') . " " . $subcategory->title, $menu);
?>

<div class="forum-page <?php 
echo $this->forumPageTheme;
?>
">
    <?php 
$this->displayComponent('searchbar');
?>
    <?php 
$this->displayComponent('topuserpanel');
?>

    <?php 
if (!\mpf\modules\forum\components\UserAccess::get()->canRead($this->sectionId)) {
    ?>
        <?php 
    $this->displayComponent('accessdenied', ['location' => 'subcategory']);
コード例 #10
0
ファイル: notfound.php プロジェクト: mpf-soft/social-modules
<?php

echo \app\components\htmltools\Page::get()->title("Page not found!");
コード例 #11
0
ファイル: header.php プロジェクト: mpf-soft/social-modules
<?php

if (\mpf\modules\blog\components\BlogConfig::get()->customHeader) {
    ?>
    <?php 
    require_once \mpf\modules\blog\components\BlogConfig::get()->customHeader;
    ?>
    <?php 
    return;
}
echo \app\components\htmltools\Page::get()->title($this->blogTitle . ($this->subTitle ? ' - ' . $this->subTitle : ''));
?>
<div id="blog-page">
    <div id="main-blog-section">
        
    
コード例 #12
0
ファイル: addcron.php プロジェクト: mpf-soft/app-basic
<?php

$actions = array('crontab' => 'View All', 'addcron' => 'Add Job');
$menu = array();
foreach ($actions as $action => $label) {
    $menu[] = array('url' => array('admin', $action), 'label' => $label, 'htmlOptions' => $action == \mpf\WebApp::get()->request()->getAction() ? array('class' => 'selected') : array());
}
echo \app\components\htmltools\Page::title('Crontab - ' . $actions[\mpf\WebApp::get()->request()->getAction()], $menu);
echo \mpf\widgets\form\Form::get(array('name' => 'add', 'model' => $model, 'theme' => 'default-wide', 'fields' => array('user', 'interval', 'command', 'log', array('name' => 'enabled', 'type' => 'select', 'options' => array('No', 'Yes'))), 'formHtmlOptions' => array('autocomplete' => 'off')))->display();
コード例 #13
0
ファイル: view.php プロジェクト: mpf-soft/app-basic
<?php

$actions = array('index' => 'View All', 'create' => 'New User');
$menu = array();
foreach ($actions as $action => $label) {
    $menu[] = array('url' => array('users', $action), 'label' => $label, 'htmlOptions' => $action == $this->getActiveAction() ? array('class' => 'selected') : array());
}
/* @var $model \app\models\User */
echo \app\components\htmltools\Page::title('Users - View', $menu);
echo \mpf\widgets\viewtable\Table::get(array('model' => $model, 'labels' => $model::getLabels(), 'columns' => array('name', 'email', 'register_date', 'last_login', 'status' => array('value' => $model->getStringStatus()), 'fb_id' => array('value' => $model->getFacebookConnectOrViewURL(true)), 'google_id' => array('value' => $model->getGoogleConnectOrViewURL(true)))))->display();
コード例 #14
0
ファイル: index.php プロジェクト: mpf-soft/social-modules
<?php

/* @var $this \mpf\modules\forum\controllers\Home */
/* @var $categories \mpf\modules\forum\models\ForumCategory[] */
$menu = [];
if (\mpf\modules\forum\components\UserAccess::get()->isSectionAdmin($this->sectionId)) {
    ?>
    <?php 
    $menu = [['url' => $this->updateURLWithSection(['manage', 'groups']), 'label' => 'Manage Groups'], ['url' => $this->updateURLWithSection(['manage', 'categories']), 'label' => 'Manage Categories'], ['url' => $this->updateURLWithSection(['manage', 'users']), 'label' => 'Manage Users'], ['url' => $this->updateURLWithSection(['manage', 'titles']), 'label' => 'Manage Titles']];
} elseif (\mpf\modules\forum\components\UserAccess::get()->isSectionModerator($this->sectionId)) {
    ?>
    <?php 
    $menu = [['url' => $this->updateURLWithSection(['manage', 'users']), 'label' => 'Manage Users'], ['url' => $this->updateURLWithSection(['manage', 'titles']), 'label' => 'Manage Titles']];
}
echo \app\components\htmltools\Page::get()->title($this->forumTitle, $menu);
?>
<div class="forum-page <?php 
echo $this->forumPageTheme;
?>
">
    <?php 
$this->displayComponent('searchbar');
?>
    <?php 
$this->displayComponent('topuserpanel');
?>

    <?php 
if (!\mpf\modules\forum\components\UserAccess::get()->canRead($this->sectionId)) {
    ?>
        <?php 
コード例 #15
0
ファイル: edit.php プロジェクト: mpf-soft/app-basic
<?php

$actions = array('index' => 'View All', 'create' => 'Add Group');
$menu = array();
foreach ($actions as $action => $label) {
    $menu[] = array('url' => array('usergroups', $action), 'label' => $label, 'htmlOptions' => $action == $this->getActiveAction() ? array('class' => 'selected') : array());
}
echo \app\components\htmltools\Page::title('Users Groups - Edit', $menu);
echo \mpf\widgets\form\Form::get(array('name' => 'save', 'model' => $model, 'theme' => 'default-wide', 'fields' => array('name', 'label'), 'formHtmlOptions' => array('autocomplete' => 'off')))->display();
コード例 #16
0
ファイル: index.php プロジェクト: mpf-soft/app-basic
<?php

$actions = array('index' => 'View All', 'create' => 'New User');
$menu = array();
foreach ($actions as $action => $label) {
    $menu[] = array('url' => array('users', $action), 'label' => $label, 'htmlOptions' => $action == $this->getActiveAction() ? array('class' => 'selected') : array());
}
echo \app\components\htmltools\Page::title('Users - ' . $actions[$this->getActiveAction()], $menu);
\mpf\widgets\datatable\Table::get(array('dataProvider' => $model->getDataProvider(), 'multiSelect' => true, 'multiSelectActions' => array('delete' => ['label' => 'Delete', 'icon' => \mpf\web\AssetsPublisher::get()->mpfAssetFile('images/oxygen/16x16/actions/edit-delete.png'), 'shortcut' => 'Shift+Delete', 'url' => \mpf\WebApp::get()->request()->createURL("users", "delete"), 'confirmation' => 'Are you sure?'], 'enable' => ['label' => 'Enable', 'icon' => \mpf\web\AssetsPublisher::get()->mpfAssetFile('images/oxygen/16x16/actions/dialog-ok-apply.png'), 'url' => \mpf\WebApp::get()->request()->createURL("users", "index")], 'disable' => ['label' => 'Disable', 'icon' => \mpf\web\AssetsPublisher::get()->mpfAssetFile('images/oxygen/16x16/actions/dialog-cancel.png'), 'url' => \mpf\WebApp::get()->request()->createURL("users", "index")], 'join' => ['label' => 'Join Accounts', 'icon' => \mpf\web\AssetsPublisher::get()->mpfAssetFile('images/oxygen/16x16/actions/im-msn.png'), 'url' => \mpf\WebApp::get()->request()->createURL("users", "merge"), 'confirmation' => 'Are you sure? After this user can log in on any of those accounts and see data from all of them.[where this is supported]']), 'columns' => array('name', 'email', 'register_date' => array('class' => 'Date'), 'last_login' => array('class' => 'Date'), 'last_login_source' => array('filter' => array('post' => 'POST', 'cookie' => 'Cookie', 'facebook' => 'Facebook', 'google' => 'Google')), 'status' => array('class' => 'Select', 'filter' => \app\models\User::getStatuses()), array('class' => 'Actions', 'buttons' => array('delete' => array('class' => 'Delete'), 'edit' => array('class' => 'Edit'), 'view' => array('class' => 'View')), 'headerHtmlOptions' => array('style' => 'width:60px;'), 'topButtons' => array('add' => array('class' => 'Add'))))))->display();
コード例 #17
0
<?php

require_once dirname(dirname(__DIR__)) . '/layout/header.php';
echo \app\components\htmltools\Page::get()->title('Blog');
require_once dirname(dirname(__DIR__)) . '/layout/footer.php';
コード例 #18
0
ファイル: notfound.php プロジェクト: mpf-soft/app-basic
<?php

echo \app\components\htmltools\Page::title('Page not found!', array(), array('style' => 'color:orangered;'));
コード例 #19
0
ファイル: group.php プロジェクト: mpf-soft/social-modules
<?php

/* @var $this \mpf\modules\forum\controllers\Manage */
/* @var $model \mpf\modules\forum\models\ForumUserGroup */
echo \app\components\htmltools\Page::get()->title(\mpf\web\helpers\Html::get()->link($this->updateURLWithSection(['home', 'index']), $this->forumTitle) . " " . \mpf\modules\forum\components\Config::value('FORUM_PAGE_TITLE_SEPARATOR') . " User Groups " . \mpf\modules\forum\components\Config::value('FORUM_PAGE_TITLE_SEPARATOR') . " " . ($model->isNewRecord() ? 'New Group' : 'Edit ' . $model->full_name), [['url' => ['manage', 'groups'], 'label' => 'Manage Groups'], ['url' => ['manage', 'categories'], 'label' => 'Manage Categories'], ['url' => $this->updateURLWithSection(['manage', 'users']), 'label' => 'Manage Users'], ['url' => $this->updateURLWithSection(['manage', 'titles']), 'label' => 'Manage Titles'], ['url' => ['manage', 'newGroup'], 'label' => 'New Group', 'htmlOptions' => $model->isNewRecord() ? ['class' => 'selected'] : []]]);
echo \mpf\widgets\form\Form::get(['model' => $model, 'name' => 'save', 'theme' => 'default-wide', 'fields' => ['full_name', 'html_class', ['name' => 'admin', 'type' => 'radio', 'options' => ['No', 'Yes']], ['name' => 'moderator', 'type' => 'radio', 'options' => ['No', 'Yes']], ['name' => 'newthread', 'type' => 'radio', 'options' => ['No', 'Yes']], ['name' => 'threadreply', 'type' => 'radio', 'options' => ['No', 'Yes']], ['name' => 'canread', 'type' => 'radio', 'options' => ['No', 'Yes']]]])->display();
コード例 #20
0
<?php

/* @var $this \mpf\modules\forum\controllers\Home */
/* @var $model \mpf\modules\forum\models\ForumUser2Section */
$menu = [];
if (\mpf\modules\forum\components\UserAccess::get()->isSectionAdmin($this->sectionId)) {
    ?>
    <?php 
    $menu = [['url' => $this->updateURLWithSection(['manage', 'groups']), 'label' => 'Manage Groups'], ['url' => $this->updateURLWithSection(['manage', 'categories']), 'label' => 'Manage Categories'], ['url' => $this->updateURLWithSection(['manage', 'users']), 'label' => 'Manage Users'], ['url' => $this->updateURLWithSection(['manage', 'titles']), 'label' => 'Manage Titles']];
}
echo \app\components\htmltools\Page::get()->title(\mpf\web\helpers\Html::get()->link($this->updateURLWithSection(['home', 'index']), $this->forumTitle) . " " . \mpf\modules\forum\components\Config::value('FORUM_PAGE_TITLE_SEPARATOR') . " Control Panel", $menu);
?>

<div class="forum-page <?php 
echo $this->forumPageTheme;
?>
">
    <?php 
$this->displayComponent('topuserpanel');
?>
    <?php 
if ((!\mpf\modules\forum\components\UserAccess::get()->isMember($this->sectionId) || \mpf\modules\forum\components\UserAccess::get()->isBanned($this->sectionId)) && !\mpf\modules\forum\components\UserAccess::get()->isSiteModerator() && !\mpf\modules\forum\components\UserAccess::get()->isSiteAdmin()) {
    ?>
        <?php 
    $this->displayComponent('accessdenied', ['location' => 'members']);
    ?>
        <?php 
    return;
    ?>
    <?php 
}
コード例 #21
0
<?php

echo \app\components\htmltools\Page::get()->title("Access denied!");
コード例 #22
0
ファイル: move.php プロジェクト: mpf-soft/social-modules
<?php

/* @var $this \mpf\modules\forum\components\Controller */
/* @var $model \mpf\modules\forum\models\ForumThread */
echo \app\components\htmltools\Page::get()->title(\mpf\web\helpers\Html::get()->link($this->updateURLWithSection(['home', 'index']), $this->forumTitle) . " " . \mpf\modules\forum\components\Config::value('FORUM_PAGE_TITLE_SEPARATOR') . " " . \mpf\web\helpers\Html::get()->link($this->updateURLWithSection(['category', 'index', ['category' => $model->subcategory->category->url_friendly_name, 'id' => $model->subcategory->category_id]]), $model->subcategory->category->name) . " " . \mpf\modules\forum\components\Config::value('FORUM_PAGE_TITLE_SEPARATOR') . " " . \mpf\web\helpers\Html::get()->link($this->updateURLWithSection(['subcategory', 'index', ['category' => $model->subcategory->category->url_friendly_name, 'subcategory' => $model->subcategory->url_friendly_title, 'id' => $model->subcategory->category_id]]), $model->subcategory->title) . " " . \mpf\modules\forum\components\Config::value('FORUM_PAGE_TITLE_SEPARATOR') . " " . \mpf\web\helpers\Html::get()->link($this->updateURLWithSection(['thread', 'index', ['category' => $model->subcategory->category->url_friendly_name, 'subcategory' => $model->subcategory->url_friendly_title, 'id' => $model->id]]), $model->title) . " " . \mpf\modules\forum\components\Config::value('FORUM_PAGE_TITLE_SEPARATOR') . " " . \mpf\modules\forum\components\Translator::get()->translate("Move post"));
?>

<div class="forum-page <?php 
echo $this->forumPageTheme;
?>
">
    <?php 
$this->displayComponent('searchbar');
?>
    <?php 
$this->displayComponent('topuserpanel');
?>
    <?php 
echo \mpf\widgets\form\Form::get(['name' => 'move', 'model' => $model, 'theme' => 'default-wide', 'fields' => [['name' => 'subcategory_id', 'type' => 'select', 'options' => \mpf\modules\forum\models\ForumSubcategory::getAllForSelectTree($this->sectionId)]]])->display();
?>
</div>
コード例 #23
0
ファイル: view.php プロジェクト: mpf-soft/app-basic
<?php

$actions = array('crontab' => 'View Jobs', 'addcron' => 'Add Job');
$menu = array();
foreach ($actions as $action => $label) {
    $menu[] = array('url' => array('admin', $action), 'label' => $label, 'htmlOptions' => $action == \mpf\WebApp::get()->request()->getAction() ? array('class' => 'selected') : array());
}
echo \app\components\htmltools\Page::title('Crontab - View Log', $menu);
foreach ($models as $model) {
    /* @var $model \app\models\Crontab */
    echo \mpf\web\helpers\Html::get()->tag('div', "<a href='?download={$model->id}'>{$model->log}</a>" . $model->previewLog(2500), array('class' => 'log-details'));
}