Exemplo n.º 1
0
                    <?php 
    echo $form->error($modelagenda, 'ObservacionesEvento');
    ?>
 
                </div>    
            </div>
                            
            <br/>
            <div class="colorBox">
                <p>Detalle Solicitud</p>
            </div>
            
            
            <?php 
    $modeldetalle = new SolicitudesCitaDetalle('search');
    $modeldetalle->unsetAttributes();
    // clear any default values
    //$ValorOrdenCompra = Yii::app()->format->formatNumber($modeldetalle->TotalOrdenCompra);
    $this->widget('zii.widgets.grid.CGridView', array('id' => 'detalle-grid', 'dataProvider' => $modeldetalle->search($model->IdNumeroSolicitud), 'summaryText' => "Mostrando {start} – {end} de {count} resultados", 'pager' => array('header' => 'Ir a la pagina:', 'firstPageLabel' => '< <', 'prevPageLabel' => 'Anterior', 'nextPageLabel' => 'Siguiente', 'lastPageLabel' => '>>'), 'htmlOptions' => array('style' => 'word-wrap:break-word; width:1000px; font-family:"Times New Roman"'), 'columns' => array(array('name' => 'IdSolicitudesCitaDetalle', 'htmlOptions' => array('width' => '50')), array('name' => 'IdOrdenCompra', 'htmlOptions' => array('width' => '50')), array('header' => 'Valor Orden', 'value' => '$data->TotalOrdenCompra', 'htmlOptions' => array('width' => '50')), array('name' => 'NumeroPiezas', 'htmlOptions' => array('width' => '50')), array('name' => 'FechaTentativaEntrega', 'htmlOptions' => array('width' => '50')), array('name' => 'FechaRegistroOrdenCompra', 'htmlOptions' => array('width' => '50')))));
    ?>
            
            <div class="row">
                <div class='col-md-3'>     
                    <?php 
    echo CHtml::submitButton($model->isNewRecord ? 'Grabar' : 'Actualizar', array('class' => 'btn btn-primary'));
    ?>
                </div>
                
            </div>    
            
            
 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $model = new SolicitudesCitaDetalle('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['SolicitudesCitaDetalle'])) {
         $model->attributes = $_GET['SolicitudesCitaDetalle'];
     }
     $this->render('admin', array('model' => $model));
 }