protected function renderContent()
 {
     $form = $this->beginWidget('ActiveForm', array('id' => 'simple-search-form', 'action' => array('search/index'), 'enableAjaxValidation' => false));
     echo Html::textField('search', '', array('size' => 20, 'maxlength' => 50, 'class' => 'small-search-field'));
     echo Html::hiddenField('choice', '0');
     echo Html::hiddenField('type', '0');
     echo Html::submitButton('', array('class' => 'small-search-button'));
     $this->endWidget();
 }
Exemple #2
0
	<?php 
echo $form->field($model, "id_departamento")->dropDownList(ArrayHelper::Map(DepartamentoTabla::find()->all(), "ID_DEPARTAMENTO", "NOMBRE_DEPARTAMENTO"), ["prompt" => "Sin informar"]);
?>

	<?php 
echo $form->field($model, "id_rol")->dropDownList(ArrayHelper::Map(ROL::find()->all(), "ID_ROL", "ROL"));
?>

	<?php 
echo $form->field($model, "EMAIL")->input("email");
?>

	<?php 
echo $form->field($model, "password")->input("password");
?>

	<?php 
echo $form->field($model, "password_repeat")->input("password");
?>

	<?php 
echo $form->field($model, 'reCaptcha')->widget(ReCaptcha::className());
?>


<?php 
echo Html::submitButton("Crear usuario", ["class" => "btn btn-primary"]);
?>

<?php 
$form->end();
Exemple #3
0
 /**
  * Creates a submit button
  *
  * @param string $message Text of the submit button, will be escaped
  * @param array $attributes Attributes
  * @return string HTML output for the submit button
  */
 function submitButton($message, $attributes = [])
 {
     # Disable submit button if history has 1 revision only
     if ($this->getNumRows() > 1) {
         return Html::submitButton($message, $attributes);
     } else {
         return '';
     }
 }
Exemple #4
0
<div class="form-group">
    <div class="col-sm-4"><?php 
echo $form->labelEx($model, 'alias', array('class' => 'control-label'));
?>
</div>
    <div class="col-sm-8"><?php 
echo $form->textField($model, 'alias', array('class' => 'form-control'));
?>
</div>
</div>
<div class="form-group">
    <div class="col-sm-4"><?php 
//= Html::activeLabelEx('UserGroup', 'access', array('class' => 'control-label'));
?>
</div>
    <div class="col-sm-8"><?php 
echo Html::checkBoxList('UserGroup[access_action][]', 'access', array('delete' => 'Удаление', 'create' => 'Создание', 'update' => 'Редактирование'), array('class' => ''));
?>
</div>
</div>
<div class="form-group buttons text-center">
<?php 
echo Html::submitButton(Yii::t('app', 'SEND'), array('class' => 'btn btn-success'));
?>
</div>
<?php 
$this->endWidget();
Yii::app()->tpl->closeWidget();
?>

 /**
  * Generates the namespace selector form with hidden attributes.
  * @return string HTML fragment
  */
 protected function getForm()
 {
     $this->opts['title'] = $this->getPageTitle()->getPrefixedText();
     if (!isset($this->opts['target'])) {
         $this->opts['target'] = '';
     } else {
         $this->opts['target'] = str_replace('_', ' ', $this->opts['target']);
     }
     if (!isset($this->opts['namespace'])) {
         $this->opts['namespace'] = '';
     }
     if (!isset($this->opts['nsInvert'])) {
         $this->opts['nsInvert'] = '';
     }
     if (!isset($this->opts['associated'])) {
         $this->opts['associated'] = false;
     }
     if (!isset($this->opts['contribs'])) {
         $this->opts['contribs'] = 'user';
     }
     if (!isset($this->opts['year'])) {
         $this->opts['year'] = '';
     }
     if (!isset($this->opts['month'])) {
         $this->opts['month'] = '';
     }
     if ($this->opts['contribs'] == 'newbie') {
         $this->opts['target'] = '';
     }
     if (!isset($this->opts['tagfilter'])) {
         $this->opts['tagfilter'] = '';
     }
     if (!isset($this->opts['topOnly'])) {
         $this->opts['topOnly'] = false;
     }
     if (!isset($this->opts['newOnly'])) {
         $this->opts['newOnly'] = false;
     }
     if (!isset($this->opts['hideMinor'])) {
         $this->opts['hideMinor'] = false;
     }
     $form = Html::openElement('form', ['method' => 'get', 'action' => wfScript(), 'class' => 'mw-contributions-form']);
     # Add hidden params for tracking except for parameters in $skipParameters
     $skipParameters = ['namespace', 'nsInvert', 'deletedOnly', 'target', 'contribs', 'year', 'month', 'topOnly', 'newOnly', 'hideMinor', 'associated', 'tagfilter'];
     foreach ($this->opts as $name => $value) {
         if (in_array($name, $skipParameters)) {
             continue;
         }
         $form .= "\t" . Html::hidden($name, $value) . "\n";
     }
     $tagFilter = ChangeTags::buildTagFilterSelector($this->opts['tagfilter']);
     if ($tagFilter) {
         $filterSelection = Html::rawElement('div', [], implode('&#160;', $tagFilter));
     } else {
         $filterSelection = Html::rawElement('div', [], '');
     }
     $this->getOutput()->addModules('mediawiki.userSuggest');
     $labelNewbies = Xml::radioLabel($this->msg('sp-contributions-newbies')->text(), 'contribs', 'newbie', 'newbie', $this->opts['contribs'] == 'newbie', ['class' => 'mw-input']);
     $labelUsername = Xml::radioLabel($this->msg('sp-contributions-username')->text(), 'contribs', 'user', 'user', $this->opts['contribs'] == 'user', ['class' => 'mw-input']);
     $input = Html::input('target', $this->opts['target'], 'text', ['size' => '40', 'required' => '', 'class' => ['mw-input', 'mw-ui-input-inline', 'mw-autocomplete-user']] + ($this->opts['contribs'] === 'newbie' || $this->opts['target'] ? [] : ['autofocus' => true]));
     $targetSelection = Html::rawElement('div', [], $labelNewbies . '<br>' . $labelUsername . ' ' . $input . ' ');
     $namespaceSelection = Xml::tags('div', [], Xml::label($this->msg('namespace')->text(), 'namespace', '') . '&#160;' . Html::namespaceSelector(['selected' => $this->opts['namespace'], 'all' => ''], ['name' => 'namespace', 'id' => 'namespace', 'class' => 'namespaceselector']) . '&#160;' . Html::rawElement('span', ['class' => 'mw-input-with-label'], Xml::checkLabel($this->msg('invert')->text(), 'nsInvert', 'nsInvert', $this->opts['nsInvert'], ['title' => $this->msg('tooltip-invert')->text(), 'class' => 'mw-input']) . '&#160;') . Html::rawElement('span', ['class' => 'mw-input-with-label'], Xml::checkLabel($this->msg('namespace_association')->text(), 'associated', 'associated', $this->opts['associated'], ['title' => $this->msg('tooltip-namespace_association')->text(), 'class' => 'mw-input']) . '&#160;'));
     $filters = [];
     if ($this->getUser()->isAllowed('deletedhistory')) {
         $filters[] = Html::rawElement('span', ['class' => 'mw-input-with-label'], Xml::checkLabel($this->msg('history-show-deleted')->text(), 'deletedOnly', 'mw-show-deleted-only', $this->opts['deletedOnly'], ['class' => 'mw-input']));
     }
     $filters[] = Html::rawElement('span', ['class' => 'mw-input-with-label'], Xml::checkLabel($this->msg('sp-contributions-toponly')->text(), 'topOnly', 'mw-show-top-only', $this->opts['topOnly'], ['class' => 'mw-input']));
     $filters[] = Html::rawElement('span', ['class' => 'mw-input-with-label'], Xml::checkLabel($this->msg('sp-contributions-newonly')->text(), 'newOnly', 'mw-show-new-only', $this->opts['newOnly'], ['class' => 'mw-input']));
     $filters[] = Html::rawElement('span', ['class' => 'mw-input-with-label'], Xml::checkLabel($this->msg('sp-contributions-hideminor')->text(), 'hideMinor', 'mw-hide-minor-edits', $this->opts['hideMinor'], ['class' => 'mw-input']));
     Hooks::run('SpecialContributions::getForm::filters', [$this, &$filters]);
     $extraOptions = Html::rawElement('div', [], implode('', $filters));
     $dateSelectionAndSubmit = Xml::tags('div', [], Xml::dateMenu($this->opts['year'] === '' ? MWTimestamp::getInstance()->format('Y') : $this->opts['year'], $this->opts['month']) . ' ' . Html::submitButton($this->msg('sp-contributions-submit')->text(), ['class' => 'mw-submit'], ['mw-ui-progressive']));
     $form .= Xml::fieldset($this->msg('sp-contributions-search')->text(), $targetSelection . $namespaceSelection . $filterSelection . $extraOptions . $dateSelectionAndSubmit, ['class' => 'mw-contributions-table']);
     $explain = $this->msg('sp-contributions-explain');
     if (!$explain->isBlank()) {
         $form .= "<p id='mw-sp-contributions-explain'>{$explain->parse()}</p>";
     }
     $form .= Xml::closeElement('form');
     return $form;
 }
