Пример #1
0
        <?php 
echo Html::submitButton('Добавить', ['class' => 'btn btn-primary', 'name' => 'login-button']);
?>
    </div>
</div>
<?php 
ActiveForm::end();
\yii\widgets\Pjax::end();
Modal::end();
?>


<br>
<br>
<?php 
yii\widgets\Pjax::begin(['id' => 'categories_list_edit']);
?>
    <?php 
echo GridView::widget(['dataProvider' => $provider, 'tableOptions' => ['class' => 'table table-striped table-bordered editable_table'], 'columns' => [['class' => 'yii\\grid\\SerialColumn'], ['label' => 'Название', 'format' => 'raw', 'value' => function ($data) {
    return '<input type="text"  class="form-control input-sm editable_field_input" style="height:25px; background:transparent;" value="' . $data['name'] . '"> <span class="glyphicon glyphicon-floppy-saved  input_save_button"  data-toggle="tooltip" data-placement="bottom" title="Сохранить" onclick="admin_api.request({id:' . $data['id'] . ', model:\'menu\', method:\'post\', attributes:{name: $(this).parent().find(\'input\').val() }})" ></span>';
}], ['label' => 'URI', 'format' => 'raw', 'value' => function ($data) {
    return '<input type="text"  class="form-control input-sm editable_field_input" style="height:25px; background:transparent;" value="' . $data['url'] . '"> <span class="glyphicon glyphicon-floppy-saved  input_save_button"  data-toggle="tooltip" data-placement="bottom" title="Сохранить" onclick="admin_api.request({id:' . $data['id'] . ', model:\'menu\', method:\'post\', attributes:{url: $(this).parent().find(\'input\').val() }})" ></span>';
}], ['label' => 'Дата создания', 'format' => 'raw', 'value' => function ($data) {
    return '<span data-toggle="tooltip" data-placement="bottom" title="" data-original-title="Изменен: ' . Yii::$app->formatter->asDatetime($data['updated_at'] ? $data['updated_at'] : $data['created_at']) . '">' . Yii::$app->formatter->asDatetime($data['created_at']) . '</span>';
}], ['class' => 'yii\\grid\\ActionColumn', 'template' => ' {active} {delete}', 'buttons' => ['delete' => function ($url, $model) {
    return Html::a('<span onclick="admin_api.request({id:' . $model['id'] . ', model:\'menu\', method:\'delete\', confirm: \'Удалить пункт меню?\' })" class="glyphicon glyphicon-trash" style="color: red"></span>', '', ['title' => 'Удалить']);
}, 'active' => function ($url, $model) {
    return Html::a('<span onclick="admin_api.request({id:' . $model['id'] . ', model:\'menu\', method:\'post\', attributes:{active:' . ($model['active'] ? '0' : '1') . '}})" class="glyphicon ' . ($model['active'] ? 'glyphicon-ok' : 'glyphicon-ban-circle') . ' " style="color: ' . ($model['active'] ? 'yellow' : 'gray') . ' "></span>', '', ['title' => $model['active'] ? 'Отключить' : 'Включить']);
}]]]]);
\yii\widgets\Pjax::end();
?>
Пример #2
0
/* @var $model app\models\Countries */
/* @var $form yii\widgets\ActiveForm */
?>

<?php 
$this->registerJs('$("document").ready(function(){
        $("#new_nsitem").on("pjax:end", function() {
            $.pjax.reload({container:"#nsitems"});  //Reload GridView
        });
    });');
?>

<div class="nsitem-form">

    <?php 
yii\widgets\Pjax::begin(['id' => 'new_nsitem']);
?>
    <?php 
