* The Initial Developer of the Original Code is Adam Ben Hur. * All portions are Copyright (C) Adam Ben Hur. * All Rights Reserved. ************************************************************************************/ ?> <h3><?php echo Yii::t("app", "Install Wizard"); ?> : <?php echo Yii::t("app", "Database configuration"); ?> </h3> <div class="iPage small"> <?php $form = kartik\form\ActiveForm::begin(array('id' => 'install-form', 'type' => kartik\form\ActiveForm::TYPE_HORIZONTAL, 'enableAjaxValidation' => false)); //echo $form->field($model,'dbtype'); echo $form->field($model, 'dbhost'); echo $form->field($model, 'dbname'); echo $form->field($model, 'dbuser'); echo $form->field($model, 'dbpassword'); //echo $form->field($model,'dbstring'); ?> <div class="form-actions"> <a href="?r=install/index" class="btn btn-danger"><?php echo Yii::t("app", 'Back'); ?> </a> <?php echo \yii\helpers\Html::submitButton(Yii::t("app", 'Next'), ['class' => 'btn btn-success']); ?>
<?php use kartik\select2\Select2; use app\models\Currates; use app\models\Accounts; use kartik\datecontrol\DateControl; $this->params["menu"] = array(); app\widgets\MiniForm::begin(array('header' => Yii::t("app", "Create Manual Transaction"))); $form = kartik\form\ActiveForm::begin(array('id' => 'transaction-form', 'enableAjaxValidation' => true)); ?> <div class="row"> <div class="col-md-3"> <?php echo app\widgets\Refnum::widget(['model' => $model, 'attribute' => 'refnum1']); ?> <?php echo $form->field($model, 'refnum2'); ?> </div> <div class="col-md-3"> <?php echo $form->field($model, 'details'); ?> <?php echo $form->field($model, 'valuedate')->widget(DateControl::classname(), ['type' => 'date']);
<?php $form = kartik\form\ActiveForm::begin(array('id' => 'bankbook-form', 'enableAjaxValidation' => false, 'options' => array('enctype' => 'multipart/form-data'))); echo $form->field($model, 'file')->fileInput(); ?> <div class="row buttons"> <?php echo \yii\helpers\Html::submitButton(Yii::t('app', 'Import'), ['class' => 'btn btn-success']); ?> </div> <?php kartik\form\ActiveForm::end(); ?> <?php echo app\widgets\GridView::widget(array('id' => 'bankbook-grid', 'dataProvider' => $model->dp(), 'columns' => array('id', 'account_id', 'details', 'refnum', 'date', 'sum', 'total', array('class' => 'yii\\grid\\ActionColumn'))));
<?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
<?php app\widgets\MiniForm::begin(array('header' => Yii::t('app', "Bug Report"))); $form = kartik\form\ActiveForm::begin(array('id' => 'bug-form')); ?> <?php echo $form->field($model, 'title'); ?> <?php echo $form->field($model, 'body')->textArea(); ?> <?php echo \yii\helpers\Html::submitButton(Yii::t('app', 'Send'), ['class' => 'btn btn-success']); ?> <?php kartik\form\ActiveForm::end(); echo yii\widgets\ListView::widget(array('dataProvider' => $dataProvider, 'itemView' => '_bugView')); ?> <?php app\widgets\MiniForm::end();
$this->widget('bootstrap.widgets.TbButton', array('label' => Yii::t('app', 'Add new'), 'type' => 'success', 'options' => array('onclick' => '$("#addnew").dialog("open"); return false;'))); ?> <?php //print_r($model->items); //Yii::$app->end(); echo app\widgets\GridView::widget(array('id' => 'acc-templateItem-grid', 'dataProvider' => $items->search(), 'filter' => $items, 'columns' => array(array('name' => 'eavFields_id', 'value' => '$data->EavFields->name'), array('class' => 'yii\\grid\\ActionColumn', 'template' => '{remove}', 'buttons' => array('remove' => array('label' => '<i class="glyphicon glyphicon-remove"></i>', 'url' => '$data->id', 'options' => array('onclick' => 'deleteTempItm(this);return false;'))))))); app\widgets\MiniForm::end(); ?> <?php echo \yii\jui\Dialog::begin(array('id' => 'addnew', 'options' => array('title' => Yii::t('app', 'Add new field'), 'autoOpen' => false, 'width' => '600px'))); //bootstrap.widgets.TbModal $form = kartik\form\ActiveForm::begin(array('id' => 'newField', 'options' => array('class' => 'well'), 'action' => array('SaveSub', 'id' => $model->id))); ?> <div class="modal-body"> <?php $models = EavFields::find()->All(array('order' => 'name')); $list = \yii\helpers\ArrayHelper::map($models, 'id', 'name'); $options = array(); $select = \yii\helpers\Html::dropDownList(ucfirst($this->id) . 'Item[eavFields_id]', 0, $list, $options); echo $select; ?> <input type='hidden' value='<?php echo $model->id; ?> ' name='<?php echo ucfirst($this->id);
<?php $form = kartik\form\ActiveForm::begin(array('id' => 'eav-fields-form', 'enableAjaxValidation' => false)); $model->min = 0; $model->max = 255; use kartik\select2\Select2; use app\models\EavFields; ?> <?php echo $form->errorSummary($model); ?> <?php echo $form->field($model, 'name'); ?> <?php echo $form->field($model, 'eavType')->widget(Select2::classname(), ['data' => \yii\helpers\ArrayHelper::map(EavFields::getTypes(), 'id', 'name')]); ?> <?php //\yii\helpers\ArrayHelper::map(, 'id', 'name'); //echo $form->field($model,'eavType',array('class'=>'span5','maxlength'=>255)); ?> <?php echo $form->field($model, 'min'); ?>
<?php use kartik\select2\Select2; use app\models\Acctype; use app\models\Doctype; ?> <?php $form = kartik\form\ActiveForm::begin(array('id' => 'mail-template-form', 'enableAjaxValidation' => false)); ?> <?php echo $form->errorSummary($model); ?> <?php echo $form->field($model, 'name'); ?> <?php $list = array(array('id' => 'app\\models\\Accounts', 'name' => 'Account type'), array('id' => 'app\\models\\Docs', 'name' => 'Documenet type')); //echo $form->dropDownListRow($model, 'entity_type', \yii\helpers\ArrayHelper::map($list, 'id', 'name')); ?> <?php echo $form->field($model, 'entity_type')->widget(Select2::classname(), ['data' => \yii\helpers\ArrayHelper::map($list, 'id', 'name')]); ?> <?php echo $form->field($model, 'entity_id')->widget(Select2::classname(), ['data' => \yii\helpers\ArrayHelper::map(Acctype::find()->All(), 'id', 'name')]); ?> <br />
<?php app\widgets\MiniForm::begin(array('header' => Yii::t("app", "Import open format"))); ?> <?php $form = kartik\form\ActiveForm::begin(array('id' => 'accounts-form', 'enableAjaxValidation' => true, 'options' => array('enctype' => 'multipart/form-data'))); ?> <?php echo $form->errorSummary($model); ?> <?php echo \yii\helpers\Html::hiddenInput("companyId", $model->companyId); foreach ($model->accDesc as $type => $desc) { //$model->accTypeIndex[$type]; //echo $form->dropDownListRow($model,'id6111',\yii\helpers\ArrayHelper::map(AccId6111::find()->All(), 'id', 'name')); echo \yii\helpers\Html::dropDownList("SwitchType[" . $model->accTypeIndex[$type] . "]", 0, \yii\helpers\ArrayHelper::map(app\models\Acctype::find()->All(), 'id', 'name')); echo $desc . "<br/>"; // $this->accDesc[$acc->type]=$acc->name; } ?> <div class="form-actions"> <?php echo \yii\helpers\Html::submitButton(Yii::t('app', 'Go'), ['class' => 'btn btn-success']); ?> </div>
<?php use kartik\select2\Select2; use app\models\Currates; use app\models\Accounts; $form = kartik\form\ActiveForm::begin(array('id' => 'bank-name-form')); ?> <?php echo $form->errorSummary($model); ?> <?php //echo $form->field($model,'id',array('class'=>'span5')); ?> <?php echo $form->field($model, 'date')->widget(kartik\datecontrol\DateControl::classname(), ['type' => 'date']); ?> <?php echo $form->field($model, 'details'); ?> <?php echo $form->field($model, 'refnum'); ?> <?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. ************************************************************************************/ use app\models\Acctype; $this->params["menu"] = array(); ?> <?php app\widgets\MiniForm::begin(array('header' => Yii::t("app", "Bulk Balance"))); $form = kartik\form\ActiveForm::begin(array('id' => 'bulkBalance-form')); ?> <div class='row form-actions'> <div class='col-md-3'> <?php echo $form->field($model, 'from_date')->widget(kartik\datecontrol\DateControl::classname(), ['type' => 'date']); ?> <?php echo $form->field($model, 'to_date')->widget(kartik\datecontrol\DateControl::classname(), ['type' => 'date']); ?> <?php echo $form->field($model, 'acc'); ?> <?php echo Yii::t('app', 'Examples');
<?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. ************************************************************************************/ app\widgets\MiniForm::begin(array('header' => Yii::t('app', "Vat Report"))); $form = kartik\form\ActiveForm::begin(array('id' => 'reportvat-form', 'enableAjaxValidation' => false)); ?> <div class='row'> <div class='col-md-3'> <?php echo Yii::t('app', 'From Date') . ": " . $model->from_month; echo $form->field($model, 'step')->hiddenInput(); echo $form->field($model, 'from_month')->hiddenInput(); echo $form->field($model, 'year')->hiddenInput(); echo "<br>"; echo Yii::t('app', 'To Date') . ": " . $model->to_month; echo $form->field($model, 'to_month')->hiddenInput(); //echo $form->hiddenField($model,'to_year'); echo "<br>"; echo $form->field($model, 'selvat_acc')->hiddenInput(); echo $form->field($model, 'selvat_total'); echo $form->field($model, 'income_sum'); echo $form->field($model, 'income_sum_novat'); echo '<br />'; echo $form->field($model, 'assetvat_acc')->hiddenInput();
* The Initial Developer of the Original Code is Adam Ben Hur. * All portions are Copyright (C) Adam Ben Hur. * All Rights Reserved. ************************************************************************************/ ?> <h3><?php echo Yii::t("app", "Install Wizard"); ?> : <?php echo Yii::t("app", "Prerequisites"); ?> </h3> <div class="iPage"> <?php echo yii\grid\GridView::widget(array('id' => 'pre-grid', 'dataProvider' => $model->report(), 'columns' => array('id', 'value'))); ?> <?php $form = kartik\form\ActiveForm::begin(array('id' => 'install-form', 'enableAjaxValidation' => false, 'options' => array())); echo $form->field($model, 'step', ['template' => "{input}"])->hiddenInput(); ?> <div class="form-actions"> <?php echo \yii\helpers\Html::submitButton(Yii::t("app", 'Next'), ['class' => 'btn btn-success']); ?> </div> <?php kartik\form\ActiveForm::end(); ?> </div>
/* * ********************************************************************************* * 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. * ********************************************************************************** */ use yii\helpers\Html; use yii\helpers\ArrayHelper; use kartik\select2\Select2; use kartik\datecontrol\DateControl; use app\models\Language; //use kartik\markdown\MarkdownEditor; $form = kartik\form\ActiveForm::begin(array('id' => 'docs-form', 'enableAjaxValidation' => false, 'enableClientValidation' => false, 'validateOnSubmit' => false, 'options' => array('enctype' => 'multipart/form-data'))); $docnum = $model->getMax($model->doctype) != $model->docType->last_docnum; if ($docnum) { \Yii::$app->getSession()->setFlash('danger', Yii::t('app', 'Document exists please fix last_num Value') . " " . Html::a('Here', yii\helpers\BaseUrl::base() . '/doctype/update/' . $model->doctype)); } $docstatus = ArrayHelper::map(\app\models\Docstatus::find()->where(['doc_type' => $model->doctype])->all(), 'num', 'name'); $currncies = ArrayHelper::map(\app\models\Currates::GetRateList(), 'currency_id', 'name'); $accounts = ArrayHelper::map(\app\models\Accounts::findAllByType($model->docType->account_type), 'id', 'name'); if ($model->doctype == 6) { $accounts1 = ArrayHelper::map(\app\models\Accounts::findAllByType(9), 'id', 'name'); $accounts += $accounts1; } $accounts[0] = Yii::t('app', 'None'); $oppts = ArrayHelper::map(\app\models\Accounts::findAllByType($model->docType->oppt_account_type), 'id', 'name'); $oppts[""] = Yii::t('app', 'None'); //echo $form->dropDownList($model, "[$i]item_id", $oppts);
<h3><?php echo Yii::t("app", "Install Wizard"); ?> : <?php echo Yii::t("app", "Add User"); ?> </h3> <div class="iPage"> <?php use yii\helpers\ArrayHelper; use kartik\select2\Select2; $languages = ArrayHelper::map(app\models\Language::find()->All(), 'id', 'name'); $form = kartik\form\ActiveForm::begin(array('id' => 'user-form', 'enableAjaxValidation' => true, 'type' => kartik\form\ActiveForm::TYPE_HORIZONTAL)); ?> <?php echo $form->errorSummary($model); ?> <?php echo $form->field($model, 'username'); ?> <?php echo $form->field($model, 'fname'); ?> <?php echo $form->field($model, 'lname'); ?>
<div class="form"> <?php $form = kartik\form\ActiveForm::begin(array('id' => 'itemunit-form', 'enableAjaxValidation' => true)); ?> <?php echo $form->errorSummary($model); ?> <?php echo $form->field($model, 'name'); ?> <?php echo $form->field($model, 'precision'); ?> <div class="form-actions"> <?php echo \yii\helpers\Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => 'btn btn-success']); ?> </div> <?php kartik\form\ActiveForm::end(); ?> </div><!-- form -->
<div class="form"> <?php use yii\helpers\ArrayHelper; use kartik\select2\Select2; $form = kartik\form\ActiveForm::begin(array('id' => 'accounts-form' . $model->type, 'options' => array('enctype' => 'multipart/form-data'))); $id6111 = ArrayHelper::map(\app\models\AccId6111::find()->All(), 'id', 'name'); $id6111[0] = Yii::t('app', 'None'); $currncies = ArrayHelper::map(\app\models\Currates::GetRateList(), 'currency_id', 'name'); $accounts = ArrayHelper::map(\app\models\Accounts::find()->all(), 'id', 'name'); $accounts[0] = Yii::t('app', 'None'); $acccat = ArrayHelper::map(\app\models\AccCat::find()->where(["type_id" => $model->type])->all(), 'id', 'name'); ?> <?php echo $form->errorSummary($model); ?> <?php echo $form->field($model, 'type', ['template' => '{input}'])->hiddenInput(); ?> <div class="col-md-4 col-sm-6"> <?php app\widgets\TbPanel::begin(array('header' => Yii::t('app', "Account General Details"))); ?> <?php echo $form->field($model, 'name'); ?> <?php echo $form->field($model, 'cat_id')->dropDownList($acccat); ?>
<?php use yii\helpers\Html; use yii\helpers\ArrayHelper; use app\widgets\TbPanel; use app\models\Item; use app\models\Files; use app\models\Itemcategory; use app\models\Itemunit; use app\models\ItemVatCat; use app\models\Currates; ?> <div class="form"> <?php $form = kartik\form\ActiveForm::begin(['id' => 'item-form', 'options' => array('enctype' => 'multipart/form-data')]); ?> <?php $temp = ArrayHelper::map(Item::find()->asArray()->all(), 'id', 'name'); $temp[0] = Yii::t('app', 'None'); $cat = ArrayHelper::map(Itemcategory::find()->asArray()->all(), 'id', 'name'); $units = ArrayHelper::map(Itemunit::find()->asArray()->all(), 'id', 'name'); ?> <div class="row"> <?php echo $form->errorSummary($model); ?> </div> <div class="row">
<?php $form = kartik\form\ActiveForm::begin(array('action' => yii\helpers\BaseUrl::base() . $this->route, 'method' => 'get')); ?> <?php echo $form->field($model, 'id', array('class' => 'span5')); ?> <?php echo $form->field($model, 'name', array('class' => 'span5', 'maxlength' => 255)); ?> <?php echo $form->field($model, 'AccType_id', array('class' => 'span5')); ?> <div class="form-actions"> <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'type' => 'success', 'label' => 'Search')); ?> </div> <?php app\widgets\MiniForm::end();
JAVA; $this->registerJs("var baseAddress='" . \yii\helpers\BaseUrl::base() . "';" . "var oppt_account_type=" . (int) $model->docType->oppt_account_type . ";" . "var pdf=" . $pdf . ";", \yii\web\View::POS_HEAD); $this->registerJs($java, \yii\web\View::POS_READY); $this->registerJsFile(yii\helpers\BaseUrl::base() . '/assets/docs.js', ['depends' => [\yii\web\JqueryAsset::className()]]); ?> <div class="row"> <?php echo $this->render('print', array('model' => $model)); ?> </div> <?php $form = kartik\form\ActiveForm::begin(array('id' => 'docs-form', 'action' => yii\helpers\BaseUrl::base() . ('/docs/view/' . $model->id), 'enableAjaxValidation' => false, 'options' => array('enctype' => 'multipart/form-data'))); ?> <div class="row"> <?php echo $form->errorSummary($model); ?> </div> <div class="row"> <div class="col-md-4"> <?php echo $form->field($model, 'comments')->textarea(); ?> </div> <div class="col-md-5"> <?php
<?php use app\widgets\SettingsTbPanel; app\widgets\MiniForm::begin(array('header' => Yii::t("app", "Update Configuration"))); $form = kartik\form\ActiveForm::begin(array('id' => 'settings-form', 'options' => array('enctype' => 'multipart/form-data'))); ?> <div class='row'> <div class='col-md-6'> <?php echo SettingsTbPanel::widget(array('header' => Yii::t('app', "General Business Details"), 'models' => $models, 'from' => 100, 'to' => 199)); ?> <?php echo SettingsTbPanel::widget(array('header' => Yii::t('app', "Contact Details"), 'models' => $models, 'from' => 400, 'to' => 499)); ?> <?php echo SettingsTbPanel::widget(array('header' => Yii::t('app', "Address Details"), 'models' => $models, 'from' => 300, 'to' => 399)); ?> </div> <div class='col-md-6'> <?php echo SettingsTbPanel::widget(array('header' => Yii::t('app', "Tax and Accounting Data"), 'models' => $models, 'from' => 200, 'to' => 249)); ?> <?php echo SettingsTbPanel::widget(array('header' => Yii::t('app', "Currency"), 'models' => $models, 'from' => 250, 'to' => 299));
<?php //echo $event->sender->menu->run(); //echo '<div>Step '.$event->sender->currentStep.' of '.$event->sender->stepCount; //echo '<h3>'.$event->sender->getStepLabel($event->step).'</h3>'; //echo \yii\helpers\Html::tag('div',array('class'=>'form'),$form); app\widgets\MiniForm::begin(array('header' => Yii::t("app", "Install Wizard"))); ?> <div style=" width: 40%; display: inline-block; margin-right: 150px; "> <?php echo app\widgets\GridView::widget(array('id' => 'pre-grid', 'dataProvider' => $model->report(), 'template' => '{items}', 'columns' => array('id', 'value'))); ?> </div> <?php $form = kartik\form\ActiveForm::begin(array('id' => 'install-form', 'enableAjaxValidation' => false, 'options' => array('onsubmit' => "return false;", 'onkeypress' => " if(event.keyCode == 13){ send(); } "))); //echo $form->hiddenfield($model,'step'); echo \yii\helpers\Html::submitButton(Yii::t("app", 'Next'), array('onclick' => 'send();')); kartik\form\ActiveForm::end(); app\widgets\MiniForm::end(); ?> <script type="text/javascript"> function send() { var data = $("#install-form").serialize(); $.ajax({
<h3><?php echo Yii::t("app", "Install Wizard"); ?> : <?php echo Yii::t("app", "Finish"); ?> </h3> <div class="iPage"> <?php $form = kartik\form\ActiveForm::begin(['id' => 'user-form', 'enableAjaxValidation' => true]); ?> <?php echo Yii::t("app", "You have successfully installed Linet. you can now log in to the system."); ?> <?php echo $form->errorSummary($model); ?> <?php echo $form->field($model, 'rename', ['template' => '{input}'])->hiddenInput(); ?> <?php echo $form->field($model, 'install', ['template' => '{input}'])->hiddenInput(); ?> <div class="form-actions"> <?php
<?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. ************************************************************************************/ use kartik\select2\Select2; $form = kartik\form\ActiveForm::begin(array('id' => 'bank-name-form', 'enableAjaxValidation' => false)); ?> <?php echo $form->errorSummary($model); ?> <?php //echo $form->field($model,'id',array('class'=>'span5')); ?> <?php echo $form->field($model, 'name'); ?> <?php echo $form->field($model, 'type_id')->widget(Select2::classname(), ['data' => \yii\helpers\ArrayHelper::map(app\models\Acctype::find()->All(), 'id', 'name')]); ?> <div class="form-actions">
<?php $form = kartik\form\ActiveForm::begin(array('id' => 'company-form', 'enableAjaxValidation' => false)); ?> <?php echo $form->errorSummary($user); ?> <?php echo $form->field($user, 'user_id')->widget(kartik\select2\Select2::className(), ['data' => \yii\helpers\ArrayHelper::map(\app\models\User::find()->All(), 'id', 'username')]); ?> <br /> <?php echo $form->field($user, 'level_id'); ?> <div class="form-actions"> <?php echo \yii\helpers\Html::submitButton($user->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => 'btn btn-success']); ?> </div> <?php kartik\form\ActiveForm::end();
});', \yii\web\View::POS_READY); $this->registerJs(' $(document).ready(function(){ if($("#Srad").is(":checked")) { $(\'.keluarKampus\').css("display","none") $(\'.matakuliahIzin\').css("display","block") } });', \yii\web\View::POS_READY); ?> <?php $form = kartik\form\ActiveForm::begin(); ?> <?php echo Form::widget(['model' => $model, 'form' => $form, 'columns' => 2, 'attributes' => ['tujuan_sms' => ['label' => 'Pengurus Asrama', 'type' => Form::INPUT_DROPDOWN_LIST, 'items' => ArrayHelper::map(AitkRAsrama::find()->all(), 'asrama_id', 'nama_pengurus'), 'options' => ['inline' => true, 'prompt' => 'Pilih Tujuan SMS asrama']]]]); ?> <?php echo Form::widget(['model' => $model, 'form' => $form, 'columns' => 2, 'attributes' => ['tipe_ijin' => ['type' => Form::INPUT_RADIO_LIST, 'items' => ['K' => 'Keluar Kampus', 'S' => 'Tidak Hadir/Sakit'], 'options' => ['inline' => true, 'item' => function ($index, $label, $name, $checked, $value) { return Html::radio($name, $checked, ['value' => $value, 'label' => '<label for="' . $label . '">' . $label . '</label>', 'labelOptions' => ['id' => $value . 'rad', 'style' => 'display:block; float:left'], 'id' => $value, 'class' => 'PilihanIzinList']); }]], 'waktuKeluar' => ['label' => 'Tanggal ', 'attributes' => ['tanggal_mulai' => ['type' => Form::INPUT_WIDGET, 'widgetClass' => '\\kartik\\widgets\\DateTimePicker', 'options' => ['options' => ['placeholder' => 'Time from...', 'id' => 'timeStart' . 'mulaiKeluar']]], 'tanggal_selesai' => ['type' => Form::INPUT_WIDGET, 'widgetClass' => '\\kartik\\widgets\\DateTimePicker', 'options' => ['options' => ['placeholder' => 'Time to...', 'id' => 'timeEnd' . 'Keluar']]]]]]]); $semester = $model->semester; ?>
<?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. ************************************************************************************/ app\widgets\MiniForm::begin(array('header' => Yii::t('app', "Tax Report"))); $form = kartik\form\ActiveForm::begin(array('id' => 'reporttaxrep-form')); ?> <div class='row'> <div class='col-md-3'> <?php echo Yii::t('app', 'From Date') . ": " . $model->from_month; echo $form->field($model, 'step')->hiddenInput(); echo $form->field($model, 'from_month')->hiddenInput(); echo $form->field($model, 'year')->hiddenInput(); echo "<br>"; echo Yii::t('app', 'To Date') . ": " . $model->to_month; echo $form->field($model, 'to_month')->hiddenInput(); //echo $form->hiddenField($model,'to_year'); echo "<br>"; //echo $form->hiddenField($model,'selvat_acc'); //echo $form->labelEx($model,'selvat_total'); //echo $form->textField($model,'selvat_total'); echo $form->field($model, 'income_sum'); echo $form->field($model, 'tax_rate'); echo $form->field($model, 'tax_sum');
use kartik\field; use kartik\builder\Form; use yii\kartik\ActiveForm; use backend\modules\aitk\models\AitkRKelas; use backend\modules\aitk\models\AitkRMahasiswa; use yii\bootstrap\ActiveField; use kartik\widgets\Typeahead; use yii\helpers\Url; /* @var $this yii\web\View */ /* @var $model backend\modules\aitk\models\AitkRequest */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="aitk-request-form"> <?php $form = kartik\form\ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data', 'method' => 'GET']]); ?> <style> #searchNama { width:40%; float:left; margin-right: 20px; } #w1{ width:20%; float:left; }