<?php echo \app\components\htmltools\Page::title('Page not found!', array(), array('style' => 'color:orangered;'));
<?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();
<?php echo \app\components\htmltools\Page::title('Access denied!', array(), array('style' => 'color:orangered;'));
<?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();
<?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();
<?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);
<?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;
<?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();
<?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();
<?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);
<?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')); }