Beispiel #1
0
<?php 
//$this->widget("TbBreadcrumbs", array("links" => $this->breadcrumbs))
?>
<div class="clearfix">
    <div class="btn-toolbar pull-left">
        <div class="btn-group">
            <h1>
                <i class="icon-file-text-alt"></i>
                <?php 
echo Yii::t('D2finvModule.model', 'Finv Invoices');
?>
</h1>
        </div>        
        <div class="btn-group">
        <?php 
$this->widget('bootstrap.widgets.TbButton', array('label' => Yii::t('D2finvModule.crud_static', 'Incoming'), 'icon' => 'icon-plus', 'size' => 'large', 'type' => 'success', 'url' => array('create', 'finv_type' => FinvInvoice::FINV_TYPE_IN), 'visible' => Yii::app()->user->checkAccess('D2finv.FinvInvoice.*') || Yii::app()->user->checkAccess('D2finv.FinvInvoice.Create'), "htmlOptions" => array("data-toggle" => "tooltip", "title" => Yii::t("TrucksModule.crud", "Create Incoming Invoice"))));
$this->widget('bootstrap.widgets.TbButton', array('label' => Yii::t('D2finvModule.crud_static', 'Outgoing'), 'icon' => 'icon-plus', 'size' => 'large', 'type' => 'success', 'url' => array('create', 'finv_type' => FinvInvoice::FINV_TYPE_OUT), 'visible' => Yii::app()->user->checkAccess('D2finv.FinvInvoice.*') || Yii::app()->user->checkAccess('D2finv.FinvInvoice.Create'), "htmlOptions" => array("data-toggle" => "tooltip", "title" => Yii::t("TrucksModule.crud", "Create Outgoing Invoice"))));
?>
</div>

    </div>
</div>

<?php 
Yii::beginProfile('FinvInvoice.view.grid');
?>


<?php 
$this->widget('TbGridView', array('id' => 'finv-invoice-grid', 'dataProvider' => $model->search(), 'filter' => $model, 'template' => '{summary}{pager}{items}{pager}', 'pager' => array('class' => 'TbPager', 'displayFirstAndLast' => true), 'afterAjaxUpdate' => 'reinstallDatePicker', 'columns' => array(array('class' => 'editable.EditableColumn', 'name' => 'finv_number', 'editable' => array('url' => $this->createUrl('/d2finv/finvInvoice/editableSaver'))), array('class' => 'editable.EditableColumn', 'name' => 'finv_ccmp_id', 'value' => 'CHtml::value($data, \'finvCcmp.itemLabel\')', 'filter' => CHtml::listData(CcmpCompany::model()->findAll(array('limit' => 1000, 'order' => 'ccmp_name')), 'ccmp_id', 'itemLabel'), 'editable' => array('type' => 'select', 'url' => $this->createUrl('/d2finv/finvInvoice/editableSaver'), 'source' => CHtml::listData(CcmpCompany::model()->findAll(array('limit' => 1000)), 'ccmp_id', 'itemLabel'))), array('class' => 'editable.EditableColumn', 'name' => 'finv_date', 'editable' => array('type' => 'date', 'url' => $this->createUrl('/d2finv/finvInvoice/editableSaver')), 'filter' => $this->widget('vendor.dbrisinajumi.DbrLib.widgets.TbFilterDateRangePicker', array('model' => $model, 'attribute' => 'finv_date_range', 'options' => array('ranges' => array('today', 'yesterday', 'this_week', 'last_week', 'this_month', 'last_month', 'this_year'))), TRUE)), array('htmlOptions' => array('class' => 'numeric-column'), 'name' => 'finv_amt', 'footer' => $model->getTotals('finv_amt'), 'footerHtmlOptions' => array('class' => 'total-row numeric-column')), array('htmlOptions' => array('class' => 'numeric-column'), 'name' => 'finv_vat', 'footer' => $model->getTotals('finv_vat'), 'footerHtmlOptions' => array('class' => 'total-row numeric-column')), array('htmlOptions' => array('class' => 'numeric-column'), 'name' => 'finv_total', 'footer' => $model->getTotals('finv_total'), 'footerHtmlOptions' => array('class' => 'total-row numeric-column')), array('class' => 'editable.EditableColumn', 'name' => 'finv_stst_id', 'value' => 'CHtml::value($data, \'finvStst.itemLabel\')', 'filter' => CHtml::listData(StstState::model()->findAll(array('limit' => 1000)), 'stst_id', 'itemLabel'), 'editable' => array('type' => 'select', 'url' => $this->createUrl('/d2finv/finvInvoice/editableSaver'), 'source' => CHtml::listData(StstState::model()->findAll(array('limit' => 1000)), 'stst_id', 'itemLabel'))), array('class' => 'editable.EditableColumn', 'name' => 'finv_paid', 'editable' => array('type' => 'select', 'url' => $this->createUrl('/d2finv/finvInvoice/editableSaver'), 'source' => $model->getEnumFieldLabels('finv_paid')), 'filter' => $model->getEnumFieldLabels('finv_paid')), array('class' => 'TbButtonColumn', 'template' => '{view} {update} {delete} {copy}', 'buttons' => array('view' => array('visible' => '!Yii::app()->user->checkAccess("InvoiceEdit")'), 'update' => array('visible' => 'Yii::app()->user->checkAccess("InvoiceEdit")'), 'delete' => array('visible' => 'Yii::app()->user->checkAccess("InvoiceEdit")'), 'copy' => array('label' => Yii::t('D2finvModule.crud_static', 'Copy'), 'icon' => 'copy', 'url' => 'Yii::app()->controller->createUrl("copy", array("finv_id" => $data->finv_id))', 'visible' => 'Yii::app()->user->checkAccess("InvoiceEdit")')), 'viewButtonUrl' => 'Yii::app()->controller->createUrl("view", array("finv_id" => $data->finv_id))', 'updateButtonUrl' => 'Yii::app()->controller->createUrl("view", array("finv_id" => $data->finv_id))', 'deleteButtonUrl' => 'Yii::app()->controller->createUrl("delete", array("finv_id" => $data->finv_id))', 'viewButtonOptions' => array('data-toggle' => 'tooltip'), 'updateButtonOptions' => array('data-toggle' => 'tooltip'), 'deleteButtonOptions' => array('data-toggle' => 'tooltip')))));
Yii::endProfile('FinvInvoice.view.grid');
Beispiel #2
0
<?php