Exemple #6
0
<?php

$form = ActiveForm::begin(['id' => 'form-signup']);
?>
    <?php 
echo $form->field($model, 'username');
?>
    <?php 
echo $form->field($model, 'email');
?>
    <?php 
echo $form->field($model, 'password')->passwordInput();
?>
    <div class="form-group">
        <?php 
echo Html::submitButton('Signup', ['class' => 'btn btn-primary', 'name' => 'signup-button']);
?>
    </div>
<?php 
ActiveForm::end();
Exemple #7
0
//                        "moment().subtract('month',6)", "moment().subtract('month',6)"
//                    ], '1 мес' => [
//                        "moment().subtract('month',1)", "moment().subtract('month',1)"
//                    ],
//                ], 'initRangeExpr' => true, 'presetDropdown' => true, 'hideInput' => true, 'opens' => 'left'
//            ],
//        ]);
echo $form->field($model, 'count')->input('input', ['type' => 'number', 'min' => 1]);
?>
        <div class="form-group">
            <div class="col-sm-3"><label class="control-label">Push me!</label>
            </div>

            <div class="col-sm-4">
                <?php 
echo Html::submitButton('Сгенерировать', ['class' => 'btn btn-primary']);
?>
            </div>
        </div>
        <?php 
?>
        <div class="form-group">
            <?php 
if (!$new) {
    echo Alert::widget(['options' => ['class' => 'col-sm-12 alert-' . $opstatus], 'body' => $message]);
}
?>
        </div>
        <?php 
ActiveForm::end();
?>
 /**
  * Form to ask for target user name.
  *
  * @param string $name User name submitted.
  * @return string Form asking for user name.
  */
 protected function userForm($name)
 {
     $this->getOutput()->addModules('mediawiki.userSuggest');
     $string = Html::openElement('form', ['method' => 'get', 'action' => wfScript(), 'id' => 'askusername']) . Html::hidden('title', $this->getPageTitle()->getPrefixedText()) . Html::openElement('fieldset') . Html::rawElement('legend', null, $this->msg('emailtarget')->parse()) . Html::label($this->msg('emailusername')->text(), 'emailusertarget') . '&#160;' . Html::input('target', $name, 'text', ['id' => 'emailusertarget', 'class' => 'mw-autocomplete-user', 'autofocus' => true, 'size' => 30]) . ' ' . Html::submitButton($this->msg('emailusernamesubmit')->text(), []) . Html::closeElement('fieldset') . Html::closeElement('form') . "\n";
     return $string;
 }
Exemple #9
0
?>
                    <div class="row">
                        <div class="col-lg-3 col-sm-4">
                            <?php 
echo Html::dropDownList('price', '', ['150000-200000' => '$150,000 - $200,000', '200000-250000' => '$200,000 - $250,000', '250000-300000' => '$250,000 - $300,000', '300000' => '$300,000 - above'], ['class' => 'form-control', 'prompt' => 'Price']);
?>
                        </div>
                        <div class="col-lg-3 col-sm-4">

                            <?php 
echo Html::dropDownList('apartment', '', ['Apartment', 'Building', 'Office Space'], ['class' => 'form-control', 'prompt' => 'Property']);
?>
                        </div>
                        <div class="col-lg-3 col-sm-4">
                            <?php 
echo Html::submitButton('Find Now', ['class' => 'btn btn-success']);
?>
                        </div>
                    </div>
                    <?php 
echo Html::endForm();
?>

                </div>
                <?
                if(Yii::$app->user->isGuest):
                    ?>
                    <div class="col-lg-5 col-lg-offset-1 col-sm-6 ">
                        <p>Join now and get updated with all the properties deals.</p>
                        <button class="btn btn-info"   data-toggle="modal" data-target="#loginpop">Login</button>        </div>
                <?
Exemple #10
0
?>
        </div>
        
        <div class = "row">
            <?php 
$this->widget($this->module->id . '.extensions.editMe.widgets.ExtEditMe', array('model' => $model, 'attribute' => 'body', 'autoLanguage' => false, 'height' => '300px', 'toolbar' => array(array('Bold', 'Italic', 'Underline', 'RemoveFormat'), array('TextColor', 'BGColor'), '-', array('Link', 'Unlink', 'Image'), '-', array('Blockquote')), 'skin' => $this->module->editorSkin, 'uiColor' => $this->module->editorUIColor, 'contentsCss' => $this->module->editorContentsCss));
?>
            <?php 
echo $form->error($model, 'body');
?>
        </div>

        <div class = "row buttons">
            <?php 
echo $form->hiddenField($model, 'member_id');
?>
            <?php 
echo $form->hiddenField($model, 'member_name');
?>
            <?php 
echo Html::submitButton(Yii::t('BbiiModule.bbii', 'Send'));
?>
        </div>

    <?php 
$this->endWidget();
?>

    </div><!-- form -->
</div>
Exemple #11
0
<?php

$form = ActiveForm::begin();
echo $form->field($model, 'title')->textInput(['maxlength' => true]);
echo $form->field($model, 'description')->textInput(['maxlength' => true]);
?>
<div class="form-group">
    <?php 
echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
</div>
<?php 
ActiveForm::end();
Exemple #12
0
<?php

$form = ActiveForm::begin(['action' => $model->url('update'), 'options' => ['enctype' => 'multipart/form-data', 'class' => 'form-horizontal']]);
echo $form->field($model, 'username', $horizontalOptions)->textInput();
echo $form->field($model, 'email', $horizontalOptions)->textInput();
echo $form->field($model, 'preview', $horizontalOptions)->fileInput(['accept' => 'image/*']);
?>
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <?php 
echo Html::submitButton(Yii::t('app/user', 'Update'), ['class' => 'btn btn-primary']);
?>
        </div>
    </div>
<?php 
ActiveForm::end();
Exemple #13
0
/* @var $type Integer */
$this->title = Yii::t('forum', 'Forum');
$this->params['breadcrumbs'][] = $this->title;
$this->context->bbii_breadcrumbs = array(Yii::t('BbiiModule.bbii', 'Forum') => array('forum/index'), Yii::t('BbiiModule.bbii', 'Search'));
$approvals = BbiiPost::find()->unapproved()->count();
$reports = BbiiMessage::find()->report()->count();
$item = array(array('label' => Yii::t('BbiiModule.bbii', 'Forum'), 'url' => array('forum/index')), array('label' => Yii::t('BbiiModule.bbii', 'Members'), 'url' => array('member/index')), array('label' => Yii::t('BbiiModule.bbii', 'Approval') . ' (' . $approvals . ')', 'url' => array('moderator/approval'), 'visible' => $this->context->isModerator()), array('label' => Yii::t('BbiiModule.bbii', 'Reports') . ' (' . $reports . ')', 'url' => array('moderator/report'), 'visible' => $this->context->isModerator()), array('label' => Yii::t('BbiiModule.bbii', 'Posts'), 'url' => array('moderator/admin'), 'visible' => $this->context->isModerator()), array('label' => Yii::t('BbiiModule.bbii', 'Blocked IP'), 'url' => array('moderator/ipadmin'), 'visible' => $this->context->isModerator()));
?>
<div id = "bbii-wrapper" class="well clearfix">
    <?php 
echo $this->render('_header', array('item' => $item));
?>
    
    <?php 
$form = $this->beginWidget('ActiveForm', array('id' => 'bbii-search-form', 'action' => array('search/index'), 'enableAjaxValidation' => false));
echo Html::textField('search', $search, array('size' => 80, 'maxlength' => 100));
echo Html::submitButton(Yii::t('BbiiModule.bbii', 'Search')) . '<br>';
echo Html::radioButtonList('choice', $choice, array('1' => Yii::t('BbiiModule.bbii', 'Subject'), '2' => Yii::t('BbiiModule.bbii', 'Content'), '0' => Yii::t('BbiiModule.bbii', 'Both')), array('separator' => '&nbsp;'));
echo ' | ';
echo Html::radioButtonList('type', $type, array('1' => Yii::t('BbiiModule.bbii', 'Any word'), '2' => Yii::t('BbiiModule.bbii', 'All words'), '0' => Yii::t('BbiiModule.bbii', 'Phrase')), array('separator' => '&nbsp;'));
$this->endWidget();
?>

    <?php 
$this->widget('zii.widgets.CListView', array('id' => 'bbii-search-result', 'dataProvider' => $dataProvider, 'itemView' => '_post'));
?>
    
    <?php 
echo $this->render('_footer');
?>
</div>
Exemple #14
0
    <?php 
echo Html::activeLabelEx($model, 'login', array('class' => 'info-title'));
?>
    <?php 
echo Html::activeTextField($model, 'login', array('class' => 'form-control unicase-form-control text-input'));
?>
</div>
<div class="form-group">
    <?php 
echo Html::activeLabelEx($model, 'password', array('class' => 'info-title'));
?>
    <?php 
echo Html::activePasswordField($model, 'password', array('class' => 'form-control unicase-form-control text-input'));
?>
</div>
<div class="radio outer-xs">
    <label>
        <?php 
echo Html::activeCheckBox($model, 'rememberMe', array('class' => ''));
?>
 <?php 
echo Yii::t('UsersModule.default', 'REMEMBER_ME');
?>
    </label>
    <?php 
echo Html::link(Yii::t('UsersModule.default', 'REMIN_PASS'), '/users/remind', array('class' => 'forgot-password pull-right'));
?>
</div>
<?php 
echo Html::submitButton(Yii::t('UsersModule.default', 'BTN_LOGIN'), array('class' => 'btn-upper btn btn-primary checkout-page-button'));
echo Html::endForm();
    <div id="file-upload-form">
        <?php 
roman444uk\jsAjaxFileUploader\JsAjaxFileUploader::widget(['id' => 'file-upload-form', 'clientOptions' => ['uploadUrl' => Url::to('/file/upload'), 'fileName' => Html::getInputName(new File(), 'file'), 'maxFileSize' => 512000, 'allowExt' => 'gif|jpg|jpeg|png', 'showProgress' => false, 'inputText' => 'Добавить файл']]);
?>
        
        <?php 
$form = ActiveForm::begin(['id' => 'advert-file-form', 'enableClientValidation' => false, 'fieldConfig' => ['template' => "{label}{input}"]]);
?>

            <?php 
echo $form->field(new File(), 'file')->fileInput(['name' => $directPopulating ? 'file' : null]);
?>
        
            <?php 
echo Html::submitButton('Загрузить', ['class' => '']);
?>

            <?php 
/* roman444uk\jqueryUpoadFilePlugin\JQueryUpoadFilePlugin::widget([
       'id' => 'file-upload-form',
       'renderContainer' => false,
       'clientOptions' => [
           'url' => Url::to('/file/upload'),
           'fileName' => Html::getInputName(new File, 'file'),
       ]
   ]); */
?>


        <?php 
 public function getStartForm($from)
 {
     return Xml::tags('form', ['method' => 'get', 'action' => wfScript()], Html::hidden('title', $this->getTitle()->getPrefixedText()) . Xml::fieldset($this->msg('categories')->text(), Xml::inputLabel($this->msg('categoriesfrom')->text(), 'from', 'from', 20, $from, ['class' => 'mw-ui-input-inline']) . ' ' . Html::submitButton($this->msg('categories-submit')->text(), [], ['mw-ui-progressive'])));
 }
