<?php 
echo $form->errorSummary($model);
?>

<?php 
echo $form->textFieldRow($model, 'input_date');
?>

<?php 
echo $form->textFieldRow($model, 'no_ref', array('class' => 'span3'));
echo $form->textFieldRow($model, 'periode_date');
?>

<?php 
echo $form->dropDownListRow($model, 'budgetcomp_id', aBudget::mainComponent(), array());
?>


<?php 
echo $form->textAreaRow($model, 'remark', array('rows' => 2, 'cols' => 50));
?>


<?php 
echo $form->dropDownListRow($model, 'issuer_id', sParameter::items("cIssuer"));
$this->widget('ext.appendo.JAppendo', array('id' => 'repeateEnum', 'model' => $model, 'viewName' => '_detailPorder', 'labelDel' => 'Remove Row'));
?>
<div class="form-actions">
	<?php 
echo CHtml::htmlButton('<i class="icon-ok"></i>' . $model->isNewRecord ? 'Create' : 'Save', array('class' => 'btn', 'type' => 'submit'));
Ejemplo n.º 2
0
    "";
}
?>
	</h1>
</div>

<?php 
$this->widget('bootstrap.widgets.BootMenu', array('type' => 'pills', 'stacked' => false, 'items' => array(array('label' => 'Waiting for Approval', 'url' => Yii::app()->createUrl('/m1/aApprovalForm', array("id" => 1)), 'active' => $id == 1), array('label' => 'Waiting for Payment', 'url' => Yii::app()->createUrl('/m1/aApprovalForm', array("id" => 2)), 'active' => $id == 2), array('label' => 'Paid', 'url' => Yii::app()->createUrl('/m1/aApprovalForm', array("id" => 3)), 'active' => $id == 3), array('label' => 'Show All', 'url' => Yii::app()->createUrl('/m1/aApprovalForm', array("id" => 0)), 'active' => $id == 0))));
//echo CHtml::ajaxLink('Next quote', Yii::app()->createUrl('/m1/aApprovalForm',array("id"=>2)),array('update' => '#grid'));
?>

<?php 
if (isset($_GET['cid'])) {
    if ($_GET['cid'] != null) {
        echo "<div style='background-color:yellow; padding:3px; margin-bottom:10px'><b>";
        echo "Current Filter : " . aBudget::model()->findByPk((int) $_GET['cid'])->name;
        echo "</b></div>";
    }
}
?>

<?php 
$this->widget('DropDownRedirect', array('data' => aBudget::mainComponent(), 'url' => $this->createUrl($this->route, array_merge($_GET, array('id' => $id, 'cid' => '__value__'))), 'select' => isset($_GET['cid']) ? $_GET['cid'] : "ALL"));
?>

<div id="grid">
	<?php 
$this->renderPartial('_gridAF', array("id" => $id, "cid" => $cid));
?>
</div>