$this->breadcrumbs[] = Yii::t('D1StatusModule.crud', 'Stsf States Flows');
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\$('.search-form').toggle();\nreturn false;\n});\n\$('.search-form form').submit(function(){\n\$.fn.yiiGridView.update('stsf-states-flow-grid', {\ndata: \$(this).serialize()\n});\nreturn false;\n});\n");
?>

<?php 
$this->widget("TbBreadcrumbs", array("links" => $this->breadcrumbs));
?>
<h1>
    <?php 
echo Yii::t('D1StatusModule.crud', 'Stsf States Flows');
?>
 <small><?php 
echo Yii::t('D1StatusModule.crud', 'Manage');
?>
</small>
</h1>

<?php 
$this->renderPartial("_toolbar", array("model" => $model));
$this->widget('TbGridView', array('id' => 'stsf-states-flow-grid', 'dataProvider' => $model->search(), 'filter' => $model, 'pager' => array('class' => 'TbPager', 'displayFirstAndLast' => true), 'columns' => array(array('name' => 'stsf_stfl_id', 'value' => 'CHtml::value($data,\'stsfStfl.stfl_name\')', 'filter' => CHtml::listData(StflFlow::model()->findAll(), 'stfl_id', 'stfl_name')), array('name' => 'stsf_prev_stst_id', 'value' => 'CHtml::value($data,\'stsfPrevStst.stst_name\')', 'filter' => CHtml::listData(StstState::model()->findAll(), 'stst_id', 'stst_name')), array('name' => 'stsf_next_stst_id', 'value' => 'CHtml::value($data,\'stsfNextStst.stst_name\')', 'filter' => CHtml::listData(StstState::model()->findAll(), 'stst_id', 'stst_name')), array('class' => 'TbButtonColumn', 'viewButtonUrl' => "Yii::app()->controller->createUrl('view', array('stsf_id' => \$data->stsf_id))", 'updateButtonUrl' => "Yii::app()->controller->createUrl('update', array('stsf_id' => \$data->stsf_id))", 'deleteButtonUrl' => "Yii::app()->controller->createUrl('delete', array('stsf_id' => \$data->stsf_id))"))));
Beispiel #3
0
                    <div class="row">
            <?php 
