Example #1
1
   
<?php 
echo $form->field($model, 'final', ['addon' => ['prepend' => ['content' => '₹', 'options' => ['class' => 'alert-success']]], 'inputOptions' => ['placeholder' => "Click View Price.", 'readOnly' => true]])->textinput(['class' => 'form-control mainprice'])->label(false);
?>
     
     </div>


</div>

<div class="col-sm-10 text-center" style="margin-top: 10px;" >

<div class="col-sm-5"></div>
<div class="col-sm-7">
<?php 
echo Html::Button('View Price', ['class' => 'btn btn-primary2', 'id' => 'create']);
?>


</div>
</div>

</div>
        
<div class="col-sm-10 text-center"  style="margin-top: 100px;">

<div class="col-sm-5"></div>
<div class="col-sm-7">
    <div class="form-group">
    
    
Example #2
1
// panel heading
echo Html::beginTag('div', ['class' => 'panel-heading', 'style' => 'height:80px;background-color:#fff;border:none;']);
echo Html::Tag('p', Html::a($model->name, ['products/view', 'product_id' => $model->id], ['style' => 'display:block;']), ['class' => 'text-center']);
echo HTML::endTag('div');
// panel heading
// panel body
echo Html::beginTag('div', ['class' => 'panel-body', 'style' => 'height:187px;text-align:center;']);
$mainPhoto = $model->MainPhoto;
echo Html::a(Html::img($mainPhoto->getUrl('original'), ['class' => 'img-responsive', 'style' => 'display: -moz-inline-box; display: inline-block;	vertical-align: middle;	height:100%; zoom: 1;']), ['products/view', 'product_id' => $model->product_id]);
echo HTML::endTag('div');
// panel body
// panel footer
echo Html::beginTag('div', ['class' => 'col-xs-12 col-sm-12 col-md-12 col-lg-12']);
echo Html::beginTag('div', ['class' => 'panel-footer', 'style' => 'background-color:#fff;']);
echo Html::Tag('span', number_format($model->price, 0, '.', ' ') . '<i class="glyphicon glyphicon-ruble" style="font-size: 18px;" aria-hidden="true"></i>', ['class' => 'h3', 'style' => 'color:#d2322d;line-height:1.42;']);
echo Html::Button('Купить', ['id' => "put" . $model->id, 'class' => 'btn btn-success pull-right', 'style' => 'border-radius: 0px;']);
echo HTML::endTag('div');
echo HTML::endTag('div');
// panel footer
echo HTML::endTag('div');
?>
	
<?php 
$url = Url::toRoute('/cart/put/');
$jsCartPut = <<<JS

\t\t\t\$("#put{$model->id}").on('click',


\t\t\t\tfunction() {
Example #3
1
 
                        <br>
                        REMISE : <?php 
        echo Html::input("text", "remise", '0');
        ?>
 
                    <?php 
    }
    ?>
                    
                </td>
            </tr>
            <tr>
                <td colspan='6'>
                    <?php 
    echo Html::Button('Valider', ['class' => 'btn btn-primary jsValideOrder ', 'name' => 'signup-button']);
    ?>
                </td>
            </tr>
        </table>
        <?php 
    ActiveForm::end();
    ?>
    <?php 
} else {
    ?>
 
        <div class="jumbotron"><h1>购物车为空!</h1></div>
    <?php 
}
?>
Example #4
1
                    <table>
                        <tr>
                            <td class="item no-padding col-lg-5 col-md-5 col-sm-5 col-xs-5"></td>
                            <td class="summary-deliverydate td col-lg-4 col-md-4 col-sm-4 col-xs-4"></td>
                            <td class="summary-price td col-lg-3 col-md-3 col-sm-3 col-xs-3">$ 0</td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="col-lg-3"></div>
        </div>
    </div>

    <div class="form-group">
        <?php 
