Пример #1
0
    
<?php 
app\widgets\MiniForm::begin(array('header' => Yii::t("app", "Profit & Loss report")));
?>

<div style=" width: 40%; display: inline-block; margin-right: 150px; ">
    <?php 
echo app\widgets\GridView::widget(array('id' => 'profloss-grid', 'dataProvider' => $model->search(), 'pager' => false, 'columns' => array(array('header' => Yii::t('app', 'ID'), 'attribute' => 'id'), array('header' => Yii::t('app', 'Name'), 'attribute' => 'name'), array('attribute' => 'sum', 'header' => Yii::t('app', 'Sum')), array('header' => Yii::t('app', 'Id6111'), 'attribute' => 'id6111'))));
?>
</div>


<?php 
app\widgets\MiniForm::end();
Пример #2
0
<?php

use app\models\Currecies;
$this->params["breadcrumbs"] = array('Currates' => array('index'), 'Manage');
$this->params["menu"] = array(array('label' => Yii::t('app', 'Create Currency Rate'), 'url' => array('create')));
?>


<?php 
app\widgets\MiniForm::begin(array('header' => Yii::t('app', "Manage Currencies Rates")));
?>

<?php 
$dateisOn = kartik\datecontrol\DateControl::widget(['model' => $model, 'attribute' => 'from', 'type' => 'date']) . kartik\datecontrol\DateControl::widget(['model' => $model, 'attribute' => 'to', 'type' => 'date']);
?>



<?php 
echo app\widgets\GridView::widget(array('id' => 'currates-grid', 'dataProvider' => $model->dp(), 'columns' => array(array('attribute' => 'currency_id', 'filter' => \yii\helpers\ArrayHelper::map(Currecies::find()->All(), 'id', 'name')), array('attribute' => 'date'), 'value')));
app\widgets\MiniForm::end();
Пример #3
0
<?php

$this->params["breadcrumbs"] = array(Yii::t('app', 'Account Id6111') => array('index'), Yii::t('app', 'Manage'));
$this->params["menu"] = array(array('label' => Yii::t('app', 'Create Id6111'), 'url' => array('create')));
app\widgets\MiniForm::begin(array('header' => Yii::t('app', "Manage Account Id6111")));
?>

<?php 
echo app\widgets\GridView::widget(array('id' => 'bank-name-grid', 'dataProvider' => $model->dp(), 'columns' => array('id', 'name', array('class' => 'yii\\grid\\ActionColumn'))));
app\widgets\MiniForm::end();
Пример #4
0
<?php

echo app\widgets\GridView::widget(array('id' => 'item-grid', 'dataProvider' => $model->search(), 'filter' => $model, 'ajaxUpdate' => TRUE, 'ajaxType' => 'POST', 'columns' => array('id', 'name', array('name' => 'category_id', 'filter' => \yii\helpers\ArrayHelper::map(Itemcategory::find()->All(), 'id', 'name'), 'value' => 'isset($data->Category)?$data->Category->name:0'), 'parent_item_id', 'isProduct', 'saleprice', array('class' => 'yii\\grid\\ActionColumn'))));
?>





Пример #5
0
<?php

$this->params["menu"] = [['label' => Yii::t('app', 'Create Item'), 'url' => 'create']];
//*/
echo app\widgets\GridView::widget(['dataProvider' => $model->search(), 'filterModel' => $model, 'pjax' => true, 'persistResize' => false, 'columns' => ['id', 'name', ['class' => 'yii\\grid\\ActionColumn']]]);
Пример #6
0
<?php

$this->params["menu"] = array();
app\widgets\MiniForm::begin(array('header' => Yii::t('app', "Manage Files")));
?>

<?php 
echo app\widgets\GridView::widget(array('id' => 'files-grid', 'dataProvider' => $model->dp(), 'columns' => array('id', 'name', 'path', 'public', 'hash', array('class' => 'yii\\grid\\ActionColumn'))));
app\widgets\MiniForm::end();
Пример #7
0
<?php

$this->params["breadcrumbs"] = array('Eav Fields' => array('index'), 'Manage');
$this->params["menu"] = array(array('label' => Yii::t('app', 'Create EavFields'), 'url' => array('create')));
app\widgets\MiniForm::begin(array('header' => Yii::t('app', "Manage Eav Fields")));
?>

