<?php echo $form->labelEx($model, 'input_date', array('class' => 'control-label')); ?> <div class="controls"> <?php $this->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $model, 'id' => 'g2', 'value' => CTimestamp::formatDate('yyyy-MM-dd', $model->input_date), 'attribute' => 'input_date', 'options' => array('showAnim' => 'fold', 'dateFormat' => 'dd-mm-yy', 'minDate' => '-20', 'maxDate' => '+1M +10D'), 'htmlOptions' => array())); ?> </div> </div> <?php //echo $form->dropDownListRow($model,'yearmonth_periode',array(Yii::app()->settings->get("System", "cCurrentPeriod")=>Yii::app()->settings->get("System", "cCurrentPeriod"))); ?> <?php echo $form->dropDownListRow($model, 'var_account', tAccount::cashBankAccount()); echo $form->textFieldRow($model, 'cb_receiver', array('class' => 'span3')); echo $form->textAreaRow($model, 'remark', array('class' => 'span5', 'rows' => 3)); ?> <?php $this->widget('ext.appendo.JAppendo', array('id' => 'repeateEnum1', 'model' => $model, 'viewName' => '_detailJournal', 'labelDel' => 'Remove Row')); ?> <div class="form-actions"> <?php echo CHtml::htmlButton('<i class="icon-ok"></i> Save Expense', array('class' => 'btn', 'type' => 'submit')); ?> </div> <?php
$this->renderPartial('_search', array('model' => $model)); ?> </div> <div class="page-header"> <h1> <?php echo CHtml::image(Yii::app()->request->baseUrl . '/images/icon/bank.png'); ?> Cash and Bank </h1> </div> <?php $this->widget('DropDownRedirect', array('data' => tAccount::cashBankAccount("ALL"), 'url' => $this->createUrl($this->route, array_merge($_GET, array('pid' => '__value__'))), 'select' => isset($_GET['pid']) ? $_GET['pid'] : "(ALL)", 'htmlOptions' => array('class' => 'span4'))); ?> <?php if (isset($_GET['pid'])) { if ((int) $_GET['pid'] != 0) { echo "<b><p style='display: block;margin: 5px 0;padding: 2px;background-color: yellow;'>"; echo "Filter By: " . tAccount::model()->findByPk((int) $_GET['pid'])->account_name; echo "</p></b>"; } } ?> <div id="posts"> <?php foreach ($dataProvider as $data) {