示例#1
0
?>
        <?php 
echo $form->error($model, 'sede_id');
?>
                </div>
            </td>
            
        </tr>-->
        <tr>
            <td>
                <div class="row">
                    <?php 
echo $form->labelEx($model, 'tipo_documento_id');
?>
                    <?php 
echo $form->dropDownList($model, 'tipo_documento_id', CHtml::listData(CatTipoDocumento::model()->findAll(), 'id', 'tipo_documento'), array('prompt' => 'Seleccione...', 'class' => 'form-control'));
?>
                    <?php 
echo $form->error($model, 'tipo_documento_id');
?>
                </div>
            </td>                
            <td>
                <div class="row">
                    <?php 
echo $form->labelEx($model, 'noDocumento');
?>
                    <?php 
if (!empty($_GET['noDocumento'])) {
    echo $form->textField($model, 'nro_documento', array('value' => $_GET['noDocumento'], "class" => "form-control"));
} else {
示例#2
0
//echo $form->dropDownList($model, 'usuario_id', CHtml::listData(AdmRoles::model()->findAll(),'id', 'rol'), array('class' => 'Ccombo' , 'prompt' => 'Seleccione...', 'options' => array($model->usuario_id => array('selected'=>true))));
?>
		<?php 
//echo $form->error($model,'usuario_id');
?>
	</div>-->

	<div class="row">
		<?php 
echo $form->labelEx($model, 'tipo_documento_id');
?>
		<?php 
//echo $form->textField($model,'tipo_documento_id');
?>
                <?php 
echo $form->dropDownList($model, 'tipo_documento_id', CHtml::listData(CatTipoDocumento::model()->findAll(), 'id', 'tipo_documento'), array('class' => 'Ccombo', 'prompt' => 'Seleccione...', 'options' => array($model->tipo_documento_id => array('selected' => true))));
?>
		<?php 
echo $form->error($model, 'tipo_documento_id');
?>
	</div>

	<div class="row">
		<?php 
echo $form->labelEx($model, 'nro_documento');
?>
		<?php 
echo $form->textField($model, 'nro_documento', array('size' => 30, 'maxlength' => 30));
?>
		<?php 
echo $form->error($model, 'nro_documento');
示例#3
0
                        <div class="span12">
                            <?php 
echo $form->labelEx($model, 'OBSERVACIONES');
?>
                            <?php 
echo $form->textArea($model, 'OBSERVACIONES', array('class' => 'input-block-level'));
?>
                            <?php 
echo $form->error($model, 'OBSERVACIONES');
?>
                        </div>
                    </div>
                    <hr/>
                    <div class="row-fluid">
                        <?php 
$memberFormConfig = array('showErrorSummary' => true, 'elements' => array('INSTANCIA' => array('type' => 'text', 'maxlength' => 100, 'style' => 'width: 100%'), 'NOMBRES_APELLIDOS' => array('type' => 'text', 'maxlength' => 255, 'style' => 'width: 100%'), 'TIPO_DOCUMENTO_ID' => array('type' => 'dropdownlist', 'items' => CHtml::listData(CatTipoDocumento::model()->findAll(), 'id', 'tipo_documento'), 'prompt' => 'Seleccione...', 'style' => 'width: 100%'), 'NUMERO_IDENTIFICACION' => array('type' => 'text', 'maxlength' => 30, 'style' => 'width: 100%'), 'CARGO' => array('type' => 'text', 'maxlength' => 90, 'style' => 'width: 100%')));
$this->widget('ext.multimodelform.MultiModelForm', array('id' => 'id_participantes', 'tableView' => true, 'showAddItemOnError' => true, 'addItemText' => '<span class="btn btn-primary">Agregar</span>', 'removeText' => '<span class="btn btn-danger">Eliminar</span>', 'hideCopyTemplate' => true, 'fieldsetWrapper' => array('tag' => 'div', 'htmlOptions' => array('class' => 'view', 'style' => 'position:relative;background:#EFEFEF;')), 'removeConfirm' => '¿ Eliminar el participante seleccionado ?', 'formConfig' => $memberFormConfig, 'model' => $participante, 'validatedItems' => $validatedMembers, 'data' => $participante->findAll('ACTA_ID=:IDACTA', array(':IDACTA' => $model->IDACTA))));
?>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- Finaliza Accordion -->

    <script>
        function getLocation() {
            if (navigator.geolocation) {
                navigator.geolocation.getCurrentPosition(showPosition);
            } else {
                //Error Geolocation