<?php 
echo app\widgets\GridView::widget(array('id' => 'eav-fields-grid', 'dataProvider' => $model->dp(), 'columns' => array('id', 'name', 'eavType', 'min', 'max', array('class' => 'yii\\grid\\ActionColumn'))));
app\widgets\MiniForm::end();
Пример #8
0
?>
: <?php 
echo $model->from_date;
?>
 
        <?php 
echo Yii::t('app', 'To Date');
?>
: <?php 
echo $model->to_date;
?>
 
    </p>
    <div style=" width: 40%;">
        <?php 
echo app\widgets\GridView::widget(array('id' => 'profloss-grid', 'dataProvider' => $model->docsTable(), 'columns' => array(array('header' => Yii::t('app', 'ID'), 'attribute' => 'id'), array('header' => Yii::t('app', 'Name'), 'attribute' => 'name'), array('header' => Yii::t('app', 'Count'), 'attribute' => 'count'), array('header' => Yii::t('app', 'Sum'), 'attribute' => 'sum'))));
//*/
?>
    </div>

    <p><?php 
echo Yii::t('app', 'Data extracted through');
?>
: Linet <?php 
echo \app\helpers\Linet3Helper::getVersion();
?>
</p>
    <p><?php 
echo Yii::t('app', 'Registration Certificate No.');
?>
: <?php 
Пример #9
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();
echo app\widgets\GridView::widget(array('id' => 'accounts' . $model->type . '-grid', 'dataProvider' => $model->dp(), 'columns' => array('id', array('name' => 'name', 'type' => 'raw', 'value' => '\\yii\\helpers\\Html::link(\\yii\\helpers\\Html::encode($data->name), yii\\helpers\\BaseUrl::base().("accounts/update", array("id"=>$data->id)))'), 'cat_id', 'id6111', array('name' => 'cat_id', 'type' => 'raw', 'value' => '\\yii\\helpers\\Html::encode(isset($data->Category)?$data->Category->name: "")', 'filter' => \yii\helpers\ArrayHelper::map(AccCat::findAllByAttributes(array("type_id" => $model->type)), 'id', 'name')), 'src_tax', ['class' => 'yii\\grid\\ActionColumn', 'template' => '{create}{display}{update}{delete}', 'buttons' => array('create' => array('label' => '<i class="glyphicon glyphicon-file"></i>', 'url' => 'yii\\helpers\\BaseUrl::base().("docs/create", array("id"=>$data->id))'), 'update' => array('label' => '<i class="glyphicon glyphicon-pencil"></i>', 'url' => 'yii\\helpers\\BaseUrl::base().("accounts/update", array("id"=>$data->id))'), 'delete' => array('label' => '<i class="glyphicon glyphicon-trash"></i>', 'imageUrl' => false, 'url' => 'yii\\helpers\\BaseUrl::base().("accounts/delete", array("id"=>$data->id))'), 'display' => array('label' => '<i class="glyphicon glyphicon-transfer"></i>', 'url' => 'yii\\helpers\\BaseUrl::base().("accounts/transaction/".$data->id)'))])));
\yii\widgets\Pjax::end();
?>


<script type="text/javascript">