echo Html::Button($model->isNewRecord ? 'Book only' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary', 'id' => 'submit']);
?>
        
		<a href="<?php 
echo urldecode(Yii::$app->urlManager->createUrl('bookings/delete&id=' . $model->id));
?>
" id="delete" class = "<?php 
echo $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary';
?>
">
        <?php 
echo isset($is_order) ? $is_order ? 'Delete Order' : 'Delete Booking' : 'Delete Booking';
?>
		</a>
    </div>
//print_r($user);
?>
    <?php 
if (Yii::$app->session->hasFlash('regSuccess')) {
    ?>
        We sent mail
    <?php 
} else {
    ?>
    <?php 
    $form = ActiveForm::begin(['id' => 'registration-form', 'action' => Yii::getAlias('@web') . "/site/reg", 'enableClientValidation' => true, 'enableAjaxValidation' => true, 'options' => ['class' => 'form-horizontal RegForm', 'data-pjax' => true], 'fieldConfig' => ['template' => "{label}\n<div class=\"col-lg-5\">{input}</div>\n<div class=\"col-lg-5\">{error}</div>", 'labelOptions' => ['class' => 'col-lg-2 control-label']]]);
    ?>
    <div class="form-group">
        <div class="col-lg-11">
            <?php 
    echo Html::Button('Back to login', ['class' => 'btn btn-primary btn-change-lr']);
    ?>
        </div>
    </div>

            <b>Info for login (All fields are required):</b><br><hr><br>

            <?php 
    echo $form->field($model, 'username', ['enableAjaxValidation' => true]);
    ?>
            <?php 
    echo $form->field($model, 'email', ['enableAjaxValidation' => true]);
    ?>
            <?php 
    echo $form->field($model, 'password', ['enableAjaxValidation' => true])->passwordInput();
    ?>
Example #6
1
                <?php 
echo Html::hiddenInput('osmotrakt_id', $osmotrakt_id, ['id' => 'osmotrakt-osmotrakt_id']);
?>

                <?php 
echo $form->field($model, 'organ_id')->widget(Select2::classname(), Proc::DGselect2(['model' => $model, 'resultmodel' => new Organ(), 'fields' => ['keyfield' => 'organ_id', 'resultfield' => 'organ_name'], 'placeholder' => 'Выберете организацию', 'resultrequest' => 'Fregat/organ/selectinput', 'thisroute' => $this->context->module->requestedRoute]));
?>

            </div>
        </div>
    </div>

    <div class="form-group">
        <div class="panel panel-default">
            <div class="panel-heading">
                <?php 
echo Html::Button('<i class="glyphicon glyphicon-ok"></i> Отправить', ['class' => 'btn btn-primary ', 'id' => 'SendOsmotraktDialog_apply']);
?>
                <?php 
echo Html::Button('<i class="glyphicon glyphicon-remove"></i> Отмена', ['class' => 'btn btn-danger', 'id' => 'SendOsmotraktDialog_close']);
?>
              </div>
        </div>
    </div>

    <?php 
ActiveForm::end();
?>
</div>
Example #7
1
echo $form->field($model, 'image_file')->fileInput(['class' => 'send-file', 'onchange' => 'sendfile()'])->label('');
?>
    <?php 
echo $form->field($model, 'image_file_extra[]')->fileInput(['class' => 'hidden', 'onchange' => 'uploadExtraImage(' . $model->id . ')', 'multiple' => true])->label('');
?>


    <?php 
echo $model->image != '' ? Html::img('/upload/goods/' . $model->image, ['width' => '200px', 'height' => '200px', 'class' => 'target_image']) : Html::img('/img-custom/no_photo.jpg', ['width' => '200px', 'height' => '200px', 'class' => 'target_image']);
?>

    <?php 
if (!$model->isNewRecord) {
    ?>
        <?php 
    echo Html::Button('<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>Добавить фото', ['class' => 'btn', 'onclick' => '$("#goods-image_file_extra").click()']);
    ?>
    <?php 
}
?>
    <div style="width:700px;">
        <?php 
echo $form->field($model, 'new_image')->hiddenInput(['class' => 'new_image'])->label('');
?>
    </div>
    <div class="form-group" style="margin-top: 10px">
        <?php 
echo Html::submitButton($model->isNewRecord ? 'Создать' : 'Редактировать', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>

    </div>
Example #8
0
                <div class="form-group">
                    <?= Html::label("Categoria", ['class' => 'form-control'])
                    ?>
                    <?=
                    $modelCompra->isNewRecord ?
                        Html::dropDownList('Produto[idCategoria]', null, $categorias, ['class' => 'form-control',
                            'id' => 'produto-idcategoria', 'prompt' => 'Seleciona a categoria...']) : ''

                    ?>
                </div>


                <?=
                $modelCompra->isNewRecord ? Html::Button('Cadastra Novo Produto',
                    ['class' => 'btn btn-success',
                        'id' => 'btCadastrarNovoProduto',
                        'title' => 'Clique aqui para cadastrar um novo produto']) : '' ?>

            </div>

        </div>


        <?php
        \yii\bootstrap\Modal::end();
        ?>

        <!--   ---------------------------   END Cadastrar Novo Produto  ---------------------------  -->
    </div>

    <?php ActiveForm::end(); ?>
Example #9
0
    <?php 
echo $form->field($model, 'jackpot_id')->textInput();
?>

    <?php 
echo $form->field($model, 'ticket_number')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'created_on')->textInput(['maxlength' => true]);
?>

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

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

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

</div>
Example #10
0
        /**
         * Registra o Javascript para remover um campo de cadastro de Insumo
         * em Produto Venda
         */
        $this->registerJs('$("#btnrem").on("click",function(){var input_insumo = \'inputinsumo\'+(i-1);$(\'#\'+input_insumo).empty();console.log(input_insumo);$("[name=\'idprodutoInsumo[]\']").remove();i = i-1;})');
        ?>
    </div>


    <?php
}
?>
    <?= $form->field($modelProduto, 'imageFile')->fileInput(['class' => 'form-control']) ?>
    <div class="form-group">
        <?= Html::Button($action == 'create' ? Yii::t('yii', 'Create') : Yii::t('yii', 'Update'), ['class' => 'btn btn-success',
            'title'=>$modelProduto->isNewRecord ? 'Clique para cadastrar um novo Produto':
                'Clique para salvar os dados do Produto' ,
        'id'=>'btSalvarProduto']) ?>
        <?php
        if (!$modelProduto->isInsumo) {
            ?>
            <input class="btn btn-primary" type='button' id='btnaddinsumo' value="Adicionar mais insumos"
                   title="Adicionar mais um insumo a esse Produto">
            <?php
        }
        ?>

    </div>


<?php ActiveForm::end(); ?>
    <script>
Example #11
0
echo Html::Button('Выберите основную фотографию (490х150) - 1 шт', ['class' => 'btn btn-primary', 'onclick' => '$(".send-main-file").click()']);
?>
                    </div>

                    <div class="form-group photos-main">
                        <?php 
if ($model->main_image) {
    echo "<img id='img-" . $model->id . "' onclick='delImageMain(" . $model->id . ")' class='del-on-hover' src='/upload/items_images_main/" . $model->main_image . "' alt='' width='490px' height='150px' title='Кликнуть для удаления'>";
}
?>

                    </div>

                    <div class="form-group">
                        <?php 
echo Html::Button('Выберите дополнительные фотографии (300x300) - макс 5 шт', ['class' => 'btn btn-success', 'onclick' => '$(".send-file").click()']);
?>
                    </div>


                    <div class="form-group photos">
                        <?php 
if ($model->id) {
    ?>
                        <?php 
    $_modelPhotos = Photo::getPhotos($model->id);
    if ($_modelPhotos) {
        foreach ($_modelPhotos as $photo) {
            echo "<img id='img-" . $photo->id . "' onclick='delImage(" . $photo->id . ")' class='del-on-hover' src='/upload/items_images/" . $photo->name . "' alt='' width='100px' height='100px' title='Кликнуть для удаления'>";
        }
    }
Example #12
0
        ?>
<br>I understand that all monthly interest payments made by check will incur a processing fee of  <?php 
        echo $config['fee'];
        ?>
 . The processing fee will not be charged for any prepayments made by check.</p>
                      <p>I understand that if I pay by check and submit an amount that is less than the amount of my monthly payment as specified in my monthly statement or my monthly payment is not received by Supernova Lending on or before the payment due date specified in my monthly statement, Supernova Lending may make a credit advance from my BriteLine to pay my monthly payment.  I understand that if Supernova Lending makes a credit advance from my BriteLine to pay my monthly interest payment, that monthly payment amount will be added to the outstanding principal balance of my BriteLine and will accrue interest based on the interest rate in effect under the BriteLine, which may result in compounding of interest.</p>
              <?php 
    }
    ?>
                <!-- Agree and Save -->
                <div class="agree-but" style="float:right">
                  <a href="<?php 
    echo Url::to(['/loan/doupdate']);
    ?>
"><?php 
    echo Html::Button(Yii::t('app', 'Update'), ['class' => 'btn btn-primary form-padding-but btn-loading']);
    ?>
</a>
                   
                </div>
               </div>

 
              </form>   
          </div>

          <?php 
}
?>
      	</div>
      </main>
							     </span>
							  </ul>
						  <br/>
						</div>
					</div>
				</div>
				
				<div class="container">
					<div class='col-md-6'>
						<div ng-controller="list_employee">
							<?php 
