?> <?php echo $content; ?> </div> </div> <footer class="footer"> <div class="container"> <p class="pull-left">© My Company <?php echo date('Y'); ?> </p> <p class="pull-right"><?php echo Yii::powered(); ?> </p> </div> </footer> <?php $form = yii\widgets\ActiveForm::begin(['action' => \yii\helpers\Url::to(['site/language']), 'method' => 'post']); echo Html::dropDownList('language', Yii::$app->language, ['en-US' => 'English', 'ar-Ar' => '???????']); echo Html::submitButton('Change'); echo Html::endForm(); $this->endBody(); ?> </body> </html> <?php $this->endPage();
<li><a href="/<?php echo $user->username; ?> /answers">Answers<span><?php echo count($user->questions); ?> </span></a></li> <li><a href="/<?php echo $user->username; ?> /likes">Likes<span>12000</span></a></li> </ul> </div> <?$form = yii\widgets\ActiveForm::begin([ 'id' => 'ask-question-form', 'options' => ['class' => 'form-horizontal'], 'enableAjaxValidation' => true, 'action' => '/user/ask/' ]);?> <h2>Ask me a question <small class="alert-danger"></small></h2> <textarea class="form-control" name="question" rows="4" required=""></textarea> <div class="btn-form"> <input value="Ask" class="btn btn-primary" type="submit"/> </div> <input name="id_user" value="<?php echo $user->id; ?> " type="hidden"/> <?$form->end();?> <div class="col-xs-12 answer-wrapper-all"> <div class="answer-wrapper">
* @author Lmy * QQ:6232967 * Create at 2016-3-14 22:56:14 */ use yii\helpers\Html; $this->title = "修改密码"; $this->registerCssFile('@web/statics/css/user.css', ['depends' => ['frontend\\assets\\AppAsset']]); ?> <div class="wrapper"> <?php echo $this->render("_left"); ?> <div class="wrapper-user-r"> <div class="paaawordbody"> <?php $form = yii\widgets\ActiveForm::begin(['id' => 'form-signup']); ?> <div class="paaawordbody-ymm margin-bottom33"> 原密码: <input type="password" name='oldpass' class="ymm-txt"> </div> <div class="paaawordbody-ymm margin-bottom33"> 新密码: <input type="password" name='password' class="ymm-txt"> </div> <div class="paaawordbody-zcsr margin-bottom33"> 再次输入: <input type="password" name='repassword' class="ymm-txt"> </div> <div class="paaawordbody-zcsr-xgmm">
use kartik\date\DatePicker; use yii\helpers\ArrayHelper; use yii\web\Session; $session = new Session(); $session->open(); ?> <?php $customer = new \backend\models\Customer(); $currency = new \backend\models\Currency(); $saledata = new \backend\models\Saledata(); $country = new \backend\models\Country(); ?> <?php yii\widgets\ActiveForm::begin(['id' => 'form-1', 'action' => 'index.php?r=openreport/execreport']); ?> <div class="panel panel-success"> <div class="panel-heading">เลือกเงื่อนไขรายงาน</div> <div class="panel-body"> <div class="row"> <?php if (isset($_SESSION['module']) && $_SESSION['module'] == 2 or $_SESSION['module'] == 3) { ?> <div class="col-md-2"> <label class="control-label col-sm-3" for="inputSuccess3">ปี</label> </div> <div class="col-md-10"> <div class="col-sm-9"> <select class="form-control" name='yyyy'>
<?php use yii\helpers\Html; use yii\helpers\ArrayHelper; /* @var $this yii\web\View */ /* @var $model yii\base\DynamicModel */ /* @var $branchs biz\master\models\Branch[] */ $form = yii\widgets\ActiveForm::begin(); echo $form->field($model, 'selected')->dropDownList(ArrayHelper::map($branchs, 'id_branch', 'nm_branch')); ?> <div class="form-group"> <?php echo Html::submitButton('Change', ['class' => 'btn btn-primary']); ?> </div> <?php yii\widgets\ActiveForm::end();
<div class="container"> <div class="search-row"> <div class="container"> <div class="row"> <div class="col-lg-12 col-md-12"> <?php $form = yii\widgets\ActiveForm::begin(['action' => ['/g-search/gsearch'], 'method' => 'get', 'options' => ['class' => 'form-inline', 'style' => 'margin: 0 auto; float: none; width: 70%']]); ?> <div class="form-group"> <?php echo $form->field($searchModel, 'cat')->dropDownList(common\models\Category::getHierarchy(), ['prompt' => '-- All Category --', 'class' => 'form-control input-lg', 'style' => 'width: 250px;'])->label(false); ?> </div> <div class="form-group"> <?php echo $form->field($searchModel, 'keyword')->textInput(['class' => 'form-control input-lg', 'autocomplete' => 'off', 'style' => 'width: 420px;'])->label(false); ?> </div> <?php echo yii\helpers\Html::button('<span class="fa fa-search"></span> Search', ['class' => 'btn btn-lg btn-orange tooltip-test mainserarchsubmit', 'style' => 'margin-top: -10px;', 'type' => 'submit']); ?> <?php \yii\widgets\ActiveForm::end(); ?> </div> </div> </div> </div> </div>
<?php $form = new \yii\widgets\ActiveForm(); ?> <div class="container"> <?php $form->begin(); ?> <?php echo $form->field($post, 'category')->dropDownList(array_merge(['0' => \Yii::t('site', 'Не выбрано')], $categoryList)); ?> <?php echo $form->field($post, 'title'); ?> <?php echo $form->field($post, 'content')->textarea(); ?> <?php echo $form->field($post, 'price'); ?> <?php echo $form->field($post, 'phone'); ?> <?php echo $form->field($post, 'email'); ?> <button type="submit">Отправить</button> <?php $form->end(); ?> </div>
/** * @var yii\web\View $this * @var app\models\Book $modelBook * @var yii\data\ActiveDataProvider $dataProvider * @var array $authorIds * @var array $tagIds */ $this->title = 'Test application'; ?> <h1>Каталог книг</h1> <div class="row"> <div class="col-md-3"> <?php $form = yii\widgets\ActiveForm::begin(['method' => 'GET', 'action' => ['front/index'], 'options' => []]); ?> <h4>Авторы</h4> <? $dataProviderAuthor = new yii\data\ActiveDataProvider([ 'query' => app\models\Author::find(), 'pagination' => false, 'sort' => false, ]); echo yii\grid\GridView::widget([ 'dataProvider' => $dataProviderAuthor, 'columns' => [ 'name', [