コード例 #1
0
ファイル: _searchchallan.php プロジェクト: harpreet39/challan
            </span>
            <span class="" style="margin-left:10px;">
                <?php 
echo CHtml::link(CHtml::button('Manage Template', array('class' => 'btn btn-info', 'disabled' => $mode, 'style' => 'margin-bottom:10px')), Yii::app()->createUrl('/reportTemplate/admin'));
?>
               
            </span>
        </div>
        <div class="row1" style="margin-bottom:10px;margin-top:20px;width:700px !important;">
            <div style="float:left;width:700px !important;height:auto;" >
                    <span>Avaiable Fields</span>
                    <span style="margin-left:285px">Report Fields</span>
                    <?php 
//echo $form->labelEx($model,'offence_ids');
//print_r(empty($name));exit;
$colArr = ReportController::getColumnNames('challan');
$name = array();
foreach ($colArr as $i => $v) {
    $name[$v] = $model->getAttributeLabel($v);
}
?>
    
                    <?php 
echo $form->dropDownList($model, 'fields[]', $name, array('options' => $options, 'multiple' => 'multiple'), array('style' => 'width:700px !important;height:auto'));
?>
 
                    <?php 
//echo "<pre>";print_r($model->user_challan_list());
//print_r(array('1'=>array('selected'=>true),'2'=>array('selected'=>true)));
?>
                <div style="clear:both;" >