Example #1
0
<?php

$this->breadcrumbs = array('Pah Donaturs' => array('index'), Yii::t('app', 'Manage'));
$this->menu = array(array('label' => Yii::t('app', 'List') . ' PahDonatur', 'url' => array('index')), array('label' => Yii::t('app', 'Create') . ' PahDonatur', 'url' => array('create')));
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$.fn.yiiGridView.update('pah-donatur-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
?>

<h1><?php 
echo Yii::t('app', 'Manage');
?>
 Pah Donaturs</h1>

<p style="display:none">
You may optionally enter a comparison operator (&lt;, &lt;=, &gt;, &gt;=, &lt;&gt; or =) at the beginning of each of your search values to specify how the comparison should be done.
</p>

<?php 
//echo GxHtml::link(Yii::t('app', 'Advanced Search'), '#', array('class' => 'search-button'));
?>
<div class="search-form" style="display:none">
<?php 
$this->renderPartial('_search', array('model' => $model));
?>
</div><!-- search-form -->

<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'pah-donatur-grid', 'dataProvider' => $model->search(), 'itemsCssClass' => 'table', 'filter' => $model, 'columns' => array('id', 'name', 'phone', 'alamat', array('name' => 'inactive', 'value' => '($data->inactive === 0) ? Yii::t(\'app\', \'No\') : Yii::t(\'app\', \'Yes\')', 'filter' => array('0' => Yii::t('app', 'No'), '1' => Yii::t('app', 'Yes'))), array('name' => 'pah_chart_master_account_code', 'value' => 'GxHtml::valueEx($data->pahChartMasterAccountCode)', 'filter' => GxHtml::listDataEx(PahChartMaster::model()->findAllAttributes(null, true))), array('class' => 'CButtonColumn'))));
Example #2
0
echo $form->labelEx($model, 'tran_date');
?>
        <?php 
$form->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $model, 'attribute' => 'tran_date', 'value' => $model->tran_date, 'options' => array('showButtonPanel' => true, 'changeYear' => true, 'dateFormat' => 'yy-mm-dd')));
?>
        <?php 
echo $form->error($model, 'tran_date');
?>
    </div>
    <!-- row -->
    <div class="span-8 last">
        <?php 
echo $form->labelEx($model, 'account');
?>
        <?php 
echo $form->dropDownList($model, 'account', GxHtml::listDataEx(PahChartMaster::model()->findAllAttributes(null, true)));
?>
        <?php 
echo $form->error($model, 'account');
?>
    </div>
    <!-- row -->
    <div class="span-8 last">
        <?php 
echo $form->labelEx($model, 'memo_');
?>
        <?php 
echo $form->textArea($model, 'memo_');
?>
        <?php 
echo $form->error($model, 'memo_');
Example #3
0
	<div class="span-8 last">
		<?php 
echo $form->label($model, 'desc');
?>
		<?php 
echo $form->textArea($model, 'desc');
?>
	</div>

	<div class="span-8 last">
		<?php 
echo $form->label($model, 'account_code');
?>
		<?php 
echo $form->dropDownList($model, 'account_code', GxHtml::listDataEx(PahChartMaster::model()->findAllAttributes(null, true)), array('prompt' => Yii::t('app', 'All')));
?>
	</div>

	<div class="span-8 last">
		<?php 
echo $form->label($model, 'inactive');
?>
		<?php 
echo $form->dropDownList($model, 'inactive', array('0' => Yii::t('app', 'No'), '1' => Yii::t('app', 'Yes')), array('prompt' => Yii::t('app', 'All')));
?>
	</div>

	<div class="row buttons">
		<?php 
echo GxHtml::submitButton(Yii::t('app', 'Search'));
Example #4
0
 static function get_chart_master_beban()
 {
     $criteria = new CDbCriteria();
     $criteria->addCondition("account_type = " . PahPrefs::TypeCostAct());
     return PahChartMaster::model()->findAll($criteria);
 }
Example #5
0
<?php