echo $form->label($model, 'stlg_user_id');
?>
                            <?php 
echo $form->dropDownList($model, 'stlg_user_id', CHtml::listData(SUsers::model()->findAll(), 'id', 'username'), array('prompt' => 'all'));
?>
                    </div>

                    <div class="row">
            <?php 
echo $form->label($model, 'stlg_stst_id');
?>
                            <?php 
echo $form->dropDownList($model, 'stlg_stst_id', CHtml::listData(StstState::model()->findAll(), 'stst_id', 'stst_name'), array('prompt' => 'all'));
?>
                    </div>

                    <div class="row">
            <?php 
echo $form->label($model, 'stlg_datetime');
?>
                            <?php 
echo $form->textField($model, 'stlg_datetime');
?>
                    </div>

        <div class="row buttons">
        <?php 
echo CHtml::submitButton(Yii::t('D1StatusModule.crud', 'Search'));
Beispiel #4
0
<?php

$this->breadcrumbs[] = Yii::t('D1StatusModule.crud', 'Stlg Logs');
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\$('.search-form').toggle();\nreturn false;\n});\n\$('.search-form form').submit(function(){\n\$.fn.yiiGridView.update('stlg-log-grid', {\ndata: \$(this).serialize()\n});\nreturn false;\n});\n");
?>

<?php 
$this->widget("TbBreadcrumbs", array("links" => $this->breadcrumbs));
?>
<h1>
    <?php 
echo Yii::t('D1StatusModule.crud', 'Stlg Logs');
?>
 <small><?php 
echo Yii::t('D1StatusModule.crud', 'Manage');
?>
</small>
</h1>

<?php 
$this->renderPartial("_toolbar", array("model" => $model));
$this->widget('TbGridView', array('id' => 'stlg-log-grid', 'dataProvider' => $model->search(), 'filter' => $model, 'pager' => array('class' => 'TbPager', 'displayFirstAndLast' => true), 'columns' => array(array('name' => 'stlg_stfl_id', 'value' => 'CHtml::value($data,\'stlgStfl.stfl_name\')', 'filter' => CHtml::listData(StflFlow::model()->findAll(), 'stfl_id', 'stfl_name')), 'stlg_record_id', array('name' => 'stlg_user_id', 'value' => 'CHtml::value($data,\'stlgUser.username\')', 'filter' => CHtml::listData(SUsers::model()->findAll(), 'id', 'username')), array('name' => 'stlg_stst_id', 'value' => 'CHtml::value($data,\'stlgStst.stst_name\')', 'filter' => CHtml::listData(StstState::model()->findAll(), 'stst_id', 'stst_name')), 'stlg_datetime', array('class' => 'TbButtonColumn', 'viewButtonUrl' => "Yii::app()->controller->createUrl('view', array('stlg_id' => \$data->stlg_id))", 'updateButtonUrl' => "Yii::app()->controller->createUrl('update', array('stlg_id' => \$data->stlg_id))", 'deleteButtonUrl' => "Yii::app()->controller->createUrl('delete', array('stlg_id' => \$data->stlg_id))"))));
 public function loadModel($id)
 {
     $model = StstState::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, Yii::t('D1StatusModule.crud', 'The requested page does not exist.'));
     }
     return $model;
 }
Beispiel #6
0
<?php

Yii::app()->clientScript->registerScript('re-install-date-picker', "\nfunction reinstallDatePicker(id, data) {\n    filter_FinvInvoice_finv_date_range_init();\n   }\n");
$fcrn_model = FcrnCurrency::model()->findByPk(Yii::app()->sysCompany->getAttribute('base_fcrn_id'));
$title = Yii::t('D2fixrModule.model', 'Invoices expense postions') . ' - ' . $fcrn_model->fcrn_code;
$this->setPageTitle($title);
?>

<div class="clearfix">
    <div class="btn-toolbar pull-left">
        <div class="btn-group">
            <h1>
                <i class=""></i>
                <?php 
echo $title;
?>
            </h1>
        </div>
    </div>
</div>