jQuery('#accounts<?php 
echo $model->type;
?>
-grid').yiiGridView({
    'ajaxUpdate':['1','accounts<?php 
echo $model->type;
?>
-grid'],
    'ajaxVar':'ajax',
    'pagerClass':'pagination',
Пример #10
0
<?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({
Пример #11
0
<?php

$this->params["breadcrumbs"] = array();
$this->params["menu"] = array(array('label' => Yii::t('app', 'List') . " " . Yii::t('app', "Item Units"), 'url' => array('index')), array('label' => Yii::t('app', 'Create') . " " . Yii::t('app', "Item Units"), 'url' => array('create')));
app\widgets\MiniForm::begin(array('header' => Yii::t('app', 'Admin') . " " . Yii::t('app', "Item Units")));
?>


<?php 
echo app\widgets\GridView::widget(array('id' => 'itemunit-grid', 'dataProvider' => $model->dp(), 'columns' => array('name', 'precision', array('class' => 'yii\\grid\\ActionColumn'))));
app\widgets\MiniForm::end();
Пример #12
0
<?php

$this->params["breadcrumbs"] = array();
$this->params["menu"] = array(array('label' => Yii::t('app', 'List User'), 'url' => array('index')), array('label' => Yii::t('app', 'Create User'), 'url' => array('create')));
app\widgets\MiniForm::begin(array('header' => Yii::t('app', "Manage Users")));
?>


<?php 
echo app\widgets\GridView::widget(array('id' => 'user-grid', 'dataProvider' => $model->dp(), 'columns' => array('username', 'fname', 'lname', 'lastlogin', 'email', array('class' => 'yii\\grid\\ActionColumn'))));
app\widgets\MiniForm::end();
Пример #13
0
<?php

$dateisOn = kartik\datecontrol\DateControl::widget(['model' => $model, 'attribute' => 'from_date', 'type' => 'date']) . kartik\datecontrol\DateControl::widget(['model' => $model, 'attribute' => 'to_date', 'type' => 'date']);
?>

<?php 
app\widgets\MiniForm::begin(array('header' => Yii::t('app', "Transactions for Num") . ": " . $model->num));
echo app\widgets\GridView::widget(array('id' => 'transactions-grid', 'dataProvider' => $model->dp(), 'columns' => array('num', 'linenum', array('value' => function ($data) {
    return $data->accountLink();
}, 'format' => 'raw'), array('attribute' => 'refnum1', 'value' => function ($data) {
    return $data->refnumDocsLink();
}, 'format' => 'raw'), 'refnum2', 'details', array('attribute' => 'valuedate', 'filter' => $dateisOn, 'value' => function ($data) {
    return $data->readDateFormat($data->valuedate);
}), array('attribute' => 'reg_date', 'filter' => '', 'value' => function ($data) {
    return $data->readDateFormat($data->reg_date);
}), array('header' => Yii::t('app', 'Debit'), 'attribute' => 'sum', 'filter' => '', 'value' => function ($data) {
    return $data->sum < 0 ? $data->sum : "";
}), array('header' => Yii::t('app', 'Credit'), 'attribute' => 'sum', 'filter' => '', 'value' => function ($data) {
    return $data->sum > 0 ? $data->sum : "";
}), array('header' => Yii::t('app', 'Balance'), 'attribute' => 'sum', 'filter' => '', 'value' => function ($data) {
    return $data->getBalance();
}))));
?>

<?php 
app\widgets\MiniForm::end();
Пример #14
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.
 ************************************************************************************/
$this->params["breadcrumbs"] = array(Yii::t('app', 'Account Categories') => array('index'), Yii::t('app', 'Manage'));
$this->params["menu"] = array(array('label' => Yii::t('app', 'Create Account Category'), 'url' => array('create')));
app\widgets\MiniForm::begin(array('header' => Yii::t('app', "Manage Account Categories")));
?>

<?php 
echo app\widgets\GridView::widget(array('id' => 'bank-name-grid', 'dataProvider' => $model->search([]), 'filterModel' => $model, 'columns' => array('name', ['attribute' => 'type_id', 'filter' => \yii\helpers\ArrayHelper::map(\app\models\Acctype::find()->All(), 'id', 'name'), 'value' => function ($data) {
    return $data->TypeName();
}], array('class' => 'yii\\grid\\ActionColumn'))));
app\widgets\MiniForm::end();
Пример #15
0
<?php

$this->params["menu"] = array(array('label' => Yii::t('app', 'Create Account Template'), 'url' => array('create')));
app\widgets\MiniForm::begin(array('header' => Yii::t('app', "Manage Account Templates")));
?>

<?php 
echo app\widgets\GridView::widget(array('id' => 'acc-template-grid', 'dataProvider' => $model->dp(), 'columns' => array('name', array('attribute' => 'AccType_id', 'value' => 'Yii::t("app",$data->type->desc)'), array('class' => 'yii\\grid\\ActionColumn'))));
app\widgets\MiniForm::end();
Пример #16
0
<?php

$this->params["menu"] = array(array('label' => Yii::t('app', 'List Manages'), 'url' => array('index')), array('label' => Yii::t('app', 'Create Manage'), 'url' => array('create')));
app\widgets\MiniForm::begin(array('header' => Yii::t('app', "Manage Menus")));
$list = \yii\helpers\ArrayHelper::map(app\models\Menu::find()->All(), 'id', 'label');
$list[0] = Yii::t('app', 'None');
?>

<?php 
echo app\widgets\GridView::widget(array('id' => 'menu-grid', 'dataProvider' => $model->dp(), 'columns' => array('id', 'label', 'url', 'icon', array('attribute' => 'parent', 'value' => function ($data) {
    return \yii\helpers\Html::encode(isset($data->Parent) ? $data->Parent->label : "");
}, 'filter' => $list), ['class' => 'yii\\grid\\ActionColumn'])));
app\widgets\MiniForm::end();
Пример #17
0
  'tabs' => $list,
  // additional javascript options for the tabs plugin
  'headerTemplate' => '<li><a id="{id}" href="{url}" title="{title}">{title}</a></li>',
  'options' => array(
  'active' => $type,
  ),
  )); // */
//app\widgets\MiniForm::end();
// $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
/**/
use kartik\widgets\ActiveForm;
use app\models\AccCat;
//\yii\widgets\Pjax::begin();
echo app\widgets\GridView::widget(['id' => $searchModel->type, 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => ['id', 'name', array('attribute' => 'id6111', 'format' => 'raw', 'value' => function ($data) {
    return \yii\helpers\Html::encode(isset($data->accId6111) ? $data->accId6111->name : "");
}, 'filter' => \yii\helpers\ArrayHelper::map(\app\models\AccId6111::find()->all(), 'id', 'name')), array('attribute' => 'cat_id', 'format' => 'raw', 'value' => function ($data) {
    return \yii\helpers\Html::encode(isset($data->category) ? $data->category->name : "");
}, 'filter' => \yii\helpers\ArrayHelper::map(AccCat::find()->where(["type_id" => $searchModel->type])->all(), 'id', 'name')), 'src_tax', ['class' => 'yii\\grid\\ActionColumn', 'template' => '{display}{create}{update}{delete}', 'buttons' => array('create' => function ($url, $model, $key) {
    return Html::a('<i class="glyphicon glyphicon-file"></i>', ["docs/create/?id=" . $model->id]);
    //'url' => 'yii\helpers\BaseUrl::base().("docs/create", array("id"=>$data->id))',
}, 'update' => function ($url, $model, $key) {
    return Html::a('<i class="glyphicon glyphicon-pencil"></i>', $url);
    //'url' => 'yii\helpers\BaseUrl::base().("accounts/update", array("id"=>$data->id))',
}, 'delete' => function ($url, $model, $key) {
    return Html::a('<i class="glyphicon glyphicon-trash"></i>', $url, ['data-method' => 'post', 'data-confirm' => 'Are you sure you want to delete this item?']);
    //'url' => 'yii\helpers\BaseUrl::base().("accounts/delete", array("id"=>$data->id))',
}, 'display' => function ($url, $model, $key) {
    return Html::a('<i class="glyphicon glyphicon-transfer"></i>', ["accounts/transaction/" . $model->id]);
    //'url' => 'yii\helpers\BaseUrl::base().("accounts/transaction", array("id"=>$data->id))',
})]]]);
//\yii\widgets\Pjax::end();
Пример #18
0
/***********************************************************************************
 * 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\Accounts;
foreach ($model->accounts() as $account) {
    $dp = $model->search($account);
    if ($dp->getCount() > 0) {
        echo "<h3>" . $account["id"] . " " . $account["name"] . "</h3>";
        echo app\widgets\GridView::widget(array('id' => 'transactions-grid' . $account["id"], 'dataProvider' => $model->search($account["id"]), 'columns' => array(array('attribute' => 'num', 'value' => function ($data) {
            return $data->numLink();
        }, 'format' => 'raw'), array('attribute' => 'type', 'value' => function ($data) {
            return Yii::t("app", $data->ttype->name);
        }), array('attribute' => 'refnum1', 'value' => function ($data) {
            return $data->refnumDocsLink();
        }, 'format' => 'raw'), 'attribute' => 'refnum2', 'details', array('attribute' => 'valuedate', 'filter' => '', 'value' => function ($data) {
            return $data->readDateFormat($data->valuedate);
        }), array('header' => Yii::t('app', 'Debit'), 'attribute' => 'sum', 'filter' => '', 'value' => function ($data) {
            return $data->sum < 0 ? $data->sum : "";
        }), array('header' => Yii::t('app', 'Credit'), 'attribute' => 'sum', 'filter' => '', 'value' => function ($data) {
            return $data->sum > 0 ? $data->sum : "";
        }), array('header' => Yii::t('app', 'Balance'), 'attribute' => 'sum', 'filter' => '', 'value' => function ($data) {
            return $data->getBalance();
        }))));
    }
}
Пример #19
0
?>

<?php 
echo kartik\detail\DetailView::widget(array('model' => $model, 'attributes' => array('name', array('name' => 'Itemcategory_id', 'value' => $model->Category->name))));
?>


<?php 
$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();
Пример #20
0
<div class="row">
<div class="col-md-6">
    <?php 
echo app\widgets\GridView::widget(array('id' => 'bankbook-grid', 'dataProvider' => $model->search([]), 'panel' => false, 'columns' => array(array('format' => 'raw', 'value' => function ($data) {
    return \yii\helpers\Html::checkBox("FormExtmatch[Bankbooks][match][{$data->id}]", null, array("class" => "ext_match", "onchange" => "CalcMatchSum()")) . \yii\helpers\Html::hiddenInput("FormExtmatch[Bankbooks][total][{$data->id}]", "{$data->sum}", array("class" => "ext_total"));
}), 'details', 'date', 'refnum', 'currency_id', 'sum')));
?>
</div>
<div class="col-md-6">
<?php 
echo app\widgets\GridView::widget(array('id' => 'transaction-grid', 'dataProvider' => $trans->search([]), 'panel' => false, 'columns' => array(array('format' => 'raw', 'value' => function ($data) {
    return \yii\helpers\Html::checkBox("FormExtmatch[Transactions][match][{$data->id}]", null, array("class" => "trans_match", "onchange" => "CalcMatchSum()")) . \yii\helpers\Html::hiddenInput("FormExtmatch[Transactions][total][{$data->id}]", $data->sum * -1, array("class" => "trans_total"));
}), 'details', 'valuedate', 'currency_id', array('format' => 'raw', 'value' => function ($data) {
    return $data->sum * -1;
}))));
?>
</div>

</div>
Пример #21
0
 <?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();
Пример #22
0
<div style=" width: 35%; display: inline-block; margin-right: 150px; ">
    <?php 
echo app\widgets\GridView::widget(array('id' => 'in-grid', 'dataProvider' => $in->searchIn(), 'panel' => false, 'columns' => array(array('format' => 'raw', 'value' => function ($data) {
    return \yii\helpers\Html::checkBox("FormIntmatch[In][match][{$data->id}]", null, array("class" => "In_match", "onchange" => "CalcMatchSum()")) . \yii\helpers\Html::hiddenInput("FormIntmatch[In][total][{$data->id}]", "{$data->sum}", array("class" => "In_total"));
}), array('attribute' => 'type', 'value' => function ($data) {
    return Yii::t("app", $data->ttype->name);
}), 'details', 'currency_id', 'sum')));
?>
</div>
<div style=" width: 35%; display: inline-block;">
    <?php 
echo app\widgets\GridView::widget(array('id' => 'out-grid', 'dataProvider' => $out->searchOut(), 'panel' => false, 'columns' => array(array('format' => 'raw', 'value' => function ($data) {
    return \yii\helpers\Html::checkBox("FormIntmatch[Out][match][{$data->id}]", null, array("class" => "Out_match", "onchange" => "CalcMatchSum()")) . \yii\helpers\Html::hiddenInput("FormIntmatch[Out][total][{$data->id}]", "{$data->sum}", array("class" => "Out_total"));
}), array('attribute' => 'type', 'value' => function ($data) {
    return Yii::t("app", $data->ttype->name);
}), 'details', 'currency_id', 'sum')));
?>
</div>

Пример #23
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.
 ************************************************************************************/
$dateisOn = kartik\datecontrol\DateControl::widget(['model' => $model, 'attribute' => 'from_date', 'type' => 'date']) . kartik\datecontrol\DateControl::widget(['model' => $model, 'attribute' => 'to_date', 'type' => 'date']);
?>

<?php 
app\widgets\MiniForm::begin(array('header' => Yii::t('app', "Stock Sum")));
echo app\widgets\GridView::widget(array('id' => 'stockAction-grid', 'dataProvider' => $model->sum(), 'columns' => array(array('attribute' => 'account_id', 'value' => function ($data) {
    return $data->getAccountName();
}), 'item_id', array('attribute' => 'item_id', 'value' => function ($data) {
    return $data->getItemName();
}), 'sum')));
app\widgets\MiniForm::end();
//app\widgets\MiniForm
Пример #24
0
<?php

$this->params["menu"] = array(array('label' => Yii::t('app', 'Create Account Template'), 'url' => array('create')));
app\widgets\MiniForm::begin(array('header' => Yii::t('app', "Manage Account Templates")));
?>

<?php 
echo app\widgets\GridView::widget(array('id' => 'itm-template-grid', 'dataProvider' => $model->dp(), 'columns' => array('name', array('attribute' => 'Itemcategory_id'), array('class' => 'yii\\grid\\ActionColumn'))));
app\widgets\MiniForm::end();
Пример #25
0
<div style=" width: 40%; display: inline-block; margin-right: 150px; ">
    <?php 
echo app\widgets\GridView::widget(array('id' => 'profloss-grid', 'dataProvider' => $model->search(), 'columns' => array('id', 'name', 'sum', 'id6111')));
?>
</div>

Пример #26
0
    <?php 
echo app\widgets\GridView::widget(array('id' => 'balance-grid', 'dataProvider' => $model->search(), 'columns' => array(array('header' => Yii::t('app', 'ID'), 'attribute' => 'id'), array('header' => Yii::t('app', 'Name'), 'attribute' => 'name'), array('attribute' => 'neg', 'header' => Yii::t('app', 'Debit')), array('attribute' => 'pos', 'header' => Yii::t('app', 'Credit')), array('attribute' => 'sum', 'header' => Yii::t('app', 'Sum')), array('header' => Yii::t('app', 'Id6111'), 'attribute' => 'id6111'))));
?>

Пример #27
0
                      app\widgets\MiniForm::begin(array(
                      'header' => Yii::t('app',"Select Company"),
                      //'width' => '800',
                      )); */
echo Yii::t('app', "Select Company");
use yii\helpers\Html;
use app\models\Company;
?>

                    <?php 
echo app\widgets\GridView::widget(array('id' => 'comp-grid', 'dataProvider' => $model->dp(), 'columns' => array(['value' => function ($data) {
    return \yii\helpers\Html::a(\yii\helpers\Html::encode($data->id), "#", ['onclick' => 'onClick:bla']);
}, 'format' => 'html'], ['value' => function ($data) {
    return \yii\helpers\Html::a(\yii\helpers\Html::encode($data->getName()), "#", ['onclick' => 'onClick:bla']);
}, 'format' => 'html'], array('class' => 'yii\\grid\\ActionColumn', 'template' => '{edit}{permissions}{delete}', 'buttons' => array('edit' => function ($url, $model, $key) {
    return Html::a('<span class="glyphicon glyphicon-edit"></span>', "javascript:edit({$model->id});");
}, 'permissions' => function ($url, $model, $key) {
    return Html::a("<span class='glyphicon glyphicon-lock'></span>", yii\helpers\BaseUrl::base() . "/company/permissions/" . $model->id);
}, 'delete' => function ($url, $model, $key) {
    return Html::a('<span class="glyphicon glyphicon-trash"></span>', yii\helpers\BaseUrl::base() . "/company/delete/" . $model->id);
})))));
//app\widgets\MiniForm::end();
?>


                                    <div class="form-actions">


                                        <?php 
echo Html::a(Yii::t('app', 'Create Company'), ['company/create'], ['class' => 'btn btn-lg btn-success btn-block', 'name' => 'create']);
?>
Пример #28
0
    <div class="text-center">
        <div class="form">
            <div class="tab-content">
                <div id="chose" class="tab-pane active">

                    <?php 
echo Yii::t('app', "Select Company");
?>

                    <?php 
use yii\data\ActiveDataProvider;
use yii\helpers\Html;
use app\models\Company;
$dataProvider = new ActiveDataProvider(['query' => Company::find(), 'pagination' => ['pageSize' => 20]]);
echo app\widgets\GridView::widget(['dataProvider' => $dataProvider, 'columns' => ['id', ['value' => function ($data) {
    return \yii\helpers\Html::a(\yii\helpers\Html::encode($data->getName()), $data->id, ['class' => 'chose']);
}, 'format' => 'html']]]);
/*
 echo app\widgets\GridView::widget(array(
 'id'=>'comp-grid',
 'dataProvider'=>$model->dp(),
 ////'filter'=>$model,
 'template' => '{items}{pager}',
 'options'=>array('class'=>'clean'),
 'columns'=>array(
 array('value'=>'$data->id'),
 array(

 'value'=>'\yii\helpers\Html::link(\yii\helpers\Html::encode($data->getName()),"#", array(  "onclick"=>\'chose("\'.$data->id.\'")\',))',
 'type'=>'raw',
Пример #29
0
use app\models\Transactions;
use yii\grid\GridView;
use yii\data\ActiveDataProvider;
/* * *********************************************************************************
 * 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', "Transactions")));
echo app\widgets\GridView::widget(['dataProvider' => $model->search([]), 'filterModel' => $model, 'id' => 'transactions-grid', 'columns' => array(array('attribute' => 'num'), 'linenum', array('attribute' => 'type', 'filter' => \yii\helpers\ArrayHelper::map(\app\models\TransactionType::find()->All(), 'id', 'name'), 'value' => function ($data) {
    return Yii::t("app", $data->ttype->name);
}), array('attribute' => 'account_id', 'value' => function ($data) {
    return \yii\helpers\Html::a(\app\models\Accounts::findName($data->account_id), yii\helpers\BaseUrl::base() . ("/accounts/transaction/" . $data->account_id));
}, 'format' => 'raw'), array('attribute' => 'refnum1', 'value' => function ($data) {
    return $data->refnumDocsLink();
}, 'format' => 'raw'), 'refnum2', 'details', ['attribute' => 'valuedate', 'filterType' => \kartik\grid\GridView::FILTER_DATE_RANGE, 'filterWidgetOptions' => ['convertFormat' => true, 'useWithAddon' => true, 'pluginOptions' => ['format' => 'Y-m-d', 'separator' => ' to '], 'hideInput' => true, 'presetDropdown' => false], 'width' => '150px', 'value' => function ($data) {
    return $data->readDateFormat($data->valuedate);
}], ['attribute' => 'reg_date', 'filterType' => \kartik\grid\GridView::FILTER_DATE_RANGE, 'filterWidgetOptions' => ['convertFormat' => true, 'useWithAddon' => true, 'pluginOptions' => ['format' => 'Y-m-d', 'separator' => ' to '], 'hideInput' => true, 'presetDropdown' => false], 'width' => '150px', 'value' => function ($data) {
    return $data->readDateFormat($data->reg_date);
}], array('header' => Yii::t('app', 'Debit'), 'attribute' => 'sum', 'filter' => '', 'value' => function ($data) {
    return $data->sum < 0 ? $data->sum : "";
}), array('header' => Yii::t('app', 'Credit'), 'attribute' => 'sum', 'filter' => '', 'value' => function ($data) {
    return $data->sum > 0 ? $data->sum : "";
}))]);
?>

<?php 
app\widgets\MiniForm::end();
Пример #30
0
//);
/*
                      app\widgets\MiniForm::begin(array(
                      'header' => Yii::t('app',"Select Company"),
                      //'width' => '800',
                      )); */
echo Yii::t('app', "Select Company");
?>

                    <?php 
echo app\widgets\GridView::widget(array('id' => 'comp-grid', 'dataProvider' => $model->search([]), 'pjax' => false, 'columns' => array(array('attribute' => 'id', 'value' => function ($data) {
    return $data->id;
}), array('attribute' => 'Name', 'value' => function ($data) {
    return $data->getName();
}, 'format' => 'raw'), array('attribute' => 'User', 'filter' => '', 'value' => function ($data) {
    return $data->user->username;
}), array('class' => 'yii\\grid\\ActionColumn', 'template' => '{delete}', 'buttons' => array('delete' => function ($url, $model, $key) {
    $url = yii\helpers\BaseUrl::base() . "/company/deletepermission/" . $model->id;
    return yii\helpers\Html::a('<i class="glyphicon glyphicon-remove"></i>', $url);
    //,['data-method' => 'post', 'data-confirm' => 'Are you sure you want to delete this item?']
    //'url' => 'yii\helpers\BaseUrl::base().("accounts/update", array("id"=>$data->id))',
})))));
//app\widgets\MiniForm::end();
?>






                </div><!-- tab-pane -->
            </div><!-- tab-content -->