$form = ActiveForm::begin(['options' => ['data-pjax' => true]]);
?>

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


    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? Yii::t('app', 'Cоздать') : Yii::t('app', 'Обновить'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>
Пример #3
0
    <?php 
// $query = new Query;
// $query->select('ID, Document')
//     ->from('Documents')
//     ->limit(10);
// $docs = ArrayHelper::map($query->all(), 'ID', 'Document');
//
// // $doc = $searchModel->getDocument();
// // var_dump($searchModel->getDocument());
//
// $models = Documents::find()->asArray()->all();
// $data = ArrayHelper::map($models, 'ID', 'Document');
// // echo $form->field($model, 'Document')->dropDownList($data);
// var_dump($searchModel);
// Html::activeDropDownList($searchModel, 'Document', $docs)
?>
    
    <?php 
yii\widgets\Pjax::begin(['id' => 'conents-index-pjax']);
?>
    <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], ['label' => Yii::t('app', 'Product'), 'attribute' => 'Product', 'value' => 'product.Product'], ['label' => Yii::t('app', 'Article'), 'attribute' => 'Article', 'value' => 'product.Article'], ['label' => Yii::t('app', 'Description'), 'attribute' => 'Description', 'value' => 'product.Description'], ['label' => Yii::t('app', 'Manufacturer'), 'attribute' => 'Manufacturer', 'value' => 'product.manufacturer.Manufacturer'], ['label' => Yii::t('app', 'Amount'), 'attribute' => 'Amount', 'value' => 'Amount', 'filter' => false], ['label' => Yii::t('app', 'Price'), 'attribute' => 'Price', 'value' => 'Price', 'filter' => false], ['class' => 'yii\\grid\\ActionColumn', 'buttons' => ['delete' => function ($url, $model) {
    return Html::a('<span class="glyphicon glyphicon-trash"></span>', $url, ['title' => Yii::t('yii', 'Delete'), 'data-pjax' => 'conents-index-pjax', 'data-method' => 'post']);
}]]]]);
?>
    <?php 
yii\widgets\Pjax::end();
?>
    
</div>
<?php

use yii\helpers\ArrayHelper;
use yii\bootstrap\ActiveForm;
use backend\models\SdaTypes;
use backend\models\Products;
use backend\models\SdaPriority;
yii\widgets\Pjax::begin(['id' => 'advanced_search', 'formSelector' => false, 'clientOptions' => ['container' => '#sda_grid']]);
?>
<style>
   #ui-datepicker-div{
          z-index: 2000 !important;
   }
   .form-group .form-control{
      width:200px
   }
</style>

<?php 
$form = ActiveForm::begin(['action' => ['sda/index', 'id' => $id], 'method' => 'get', 'options' => ['enctype' => 'multipart/form-data', 'class' => 'form-inline adv_search_form', 'data-pjax' => true]]);
?>
<div class="container">
   <div class="row">
      <?php 
echo $form->field($model, 'title', ['labelOptions' => ['class' => 'sr-only']])->textInput(['maxlength' => '100', 'class' => 'form-control', 'placeholder' => $model->getAttributeLabel('title')]);
echo $form->field($model, 'authors', ['labelOptions' => ['class' => 'sr-only']])->textInput(['maxlength' => '100', 'class' => 'form-control', 'placeholder' => $model->getAttributeLabel('authors')]);
?>
   </div>
</div>
<div class="container">
   <div class="row">
Пример #5
0
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\PodruzkaProductSearch */
/* @var $form yii\widgets\ActiveForm */
$this->registerJs('$("document").ready(function(){
        $("#w0").on("pjax:end", function() {
            $.pjax.reload({container:"#w1"});  //Reload GridView
        });
    });');
?>

<div class="podruzka-product-search">
    <?php 
yii\widgets\Pjax::begin(['id' => 'search-form']);
?>
    <?php 
$form = ActiveForm::begin(['action' => ['matching'], 'method' => 'get']);
?>

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

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

    <?php 
echo $form->field($model, 'group');
Пример #6
0
}
?>
    </div>
</div>

<div class="row">
    <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
        <h3 class="box-title" style="padding-bottom: 20px">
            <i class="fa fa-th-list"></i>  <?php 