Exemple #17
0
    function execute()
    {
        global $wgCookieExpiration;
        $expirationDays = ceil($wgCookieExpiration / (3600 * 24));
        ?>
<div class="mw-ui-container">
	<?php 
        if ($this->haveData('languages')) {
            ?>
		<div id="languagelinks">
			<p><?php 
            $this->html('languages');
            ?>
</p>
		</div>
	<?php 
        }
        if (!wfMessage('signupstart')->isDisabled()) {
            ?>
		<div id="signupstart"><?php 
            $this->msgWiki('signupstart');
            ?>
</div>
	<?php 
        }
        ?>
	<div id="userloginForm">
		<form name="userlogin2" id="userlogin2" class="mw-ui-vform" method="post" action="<?php 
        $this->text('action');
        ?>
">
			<section class="mw-form-header">
				<?php 
        $this->html('header');
        ?>
			</section>
			<!-- This element is used by the mediawiki.special.userlogin.signup.js module. -->
			<div
				id="mw-createacct-status-area"
				<?php 
        if ($this->data['message']) {
            ?>
					class="<?php 
            echo $this->data['messagetype'];
            ?>
box"
				<?php 
        } else {
            ?>
					style="display: none;"
				<?php 
        }
        ?>
			>
			<?php 
        if ($this->data['message']) {
            ?>
					<?php 
            if ($this->data['messagetype'] == 'error') {
                ?>
						<strong><?php 
                $this->msg('createacct-error');
                ?>
</strong>
						<br />
					<?php 
            }
            ?>
					<?php 
            $this->html('message');
            ?>
			<?php 
        }
        ?>
			</div>

			<div class="mw-ui-vform-field">
				<label for='wpName2'>
					<?php 
        $this->msg('userlogin-yourname');
        ?>

					<span class="mw-ui-flush-right"><?php 
        echo $this->getMsg('createacct-helpusername')->parse();
        ?>
</span>
				</label>
				<?php 
        echo Html::input('wpName', $this->data['name'], 'text', array('class' => 'mw-ui-input loginText', 'id' => 'wpName2', 'tabindex' => '1', 'size' => '20', 'required', 'placeholder' => $this->getMsg($this->data['loggedin'] ? 'createacct-another-username-ph' : 'userlogin-yourname-ph')->text()));
        ?>
			</div>

			<div class="mw-ui-vform-field">
				<?php 
        if ($this->data['createemail']) {
            ?>
					<div class="mw-ui-checkbox">
						<input name="wpCreateaccountMail" type="checkbox" value="1" id="wpCreateaccountMail" tabindex="2"
							<?php 
            if ($this->data['createemailset']) {
                echo 'checked="checked"';
            }
            ?>
						><label for="wpCreateaccountMail">
							<?php 
            $this->msg('createaccountmail');
            ?>
						</label>
					</div>
				<?php 
        }
        ?>
			</div>

			<div class="mw-ui-vform-field mw-row-password">
				<label for='wpPassword2'><?php 
        $this->msg('userlogin-yourpassword');
        ?>
</label>
				<?php 
        echo Html::input('wpPassword', null, 'password', array('class' => 'mw-ui-input loginPassword', 'id' => 'wpPassword2', 'tabindex' => '3', 'size' => '20', 'required', 'placeholder' => $this->getMsg('createacct-yourpassword-ph')->text()) + User::passwordChangeInputAttribs());
        ?>
			</div>

			<?php 
        if ($this->data['usedomain']) {
            $select = new XmlSelect('wpDomain', false, $this->data['domain']);
            $select->setAttribute('tabindex', 4);
            foreach ($this->data['domainnames'] as $dom) {
                $select->addOption($dom);
            }
            ?>
				<div class="mw-ui-vform-field" id="mw-user-domain-section">
					<label for="wpDomain"><?php 
            $this->msg('yourdomainname');
            ?>
</label>
					<div>
						<?php 
            echo $select->getHTML();
            ?>
					</div>
				</div>
			<?php 
        }
        ?>

			<div class="mw-ui-vform-field mw-row-password">
				<label for='wpRetype'><?php 
        $this->msg('createacct-yourpasswordagain');
        ?>
</label>
				<?php 
        echo Html::input('wpRetype', null, 'password', array('class' => 'mw-ui-input loginPassword', 'id' => 'wpRetype', 'tabindex' => '5', 'size' => '20', 'required', 'placeholder' => $this->getMsg('createacct-yourpasswordagain-ph')->text()) + User::passwordChangeInputAttribs());
        ?>
			</div>

			<div class="mw-ui-vform-field">
				<?php 
        if ($this->data['useemail']) {
            ?>
					<label for='wpEmail'>
						<?php 
            $this->msg($this->data['emailrequired'] ? 'createacct-emailrequired' : 'createacct-emailoptional');
            ?>
					</label>
					<?php 
            echo Html::input('wpEmail', $this->data['email'], 'email', array('class' => 'mw-ui-input loginText', 'id' => 'wpEmail', 'tabindex' => '6', 'size' => '20', 'required' => $this->data['emailrequired'], 'placeholder' => $this->getMsg($this->data['loggedin'] ? 'createacct-another-email-ph' : 'createacct-email-ph')->text()));
            ?>
				<?php 
        }
        ?>
			</div>

			<?php 
        if ($this->data['userealname']) {
            ?>
				<div class="mw-ui-vform-field">
					<label for='wpRealName'><?php 
            $this->msg('createacct-realname');
            ?>
</label>
					<input type='text' class='mw-ui-input loginText' name="wpRealName" id="wpRealName"
						tabindex="7"
						value="<?php 
            $this->text('realname');
            ?>
" size='20' />
					<div class="prefsectiontip">
						<?php 
            $this->msgWiki($this->data['loggedin'] ? 'createacct-another-realname-tip' : 'prefs-help-realname');
            ?>
					</div>
				</div>
			<?php 
        }
        ?>

			<?php 
        if ($this->data['usereason']) {
            ?>
				<div class="mw-ui-vform-field">
					<label for='wpReason'><?php 
            $this->msg('createacct-reason');
            ?>
</label>
					<?php 
            echo Html::input('wpReason', $this->data['reason'], 'text', array('class' => 'mw-ui-input loginText', 'id' => 'wpReason', 'tabindex' => '8', 'size' => '20', 'placeholder' => $this->getMsg('createacct-reason-ph')->text()));
            ?>
				</div>
			<?php 
        }
        ?>

			<?php 
        $tabIndex = 9;
        if (isset($this->data['extraInput']) && is_array($this->data['extraInput'])) {
            foreach ($this->data['extraInput'] as $inputItem) {
                ?>
					<div class="mw-ui-vform-field">
						<?php 
                // If it's a checkbox, output the whole thing (assume it has a msg).
                if ($inputItem['type'] == 'checkbox') {
                    ?>
							<div class="mw-ui-checkbox">
								<input
									name="<?php 
                    echo htmlspecialchars($inputItem['name']);
                    ?>
"
									id="<?php 
                    echo htmlspecialchars($inputItem['name']);
                    ?>
"
									type="checkbox" value="1"
									tabindex="<?php 
                    echo $tabIndex++;
                    ?>
"
									<?php 
                    if (!empty($inputItem['value'])) {
                        echo 'checked="checked"';
                    }
                    ?>
								><label for="<?php 
                    echo htmlspecialchars($inputItem['name']);
                    ?>
">
									<?php 
                    $this->msg($inputItem['msg']);
                    ?>
								</label>
							</div>
						<?php 
                } else {
                    // Not a checkbox.
                    // TODO (bug 31909) support other input types, e.g. select boxes.
                    ?>
							<?php 
                    if (!empty($inputItem['msg'])) {
                        ?>
								<label for="<?php 
                        echo htmlspecialchars($inputItem['name']);
                        ?>
">
									<?php 
                        $this->msgWiki($inputItem['msg']);
                        ?>
								</label>
							<?php 
                    }
                    ?>
							<input
								type="<?php 
                    echo htmlspecialchars($inputItem['type']);
                    ?>
"
								class="mw-ui-input"
								name="<?php 
                    echo htmlspecialchars($inputItem['name']);
                    ?>
"
								tabindex="<?php 
                    echo $tabIndex++;
                    ?>
"
								value="<?php 
                    echo htmlspecialchars($inputItem['value']);
                    ?>
"
								id="<?php 
                    echo htmlspecialchars($inputItem['name']);
                    ?>
"
							/>
						<?php 
                }
                ?>
						<?php 
                if ($inputItem['helptext'] !== false) {
                    ?>
							<div class="prefsectiontip">
								<?php 
                    $this->msgWiki($inputItem['helptext']);
                    ?>
							</div>
						<?php 
                }
                ?>
					</div>
				<?php 
            }
        }
        // A separate placeholder for any inserting any extrafields, e.g used by ConfirmEdit extension
        if ($this->haveData('extrafields')) {
            echo $this->data['extrafields'];
        }
        // skip one index.
        $tabIndex++;
        ?>
			<div class="mw-ui-vform-field mw-submit">
				<?php 
        echo Html::submitButton($this->getMsg($this->data['loggedin'] ? 'createacct-another-submit' : 'createacct-submit'), array('id' => 'wpCreateaccount', 'name' => 'wpCreateaccount', 'tabindex' => $tabIndex++), array('mw-ui-block', 'mw-ui-constructive'));
        ?>
			</div>
			<?php 
        if ($this->haveData('uselang')) {
            ?>
<input type="hidden" name="uselang" value="<?php 
            $this->text('uselang');
            ?>
" /><?php 
        }
        ?>
			<?php 
        if ($this->haveData('token')) {
            ?>
<input type="hidden" name="wpCreateaccountToken" value="<?php 
            $this->text('token');
            ?>
" /><?php 
        }
        ?>
		</form>
		<?php 
        if (!wfMessage('signupend')->isDisabled()) {
            ?>
			<div id="signupend"><?php 
            $this->html('signupend');
            ?>
</div>
		<?php 
        }
        ?>
	</div>
	<div class="mw-createacct-benefits-container">
		<h2><?php 
        $this->msg('createacct-benefit-heading');
        ?>
</h2>
		<div class="mw-createacct-benefits-list">
			<?php 
        for ($benefitIdx = 1; $benefitIdx <= $this->data['benefitCount']; $benefitIdx++) {
            // Pass each benefit's head text (by default a number) as a parameter to the body's message for PLURAL handling.
            $headUnescaped = $this->getMsg("createacct-benefit-head{$benefitIdx}")->text();
            ?>
				<div class="mw-number-text <?php 
            $this->msg("createacct-benefit-icon{$benefitIdx}");
            ?>
">
					<h3><?php 
            $this->msg("createacct-benefit-head{$benefitIdx}");
            ?>
</h3>
					<p><?php 
            echo $this->getMsg("createacct-benefit-body{$benefitIdx}")->params($headUnescaped)->escaped();
            ?>
</p>
				</div>
			<?php 
        }
        ?>
		</div>
	</div>
</div>
<?php 
    }