$this->breadcrumbs = array('Pah Gl Trans' => array('index'), Yii::t('app', 'Manage'));
$this->menu = array(array('label' => Yii::t('app', 'List') . ' PahGlTrans', 'url' => array('index')), array('label' => Yii::t('app', 'Create') . ' PahGlTrans', 'url' => array('create')));
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$.fn.yiiGridView.update('pah-gl-trans-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
?>

<h1><?php 
echo Yii::t('app', 'Manage');
?>
 Pah Gl Trans</h1>

<p style="display:none">
    You may optionally enter a comparison operator (&lt;, &lt;=, &gt;, &gt;=, &lt;&gt; or =) at the beginning of each of
    your search values to specify how the comparison should be done.
</p>

<?php 
//echo GxHtml::link(Yii::t('app', 'Advanced Search'), '#', array('class' => 'search-button'));
?>
<div class="search-form" style="display:none">
    <?php 
$this->renderPartial('_search', array('model' => $model));
?>
</div><!-- search-form -->

<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'pah-gl-trans-grid', 'dataProvider' => $model->search(), 'itemsCssClass' => 'table', 'filter' => $model, 'columns' => array('counter', 'type', 'type_no', 'tran_date', array('name' => 'account', 'value' => 'GxHtml::valueEx($data->account0)', 'filter' => GxHtml::listDataEx(PahChartMaster::model()->findAllAttributes(null, true))), 'memo_', array('class' => 'CButtonColumn'))));
 public function actionIndex()
 {
     if (isset($_POST['limit'])) {
         $limit = $_POST['limit'];
     } else {
         $limit = 20;
     }
     if (isset($_POST['start'])) {
         $start = $_POST['start'];
     } else {
         $start = 0;
     }
     //$model = new PahChartMaster('search');
     //$model->unsetAttributes();
     $criteria = new CDbCriteria();
     //        $criteria->limit = $limit;
     //        $criteria->offset = $start;
     //$criteria->addCondition("inactive = 0");
     $model = PahChartMaster::model()->findAll($criteria);
     $total = PahChartMaster::model()->count($criteria);
     if (isset($_GET['PahChartMaster'])) {
         $model->attributes = $_GET['PahChartMaster'];
     }
     if (isset($_GET['output']) && $_GET['output'] == 'json') {
         $this->renderJson($model, $total);
     } else {
         $model = new PahChartMaster('search');
         $model->unsetAttributes();
         $this->render('admin', array('model' => $model));
     }
 }
Example #7
0
<?php

$this->breadcrumbs = array('Pah Bank Accounts' => array('index'), Yii::t('app', 'Manage'));
$this->menu = array(array('label' => Yii::t('app', 'List') . ' PahBankAccounts', 'url' => array('index')), array('label' => Yii::t('app', 'Create') . ' PahBankAccounts', 'url' => array('create')));
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$.fn.yiiGridView.update('pah-bank-accounts-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
?>

<h1><?php 
echo Yii::t('app', 'Manage');
?>
 Pah Bank Accounts</h1>

<p style="display:none">
    You may optionally enter a comparison operator (&lt;, &lt;=, &gt;, &gt;=, &lt;&gt; or =) at the beginning of each of
    your search values to specify how the comparison should be done.
</p>

<?php 
//echo GxHtml::link(Yii::t('app', 'Advanced Search'), '#', array('class' => 'search-button'));
?>
<div class="search-form" style="display:none">
    <?php 
$this->renderPartial('_search', array('model' => $model));
?>
</div><!-- search-form -->

<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'pah-bank-accounts-grid', 'dataProvider' => $model->search(), 'itemsCssClass' => 'table', 'filter' => $model, 'columns' => array('id', array('name' => 'account_code', 'value' => 'GxHtml::valueEx($data->accountCode)', 'filter' => GxHtml::listDataEx(PahChartMaster::model()->findAllAttributes(null, true))), 'account_type', 'bank_account_name', 'bank_account_number', 'bank_name', array('class' => 'CButtonColumn'))));
Example #8
0
<?php

$this->breadcrumbs = array('Pah Anggaran Detils' => array('index'), Yii::t('app', 'Manage'));
$this->menu = array(array('label' => Yii::t('app', 'List') . ' PahAnggaranDetil', 'url' => array('index')), array('label' => Yii::t('app', 'Create') . ' PahAnggaranDetil', 'url' => array('create')));
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$.fn.yiiGridView.update('pah-anggaran-detil-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
?>

<h1><?php 
echo Yii::t('app', 'Manage');
?>
 Pah Anggaran Detils</h1>

<p style="display:none">
    You may optionally enter a comparison operator (&lt;, &lt;=, &gt;, &gt;=, &lt;&gt; or =) at the beginning of each of
    your search values to specify how the comparison should be done.
</p>

<?php 
//echo GxHtml::link(Yii::t('app', 'Advanced Search'), '#', array('class' => 'search-button'));
?>
<div class="search-form" style="display:none">
    <?php 
$this->renderPartial('_search', array('model' => $model));
?>
</div><!-- search-form -->

<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'pah-anggaran-detil-grid', 'dataProvider' => $model->search(), 'itemsCssClass' => 'table', 'filter' => $model, 'columns' => array('id', array('name' => 'pah_anggaran_id', 'value' => 'GxHtml::valueEx($data->pahAnggaran)', 'filter' => GxHtml::listDataEx(PahAnggaran::model()->findAllAttributes(null, true))), 'amount', array('name' => 'pah_chart_master_account_code', 'value' => 'GxHtml::valueEx($data->pahChartMasterAccountCode)', 'filter' => GxHtml::listDataEx(PahChartMaster::model()->findAllAttributes(null, true))), array('class' => 'CButtonColumn'))));