echo Yii::t('app', 'List Subject Report');
?>
        </h3>
        <div class="box view-item">
            <div class="box-body">
                <div class="subject-report-index">
                    <?php 
yii\widgets\Pjax::begin();
?>
                    <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'subject', 'description:ntext', ['attribute' => 'is_status', 'class' => '\\pheme\\grid\\ToggleColumn', 'enableAjax' => false, 'filter' => ['1' => 'Active', '0' => 'Not Active']], ['class' => '\\common\\components\\CustomActionColumn']]]);
?>
                    <?php 
yii\widgets\Pjax::begin();
?>
                </div>
            </div>
        </div>
    </div>
</div>

Пример #7
0
            else
            {
                \$("#message").html(result);
            }
        })
        .fail(function(){
            console.log("server error");
        });
    return false;
});
JS;
$this->registerJs($js);
?>
<div class="rating-profile-form">
    <?php 
yii\widgets\Pjax::begin(['id' => 'new_country']);
?>
    <?php 
$form = ActiveForm::begin(['id' => $model->formName()]);
?>

    <?php 
echo $form->field($model, 'desc')->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>
Пример #8
0
        <?php yii\widgets\Pjax::begin(['id' => 'affected-search','enablePushState'=>FALSE,'clientOptions'=>['type'=>'POST']]) ?>
        <?php $form = ActiveForm::begin([
            'method' => 'POST',
            'id'=>'affected-filter',
            'action'=>['alerts/affectedpropertieslist']
        ]); ?>
        <?php  echo $form->field($searchModel, 'client')->dropDownList(ArrayHelper::map($clients, 'client', 'client')
            ,['class'=>''
            ,'onchange'=>"$.pjax.reload({container:'#affected', timeout: 10000,url: $('#affected-filter').attr('action') + '&' + $('#affected-filter').serialize() + '&id='+gmap.activeId,type:'POST',push:false,replace:false});",'prompt'=>'Client: All'])->label(false) ?>

        <?php ActiveForm::end(); ?>
        <?php yii\widgets\Pjax::end() ?>
    </div>


<?php yii\widgets\Pjax::begin(['id' => 'affected','enablePushState'=>FALSE,'clientOptions'=>['type'=>'POST']]) ?>
    <div class="table-caption"><strong>PROPERTIES AFFECTED </strong> (<?= $dataProvider->totalCount ?>)</div>
<div class="ef-var-h overflow-scroll">
<?= GridView::widget([
    'dataProvider' => $dataProvider,
    'layout'=>"{items}\n{pager}",
    'tableOptions'=>['class'=>'table table-striped table-hover table-normal'],
    'pager' => [
        'firstPageLabel' => 'First',
        'lastPageLabel' => 'Last',
    ],
    'columns' => [
        'client',
        'name',
        'id',
Пример #9
0
<?php

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\helpers\ArrayHelper;
use kartik\widgets\DatePicker;
use yii\helpers\Url;
yii\widgets\Pjax::begin(['id' => 'issue-chek-tgl']);
?>
	<?php 
$form = ActiveForm::begin(['id' => $model->formName() . 'issue', 'enableClientValidation' => false, 'enableAjaxValidation' => true, 'validationUrl' => Url::toRoute('/master/review-visit/ambil-tanggal-issue'), 'action' => ['/master/review-visit/index']]);
?>
	
	<?php 
echo $form->field($model, 'tgl_issue')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Pilih  ...'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']])->label('Tanggal');
?>
		
		<div style="text-align: right;"">
		<?php 
//echo Html::submitButton('Submit',['class' => 'btn btn-primary', 'data-pjax' =>1]);
?>
	</div>

    
	<?php 
ActiveForm::end();
?>
	
<?php 
yii\widgets\Pjax::end();
?>
Пример #10
0
?>

                <ul class="nav nav-tabs font_w" style="background-color: #007cc3; padding: 5px 5px 0 5px;">
                    <li role="presentation" class="active font_w"><a href="#">SDA</a></li>
                    <li role="presentation"> <?php 