echo $form->field($model_sms, 'is_sms')->checkbox();
?>
						</div>
					</div>
				</div>
				<div class="container">
					<div class='col-md-6 form-inline align_right'>
							<?php 
echo Html::Button(Yii::t('app', 'Next'), ['class' => 'btn btn-primary btnNext']);
?>
							<?php 
echo Html::submitButton(Yii::t('app', 'Close'), ['class' => 'btn btn-danger btn-default', 'data-dismiss' => 'modal']);
?>
						</p>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
Example #14
0
        ?>


        <div id="more"></div>


        <?php
        $this->registerJsFile(\Yii::getAlias('@web') . "/js/cardapio_form.js", ['depends' => [\yii\web\JqueryAsset::className()]]);
        ?>
        <div class="form-group">
            <?= Html::submitButton($modelCardapio->isNewRecord ? 'Criar' : 'Alterar',
                ['class' => $modelCardapio->isNewRecord ? 'btn btn-success' : 'btn btn-primary',
                    'title'=>$modelCardapio->isNewRecord ? 'Clique para cadastrar um novo Cardápio':
                        'Clique para salvar os dados do Cardápio']) ?>
            <?= Html::Button('Adicionar mais um Item Cardápio', ['class' => 'btn btn-primary',
                'title'=>'Clique para adicionar mais um Item Cardápio a esse Cardápio',
                    'id' => 'btAddItem']
            ) ?>

        </div>

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

    </div>