<?php 
Yii::beginProfile('FinvInvoice.view.grid');
$this->widget('TbGridView', array('id' => 'finv-invoice-grid', 'dataProvider' => $model->search(), 'rowCssClassExpression' => '($data->finv_basic_amt != FixrFiitXRef::totalByFinvId($data->finv_id)) ? "alert alert-danger" : ""', 'filter' => $model, 'template' => '{summary}{pager}{items}{pager}', 'pager' => array('class' => 'TbPager', 'displayFirstAndLast' => true), 'afterAjaxUpdate' => 'reinstallDatePicker', 'columns' => array(array('name' => 'finv_number'), array('name' => 'finv_ccmp_id', 'value' => 'CHtml::value($data, \'finvCcmp.itemLabel\')', 'filter' => CHtml::listData(CcmpCompany::model()->findAll(array('limit' => 1000, 'order' => 'ccmp_name')), 'ccmp_id', 'itemLabel')), array('name' => 'finv_date', 'filter' => $this->widget('vendor.dbrisinajumi.DbrLib.widgets.TbFilterDateRangePicker', array('model' => $model, 'attribute' => 'finv_date_range', 'options' => array('ranges' => array('today', 'yesterday', 'this_week', 'last_week', 'this_month', 'last_month', 'this_year'))), TRUE)), array('name' => 'finv_stst_id', 'value' => 'CHtml::value($data, \'finvStst.itemLabel\')', 'filter' => CHtml::listData(StstState::model()->findAll(array('limit' => 1000)), 'stst_id', 'itemLabel')), array('htmlOptions' => array('class' => 'numeric-column'), 'name' => 'finv_basic_amt', 'footer' => $model->getTotals('finv_amt'), 'footerHtmlOptions' => array('class' => 'total-row numeric-column')), array('header' => Yii::t('D2fixrModule.model', 'Expenses Amount'), 'htmlOptions' => array('class' => 'numeric-column'), 'value' => 'FixrFiitXRef::totalBaseAmtByFinvId($data->finv_id)'), array('class' => 'TbButtonColumn', 'buttons' => array('view' => array('visible' => 'TRUE'), 'update' => array('visible' => 'FALSE'), 'delete' => array('visible' => 'FALSE')), 'viewButtonUrl' => 'Yii::app()->controller->createUrl("FixrFiitXRef/viewFinv", array("finv_id" => $data->finv_id))', 'viewButtonOptions' => array('data-toggle' => 'tooltip')))));
Yii::endProfile('FinvInvoice.view.grid');
Beispiel #7
0
?>

<?php 
$this->widget("TbBreadcrumbs", array("links" => $this->breadcrumbs));
?>
    <h1>

        <?php 
echo Yii::t('HillModule.model', 'Hille Demos');
?>
        <small><?php 
echo Yii::t('HillModule.crud', 'Manage');
?>
</small>

    </h1>


<?php 
$this->renderPartial("_toolbar", array("model" => $model));
$this->renderPartial('_search_range', array('model' => $model));
$this->widget('TbMenu', array('type' => 'tabs', 'items' => array(array('label' => 'Active', 'url' => ''), array('label' => 'New', 'url' => ''), array('label' => ' Closed', 'url' => ''))));
Yii::beginProfile('HilleDemo.view.grid');
?>