echo Html::a('Meetings', ['meeting/index', 'id' => $id]);
?>
  </li>
                    <li role="presentation"> <?php 
echo Html::a('Booths', ['booth/index', 'id' => $id]);
?>
  </li>
                </ul>
                <div class="bs-docs-example">
                    <?php 
yii\widgets\Pjax::begin(['id' => 'sda_grid']);
?>
                    <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'columns' => [['attribute' => 'title', 'format' => 'raw', 'value' => function ($data) {
    return Html::a($data->title, ['view', 'id' => $data->id]);
}], ['attribute' => 'authors', 'format' => 'raw', 'value' => function ($model) {
    return Html::textarea('authors', $model->authors, ['rows' => '10', 'readonly' => 'readonly']);
}], ['attribute' => 'sda_name', 'value' => 'sdaType.sda_name', 'label' => 'SDA Type'], ['attribute' => 'product', 'value' => 'productType.name', 'label' => 'Product'], ['attribute' => 'date', 'format' => ['date', 'php:m/d/Y']], ['header' => 'Attendees', 'format' => 'raw', 'value' => function ($data) {
    if ($data->sdaSchedules) {
        $str = '<ul>';
        foreach ($data->sdaSchedules as $request) {
            $chk = $request->attendee_id;
            $row = backend\models\AmgenContactList::findOne($chk);
            $str .= '<li>' . $row->first_name . '  ' . $row->last_name . '</li>';
        }
        $str .= '</ul>';
Пример #11
0
 * @var yii\web\View $this
 * @var yii\data\ActiveDataProvider $dataProvider
 * @var app\modules\frontend\models\search\PoliceCase $model
 */
use yii\helpers\Html;
use app\models\User;
$this->title = \Yii::t('app', 'Search Panel - List of uploaded records');
$clearLabel = \Yii::t('app', 'Clear Filters');
?>

<div class="user-index">

    <div class="white-background">

        <?php 
yii\widgets\Pjax::begin(['id' => 'pjax-frontend-search', 'timeout' => false, 'enablePushState' => false, 'formSelector' => '#form-record-search-filter']);
?>
        <?php 
echo yii\grid\GridView::widget(['dataProvider' => $dataProvider, 'columns' => [['label' => '#', 'attribute' => 'id'], ['attribute' => 'infraction_date', 'format' => 'date'], ['label' => 'Vehicle Tag #', 'attribute' => 'license'], ['label' => 'Uploaded Date', 'attribute' => 'created_at', 'format' => 'date'], ['label' => 'Uploaded By', 'attribute' => 'fullName'], ['label' => 'Elapsed time, days', 'attribute' => 'elapsedTime'], ['class' => \yii\grid\ActionColumn::className(), 'template' => '{review}', 'buttons' => ['review' => function ($url, $model) {
    return \yii\helpers\Html::a('<span class="glyphicon glyphicon-eye-open"></span>', \yii\helpers\Url::to(['review', 'id' => $model->id]), ['title' => Yii::t('app', 'Review'), 'data-pjax' => '0']);
}]]]]);
yii\widgets\Pjax::end();
?>
    </div>

    <?php 
$this->registerJs('$("document").ready(function(){
        $("#pjax-frontend-search").on("pjax:start", function() {
            $("#pjax-frontend-search").addClass("page-loading");
        });
Пример #12
0
<?php

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\helpers\ArrayHelper;
use kartik\widgets\DatePicker;
use yii\helpers\Url;
use ptrnov\fusionchart\Chart;
use ptrnov\fusionchart\ChartAsset;
ChartAsset::register($this);
yii\widgets\Pjax::begin(['id' => 'chartmd-chek-tgl']);
?>
	<?php 
$form = ActiveForm::begin(['id' => $model->formName() . 'md', 'enableClientValidation' => false, 'enableAjaxValidation' => true, 'validationUrl' => Url::toRoute('/dashboard/rpt-esm/ambil-tanggal-chart')]);
?>
	
	<?php 
echo $form->field($model, 'tglchartmd')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Pilih  ...'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']])->label('Tanggal');
?>
		
	<?php 
ActiveForm::end();
?>
	
<?php 
yii\widgets\Pjax::end();
?>
	

<?php 
$this->registerJs("\n\t/**\n\t* Before Action Handling Modal.\n\t* Status : Fixed.\n\t* author piter novian [ptr.nov@gmail.com].\n\t*/\n\t\$(" . $model->formName() . 'md' . ").on('ajaxComplete'," . $model->formName() . 'md' . ", function () {\n\t\t var form = \$(" . $model->formName() . 'md' . ");\n\t\t // return false if form still have some validation errors\n\t\t if (form.find('.has-error').length) {\n\t\t\t  return false;\n\t\t }; \t\t\n\t\tvar valTgl = \$('#dynamicmodel-tglchartmd').val();\n\t\t\$.ajax({\n\t\t\turl: 'http://lukisongroup.com/dashboard/rpt-esm-chart-salesmd/visit',\n\t\t\ttype: 'GET',\n\t\t\t//data: form.serialize(),\n\t\t\tdata:'tgl='+valTgl,\n\t\t\tsuccess: function (response) {\n\t\t\t\t\$('document').ready(function(){\n\t\t\t\t\tvar revenueChart = new FusionCharts({\n\t\t\t\t\t\ttype: 'msline',\t\t\t\t\t\n\t\t\t\t\t\trenderAt: 'msline-dashboard-salesmd-visit',\n\t\t\t\t\t\twidth: '100%',\t\n\t\t\t\t\t\theight:'500%',\t\n\t\t\t\t\t\tdataFormat: 'json',\n\t\t\t\t\t\tdataSource: response\n\t\t\t\t\t}).render();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\n\t\t\t\t})\n\t\t\t   //console.log(valTgl);\n\t\t\t}\n\t\t});\n\t\t\n\t\t\$.ajax({\n\t\t\turl: 'http://lukisongroup.com/dashboard/rpt-esm-chart-salesmd/visit-stock',\n\t\t\ttype: 'GET',\n\t\t\tdata:'tgl='+valTgl,\n\t\t\tsuccess: function (response_stock) {\n\t\t\t\t\$('document').ready(function(){\n\t\t\t\t\tvar revenueChart = new FusionCharts({\n\t\t\t\t\t\ttype: 'mscolumn3d',\t\t\t\t\t\n\t\t\t\t\t\trenderAt: 'msline-dashboard-salesmd-visit-stock',\n\t\t\t\t\t\twidth: '100%',\t\n\t\t\t\t\t\theight:'500%',\t\n\t\t\t\t\t\tdataFormat: 'json',\n\t\t\t\t\t\tdataSource: response_stock\n\t\t\t\t\t}).render();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\n\t\t\t\t})\n\t\t\t   //console.log(valTgl);\n\t\t\t}\n\t\t});\n\t\t\n\t\t\$.ajax({\n\t\t\turl: 'http://lukisongroup.com/dashboard/rpt-esm-chart-salesmd/visit-request',\n\t\t\ttype: 'GET',\n\t\t\tdata:'tgl='+valTgl,\n\t\t\tsuccess: function (response_stock) {\n\t\t\t\t\$('document').ready(function(){\n\t\t\t\t\tvar revenueChart = new FusionCharts({\n\t\t\t\t\t\ttype: 'mscolumn3d',\t\t\t\t\t\n\t\t\t\t\t\trenderAt: 'msline-dashboard-salesmd-visit-request',\n\t\t\t\t\t\twidth: '100%',\t\n\t\t\t\t\t\theight:'500%',\t\n\t\t\t\t\t\tdataFormat: 'json',\n\t\t\t\t\t\tdataSource: response_stock\n\t\t\t\t\t}).render();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\n\t\t\t\t})\n\t\t\t   //console.log(valTgl);\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\treturn false;\n\t});\t\n", $this::POS_READY);
Пример #13
0
                        <button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
                    </div>
                </div>
            </div><!-- /.box-header -->
            <div class="box-body">
       <?php 
// yii\widgets\Pjax::begin()
?>
 
      <?php 
if ($rowcount > 0) {
    ?>
          
                <div class="data-table">
      <?php 
    yii\widgets\Pjax::begin(['id' => 'pjax-test']);
    ?>
                    <table class="table table-striped table-bordered" style="margin-top: 0px">
      <thead>
        <tr>
          <th width="40px" style="text-align: right">NO</th>
          <th width="130px">PART.NO.</th>
          <th>DESCRIPTION</th>
          <th style="text-align: right">QUANTITY</th>
          <th style="text-align: right">INVQTY</th>
          <th width="" style="text-align: right">UNIT PRICE</th>
          <th width="" style="text-align: right">TOTAL AMOUNT</th>
          
          <th width=""></th>
        </tr>
      </thead>
Пример #14
0
/* @var $form yii\widgets\ActiveForm */
?>

<?php

$this->registerJs(
    '$("document").ready(function(){
        $("#new_property").on("pjax:end", function() {
            $.pjax.reload({container:"#properties"});  //Reload GridView
        });
    });'
);
?>

<div class="countries-form">

    <?php yii\widgets\Pjax::begin(['id' => 'new_property']) ?>
    <?php $form = ActiveForm::begin(['options' => ['data-pjax' => true ]]); ?>

    <?= $form->field($model, 'name')->textInput(['maxlength' => 200]) ?>

    <?= $form->field($model, 'modifiedDate')->textInput(['maxlength' => 200]) ?>


    <div class="form-group">
        <?= 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(); ?>
    <?php yii\widgets\Pjax::end() ?>
</div>
Пример #15
0
 * @var yii\web\View $this
 * @var yii\data\ActiveDataProvider $dataProvider
 * @var biz\purchase\models\PurchaseSearch $searchModel
 */
$this->title = 'Sales';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="purchase-hdr-index">

    <h1><?php 
echo Html::encode($this->title);
?>
</h1>

    <p>
        <?php 
echo Html::a('Create Sales', ['create'], ['class' => 'btn btn-success']);
?>
    </p>

    <?php 
yii\widgets\Pjax::begin(['formSelector' => 'form', 'enablePushState' => false]);
?>
    <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'sales_num', 'idCustomer.nm_customer', 'idBranch.nm_branch', 'sales_date', 'nmStatus', ['class' => 'yii\\grid\\ActionColumn']]]);