<?php

if (isset($mensagem) && !empty($mensagem)) {
    ?>
    <script type="text/javascript">alert('<?= $mensagem; ?>');</script>
    <?php
Example #15
0

    <div id="login_form_block">
        <?php 
$form = ActiveForm::begin(['id' => 'login-form', 'action' => Yii::getAlias('@web') . "/site/login", 'enableClientValidation' => true, 'enableAjaxValidation' => true, 'options' => ['class' => 'form-horizontal', 'data-pjax' => ''], 'fieldConfig' => ['template' => "{label}\n<div class=\"col-lg-5\">{input}</div>\n<div class=\"col-lg-5\">{error}</div>", 'labelOptions' => ['class' => 'col-lg-2 control-label']]]);
?>

        <?php 
echo $form->field($model, 'username', ['enableAjaxValidation' => true]);
?>
        <?php 
echo $form->field($model, 'password', ['enableAjaxValidation' => true])->passwordInput();
?>
        <?php 
echo $form->field($model, 'rememberMe')->checkbox(['template' => "<div class=\"col-lg-offset-2 col-lg-5\">{input} {label}</div>\n<div class=\"col-lg-5\">{error}</div>"]);
?>
        <div class="form-group">
            <div class="col-lg-11">
                <?php 
echo Html::submitButton('Login', ['class' => 'btn btn-primary', 'name' => 'login-button']);
?>
                <?php 
echo Html::Button('Registration', ['class' => 'btn btn-success btn-change-lr']);
?>
            </div>
        </div>

        <?php 
ActiveForm::end();
?>
    </div>
Example #16
0
    echo $cat->Name;
    ?>
</option>
                                        <?php 
}
?>
 
                                    </select> 
                                </label>
                            </div>
                        </div>
                    </div>
                </div>
                    <div class='panel-body col-md-offset-3'>
                        <?php 