Exemple #18
0
</div>
    </div>
    <div class="form-group">
        <div class="col-sm-4"><?php 
    echo Html::activeLabel($model, 'use_configurations');
    ?>
</div>
        <div class="col-sm-8"><?php 
    echo Html::activeDropDownList($model, 'use_configurations', array(0 => Yii::t('app', 'NO'), 1 => Yii::t('app', 'YES')), array('class' => 'form-control'));
    ?>
</div>
    </div>
    <div id="availableAttributes"></div>
    <div class="form-group text-center">
        <?php 
    echo Html::submitButton(Yii::t('app', 'CREATE', 0), array('name' => false, 'class' => 'btn btn-success'));
    ?>
    </div>
    <?php 
    echo Html::endForm();
} else {
    echo $form->tabs();
}
Yii::app()->tpl->closeWidget();
?>

<script type="text/javascript">init_translitter('ShopProduct','<?php 
echo $model->primaryKey;
?>
');</script>
Exemple #19
0
 /**
  * Returns an array of html code of the following buttons:
  * save, diff, preview and live
  *
  * @param int $tabindex Current tabindex
  *
  * @return array
  */
 public function getEditButtons(&$tabindex)
 {
     $buttons = array();
     $attribs = array('id' => 'wpSave', 'name' => 'wpSave', 'tabindex' => ++$tabindex) + Linker::tooltipAndAccesskeyAttribs('save');
     $buttons['save'] = Html::submitButton(wfMessage('savearticle')->text(), $attribs, array('mw-ui-constructive'));
     ++$tabindex;
     // use the same for preview and live preview
     $attribs = array('id' => 'wpPreview', 'name' => 'wpPreview', 'tabindex' => $tabindex) + Linker::tooltipAndAccesskeyAttribs('preview');
     $buttons['preview'] = Html::submitButton(wfMessage('showpreview')->text(), $attribs);
     $buttons['live'] = '';
     $attribs = array('id' => 'wpDiff', 'name' => 'wpDiff', 'tabindex' => ++$tabindex) + Linker::tooltipAndAccesskeyAttribs('diff');
     $buttons['diff'] = Html::submitButton(wfMessage('showdiff')->text(), $attribs);
     Hooks::run('EditPageBeforeEditButtons', array(&$this, &$buttons, &$tabindex));
     return $buttons;
 }
Exemple #20
0
    <!-- SECTION CONTACT START --><section id=contactSection class="section-content section-contact hide"><div class=content-left><div class=content-title><span class=highlight>get in</span></div></div><div class=content-right><div class=content-info><div class=content-title>touch</div><div class="rule left"></div><span class=description>If you have something to share with us, work related or otherwise please leave us a message - we will reply as soon as we can.</span><div class="rule left"></div><div class=content-subtitle><a href=../ourwhitepaper.pdf class=resume title="download resume" target=_blank>download whitepaper</a></div></div><div class="content-info content-social"><div class=content-title-fake></div><div class=content-subtitle>social</div><div class="rule left"></div><div class=footer-social-links><a href=https://twitter.com/razormind title=Twitter target=_blank><i class="fa fa-twitter"></i></a> <a href=https://www.behance.net/razormind title=Behance target=_blank><i class="fa fa-behance"></i></a> <a href="https://linkedin.com/razormind/" title=LinkedIn target=_blank><i class="fa fa-linkedin"></i></a> <a href=https://soundcloud.com/jawadyaqub title=Soundcloud target=_blank><i class="fa fa-soundcloud"></i></a> <!--a href="https://vimeo.com/user40758660" title="Vimeo" target="_blank"><i class="fa fa-vimeo-square"></i></a--></div></div><div class=content-info><div class=content-title-fake></div><div class=content-subtitle>email</div><div class="rule left"></div><div class=content-subtitle><a class=email target=_blank href=mailto:hello@rzr.io>hello@rzr.io</a></div></div></div><br></section><!-- SECTION CONTACT END -->

<<<<<<< HEAD
=======
>>>>>>> newfeature
                                        <span class=settings-name><?php 
echo $form->field($model, 'identity');
?>
</span>
                                        <span class=settings-name><?php 
echo $form->field($model, 'password')->passwordInput();
?>
</span>
                                        <span class=settings-name><?php 
echo Html::submitButton(Yii::t('frontend', 'Login'), ['id' => 'login-button', 'name' => 'login-button', 'class' => 'button button-load load-video', 'data-model' => '1']);
?>
</span>
                                        <?php 
ActiveForm::end();
?>
=======
    <!--SECTION CREDITS START --><section id=creditsSection class="section-content section-credits hide"><div class=content-left><div class=content-subtitle>To all contributors</div><div class="rule right"></div></div><div class=content-right><div class=content-info-list><div class=content-subtitle>Backers</div><div class="rule left"></div><ul class=credits-list><li><a class=anchor-link target=_blank href="http://www.blender.org/">HSBC</a></li><li><a class=anchor-link target=_blank href="http://www.makehuman.org/">GSI Fund</a></li><li><a class=anchor-link target=_blank href="http://meshlab.sourceforge.net/">Razormind Canada</a></li><li><a class=anchor-link target=_blank href="http://www.gimp.org/">Gimp</a></li><li><a class=anchor-link target=_blank href="http://audacity.sourceforge.net/">Cassandra</a></li></ul></div><div class=content-info-list><div class=content-subtitle>Partners</div><div class="rule left"></div><ul class=credits-list><li><a class=anchor-link target=_blank href="http://threejs.org/">ThreeJS</a></li><li><a class=anchor-link target=_blank href=https://github.com/desandro/classie>riskMethods</a></li><li><a class=anchor-link target=_blank href="https://github.com/mrdoob/stats.js/">Razormind Dragon</a></li><li><a class=anchor-link target=_blank href="https://github.com/tweenjs/">Anthemis</a></li><li><a class=anchor-link target=_blank href="http://stereobit.github.io/dragend/">Eris Industries</a></li></ul></div><div class=content-info-list><div class=content-subtitle>Communities</div><div class="rule left"></div><ul class=credits-list><li><a class=anchor-link target=_blank href="http://codepen.io/">Codepen</a></li><li><a class=anchor-link target=_blank href="http://tympanus.net/codrops/">Codrops</a></li><li><a class=anchor-link target=_blank href="http://blendernation.com/">BlenderNation</a></li></ul></div><div class=content-info-list><div class=content-subtitle>Special thanks</div><div class="rule left"></div><ul class=credits-list><li><a class=anchor-link target=_blank href=https://twitter.com/mrdoob>Ricardo Cabello</a></li><li><a class=anchor-link target=_blank href=https://twitter.com/alteredq>AlteredQualia</a></li><li><a class=anchor-link target=_blank href=https://twitter.com/thespite>Jaume Sánchez</a></li></ul><br><span class=description>For actually building.</span></div></div></section><!--SECTION CREDITS END -->
>>>>>>> parent of 3aba832... added styling for login form

<<<<<<< HEAD
    <!-- SECTION SETTINGS START --><section id=settingsSection class="section-content section-settings"><div class=content-right><div class=content-info-settings><div class=content-subtitle>Generic</div><div class="rule left"></div><ul class=credits-list><li><span class=settings-name>Audio</span><span id=settingsAudioOn class="settings-toggle active">on</span><span id=settingsAudioOff class=settings-toggle>off</span></li><li id=fullscreenSettings><span class=settings-name>Fullscreen</span><span id=settingsFullscreenOn class=settings-toggle>on</span><span id=settingsFullscreenOff class="settings-toggle active">off</span></li></ul></div><div class=content-info-settings><div class=content-subtitle>Postprocessing</div><div class="rule left"></div><ul class=credits-list><li><span id=settingsQualityHigh class=settings-quality>High</span></li><li><span id=settingsQualityMedium class="settings-quality active">Medium</span></li><li><span id=settingsQualityLow class="settings-quality off">Low</span></li></ul></div><div class=content-info-settings><div class=content-subtitle>Anaglyph 3D</div><div class="rule left"></div><ul class=credits-list><li><span class=settings-name>stereo</span><span id=settingsStereoscopicOn class=settings-toggle>on</span><span id=settingsStereoscopicOff class="settings-toggle active">off</span></li><li><span class=settings-name>[red/cyan]</span></li></ul></div><div id=modelSettings class=content-info-settings><div class=content-subtitle>Scene</div><div class="rule left"></div><ul class=credits-list><li><span class="settings-name small-case">Zoom</span><input id=zoomBar type=range min=-2 max=2 value=0 step=0.1></li><li><span class="settings-name small-case">Auto rotation</span><input id=rotationBar type=range min=-2 max=2 value=0.5 step=0.1></li></ul></div><div class="content-subtitle low-performance-info small-case">If your browser is performing slow, change postprocessing quality to <a id=settingsQualityLowShortcut class=hover-anchor>low</a> or <a id=noWebglLaunch class=hover-anchor>click here</a> for a static version of this website.</div></div></section><!--SECTION SETTINGS END -->
=======
                                    </div>
					 <div class="loader"><i class="loader__tile loader__tile__1"></i><i class="loader__tile loader__tile__2"></i><i class="loader__tile loader__tile__3"></i><i class="loader__tile loader__tile__4"></i><i class="loader__tile loader__tile__5"></i><i class="loader__tile loader__tile__6"></i><i class="loader__tile loader__tile__7"></i><i class="loader__tile loader__tile__8"></i><i class="loader__tile loader__tile__9"></i></div>
                                </div>
 /**
  * Generate a form to allow users to enter an ISBN
  *
  * @return string
  */
 private function makeForm()
 {
     $form = Html::openElement('fieldset') . "\n";
     $form .= Html::element('legend', array(), $this->msg('booksources-search-legend')->text()) . "\n";
     $form .= Html::openElement('form', array('method' => 'get', 'action' => wfScript())) . "\n";
     $form .= Html::hidden('title', $this->getPageTitle()->getPrefixedText()) . "\n";
     $form .= '<p>' . Xml::inputLabel($this->msg('booksources-isbn')->text(), 'isbn', 'isbn', 20, $this->isbn, array('autofocus' => '', 'class' => 'mw-ui-input-inline'));
     $form .= '&#160;' . Html::submitButton($this->msg('booksources-search')->text(), array(), array('mw-ui-progressive')) . "</p>\n";
     $form .= Html::closeElement('form') . "\n";
     $form .= Html::closeElement('fieldset') . "\n";
     return $form;
 }
Exemple #22
0
    <div class="grid3">
        <?php 
$this->widget('ext.colorpicker.ColorPicker', array('name' => 'Less[btn-primary-bgcolor]', 'value' => $less['btn-primary-bgcolor'], 'selector' => 'Less_btn-primary-bgcolor'));
?>
    </div>
    <div class="grid3">
        <?php 
$this->widget('ext.colorpicker.ColorPicker', array('name' => 'Less[btn-success-bgcolor]', 'value' => $less['btn-success-bgcolor'], 'selector' => 'Less_btn-success-bgcolor'));
?>
    </div>
    <div class="grid3">
        <?php 
$this->widget('ext.colorpicker.ColorPicker', array('name' => 'Less[btn-info-bgcolor]', 'value' => $less['btn-info-bgcolor'], 'selector' => 'Less_btn-info-bgcolor'));
?>
    </div>
    <div class="grid3">
        <?php 
$this->widget('ext.colorpicker.ColorPicker', array('name' => 'Less[btn-warning-bgcolor]', 'value' => $less['btn-warning-bgcolor'], 'selector' => 'Less_btn-warning-bgcolor'));
?>
    </div>
    <div class="grid3">
        <?php 
$this->widget('ext.colorpicker.ColorPicker', array('name' => 'Less[btn-danger-bgcolor]', 'value' => $less['btn-danger-bgcolor'], 'selector' => 'Less_btn-danger-bgcolor'));
?>
    </div>
    <div class="clear"></div>
</div>
<?php 
echo Html::submitButton('save');
echo Html::endForm();
Yii::app()->tpl->closeWidget();
Exemple #23
0
    function execute()
    {
        global $wgCookieExpiration;
        $expirationDays = ceil($wgCookieExpiration / (3600 * 24));
        ?>
<div class="mw-ui-container">
	<div id="userloginprompt"><?php 
        $this->msgWiki('loginprompt');
        ?>
</div>
	<?php 
        if ($this->haveData('languages')) {
            ?>
		<div id="languagelinks">
			<p><?php 
            $this->html('languages');
            ?>
</p>
		</div>
	<?php 
        }
        ?>
	<div id="userloginForm">
		<form name="userlogin" class="mw-ui-vform" method="post" action="<?php 
        $this->text('action');
        ?>
">
			<?php 
        if ($this->data['loggedin']) {
            ?>
				<div class="warningbox">
					<?php 
            echo $this->getMsg('userlogin-loggedin')->params($this->data['loggedinuser'])->parse();
            ?>
				</div>
			<?php 
        }
        ?>
			<section class="mw-form-header">
				<?php 
        $this->html('header');
        /* extensions such as ConfirmEdit add form HTML here */
        ?>
			</section>

			<?php 
        if ($this->data['message']) {
            ?>
				<div class="<?php 
            $this->text('messagetype');
            ?>
box">
					<?php 
            if ($this->data['messagetype'] == 'error') {
                ?>
						<strong><?php 
                $this->msg('loginerror');
                ?>
</strong>
						<br />
					<?php 
            }
            ?>
					<?php 
            $this->html('message');
            ?>
				</div>
			<?php 
        }
        ?>

			<?php 
        if ($this->data['formheader']) {
            ?>
				<div class="mw-form-formheader">
					<?php 
            $this->html('formheader');
            /* extensions such as MobileFrontend add HTML here */
            ?>
				</div>
			<?php 
        }
        ?>
			<div class="mw-ui-vform-field">
				<label for="wpName1">
					<?php 
        $this->msg('userlogin-yourname');
        if ($this->data['secureLoginUrl']) {
            echo Html::element('a', ['href' => $this->data['secureLoginUrl'], 'class' => 'mw-ui-flush-right mw-secure'], $this->getMsg('userlogin-signwithsecure')->text());
        }
        ?>
				</label>
				<?php 
        echo Html::input('wpName', $this->data['name'], 'text', ['class' => 'loginText mw-ui-input', 'id' => 'wpName1', 'tabindex' => '1', 'required' => true, 'autofocus' => !$this->data['name'], 'placeholder' => $this->getMsg('userlogin-yourname-ph')->text()]);
        ?>
			</div>

			<div class="mw-ui-vform-field">
				<label for="wpPassword1">
					<?php 
        $this->msg('userlogin-yourpassword');
        ?>
				</label>
				<?php 
        echo Html::input('wpPassword', null, 'password', ['class' => 'loginPassword mw-ui-input', 'id' => 'wpPassword1', 'tabindex' => '2', 'autofocus' => (bool) $this->data['name'], 'placeholder' => $this->getMsg('userlogin-yourpassword-ph')->text()]);
        ?>
			</div>

			<?php 
        if (isset($this->data['usedomain']) && $this->data['usedomain']) {
            $select = new XmlSelect('wpDomain', false, $this->data['domain']);
            $select->setAttribute('tabindex', 3);
            foreach ($this->data['domainnames'] as $dom) {
                $select->addOption($dom);
            }
            ?>
				<div class="mw-ui-vform-field" id="mw-user-domain-section">
					<label for="wpDomain"><?php 
            $this->msg('yourdomainname');
            ?>
</label>
					<?php 
            echo $select->getHTML();
            ?>
				</div>
			<?php 
        }
        ?>

			<?php 
        if ($this->haveData('extrafields')) {
            echo $this->data['extrafields'];
        }
        ?>

			<div class="mw-ui-vform-field">
				<?php 
        if ($this->data['canremember']) {
            ?>
					<div class="mw-ui-checkbox">
						<input name="wpRemember" type="checkbox" value="1" id="wpRemember" tabindex="4"
							<?php 
            if ($this->data['remember']) {
                echo 'checked="checked"';
            }
            ?>
						><label for="wpRemember">
							<?php 
            echo $this->getMsg('userlogin-remembermypassword')->numParams($expirationDays)->escaped();
            ?>
</label>
					</div>
				<?php 
        }
        ?>
			</div>

			<div class="mw-ui-vform-field">
				<?php 
        $attrs = ['id' => 'wpLoginAttempt', 'name' => 'wpLoginAttempt', 'tabindex' => '6'];
        $modifiers = ['mw-ui-progressive'];
        echo Html::submitButton($this->getMsg('pt-login-button')->text(), $attrs, $modifiers);
        ?>
			</div>

			<div class="mw-ui-vform-field mw-form-related-link-container" id="mw-userlogin-help">
				<?php 
        echo Html::element('a', ['href' => Skin::makeInternalOrExternalUrl(wfMessage('helplogin-url')->inContentLanguage()->text())], $this->getMsg('userlogin-helplink2')->text());
        ?>
			</div>
			<?php 
        if ($this->data['useemail'] && $this->data['canreset'] && $this->data['resetlink'] === true) {
            echo Html::rawElement('div', ['class' => 'mw-ui-vform-field mw-form-related-link-container'], Linker::link(SpecialPage::getTitleFor('PasswordReset'), $this->getMsg('userlogin-resetpassword-link')->escaped()));
        }
        if ($this->haveData('createOrLoginHref')) {
            if ($this->data['loggedin']) {
                ?>
					<div class="mw-form-related-link-container mw-ui-vform-field">
						<a href="<?php 
                $this->text('createOrLoginHref');
                ?>
" id="mw-createaccount-join" tabindex="7"><?php 
                $this->msg('userlogin-createanother');
                ?>
</a>
					</div>
				<?php 
            } else {
                ?>
					<div id="mw-createaccount-cta" class="mw-ui-vform-field">
						<?php 
                $this->msg('userlogin-noaccount');
                ?>
<a href="<?php 
                $this->text('createOrLoginHref');
                ?>
" id="mw-createaccount-join" tabindex="7" class="mw-ui-button"><?php 
                $this->msg('userlogin-joinproject');
                ?>
</a>
					</div>
				<?php 
            }
        }
        // Hidden fields
        $fields = '';
        if ($this->haveData('uselang')) {
            $fields .= Html::hidden('uselang', $this->data['uselang']);
        }
        if ($this->haveData('token')) {
            $fields .= Html::hidden('wpLoginToken', $this->data['token']);
        }
        if ($this->data['cansecurelogin']) {
            $fields .= Html::hidden('wpForceHttps', $this->data['stickhttps']);
        }
        if ($this->data['cansecurelogin'] && $this->haveData('fromhttp')) {
            $fields .= Html::hidden('wpFromhttp', $this->data['fromhttp']);
        }
        echo $fields;
        ?>
		</form>
	</div>
</div>
<?php 
    }
Exemple #24
0
//use yii\helpers\Html;
//use yii\helpers\Url;
//use yii\bootstrap\ActiveForm;
use common\widgets\Alert;
//$this->title = 'Кабинет';
//echo'<pre>';print_r($data);echo'</pre>';die;
?>
<?/*
    <?php 
$form = ActiveForm::begin(['action' => Url::to('site/logout'), 'id' => 'logout-form', 'enableClientValidation' => false]);
?>
	
		<div class="body-button">
			<?php 
echo Html::submitButton(Yii::t('app', 'Logout'), ['class' => 'button', 'name' => 'logout-button', 'id' => 'logout-button']);
?>
		</div>
	
	<?php 
ActiveForm::end();
?>
	
*/?>

<?php 
echo $this->render('_cabinet-head', $data);
?>
                       
<div class="acc-left-block">
	<div class="account-history sidebar-right">
 /**
  * @param string $term
  * @param int $resultsShown
  * @param int $totalNum
  * @return string
  */
 protected function shortDialog($term, $resultsShown, $totalNum)
 {
     $out = Html::hidden('title', $this->getPageTitle()->getPrefixedText());
     $out .= Html::hidden('profile', $this->profile) . "\n";
     // Term box
     $out .= Html::input('search', $term, 'search', array('id' => $this->isPowerSearch() ? 'powerSearchText' : 'searchText', 'size' => '50', 'autofocus' => trim($term) === '', 'class' => 'mw-ui-input mw-ui-input-inline')) . "\n";
     $out .= Html::hidden('fulltext', 'Search') . "\n";
     $out .= Html::submitButton($this->msg('searchbutton')->text(), array('class' => 'mw-ui-button mw-ui-progressive'), array('mw-ui-progressive')) . "\n";
     // Results-info
     if ($totalNum > 0 && $this->offset < $totalNum) {
         $top = $this->msg('search-showingresults')->numParams($this->offset + 1, $this->offset + $resultsShown, $totalNum)->numParams($resultsShown)->parse();
         $out .= Xml::tags('div', array('class' => 'results-info'), $top) . Xml::element('div', array('style' => 'clear:both'), '', false);
     }
     return $out;
 }
Exemple #26
0
 /**
  * Returns an array of html code of the following buttons:
  * save, diff, preview and live
  *
  * @param int $tabindex Current tabindex
  *
  * @return array
  */
 public function getEditButtons(&$tabindex)
 {
     $buttons = [];
     $labelAsPublish = $this->mArticle->getContext()->getConfig()->get('EditSubmitButtonLabelPublish');
     // Can't use $this->isNew as that's also true if we're adding a new section to an extant page
     if ($labelAsPublish) {
         $buttonLabelKey = !$this->mTitle->exists() ? 'publishpage' : 'publishchanges';
     } else {
         $buttonLabelKey = !$this->mTitle->exists() ? 'savearticle' : 'savechanges';
     }
     $buttonLabel = $this->context->msg($buttonLabelKey)->text();
     $attribs = ['id' => 'wpSave', 'name' => 'wpSave', 'tabindex' => ++$tabindex] + Linker::tooltipAndAccesskeyAttribs('save');
     $buttons['save'] = Html::submitButton($buttonLabel, $attribs, ['mw-ui-progressive']);
     ++$tabindex;
     // use the same for preview and live preview
     $attribs = ['id' => 'wpPreview', 'name' => 'wpPreview', 'tabindex' => $tabindex] + Linker::tooltipAndAccesskeyAttribs('preview');
     $buttons['preview'] = Html::submitButton($this->context->msg('showpreview')->text(), $attribs);
     $buttons['live'] = '';
     $attribs = ['id' => 'wpDiff', 'name' => 'wpDiff', 'tabindex' => ++$tabindex] + Linker::tooltipAndAccesskeyAttribs('diff');
     $buttons['diff'] = Html::submitButton($this->context->msg('showdiff')->text(), $attribs);
     Hooks::run('EditPageBeforeEditButtons', [&$this, &$buttons, &$tabindex]);
     return $buttons;
 }
Exemple #27
0
echo Html::activePasswordField($model, 'password', array('class' => 'form-control', 'placeholder' => $model->getAttributeLabel('password')));
?>
</div>
<br/>
<div class="input-group">
    <?php 
echo Html::activeCheckBox($model, 'rememberMe', array('class' => ''));
?>
    <?php 
echo Html::activeLabel($model, 'rememberMe');
?>
</div>
<br/>
<div class="text-center">
    <?php 
echo Html::submitButton(Yii::t('UsersModule.default', 'BTN_LOGIN'), array('class' => 'btn btn-success'));
?>
</div>


<ul class="list-unstyled">
    <li><?php 
echo Html::link(Yii::t('UsersModule.default', 'REMIN_PASS'), '/users/remind');
?>
</li>
    <li><?php 
echo Html::link(Yii::t('UsersModule.default', 'REGISTRATION'), '/users/register');
?>
</li>
</ul>
Exemple #28
0
    <?php 
echo $form->field($model, 'per_energy_consumed')->textInput();
?>

    <?php 
echo $form->field($model, 'per_carbon_emission')->textInput();
?>

    <?php 
echo $form->field($model, 'date_version')->textInput();
?>

    <?php 
echo $form->field($model, 'created_at')->textInput();
?>

    <?php 
echo $form->field($model, 'updated_at')->textInput();
?>

    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>

    <?php 
ActiveForm::end();
?>

</div>
?>
        <?php 
echo $form->field($updateUserForm, 'bankName');
?>
        <?php 
echo $form->field($updateUserForm, 'cardNumber');
?>
        <?php 
echo $form->field($updateUserForm, 'cardName');
?>
        <div class="form-group">
            <div class="col-md-1 col-md-offset-1">
                <div class="pull-right">
                    <a class="btn btn-warning" href="<?php 
echo Url::to(['default/index']);
?>
">返回</a>
                    <?php 
echo Html::submitButton('确定', ['class' => 'btn btn-primary']);
?>
                </div>
                <div class="clearfix"></div>
            </div>
        </div>
        <?php 
ActiveForm::end();
?>
    </div>
</div>

Exemple #30
0
    ?>

                </div>
                <div class="col-sm-5">   
                    <?php 
    echo $form->textField($model, 'verifyCode', array('class' => 'form-control'));
    ?>
                    <?php 
    echo $form->error($model, 'verifyCode', array(), false, false);
    ?>
                </div>
            </div>
        <?php 
}
?>

        <div class="text-center">
            <?php 
echo Html::submitButton(Yii::t('app', 'SEND_MSG'), array('class' => 'btn btn-default'));
?>
        </div>
        <?php 
$this->endWidget();
?>
    </div>



</div>