?>
    <?php 
yii\widgets\Pjax::end();
?>
</div>
Пример #16
0
/**
 * @var yii\web\View $this
 * @var yii\data\ActiveDataProvider $dataProvider
 * @var app\modules\admin\models\search\User $searchModel
 * @var int $autoCompleteLimit
 * @var int $modelCode Model code for suggestions
 */
use yii\helpers\Html;
use app\models\User;
$this->title = \Yii::t('app', 'Manage Users');
$clearLabel = \Yii::t('app', 'Clear Filters');
?>
<div class="user-index">
    <?php 
yii\widgets\Pjax::begin(['id' => 'admin-user-id', 'timeout' => false, 'enablePushState' => false]);
?>

    <div class="header-title">
        <h1><?php 
echo yii\helpers\Html::encode($this->title);
?>
</h1>
    </div>

    <p>
        <?php 
echo yii\helpers\Html::a(\Yii::t('app', 'Create User'), ['create'], ['class' => 'btn btn-success', 'data-pjax' => '0']);
?>
    </p>
Пример #17
0
    <?php 
NavBar::begin(['brandLabel' => 'Онлайн Библиотека', 'brandUrl' => Yii::$app->homeUrl, 'options' => ['class' => 'navbar-inverse navbar-fixed-top']]);
$user = [['label' => 'Регистрация', 'url' => ['/user/signup']], ['label' => 'Вход', 'url' => ['/user/signin']]];
if (!Yii::$app->user->isGuest) {
    $user = [['label' => Yii::$app->user->identity->email, 'url' => ['/user/profile']], ['label' => 'Выход', 'url' => ['/user/logout']]];
}
$items = array_merge([['label' => 'Книги', 'url' => ['/book/index']], ['label' => 'Категории', 'url' => ['/category/index']], ['label' => 'Авторы', 'url' => ['/user/index']], ['label' => 'О нас', 'url' => ['/site/about']]], $user);
echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => $items]);
NavBar::end();
?>


    <div class="container">

        <?php 