echo Html::Button("Download Excel", ['class' => 'btn btn-success', 'id' => 'downloadExcel']);
?>
                    </div>                
            </form>
            </div>
	</div>
        <div id="change">
        <?php 
yii\widgets\Pjax::begin();
?>
        <div id="ajax-data">   
            <div class="col-md-8">
		<div class="row">
                    <?php 
foreach ($coupons as $coupon) {
    ?>
Example #17
0
?>
        </div>
        <div id="corpo-filtro-nota" class="panel-body collapse in">
            <?php 
$form = ActiveForm::begin(['id' => 'assistencia']);
?>
            <div class="row">
                <div class="col-sm-6 col-lg-4">

                 
                </div>
                <div class="col-sm-6 col-lg-4">

                   

                </div>
                <div class="col-sm-6 col-lg-4">
                   
                </div>
            </div>
            <div class="form-group">
                <?php 
echo Html::Button('Pesquisa conteúdo ', ['class' => 'btn btn-primary', 'onclick' => "ajaxConteudoAula('index.php?r=portal-professor/frequencia', 'filtroConteudo')"]);
?>

            </div>
            <?php 
ActiveForm::end();
?>
        </div>
    </div>
Example #18
0
?>

        <?php 
if (isset($id_bank) && $id_bank != '') {
    ?>
            <input type="hidden" value="<?php 
    echo $id_bank;
    ?>
" name="BankPool[id_bank]">
            <?php 
    echo $form->field($model, 'id_pool', ['options' => ['class' => 'col-xs-3', "id" => "id_extend"]])->dropDownList(ArrayHelper::map(pool::find()->all(), "id_pool", "pool_id"), ['maxlength' => true])->label('Pool ID');
    ?>
            <div class="form-group" >
            <div class="col-sm-2" style="padding-left: 15px;padding-top:27px">
            <a href="index.php?r=pool/create" target="_blank"><?php 
    echo $m = Html::Button("NEW POOL", ['class' => 'btn btn-success']);
    ?>
</a>
            </div>
        <?php 
}
?>

    <?php 
echo $form->field($model, 'funding_amount', ['options' => ['class' => 'col-xs-6']]);
?>
    </div>

    <div class="form-group" >
        <div class="col-sm-10" style="padding-left: 15px">
        <?php 
Example #19
0
	<link rel="stylesheet" type="text/css" href="<?php 
echo Url::base();
?>
/css/category_list.css" />
</head>
<body>
<?php 
$this->beginBody();
?>


	<?php 
$form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data', 'id' => 'upload_form']]);
?>
    <?php 
echo Html::Button('点击上传图片', ['class' => 'btn', 'style' => 'background:red; color:#fff;', 'id' => 'upload_btn']);
?>
    <span id="err_span" style=" height:34px; line-height:34px; color:#a94442; display:inline-block; padding-left:20px;"><?php 
echo yii::$app->session->getFlash('upload_err');
?>
</span>
    <input name="photo" type="file" id="photo_input" style=" visibility:hidden;" accept=".jpg,.png,.gif" />
    
    <?php 
ActiveForm::end();
?>
    <?php 
Yii::$app->view->registerJs('
		$(document).ready(function(){
			if (!$.support.leadingWhitespace) {
				$("#photo_input").css({"visibility":"visible","position":"absolute","font-size":"20px","left":"-210px","padding":"0","top":"0","filter":"alpha(opacity:0)"});
Example #20
0
?>
</div>
            <div class="panel-body">
                <?php 
echo $form->field($model, 'onlyrootauthitems_mark')->checkbox();
?>
            </div>
        </div>
    </div>

    <div class="form-group">
        <div class="panel panel-default">
            <div class="panel-heading">
                <?php 
echo Html::Button('<i class="glyphicon glyphicon-ok"></i> Применить', ['class' => 'btn btn-primary', 'id' => $model->formName() . '_apply']);
?>
                <?php 
echo Html::Button('<i class="glyphicon glyphicon-remove"></i> Отмена', ['class' => 'btn btn-danger', 'id' => $model->formName() . '_close']);
?>
                <?php 
echo Html::Button('<i class="glyphicon glyphicon-remove-sign"></i> Сброс', ['class' => 'btn btn-default', 'id' => $model->formName() . '_reset']);
?>
            </div>
        </div> 
    </div>

    <?php 
ActiveForm::end();
?>
</div>
Example #21
0
File: pi.php Project: pumi11/aau
    <?php 
echo $form->field($model, 'status')->hiddenInput(['value' => '3'])->label(false);
?>

    <br><br>


    <?php 
echo Html::SubmitButton("{$submitValue}", ['class' => 'btn btn-success']);
?>

<!--
    <div style="float:right">
        <?php 
echo Html::Button("Удалить", ['class' => 'btn btn-danger', 'onclick' => 'if (confirm("Удалить?")) js:document.location.href="/user/delete/' . $model[id] . '"; else return false;']);
?>
    </div>
-->
<?php 
if (\Yii::$app->user->identity->id == $id) {
    ?>
    <div style="float: right">
        <a class="btn btn-warning" href="/auth/logout" data-method="post">
            <span class="glyphicon glyphicon-off" aria-hidden="true"></span> Выйти</a>
    </div>
<?php 
}
?>

Example #22
0
<div id="tabela"  class="col-md" style="overflow-x: auto">





</div>
<div id ="diPesquisa" class="form-group"  style=" display:none;  margin-top:10px;">
    <?php 
echo Html::submitButton('Lançar frequência', ['class' => 'btn btn-primary']);
?>
    <?php 
echo Html::Button('Marca Todos', ['class' => 'btn btn-success', 'onclick' => "desMarcarTodos()"]);
?>
     <?php 
echo Html::Button('Desmarca Todos', ['class' => 'btn btn-danger', 'onclick' => "marcarTodos();"]);
?>
</div>
<?php 
ActiveForm::end();
?>








<?php 
$js = <<<JS
Example #23
0
echo $form->field($UploadModel, 'id_document_type')->hiddenInput()->label('');
?>
							<table role="presentation" class="table table-striped">
            					<tbody class="files"></tbody>
       						</table>
							</div>
						</div>
                			</div>
				</div>
                <div class="btn-group col-sm-offset-7" style="padding-bottom: 10px" >
            		<div>
				<?php 
echo Html::submitButton(Yii::t('app', 'Save'), ['class' => 'btn btn-success', 'data-reload' => 1, 'style' => 'margin-right:10px', 'id' => "add"]);
?>
				<?php 
echo Html::Button(Yii::t('app', 'Close'), ['class' => 'btn btn-default', 'data-dismiss' => 'modal']);
?>
				</div>
			</div>
		 </div>
     </div>
</div>
<?php 
ActiveForm::end();
?>

<?php 
$this->beginBlock('js');
?>
<script>
//小三角切换
Example #24
0
        <?php 
}
?>
    </div>
    <div class="panel-footer">
        <?php 
if (!empty($model->id)) {
    ?>
            <?php 
    echo Html::a('<i class="glyphicon glyphicon-eye-open" style="font-size: 12pt;"></i> смотреть', ['/profile/view'], ['class' => 'btn btn-flat btn-primary', 'id' => 'view']);
    ?>
            <?php 
    echo Html::Button('<i class="glyphicon glyphicon-edit" style="font-size: 12pt;"></i> изменить', ['class' => 'btn btn-flat btn-primary', 'id' => 'returnToEdit']);
    ?>
            <?php 
    echo Html::Button('<i class="mdi-file-file-download" style="font-size: 12pt;"></i> ' . Yii::t('app', 'в PDF'), ['class' => 'btn btn-flat btn-info', 'id' => 'toPDF']);
    ?>
        <?php 
} else {
    ?>
            <?php 
    echo Html::a('<i class="glyphicon glyphicon-edit" style="font-size: 12pt;"></i> Заполнить', ['/profile/edit'], ['class' => 'btn btn-flat btn-primary', 'id' => 'new']);
    ?>
        <?php 
}
?>
    </div>
</div>

<?php 
$urlEdit = Url::to(['profile/return-to-edit'], true);
Example #25
0
    <?php 
echo $form->field($model, 'title_field')->textInput();
?>
    <?php 
echo $form->field($model, 'select_field')->textInput();
?>
    <?php 
echo $form->field($model, 'rules')->textarea(['rows' => 5])->hint(Yii::t('app', 'use yii2 rules from this field'));
?>

    <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']);
?>
        <?php 
echo Html::Button(Yii::t('app', 'Create Default Rule'), ['class' => 'btn btn-warning', 'id' => 'gen-rule']);
?>

    </div>

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

</div>
<?php 
$site_url = Url::to(['site/get-sites']);
$rule_url = Url::to(['rule']);
$action = $model->isNewRecord;
$cm_id = $model->id;
$lang = Yii::t('app', 'Please create field first');
Example #26
0
echo TabularForm::widget(['dataProvider' => $dataProvider, 'form' => $form, 'serialColumn' => false, 'checkboxColumn' => false, 'actionColumn' => false, 'attributes' => ['scheduleprofessorcontentid' => ['type' => TabularForm::INPUT_RAW, 'label' => 'ID', 'value' => function ($model, $key, $index, $widget) {
    // return Html::label($model->scheduleprofessorcontentid);
    return Html::label($model['scheduleprofessorcontentid']);
    // return Html::label($model->timeid);
}], 'date' => ['type' => TabularForm::INPUT_RAW, 'label' => 'Data', 'format' => ['date', 'php:d/m/Y'], 'value' => function ($model, $key, $index, $widget) {
    // return 'ola';
    //return Html::label(date('d/m/Y', strtotime($model->date)));
    return Html::label(date('d/m/Y', strtotime($model['date'])));
}], 'timeid' => ['type' => TabularForm::INPUT_RAW, 'label' => 'Horas', 'value' => function ($model, $key, $index, $widget) {
    // return 'ola';
    // return Html::label($model['timeid'] );
    return Html::label($model['timeid']->beginhour . ' às ' . $model['timeid']->endhour);
}], 'description' => ['type' => TabularForm::INPUT_RAW, 'label' => 'Conteúdo da Aula', 'value' => function ($model, $key, $index, $widget) {
    // return 'ola';
    // return Html::label($model['timeid'] );
    return Html::textarea($model['id'] . '_' . $model['scheduleprofessorcontentid'] . '_' . $model['scheduleprofessorid'] . '_' . $model['date'] . '_' . $model['timeid']->timeid . '_' . $model['timeid']->beginhour . '_' . $model['timeid']->endhour, $model['description'], ['class' => 'form-control text-conteudo-aula', 'id' => $model['id']]);
    //return Html::textarea([$model['id']][$model['scheduleprofessorcontentid']][$model['scheduleprofessorid']][$model['date']][$model['timeid']->timeid],$model['description'],['class'=>'form-control']);
}]], 'gridSettings' => ['floatHeader' => true, 'panel' => ['heading' => '<h3 class="panel-title"><i class="glyphicon glyphicon-book"></i>Conteúdo das Aulas</h3>', 'type' => GridView::TYPE_PRIMARY, 'after' => Html::Button('<i class="glyphicon glyphicon-floppy-disk"></i> Save', ['class' => 'btn btn-primary', 'onclick' => "ajaxSalvaConteudoAula('index.php?r=portal-professor/frequencia/salva-conteudo-aula','salvaConteudo');"])]]]);
?>


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

</div>

Example #27
-1
?>
						</div>
					</div>
				</div>

				<div class="container">
					<div class='col-md-6'><?php 
echo $form->field($event, 'is_public')->checkbox();
?>
</div>
				</div>

				<div class="container">
					<div class='col-md-6 form-inline align_right'>
						<p>
                            <?php 
echo Html::submitButton(Yii::t('app', 'Submit'), ['class' => 'btn btn-large btn-primary']);
?>
							<?php 
echo Html::Button(Yii::t('app', 'Previous'), ['class' => 'btn btn-primary btnPrevious']);
?>
							<?php 
echo Html::submitButton(Yii::t('app', 'Close'), ['class' => 'btn btn-danger btn-default', 'data-dismiss' => 'modal']);
?>
						</p>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
Example #28
-1
echo $form->field($model, 'items[]')->checkboxList(['a' => 'Item A', 'b' => 'Item B', 'c' => 'Item C']);
echo $form->field($model, 'country')->dropdownList(\app\models\Country::find()->select('name', 'name')->indexBy('population')->column(), ['prompt' => '--请选择--']);
?>
    <div class="form-group">
        <div class="col-lg-offset-1 col-lg-11">
            <?php 
echo Html::submitButton('Login', ['class' => 'btn btn-primary']);
?>
        </div>
    </div>
<?php 
ActiveForm::end();
$form = ActiveForm::begin(['id' => 'login-form1', 'action' => '#']);
echo $form->field($model, 'name');
echo $form->field($model, 'password')->passwordInput()->hint('请输入密码')->label('密码');
echo $form->field($model, 'file[]')->fileInput(['multiple' => 'multiple']);
echo $form->field($model, 'items[]')->checkboxList(['a' => 'Item A', 'b' => 'Item B', 'c' => 'Item C']);
echo $form->field($model, 'country')->dropdownList(\app\models\Country::find()->select('name', 'name')->indexBy('population')->column(), ['prompt' => '--请选择--']);
?>
<div class="form-group">
    <div class="col-lg-offset-1 col-lg-11">
        <?php 
echo Html::submitButton('添加', ['class' => 'btn btn-primary']);
?>
        <?php 
echo Html::Button('重置', ['class' => 'btn btn-info']);
?>
    </div>
</div>
<?php 
ActiveForm::end();
Example #29
-1
							             							               
							            </div>
							        </div>							
							    <?php 
}
?>
							</div>
						</div>
                    </div>
                  <div class="form-button-box">
                    <?php 
if ($flash = Yii::$app->session->getFlash('Forgot-success')) {
    ?>
    
                       <a href="/user/login"><?php 
    echo Html::Button('Return', ['class' => 'btn btn-primary']);
    ?>
</a>
                       <?php 
} else {
    ?>
 
                       <?php 
    echo Html::submitButton(Yii::t('app', 'Submit'), ['class' => 'btn btn-primary']);
    ?>
                       <?php 
}
?>
                  </div>
                  <?php 
ActiveForm::end();
Example #30
-1
    <div class="outer">
        <div class="inner bg-light lter">
            <div id="collapse4" class="body">
                <div class="video-categoria-index">
                    <?php 
$form = ActiveForm::begin(['action' => ['/image/submit'], 'options' => ['enctype' => 'multipart/form-data'], 'id' => 'form-send-file']);
?>
                    <?php 
echo $form->field($model, 'file[]')->fileInput(['class' => 'send-file', 'multiple' => true]);
?>
                    <?php 
//= Html::submitButton('Загрузить', ['class' => 'btn btn-success send-file-submit' ])
?>
                    <?php 
echo Html::Button('Загрузить', ['class' => 'btn btn-success send-file-submit', 'onclick' => 'sendfile()']);
?>
                    <?php 
ActiveForm::end();
?>

                </div>	
            </div>	
        </div>	
    </div>	


    <div class="outer">
        <div class="inner bg-light lter">
            <div id="collapse4" class="body photo-target">
                <?php