<?php $this->params["menu"] = array(); app\widgets\MiniForm::begin(array('header' => Yii::t('app', "Bankbooks"))); ?> <?php $dateisOn = kartik\datecontrol\DateControl::widget(['model' => $model, 'attribute' => 'date_from', 'type' => 'date']) . kartik\datecontrol\DateControl::widget(['model' => $model, 'attribute' => 'date_to', 'type' => 'date']); ?> <?php echo app\widgets\GridView::widget(array('id' => 'transaction-grid', 'dataProvider' => $model->dp(), 'columns' => array('id', array('attribute' => 'account_id', 'filter' => \yii\helpers\ArrayHelper::map(app\models\Accounts::find()->where(['type' => 7])->All(), 'id', 'name'), 'value' => function ($data) { return $data->getAccountName(); }), array('value' => function ($data) { return $this->render('_bank', array('cdata' => $data, 'intType' => 0)); }, 'format' => 'raw'), array('value' => function ($data) { return $this->render('_trans', array('cdata' => $data, 'intType' => 0)); }, 'format' => 'raw'), array('attribute' => 'date', 'filter' => $dateisOn, 'value' => function ($data) { return $data->date; }), array('attribute' => 'owner', 'filter' => \yii\helpers\ArrayHelper::map(app\models\User::find()->All(), 'id', 'username')), array('class' => 'yii\\grid\\ActionColumn', 'template' => '{delete}', 'buttons' => array())))); ?> <?php app\widgets\MiniForm::end();
<?php $this->params["menu"] = array(); app\widgets\MiniForm::begin(array('header' => Yii::t('app', "Bank Account Reconciliations"))); ?> <?php $form = kartik\form\ActiveForm::begin(array('id' => 'extmatch-form')); $temp = \yii\helpers\ArrayHelper::map(app\models\Accounts::findAllByType(7), 'id', 'name'); $temp[0] = Yii::t('app', 'Choose Bank'); $model->account_id = 0; //echo $form->error($extmatch, 'account_id'); echo $form->field($extmatch, "account_id")->widget(kartik\select2\Select2::className(), ['data' => $temp]); //echo $form->error($extmatch, 'account_id'); ?> <div id ="result"> </div> <div class="row"> <div class="col-md-3"> <?php //echo $form->labelEx($extmatch, 'ext_total'); echo $form->field($extmatch, 'ext_total'); //echo $form->error($extmatch, 'ext_total'); //echo $form->labelEx($extmatch, 'int_total'); echo $form->field($extmatch, 'int_total'); //echo $form->error($extmatch, 'int_total'); ?> </div> </div> <div class="form-actions"> <?php
<tr> <td> <?php echo app\models\ItemVatCat::findName($model->itemVatCat_id); echo $form->field($model, "[{$i}]itemVatCat_id", ['template' => '{input}'])->hiddenInput(); ?> </td> <td> <?php echo $form->field($model, "[{$i}]account_id", ['template' => '{input}'])->widget(kartik\select2\Select2::classname(), ['data' => \yii\helpers\ArrayHelper::map(app\models\Accounts::findAllByType(3), 'id', 'name')]); ?> </td> </tr>
<?php $this->params["menu"] = array(); app\widgets\MiniForm::begin(array('header' => Yii::t('app', "Reconciliations"))); ?> <?php $form = kartik\form\ActiveForm::begin(array('id' => 'intmatch-form')); //$temp=\yii\helpers\ArrayHelper::map(Accounts::findAllByAttributes(array('type' => 1)), 'id', 'name'); $temp = array_merge(app\models\Accounts::find()->where(['type' => 1])->All(), app\models\Accounts::find()->where(['type' => 0])->All()); $temp = \yii\helpers\ArrayHelper::map($temp, 'id', 'name'); $temp[0] = Yii::t('app', 'Choose Account'); $model->account_id = 0; //echo $form->error($model,'account_id'); echo $form->field($model, "account_id")->widget(kartik\select2\Select2::className(), ['data' => $temp]); //echo $form->error($model,'account_id'); ?> <div id ="result"> </div> <div class="row"> <div class="col-md-3"> <?php //echo $form->labelEx($model, 'in_total'); echo $form->field($model, 'in_total'); //echo $form->field($model, 'in_total'); //echo $form->labelEx($model, 'out_total'); echo $form->field($model, 'out_total'); //echo $form->error($model, 'out_total'); ?> </div> </div>
<?php echo ($model->hasCert() ? Yii::t('app', "Has certifcate file") : '') . "<br>"; ?> <?php echo $form->field($model, 'certpasswd'); ?> <?php app\widgets\TbPanel::end(); ?> </div> <div class="col-md-4 col-sm-6"> <?php app\widgets\TbPanel::begin(array('header' => Yii::t('app', "User Warehouse and VAT Configuration"))); ?> <?php echo $form->field($model, 'warehouse')->widget(Select2::classname(), ['data' => \yii\helpers\ArrayHelper::map(app\models\Accounts::findAllByType(8), 'id', 'name')]); ?> <table data-role="table" class="table" ><!-- docdetalies --> <thead> <tr class="head1"> <th><label><?php echo Yii::t('app', "Item VAT Cat"); ?> </label></th> <th><label><?php echo Yii::t('app', "Account ID"); ?> </label></th> </tr> </thead> <tfoot>
<?php use Ngaji\Http\Request; if (Request::is_authenticated()) { $account = app\models\Accounts::findByPK(Request::user()->id); } ?> <? if (Request::is_admin()): ?> <!-- Logo --> <?php echo Html::anchor('', '<b>IniForum</b>LTE', ['class' => 'logo']); ?> <nav class="navbar navbar-static-top" role="navigation"> <!-- Sidebar toggle button--> <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button"> <span class="sr-only">Toggle navigation</span> </a> <!-- Navbar Right Menu --> <div class="navbar-custom-menu"> <ul class="nav navbar-nav"> <li class="dropdown user user-menu"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <?php echo Html::loadIMG($account['photo'], ['class' => 'user-image', 'alt' => 'User Image']); ?> <span class="hidden-xs"><?php echo Request::get_user('name'); ?> </span> </a>
<?php $this->params["menu"] = array(array('label' => Yii::t('app', 'Create Account Contact History'), 'url' => array('create'))); app\widgets\MiniForm::begin(array('header' => Yii::t('app', "Manage Account Contact History"))); ?> <?php echo app\widgets\GridView::widget(array('id' => 'acchist-grid', 'dataProvider' => $model->search([]), 'filterModel' => $model, 'columns' => array('subject', ['attribute' => 'type', 'filter' => \yii\helpers\ArrayHelper::map(\app\models\AccHist::getTypes(), 'id', 'name'), "value" => function ($data) { return $data->getTypeName(); }], array('attribute' => 'account_id', 'value' => function ($data) { return app\models\Accounts::findName($data->account_id); }), array('attribute' => 'dt', 'value' => function ($data) { return $data->readDateFormat($data->dt); }), array('class' => 'yii\\grid\\ActionColumn')))); app\widgets\MiniForm::end();