<?php /* @var $permission yii\rbac\Permission */ use yii\helpers\Html; echo $this->render('/default/_navigation', []); ?> <?php echo HTML::beginForm(['create']); ?> <div class="form-group"> <?php echo HTML::label('Name'); ?> <?php echo HTML::textInput('name', ''); ?> </div> <div class="form-group"> <?php echo HTML::label('Beschreibung'); ?> <?php echo HTML::textInput('description', ''); ?> </div> <?php echo HTML::button('Speichern', ['type' => 'submit']);
<h1><?php echo Html::encode($this->title); ?> </h1> <br><br> <?php if (Yii::$app->session->hasFlash('mail')) { ?> <div class="alert alert-success"> Отчет отправлено на почту <b><?php echo Yii::$app->session->getFlash('mail'); ?> </b> </div> <?php } else { echo HTML::beginForm(); // $form = ActiveForm::begin(['id' => 'contact-form']); // $form->field($model, 'contact_mail')->textInput(); echo Html::input('text', 'mail', trim($model['contact_mail']), ['class' => 'form-control']); echo "<br><br>"; echo Html::submitButton('Отправить', ['class' => 'btn btn-success']); echo HTML::endForm(); } ?> </div>
<?php /* @var $permission yii\rbac\Permission */ echo $this->render('/default/_navigation', []); use yii\helpers\Html; ?> <div class="row"> <div class="col-xs-12"> <?php echo HTML::beginForm(['update', 'id' => $permission->name]); ?> <div class="row"> <div class="col-xs-4"> <?php echo HTML::label('Beschreibung'); ?> </div> <div class="col-xs-8"> <?php echo HTML::textInput('description', $permission->description, ['class' => 'form-control']); ?> </div> </div> <?php echo HTML::button('Speichern', ['type' => 'submit', 'class' => 'btn btn-primary']); ?> <?php echo HTML::endForm(); ?> </div>
<?php use yii\helpers\Html; /* @var $permission yii\rbac\Permission */ echo $this->render('/default/_navigation', []); /** @var yii\rbac\DbManager $auth */ $auth = Yii::$app->authManager; ?> <?php echo HTML::beginForm(['update', 'id' => $role->name]); ?> <div class="form-group"> <?php echo HTML::label('Beschreibung'); ?> <?php echo HTML::textInput('description', $role->description); ?> </div> <?php echo HTML::button('Speichern', ['type' => 'submit']); echo HTML::endForm();
<?php /* @var $user common\models\User */ /** @var $fields Array */ use yii\helpers\Html; echo $this->render('/default/_navigation', []); ?> <h1>Benutzer bearbeiten</h1> <?php echo HTML::beginForm(['update', 'id' => $user->id]); ?> <?php echo $this->render('_form', ['user' => $user, 'fields' => $fields]); ?> <?php echo HTML::button('Speichern', ['type' => 'submit', 'class' => 'btn btn-success']); echo HTML::endForm();
<?php /* @var $field \allatnet\yii2\modules\extendedrights\components\UserFields */ use yii\helpers\Html; echo $this->render('/default/_navigation', []); ?> <h1>Profilfeld bearbeiten</h1> <?php echo HTML::beginForm(['update', 'id' => $field->id]); ?> <?php echo $this->render('_form', ['field' => $field]); ?> <?php echo HTML::button('Speichern', ['type' => 'submit', 'class' => 'btn btn-success']); echo HTML::endForm();
<?php use app\models\Ot; use yii\helpers\Html; $this->title = 'Отчеты ' . $apteka[name]; $this->params['breadcrumbs'][] = ['label' => 'Заполнение отчетов', 'url' => ['/ot/']]; $this->params['breadcrumbs'][] = $this->title; print "<h3>" . $apteka[name] . "</h3>"; print HTML::beginForm(); ?> <table class="table"> <thead> <tr> <th> Препарат</th> <th> Производитель</th> <th> Наличие</th> <th> Закупка (уп.)</th> <th> Продажа (уп.)</th> </tr> </thead> <?php foreach ($preparats as $preparat) { $ot = Ot::Edit($apteka[id], $preparat['id']); print "<tr>"; print "<td>" . $preparat['name'] . "</td>"; print "<td>" . $preparat['manuf'] . "</td>"; print "<td>" . Html::checkbox("nal[{$preparat['id']}]", $ot['nal'] ? true : false) . "</td>"; print "<td>" . Html::input("text", "zakupka[{$preparat['id']}]", $ot['zakupka'], ['size' => '4']) . "</td>"; print "<td>" . Html::input("text", "prodaja[{$preparat['id']}]", $ot['prodaja'], ['size' => '4']) . "</td>";