<?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 require __DIR__ . '/_header.php'; echo \mpf\widgets\form\Form::get(['model' => $user, 'name' => 'reset_password', 'fields' => ['email']])->display();
<?php require __DIR__ . '/_header.php'; ?> <?php echo \mpf\widgets\form\Form::get(['name' => 'register', 'model' => $user, 'fields' => ['name', 'email', ['name' => 'newPassword', 'type' => 'password'], ['name' => 'repeatedPassword', 'type' => 'password']], 'formHtmlOptions' => ['autocomplete' => 'off'], 'links' => ['Login' => \mpf\WebApp::get()->request()->createURL('user', 'login')]])->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()); } echo \app\components\htmltools\Page::title('Users - ' . $actions[$this->getActiveAction()], $menu); echo \mpf\widgets\form\Form::get(array('name' => 'save', 'model' => $model, 'theme' => 'default-wide', 'fields' => array('name', 'email', array('name' => 'comment', 'type' => 'textarea'))))->display();
<div class="blog-article-comments"> <?php if ($article->allow_comments) { ?> <div class="comment-form"> <?php if (\mpf\WebApp::get()->user()->isGuest()) { ?> <?php echo \mpf\widgets\form\Form::get(['name' => 'save', 'model' => $model, 'theme' => 'default-wide', 'fields' => ['username', 'email', ['name' => 'text', 'type' => 'textarea']]])->display(); ?> <?php } else { ?> <?php echo \mpf\widgets\form\Form::get(['name' => 'save', 'model' => $model, 'theme' => 'default-wide', 'fields' => [['name' => 'text', 'type' => 'textarea']]])->display(); ?> <?php } ?> </div> <div class="blog-comments-list"> <?php foreach ($comments as $comment) { ?> <div class="comment"> <b><?php echo $comment->username; ?> </b>
<?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 } ?> <?php echo \mpf\widgets\form\Form::get(['name' => 'save', 'model' => $model, 'theme' => 'default-wide', 'formHtmlOptions' => ['enctype' => 'multipart/form-data'], 'fields' => \mpf\modules\forum\components\Config::value('FORUM_HANDLE_USER_ICON') ? [['name' => 'signature', 'type' => 'markdown', 'htmlOptions' => ['style' => 'min-height: 200px;']], ['name' => 'icon', 'type' => 'image', 'urlPrefix' => $model->getIconLocationURL()]] : [['name' => 'signature', 'type' => 'markdown', 'htmlOptions' => ['style' => 'min-height: 200px;']]]])->display(); ?> </div>
<?php /* @var $this \mpf\modules\forum\controllers\Manage */ /* @var $model \mpf\modules\forum\models\ForumSubcategory */ 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') . " New subcategory", [['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']), 'label' => 'New Subcategory', 'htmlOptions' => $model->isNewRecord() ? ['class' => 'selected'] : []]]); echo \mpf\widgets\form\Form::get(['name' => 'save', 'model' => $model, 'theme' => 'default-wide', 'formHtmlOptions' => ['enctype' => 'multipart/form-data'], 'fields' => ['title', 'url_friendly_title', 'description', ['name' => 'category_id', 'type' => 'select', 'options' => \mpf\helpers\ArrayHelper::get()->transform(\mpf\modules\forum\models\ForumCategory::findAllBySection($this->sectionId), ['id' => 'name'])], ['name' => 'icon', 'type' => 'image', 'urlPrefix' => $this->getUploadUrl() . 'subcategories/']]])->display();
<?php require __DIR__ . '/_header.php'; ?> <?php echo \mpf\widgets\form\Form::get(['name' => 'save_data_and_login', 'model' => $model, 'fields' => ['name', ['name' => 'newPassword', 'type' => 'password'], ['name' => 'repeatedPassword', 'type' => 'password']]])->display();
<?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'], ['url' => $this->updateURLWithSection(['manage', 'newTitle']), 'label' => 'New Title', 'htmlOptions' => ['class' => 'selected']]] : [['url' => $this->updateURLWithSection(['manage', 'users']), 'label' => 'Manage Users'], ['url' => $this->updateURLWithSection(['manage', 'titles']), 'label' => 'Manage Titles', 'htmlOptions' => ['class' => 'selected']]]); echo \mpf\widgets\form\Form::get(['name' => 'save', 'model' => $model, 'theme' => 'default-wide', 'formHtmlOptions' => ['enctype' => 'multipart/form-data'], 'fields' => ['title', ['name' => 'icon', 'type' => 'image', 'urlPrefix' => $this->getUploadUrl() . 'titles/']]])->display();
<?php /* @var $this \mpf\modules\forum\controllers\Manage */ /* @var $model \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') . " Categories " . \mpf\modules\forum\components\Config::value('FORUM_PAGE_TITLE_SEPARATOR') . " " . ($model->isNewRecord() ? "Add New" : "Edit " . $model->name), [['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', 'htmlOptions' => $model->isNewRecord() ? ['class' => 'selected'] : []], ['url' => $this->updateURLWithSection(['manage', 'newSubcategory']), 'label' => 'New Subcategory']]); ?> <?php echo \mpf\widgets\form\Form::get(['name' => 'save', 'model' => $model, 'theme' => 'default-wide', 'formHtmlOptions' => ['enctype' => 'multipart/form-data'], 'fields' => array_merge(['name', 'url_friendly_name', 'order', ['name' => 'icon', 'type' => 'image', 'urlPrefix' => $this->getUploadUrl() . 'categories/']], $model->getGroupFields())])->display();
<?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("Edit post")); ?> <div class="forum-page <?php echo $this->forumPageTheme; ?> "> <?php $this->displayComponent('topuserpanel'); ?> <?php echo \mpf\widgets\form\Form::get(['model' => $model, 'name' => 'save', 'theme' => 'default-wide', 'fields' => ['title', ['name' => 'content', 'type' => \mpf\modules\forum\components\Config::value("FORUM_REPLY_INPUT_TYPE"), 'htmlOptions' => ['style' => 'min-height: 250px;']], ['name' => 'keywords', 'type' => 'seoKeywords']], 'buttons' => [['name' => 'preview', 'label' => 'Preview'], ['name' => 'sticky', 'label' => 'Save as Sticky', 'visible' => \mpf\modules\forum\components\UserAccess::get()->isCategoryModerator($model->subcategory->category_id, $this->sectionId)]]])->display(); ?> </div>
<?php require __DIR__ . '/_header.php'; ?> <?php echo \mpf\widgets\form\Form::get(array('name' => 'save_data_and_login', 'model' => $model, 'fields' => array('name', array('name' => 'newPassword', 'type' => 'password'), array('name' => 'repeatedPassword', 'type' => 'password')), 'htmlOptions' => array('style' => 'width: 460px; margin-left:270px;')))->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()); } echo \app\components\htmltools\Page::title('Users - Edit', $menu); echo \mpf\widgets\form\Form::get(array('name' => 'save', 'model' => $model, 'theme' => 'default-wide', 'fields' => array('name', 'email', array('name' => 'title_id', 'type' => 'select', 'options' => \mpf\helpers\ArrayHelper::get()->transform(\app\models\UserTitle::findAll(), array('id' => 'title'))), array('name' => 'status', 'type' => 'radio', 'options' => array(\app\models\User::STATUS_ACTIVE => 'Active', \app\models\User::STATUS_BLOCKED => 'Blocked')), array('name' => 'groupIDs', 'type' => 'checkbox', 'options' => \mpf\helpers\ArrayHelper::get()->transform(\app\models\UserGroup::findAll(), array('id' => 'label'))))))->display();
<?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();
<?php require __DIR__ . '/_header.php'; ?> <?php echo \mpf\widgets\form\Form::get(['name' => 'save', 'model' => $model, 'theme' => 'default-wide', 'fields' => [['name' => 'oldPassword', 'type' => 'password'], 'newEmail'], 'formHtmlOptions' => ['autocomplete' => 'off']])->display();
<?php /* @var $model \mpf\modules\forum\models\ForumReply */ /* @var $this \mpf\modules\forum\controllers\Home */ ?> <?php echo \mpf\widgets\form\Form::get(['name' => isset($name) ? $name : 'reply', 'model' => $model, 'theme' => 'default-wide', 'action' => $model->isNewRecord() ? $this->updateURLWithSection(['thread', 'reply']) : null, 'hiddenInputs' => ['parent' => isset($parent) ? $parent : 0, 'level' => isset($level) ? $level : 1, 'thread_id' => $model->thread_id], 'fields' => [['name' => 'content', 'type' => \mpf\modules\forum\components\Config::value("FORUM_REPLY_INPUT_TYPE"), 'htmlOptions' => ['style' => 'min-height: ' . (isset($height) ? $height : '150px;')]]], 'links' => isset($cancel) ? 'main' === $cancel ? ['Cancel' => ['href' => '#', 'onclick' => 'return hideThreadReplyForm();']] : ['Cancel' => ['href' => '#', 'onclick' => 'return hideReplyForm(this.parentNode.parentNode);']] : []])->display();
<?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 require __DIR__ . '/_header.php'; ?> <?php echo \mpf\widgets\form\Form::get(['name' => 'save', 'model' => $model, 'theme' => 'default-wide', 'fields' => ['name', ['name' => 'icon', 'type' => 'image', 'urlPrefix' => \app\models\User::AVATAR_LOCATION_URL]], 'formHtmlOptions' => ['autocomplete' => 'off', 'enctype' => 'multipart/form-data']])->display();
<?php require_once dirname(dirname(__DIR__)) . '/layout/header.php'; ?> <?php echo \mpf\widgets\form\Form::get(['name' => 'save', 'model' => $model, 'theme' => 'default-wide', 'fields' => \mpf\modules\blog\models\BlogCategory::getFormFields()])->display(); ?> <?php require_once dirname(dirname(__DIR__)) . '/layout/footer.php';
<?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 require __DIR__ . '/_header.php'; ?> <?php $buttons = []; if (\app\models\User::$allowConfirmationEmailResend) { $buttons[] = ['name' => 'resend', 'label' => 'Re-send confirmation email', 'htmlOptions' => ['style' => 'color:limegreen;']]; } echo \mpf\widgets\form\Form::get(['name' => 'login', 'model' => $model, 'fields' => ['name', ['name' => 'password', 'type' => 'password']], 'buttons' => $buttons, 'links' => ['Register' => \mpf\WebApp::get()->request()->createURL('user', 'register'), 'Forgot Password' => \mpf\WebApp::get()->request()->createURL('user', 'forgotpassword')]])->display();
<?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>
<?php require_once dirname(dirname(__DIR__)) . '/layout/header.php'; echo \mpf\widgets\form\Form::get(['name' => 'save', 'model' => $model, 'theme' => 'default-wide', 'formHtmlOptions' => ['enctype' => 'multipart/form-data'], 'fields' => \mpf\modules\blog\models\BlogPost::getFormFields()])->display(); require_once dirname(dirname(__DIR__)) . '/layout/footer.php';