<?php 
Yii::app()->clientScript->registerScript('re-install-date-picker', "\nfunction reinstallDatePicker(id, data) {\n   filter_HilleDemo_dol_date_range_init();\n}\n");
$this->widget('TbGridView', array('id' => 'hille-demo-grid', 'dataProvider' => $model->search(), 'filter' => $model, 'template' => '{items}{summary}{pager}', 'type' => 'bordered condensed', 'rowCssClassExpression' => '$data->cssclass', 'pager' => array('class' => 'TbPager', 'displayFirstAndLast' => true), 'afterAjaxUpdate' => 'reinstallDatePicker', 'columns' => array(array('name' => 'hill_id'), array('class' => 'editable.EditableColumn', 'name' => 'hill_order_nr', 'editable' => array('url' => $this->createUrl('/hill/hilleDemo/editableSaver'))), array('class' => 'editable.EditableColumn', 'name' => 'hill_ref_id', 'editable' => array('url' => $this->createUrl('/hill/hilleDemo/editableSaver'))), array('class' => 'editable.EditableColumn', 'name' => 'hill_pol', 'editable' => array('type' => 'select', 'url' => $this->createUrl('/hill/hilleDemo/editableSaver'), 'source' => CHtml::listData(CcitCity::model()->findAll(array('limit' => 1000)), 'ccit_id', 'itemLabel'))), array('class' => 'editable.EditableColumn', 'name' => 'hill_destination', 'editable' => array('type' => 'select', 'url' => $this->createUrl('/hill/hilleDemo/editableSaver'), 'source' => CHtml::listData(CcitCity::model()->findAll(array('limit' => 1000)), 'ccit_id', 'itemLabel'))), array('class' => 'editable.EditableColumn', 'name' => 'hill_dol', 'editable' => array('type' => 'date', 'url' => $this->createUrl('/hill/hilleDemo/editableSaver')), 'filter' => $this->widget('application.widgets.TbFilterDateRangePicker', array('model' => $model, 'attribute' => 'dol_date_range'), TRUE)), array('class' => 'editable.EditableColumn', 'name' => 'hill_carrier_id', 'filter' => CHtml::listData(CcmpCompany::model()->findAll(array('limit' => 1000, 'order' => 'ccmp_name')), 'ccmp_id', 'ccmp_name'), 'editable' => array('type' => 'select', 'url' => $this->createUrl('/hill/hilleDemo/editableSaver'), 'source' => CHtml::listData(CcmpCompany::model()->findAll(array('limit' => 1000)), 'ccmp_id', 'itemLabel'))), array('class' => 'editable.EditableColumn', 'name' => 'hill_truck_nr', 'editable' => array('url' => $this->createUrl('/hill/hilleDemo/editableSaver'))), array('class' => 'editable.EditableColumn', 'name' => 'hill_cargo', 'editable' => array('type' => 'select', 'url' => $this->createUrl('/hill/hilleDemo/editableSaver'), 'source' => $model->getEnumFieldLabels('hill_cargo')), 'filter' => $model->getEnumFieldLabels('hill_cargo')), array('class' => 'editable.EditableColumn', 'name' => 'hill_importer_id', 'editable' => array('type' => 'select', 'url' => $this->createUrl('/hill/hilleDemo/editableSaver'), 'source' => CHtml::listData(CcmpCompany::model()->findAll(array('limit' => 1000)), 'ccmp_id', 'itemLabel'))), array('class' => 'editable.EditableColumn', 'name' => 'hill_status', 'editable' => array('type' => 'select', 'url' => $this->createUrl('/hill/hilleDemo/editableSaver'), 'source' => CHtml::listData(StstState::model()->findAll(array('limit' => 1000)), 'stst_id', 'itemLabel'), 'placement' => 'right')), array('class' => 'editable.EditableColumn', 'name' => 'hill_notes', 'editable' => array('type' => 'textarea', 'url' => $this->createUrl('/hill/hilleDemo/editableSaver'))), array('class' => 'editable.EditableColumn', 'name' => 'hill_planned_arrival', 'editable' => array('type' => 'date', 'url' => $this->createUrl('/hill/hilleDemo/editableSaver'))), array('class' => 'TbButtonColumn', 'buttons' => array('view' => array('visible' => 'Yii::app()->user->checkAccess("Hill.HilleDemo.View")'), 'update' => array('visible' => 'Yii::app()->user->checkAccess("Hill.HilleDemo.Update")'), 'delete' => array('visible' => 'Yii::app()->user->checkAccess("Hill.HilleDemo.Delete")')), 'viewButtonUrl' => 'Yii::app()->controller->createUrl("view", array("hill_id" => $data->hill_id))', 'updateButtonUrl' => 'Yii::app()->controller->createUrl("update", array("hill_id" => $data->hill_id))', 'deleteButtonUrl' => 'Yii::app()->controller->createUrl("delete", array("hill_id" => $data->hill_id))', 'viewButtonOptions' => array('data-toggle' => 'tooltip'), 'updateButtonOptions' => array('data-toggle' => 'tooltip'), 'deleteButtonOptions' => array('data-toggle' => 'tooltip')))));
Yii::endProfile('HilleDemo.view.grid');
Beispiel #8
0
<div class="row">
    <div class="span4">
        <!--<h2>
            <?php 