yii\widgets\Pjax::begin(['id' => 'breadcrumbs']);
?>
            <?php 
echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]);
?>
        <?php 
yii\widgets\Pjax::end();
?>

            <?php 
if (Yii::$app->session->hasFlash('danger')) {
    ?>
                <div class="alert alert-danger">
                    <?php 
    echo Yii::$app->session->getFlash('danger');
    ?>
Пример #18
0
<?php

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\helpers\ArrayHelper;
use kartik\widgets\DatePicker;
use yii\helpers\Url;
yii\widgets\Pjax::begin(['id' => 'detail-chek-tgl']);
?>
	<?php 
$form = ActiveForm::begin(['id' => $model->formName() . 'detail', 'enableClientValidation' => false, 'enableAjaxValidation' => true, 'validationUrl' => Url::toRoute('/master/review-visit/ambil-tanggal-issue'), 'action' => ['/master/review-visit/index']]);
?>
	
	<?php 
echo $form->field($model, 'tgl_detail')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Pilih  ...'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']])->label('Tanggal');
?>
		
		<div style="text-align: right;"">
			<?php 
//echo Html::submitButton('Submit',['class' => 'btn btn-primary']);
?>
		</div>

    
	<?php 
ActiveForm::end();
?>
	
<?php 
yii\widgets\Pjax::end();
?>
Пример #19
0
 */
