Beispiel #1
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();
Beispiel #2
0
    <section class="col-lg-9 connectedSortable ui-sortable">

        <!-- Chat box -->
        <?php 
echo \sintret\chat\ChatRoom::widget(['url' => \yii\helpers\Url::to(['/ajax/send-chat']), 'userModel' => \app\models\User::className(), 'userField' => 'avatarImage']);
?>
        <!-- To Do List -->
        <?php 
echo \sintret\todolist\ListView::widget(['url' => \yii\helpers\Url::to(['/ajax/todolist']), 'relations' => app\models\User::className()]);
?>

    </section><!-- /.Left col -->
    <div class="col-md-3">
        <?php 
$phone = [];
$users = app\models\User::find()->where(['status' => app\models\User::STATUS_ACTIVE])->all();
if ($users) {
    foreach ($users as $user) {
        if ($user->phone) {
            $invite[] = "{ id : '{$user->phone}', invite_type : 'PHONE' }";
        }
        $invite[] = "{ id : '{$user->email}', invite_type : 'EMAIL' }";
    }
}
$invites = implode(",", $invite);
//echo $invites;
?>


        <div class="col-md-12">
            <div class="box box-solid">
Beispiel #3
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('_trans', array('cdata' => $data, 'intType' => 1));
}, 'format' => 'raw'), array('value' => function ($data) {
    return $this->render('_trans', array('cdata' => $data, 'intType' => 0));
}, 'format' => 'raw'), array('attribute' => 'date', 'filter' => $dateisOn), array('attribute' => 'owner', 'filter' => \yii\helpers\ArrayHelper::map(app\models\User::find()->All(), 'id', 'username')), array('class' => 'yii\\grid\\ActionColumn', 'template' => '{delete}', 'buttons' => ['delete' => function ($url, $model, $key) {
    //if ($model->docStatus->looked == 1) return '';
    $url = yii\helpers\BaseUrl::base() . '/match/matchdelete/' . $model->id;
    return \yii\helpers\Html::a('<i class="glyphicon glyphicon-remove"></i>', $url);
    //'label' => '<i class="glyphicon glyphicon-remove"></i>',
}]))));
?>


<?php 
app\widgets\MiniForm::end();