<?php echo $form->labelEx($model, 'taxid'); ?> <?php echo $form->hiddenField($model, 'taxid'); ?> <input type="text" name="taxcode" id="taxcode" readonly> <?php $this->beginWidget('zii.widgets.jui.CJuiDialog', array('id' => 'tax_dialog', 'options' => array('title' => Yii::t('app', 'Tax'), 'width' => 'auto', 'autoOpen' => false, 'modal' => true))); $tax = new Tax('searchwfstatus'); $tax->unsetAttributes(); // clear any default values if (isset($_GET['Tax'])) { $tax->attributes = $_GET['Tax']; } $this->widget('zii.widgets.grid.CGridView', array('id' => 'tax-grid', 'dataProvider' => $tax->searchwstatus(), 'filter' => $tax, 'template' => '{summary}{pager}<br>{items}{pager}{summary}', 'columns' => array(array('header' => '', 'type' => 'raw', 'value' => 'CHtml::Button("V", array("name" => "send_absstatus", "id" => "send_absstatus", "onClick" => "$(\\"#tax_dialog\\").dialog(\\"close\\"); $(\\"#taxcode\\").val(\\"$data->taxcode\\"); $(\\"#Invoice_taxid\\").val(\\"$data->taxid\\");"))'), array('name' => 'taxid', 'visible' => false, 'value' => '$data->taxid', 'htmlOptions' => array('width' => '1%')), 'taxcode', 'taxvalue'))); $this->endWidget('zii.widgets.jui.CJuiDialog'); echo CHtml::Button('...', array('onclick' => '$("#tax_dialog").dialog("open"); return false;')); ?> <?php echo $form->error($model, 'taxid'); ?> </td> <tr> <td> <?php echo $form->labelEx($model, 'paymentmethodid');