$this->title = 'Suppliers';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="supplier-index">

	<h1><?php 
echo Html::encode($this->title);
?>
</h1>

	<?php 
// echo $this->render('_search', ['model' => $searchModel]);
?>

	<div class="pull-right">
        <?php 
echo Html::a('', ['create'], ['class' => 'btn btn-default glyphicon glyphicon-plus', 'title' => 'Create New', 'style' => 'width:100%;']);
?>
    </div>
	<?php 
yii\widgets\Pjax::begin(['enablePushState' => false]);
?>
	<?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'tableOptions' => ['class' => 'table table-striped'], 'layout' => '{items}{pager}', 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'cd_supplier', 'nm_supplier', 'create_at', 'create_by', ['class' => 'yii\\grid\\ActionColumn']]]);
?>
	<?php 
yii\widgets\Pjax::end();
?>
</div>
Пример #20
0
<?php

/* * *********************************************************************************
 * The contents of this file are subject to the GNU AFFERO GENERAL PUBLIC LICENSE Version 3
 * ("License"); You may not use this file except in compliance with the GNU AFFERO GENERAL PUBLIC LICENSE Version 3
 * The Original Code is:  Linet 3.0 Open Source
 * The Initial Developer of the Original Code is Adam Ben Hur.
 * All portions are Copyright (C) Adam Ben Hur.
 * All Rights Reserved.
 * ********************************************************************************** */