//echo Yii::t('D2finvModule.crud_static','Data')
?>
            <small>
                #<?php 
//echo $model->finv_id
?>
            </small>
        </h2>-->

        <?php 
$this->widget('TbAceDetailView', array('data' => $model, 'attributes' => array(array('name' => 'finv_number', 'type' => 'raw', 'value' => $this->widget('EditableField', array('model' => $model, 'attribute' => 'finv_number', 'url' => $this->createUrl('/d2finv/finvInvoice/editableSaver')), true)), array('name' => 'finv_type', 'type' => 'raw', 'value' => $this->widget('EditableField', array('model' => $model, 'type' => 'select', 'url' => $this->createUrl('/d2finv/finvInvoice/editableSaver'), 'source' => $model->getEnumFieldLabels('finv_type'), 'attribute' => 'finv_type'), true)), array('name' => 'finv_ccmp_id', 'type' => 'raw', 'value' => $this->widget('EditableField', array('model' => $model, 'type' => 'select', 'url' => $this->createUrl('/d2finv/finvInvoice/editableSaver'), 'source' => CHtml::listData(CcmpCompany::model()->findAll(array('limit' => 1000)), 'ccmp_id', 'itemLabel'), 'attribute' => 'finv_ccmp_id'), true), 'value_id' => $model->finv_ccmp_id, 'external_link' => array('/d2company/ccmpCompany/view', 'ccmp_id' => $model->finv_ccmp_id), 'external_title' => Yii::t("D2finvModule.model", 'Show company data')), array('name' => 'finv_date', 'type' => 'raw', 'value' => $this->widget('EditableField', array('model' => $model, 'type' => 'date', 'url' => $this->createUrl('/d2finv/finvInvoice/editableSaver'), 'attribute' => 'finv_date'), true)), array('name' => 'finv_budget_date', 'type' => 'raw', 'value' => $this->widget('EditableField', array('model' => $model, 'type' => 'date', 'url' => $this->createUrl('/d2finv/finvInvoice/editableSaver'), 'attribute' => 'finv_budget_date'), true)), array('name' => 'finv_due_date', 'type' => 'raw', 'value' => $this->widget('EditableField', array('model' => $model, 'type' => 'date', 'url' => $this->createUrl('/d2finv/finvInvoice/editableSaver'), 'attribute' => 'finv_due_date'), true)), array('name' => 'finv_notes', 'type' => 'raw', 'value' => $this->widget('EditableField', array('model' => $model, 'attribute' => 'finv_notes', 'url' => $this->createUrl('/d2finv/finvInvoice/editableSaver')), true)), array('name' => 'finv_fcrn_id', 'type' => 'raw', 'value' => $this->widget('EditableField', array('model' => $model, 'type' => 'select', 'url' => $this->createUrl('/d2finv/finvInvoice/editableSaver'), 'source' => CHtml::listData(FcrnCurrency::model()->findAll(array('limit' => 1000)), 'fcrn_id', 'itemLabel'), 'attribute' => 'finv_fcrn_id'), true)), array('name' => 'finv_stst_id', 'type' => 'raw', 'value' => $this->widget('EditableField', array('model' => $model, 'type' => 'select', 'url' => $this->createUrl('/d2finv/finvInvoice/editableSaver'), 'source' => CHtml::listData(StstState::model()->findAll(array('limit' => 1000)), 'stst_id', 'itemLabel'), 'attribute' => 'finv_stst_id'), true)), array('name' => 'finv_paid', 'type' => 'raw', 'value' => $this->widget('EditableField', array('model' => $model, 'type' => 'select', 'url' => $this->createUrl('/d2finv/finvInvoice/editableSaver'), 'source' => $model->getEnumFieldLabels('finv_paid'), 'attribute' => 'finv_paid'), true)))));
?>
    </div>


    <div class="span8">
        <?php 
$this->renderPartial('_view-relations_grids', array('modelMain' => $model, 'ajax' => false));
?>
    </div>
    <div class="span8">
        <?php 
$this->widget('d2FilesWidget', array('module' => $this->module->id, 'model' => $model));
?>
    </div>
</div>