Example #1
0
			<?php 
echo $form->textField($model, 'contacto_directo', array('size' => 60, 'maxlength' => 80, 'class' => 'input-xlarge'));
?>
			<?php 
echo $form->error($model, 'contacto_directo');
?>
		</div>

		<div class="span3">
			<?php 
echo $form->labelEx($model, 'fuente_contacto_id');
?>
			<div class="input-prepend">
	      		<span class="add-on"><i class="icon-comment"></i></span>
				<?php 
echo $form->dropDownList($model, 'fuente_contacto_id', CHtml::listData(FuenteContacto::model()->findAll(), 'id', 'fuente'), array('class' => 'input-medium', 'empty' => ""));
?>
			</div>
			<?php 
echo $form->error($model, 'fuente_contacto_id');
?>
		</div>

		<div class="span3">
			<?php 
echo $form->labelEx($model, 'estudiantes_interesados');
?>
			<?php 
echo $form->textField($model, 'estudiantes_interesados', array('class' => 'input-mini'));
?>
			<?php 
 /**
  * Returns the data model based on the primary key given in the GET variable.
  * If the data model is not found, an HTTP exception will be raised.
  * @param integer $id the ID of the model to be loaded
  * @return FuenteContacto the loaded model
  * @throws CHttpException
  */
 public function loadModel($id)
 {
     $model = FuenteContacto::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }
Example #3
0
echo $form->labelEx($model, 'referido_por');
?>
			<?php 
echo $form->textField($model, 'referido_por', array('size' => 60, 'maxlength' => 60, 'class' => 'input-xlarge'));
?>
			<?php 
echo $form->error($model, 'referido_por');
?>
		</div>

		<div class="span5">
			<?php 
echo $form->labelEx($model, 'fuente_contacto_id');
?>
			<?php 
echo $form->dropDownList($model, 'fuente_contacto_id', CHtml::listData(FuenteContacto::model()->findAll(), 'id', 'fuente'), array('class' => 'input-xlarge', 'empty' => "(Seleccione)"));
?>
			<?php 
echo $form->error($model, 'fuente_contacto_id');
?>
	
		</div>	
	</div>

	<div class="row">
		<div class="span2">
			<?php 
echo $form->labelEx($model, 'examen_clasificacion');
?>
			<?php 
echo $form->dropDownList($model, 'examen_clasificacion', array('No' => 'No', 'Si' => 'Si'), array('class' => 'input-mini'));
Example #4
0
//                     });
//                 }, 300);
//     });
// ");
?>

<h1>Buscar Pacientes - <a href="#exportar" class="btn btn-warning" role="button" data-toggle="modal"><i class="icon-share-alt icon-white"></i> Exportar</a></h1>

<div class="search-form" style="display:none">
<?php 
$this->renderPartial('_search', array('model' => $model));
?>
</div><!-- search-form -->
<DIV style='width:125%; overflow:scroll;'>
<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'paciente-grid', 'dataProvider' => $model->search(), 'afterAjaxUpdate' => 'reinstallDatePickerNacimiento', 'filter' => $model, 'columns' => array(array('header' => 'ID.', 'name' => 'id', 'value' => '$data->id', 'htmlOptions' => array('width' => '20')), 'nombre', 'apellido', 'n_identificacion', 'email', 'telefono1', 'celular', 'pais', 'ciudad', array('name' => 'fuente_contacto_id', 'htmlOptions' => array('width' => '120'), 'filter' => CHtml::listData(FuenteContacto::model()->findAll(array('order' => 'fuente ASC')), 'id', 'fuente'), 'value' => '$data[\'fuenteContacto\'][\'fuente\']'), array('header' => 'Fecha Nacimiento', 'name' => 'fecha_nacimiento', 'filter' => $this->widget('zii.widgets.jui.CJuiDatePicker', array('language' => 'es', 'model' => $model, 'attribute' => 'fecha_nacimiento', 'options' => array('showAnim' => 'fold', 'language' => 'es', 'dateFormat' => 'dd-mm-yy', 'changeMonth' => true, 'changeYear' => true, 'yearRange' => '1900:2000'), 'htmlOptions' => array('id' => 'datepicker_for_fecha_nacimiento', 'style' => 'height:20px;width:80px;'), 'defaultOptions' => array('showOn' => 'focus', 'showOtherMonths' => true, 'selectOtherMonths' => true, 'changeMonth' => true, 'changeYear' => true, 'showButtonPanel' => true)), true), 'value' => 'Yii::app()->dateformatter->format("dd-MM-yyyy",$data[\'fecha_nacimiento\']);', 'htmlOptions' => array('width' => '80')), array('header' => 'Estado', 'name' => 'estado', 'value' => '$data->estado_texto', 'filter' => array('0' => 'Inactivo', '1' => 'Activo')), array('class' => 'CButtonColumn', 'template' => '{view}{update}'))));
Yii::app()->clientScript->registerScript('re-install-date-picker', "\nfunction reinstallDatePickerNacimiento(id, data) {\n        //use the same parameters that you had set in your widget else the datepicker will be refreshed by default\n    \$('#datepicker_for_fecha_nacimiento').datepicker(jQuery.extend({showMonthAfterYear:false},jQuery.datepicker.regional['es'],{'dateFormat':'dd-mm-yy'}));\n    //\$('#datepicker_for_fecha_nacimiento').datepicker(\$.datepicker.regional[ 'es' ]);\n  //\$('#datepicker_for_fecha_nacimiento').datepicker({dateFormat: 'dd-mm-yy'});\n}\n");
?>

</DIV>

<div id="exportar" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h3 id="myModalLabel">Exportar a un archivo de Excel </h3>
  </div>
  <div class="modal-body">
  	<p>Seleccione las opciones de Exportar</p>
 	<form id="frmExportar" name="frmExportar" action="index.php?r=paciente/exportar&tipo=<?php 
$elTipo;
?>