yii\widgets\Pjax::begin(['id' => 'docs-grid-pjax']);
$model = new \app\models\Docs();
$model->scenario = 'search';
//$model->unsetAttributes();
//$var=\yii\helpers\Html::link(\yii\helpers\Html::encode($data->docnum),"#", array("onclick"=>'refNum('.\yii\helpers\Json::encode($data).')'));
echo \app\widgets\GridView::widget(['id' => 'docs-grid', 'dataProvider' => $model->search(Yii::$app->request->get()), 'layout' => '{items}{pager}', 'panel' => false, 'filterModel' => $model, 'columns' => array(['attribute' => 'doctype', 'filter' => \yii\helpers\ArrayHelper::map(\app\models\Doctype::find()->All(), 'id', 'name'), 'value' => function ($data) {
    return $data->TypeName();
}, 'options' => ['style' => 'width:35%;']], ['attribute' => 'docnum', 'value' => function ($data) {
    return \yii\helpers\Html::a(\yii\helpers\Html::encode($data->docnum), "#", array("onclick" => 'refNum(' . \yii\helpers\Json::encode($data) . ')'));
}, 'format' => 'raw', 'options' => ['style' => 'width:5%;']], 'company', ['attribute' => 'status', 'value' => function ($data) {
    return $data->docStatus->name;
}, 'options' => ['style' => 'width:8%;']], array('attribute' => 'total', 'options' => ['style' => 'width:8%;']))]);
?>
<script type="text/javascript">
    
    jQuery("#docs-grid-pjax").on('pjax:timeout', function(e){
        e.preventDefault();
    }).on('pjax:send', function(){
        jQuery("#docs-grid-container").addClass('kv-grid-loading');
    }).on('pjax:complete', function(){
            //setTimeout(kvGridInit_34655f25(), 2500);
Пример #21
0
//use yii\widgets\Pjax;
use app\models\CmbisKpiResult;
//use app\models\Chospital;
//use app\models\Campur;
//use yii\helpers\ArrayHelper;
use yii\data\ActiveDataProvider;
/* @var $this yii\web\View */
/* @var $searchModel app\models\CmbisKpiResultSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->registerJsFile('./js/app.js');
$this->title = 'ผลงานตามตัวชี้วัด';
$this->params['breadcrumbs'][] = $this->title;
?>

<?php 
yii\widgets\Pjax::begin(['id' => 'grid-kpiresult-pjax', 'timeout' => 5000]);
?>

<?php 
//echo $this->render('_search', ['model' => $searchModel]);
?>
<br>
<div class="box box-success">
  <div class="box-header with-border">
    <h3 class="box-title">จัดอันดับคะแนนระดับอำเภอ</h3>
    <div class="box-tools pull-right">
      <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
      <button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
    </div><!-- /.box-tools -->
  </div><!-- /.box-header -->
  <div class="box-body">
Пример #22
0
<?php

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\helpers\ArrayHelper;
use kartik\widgets\DatePicker;
use yii\helpers\Url;
use kartik\widgets\Select2;
use kartik\money\MaskMoney;
use kartik\widgets\DepDrop;
yii\widgets\Pjax::begin(['id' => 'detail-chek-summary-month']);
?>
	<?php 
$form = ActiveForm::begin(['id' => $model->formName() . 'detail', 'enableClientValidation' => false, 'enableAjaxValidation' => true, 'validationUrl' => Url::toRoute('/master/review-visit/ambil-monthly'), 'action' => ['/master/review-visit/index']]);
?>
	
	<?php 
echo $form->field($model, 'tgl_detail_month')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Pilih  ...'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd', 'startView' => 'year', 'minViewMode' => 'months']])->label('Tanggal');
?>
		
	 <?php 
echo $form->field($model, 'USER_ID')->widget(Select2::classname(), ['data' => $arySalesUser, 'options' => ['placeholder' => 'Pilih User..'], 'pluginOptions' => ['allowClear' => true]]);
?>
		<div style="text-align: right;"">
			<?php 
//echo Html::submitButton('Submit',['class' => 'btn btn-primary']);
?>
		</div>

    
	<?php