Example #1
1
 public function getUniversityList()
 {
     // $u1[]='Select university';
     // $u2[0]='Select university';
     $u2 = Chtml::listData(University::model()->findAll(), 'uid', 'uname');
     //$u=array_merge($u1,$u2);
     return $u2;
 }
Example #2
1
 /**
  * @Author: ANH DUNG Mar 13, 2015
  * @Todo: get list option by type
  * @Param: $type 
  */
 public static function getListOption($type)
 {
     $criteria = new CDbCriteria();
     $criteria->order = 't.value';
     $aId = array();
     if ($type == ProMasterFurnished::TYPE_NORMAL) {
         $aId = ProMasterFurnished::getFurnishedNormal();
     } elseif ($type == ProMasterFurnished::TYPE_INDUSTRIAL) {
         $aId = ProMasterFurnished::getFurnishedIndustrial();
     }
     $criteria->addInCondition('t.id', $aId);
     $models = self::model()->findAll($criteria);
     return Chtml::listData($models, 'id', 'name');
 }
Example #3
0
echo $form->labelEx($model, 'observation');
?>
		<?php 
echo $form->textArea($model, 'observation', array('rows' => 6, 'cols' => 50));
?>
		<?php 
echo $form->error($model, 'observation');
?>
	</div>

	<div class="row">
		<?php 
echo $form->labelEx($modelDiagnosticWork, 'work_id');
?>
		<?php 
echo $form->dropDownList($modelDiagnosticWork, 'work_id', Chtml::listData(Work::model()->findAll('active=1'), 'id', 'name'), array('prompt' => 'Seleccionar'));
?>
		<?php 
echo CHtml::submitButton('Agregar +', array('id' => 'agregar', 'name' => 'agregar'));
?>
		<?php 
echo $form->error($modelDiagnosticWork, 'work_id');
?>
	</div>
	
	<div class="row">
		<?php 
echo $form->labelEx($model, 'finished');
?>
		<?php 
echo $form->checkBox($model, 'finished');
Example #4
0
File: _form.php Project: reubsc/sds
echo $form->labelEx($model, 'regionID');
?>
		<?php 
echo CHtml::activeDropDownList($model, 'regionID', Chtml::listData(Regions::model()->findAll(), 'regionID', 'regionName'), array('empty' => 'Select a Region'));
?>
		<?php 
echo $form->error($model, 'regionID');
?>
	</div>

	<div class="row">
		<?php 
echo $form->labelEx($model, 'membershipTypeID');
?>
		<?php 
echo CHtml::activeDropDownList($model, 'membershipTypeID', Chtml::listData(MembershipTypes::model()->findAll(), 'membershipTypeID', 'membershipTypeName'), array('empty' => 'Select Membership Type'));
?>
		<?php 
echo $form->error($model, 'membershipTypeID');
?>
	</div>

	<div class="row">
		<?php 
echo $form->labelEx($model, 'memberName');
?>
		<?php 
echo $form->textField($model, 'memberName', array('size' => 60, 'maxlength' => 100));
?>
		<?php 
echo $form->error($model, 'memberName');
Example #5
0
?>

	<div class="row">
		<?php 
echo $form->labelEx($model, 'emisor_id');
echo $emisores['descripcion'];
//	$list = Chtml::listData($emisores, 'id', 'descripcion');
//	echo $form->dropDownList($model,'emisor_id', $list, array('prompt'=>'Selecciona una'));
echo $form->error($model, 'emisor_id');
?>
	</div>

	<div class="row">
		<?php 
echo $form->labelEx($model, 'receptor_id');
$list2 = Chtml::listData($receptores, 'id', 'descripcion');
echo $form->dropDownList($model, 'receptor_id', $list2, array('prompt' => 'Selecciona una'));
echo $form->error($model, 'receptor_id');
?>
	</div>
	
	<div class="row">
		<?php 
echo $form->labelEx($model, 'fecha');
$this->widget('application.extensions.timepicker.EJuiDateTimePicker', array('model' => $model, 'attribute' => 'fecha', 'language' => 'es', 'value' => $model->fecha, 'options' => array('dateFormat' => 'yy-mm-dd', 'timeFormat' => 'hh:mm', 'constrainInput' => 'false', 'changeYear' => 'true', 'duration' => 'fast', 'showAnim' => 'slide', 'timeText' => 'Hora', 'hourText' => 'Horas', 'minuteText' => 'Min.')));
echo $form->error($model, 'fecha');
?>
	</div>
	
	<fieldset>
		<legend>Bienes Adscritos</legend>
Example #6
0
File: _form.php Project: reubsc/sds
echo CHtml::activeDropDownList($model, 'memberID', Chtml::listData(Members::model()->findAll(), 'memberID', 'memberName'), array('empty' => 'Select a Member'));
?>
		<?php 
echo $form->error($model, 'memberID');
?>
	</div>

	<div class="row">
		<?php 
echo $form->labelEx($model, 'govermentTypeID');
?>
		<?php 
//echo $form->textField($model,'govermentTypeID',array('size'=>11,'maxlength'=>11));
?>
                <?php 
echo CHtml::activeDropDownList($model, 'govermentTypeID', Chtml::listData(GovermentTypes::model()->findAll(), 'govermentTypeID', 'govermentTypeName'), array('empty' => 'Select a Goverment Type'));
?>
		<?php 
echo $form->error($model, 'govermentTypeID');
?>
	</div>

	<div class="row">
		<?php 
echo $form->labelEx($model, 'capital');
?>
		<?php 
echo $form->textField($model, 'capital', array('size' => 60, 'maxlength' => 120));
?>
		<?php 
echo $form->error($model, 'capital');
Example #7
0
File: index.php Project: cicb/tpc
// print_r($dataProvider->getData());
?>
    
     <div class='row' style="margin-left:20%">
    	<div class='span3'>
    	     <div class="row" id="evento">
    	          <?php 
$fecha = date('Y-m-d H:i:s');
echo CHtml::label('Evento', '', array('style' => 'width:70px; display:inline-table;'));
//   $modeloEvento = Evento::model()->findAll(array('condition' => 'EventoSta = "ALTA"','order'=>'EventoNom'));
$modeloEvento = Evento::model()->findAll(array('condition' => "EventoSta='ALTA' AND EventoFecFin>='{$fecha}' order by EventoNom DESC"));
//$modeloEvento = Evento::model()->findAll(array('condition'=>"EventoSta='ALTA' order by EventoNom DESC"));
//     $modeloEvento2 = Evento::model()->findAll(array('condition'=>"EventoSta='ALTA' order by EventoNom DESC"));
$eventoSelected = "'" . @$_GET['EventoId'] . "'" == "" ? '' : @$_GET['EventoId'];
$list = CHtml::listData($modeloEvento, 'EventoId', 'EventoNom');
echo CHtml::dropDownList('evento_id', $eventoSelected, Chtml::listData($modeloEvento, 'EventoId', 'EventoNom'), array('ajax' => array('type' => 'POST', 'url' => CController::createUrl('funciones/cargarFuncionesDistribucion'), 'beforeSend' => 'function() { 
    						    $("#funciones_distribucion").hide();
                                $("#funciones_distribucion_n").hide();
                                $(".asignaciones").hide();
                                $(".asignaciones_nombre").hide();
                                $(".buttonsagrega").hide();
                                $("#distribucion_resumen").hide();
                                $(".resumen_nombre").hide();
                                $(".buttonsmodifica").hide();
                                $(".buttonsasignar").hide();
                                $("#fspin").addClass("fa fa-spinner fa-spin");
                              }', 'complete' => 'function() {
    						$("#fspin").removeClass("fa fa-spinner fa-spin");
                            /*$("#funcion_id option:nth-child(2)").attr("selected", "selected");
    						//$("#funcion_id").change();*/
                            $("#funciones_distribucion").show();
Example #8
0
$form = $this->beginWidget('CActiveForm', array('id' => 'fbm-index-form', 'enableAjaxValidation' => false, 'enableClientValidation' => true, 'htmlOptions' => array('enctype' => 'multipart/form-data', 'name' => 'fbm', 'target' => '_blank')));
//echo $form->errorSummary($model);
/*
if ( Yii::app()->user->isAdminBm ) { 
	echo $form->labelEx($model,'dependencia_id'); 
	$list = Chtml::listData($dps, 'id', 'descripcion'); 
	echo CHtml::dropDownList('FormBm1[dependencia_id]', $model->dependencia_id, $list,
              array('empty' => '(Selecciona una)'));
	echo $form->error($model,'dependencia_id'); 
}
*/
?>
	<div class="row">
		<?php 
echo $form->labelEx($model, 'mes_id');
$list2 = Chtml::listData($meses, 'id', 'descripcion');
echo $form->dropDownList($model, 'mes_id', $list2, array('empty' => '(Selecciona una)'));
echo $form->error($model, 'mes_id');
?>
	</div>
	
	<div class="row">
		<?php 
echo $form->labelEx($model, 'anho');
echo $form->dropDownList($model, 'anho', $anhos, array('empty' => '(Selecciona una)'));
echo $form->error($model, 'anho');
?>
	</div>
	
	<?php 
if ($model->cod == 1) {
Example #9
0
echo $form->error($model, 'stock_number');
?>
	</div>
	
        
	<?php 
Yii::app()->clientScript->registerCssFile(Yii::app()->baseUrl . '/css/styles.css');
Yii::app()->clientScript->registerScript('accessoriesScript', "\r\n\t\t\$('#addAccesory').click(function(){\r\n\t\t\tif(\$('#Order_accesory_id option:selected').val()){\r\n\t\t\t\t\$('#Order_accesory').append(\$('#Order_accesory_id option:selected').clone());  \r\n\t\t\t}\r\n\t\t});\r\n\t\t\$('#removeAccesory').click(function(){\r\n\t\t\t\$('#Order_accesory option:selected').remove(); \r\n\t\t});\r\n\t\t\$('#order-form').submit(function(){\r\n\t\t\t\$('#Order_accesory option').attr('selected','selected');\r\n\t\t});\r\n\t");
?>
	
	<div class="row">
        <?php 
echo $form->labelEx($model, 'accesory_id');
?>
        <?php 
echo $form->dropDownList($model, 'accesory_id', Chtml::listData(Accesory::model()->findAll(array('condition' => 'active=1', 'order' => 'name')), 'id', 'name'), array('prompt' => 'Seleccionar'));
?>
		
       	<?php 
echo CHtml::button('+', array('id' => 'addAccesory'));
?>
		
		<?php 
echo CHtml::button('-', array('id' => 'removeAccesory'));
?>
		
		<div>
			<?php 
echo $form->dropDownList($model, 'accesory', CHtml::listData(Accesory::model()->findAllByPk($model->accesory), 'id', 'name'), array('multiple' => 'multiple', 'size' => '5', 'style' => 'min-width:200px;'));
?>
		</div>
Example #10
0
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title"><?php 
echo Yii::t('web/home', 'titleBoxAddTrainee');
?>
</h4>
            </div>
            <!--form search-->
            <div class="modal-body" >
                <label class="sr-only"><?php 
echo Yii::t('web/home', 'Search');
?>
</label>
                <input type="text" id="trainee_username" class="form-control" placeholder="Username Or Fullname Or Email" style="width: 600px;float: left;">
                <?php 
echo Chtml::dropDownList('dataListCompany', 'id', Chtml::listData(WUser::model()->findAll('company is NOT NULL GROUP BY company'), "company", "company"), array('empty' => Yii::t('web/home', 'Select a Company'), 'style' => 'width:215px;float:left;margin-left:10px', 'class' => 'form-control'));
?>
                <button type="button" onclick="return loadTraineeOption();" class="btn btn-success" style="margin-left: 10px; float: left;"><?php 
echo Yii::t('web/home', 'Search');
?>
</button>
                <div id="bodyTraineeList" style="float: left;width: 100%; margin-top: 10px;"></div>
                <div class="clear"></div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-success btn-sm" onclick="return addMutilTrainee();"><?php 
echo Yii::t('web/home', 'titleBoxAddTraineeButtonAdd');
?>
</button>
                <button type="button" class="btn btn-danger btn-sm" data-dismiss="modal" ><?php 
echo Yii::t('web/home', 'titleBoxAddTraineeButtonClose');
Example #11
0
?>
	</div>

	<div class="row">
		<?php 
echo $form->label($model, 'factura_nro');
?>
		<?php 
echo $form->textField($model, 'factura_nro');
?>
	</div>

	<div class="row">
		<?php 
echo $form->labelEx($model, 'status_id');
$list7 = Chtml::listData($vars['status'], 'id', 'descripcion');
echo $form->dropDownList($model, 'status_id', $list7, array('prompt' => 'CUALQUIERA'));
?>
	</div>

	<div class="row">
	<?php 
/*
	echo $form->labelEx($model,'anho_id');
	$list8 = Chtml::listData($vars['anhos'], 'id', 'descripcion'); 
	echo $form->dropDownList($model,'anho_id', $list8, array('prompt'=>'CUALQUIERA'));
*/
?>
	</div>

	<div class="row buttons">
Example #12
0
?>
	</div>
	<div class="row">
		<?php 
$list3 = Chtml::listData($dps, 'id', 'descripcion');
echo $form->labelEx($model->observador, 'dependencia_id');
echo $form->dropDownList($model->observador, 'dependencia_id', $list3, array('prompt' => 'Selecciona una'));
echo $form->error($model->observador, 'dependencia_id');
?>
	</div>
	</fieldset>
	
	<div class="row">
		<?php 
echo $form->labelEx($model, 'responsable_id');
$list3 = Chtml::listData($responsables, 'id', 'persona.pdata.nombre');
echo $form->dropDownList($model, 'responsable_id', $list3, array('prompt' => 'Selecciona una'));
?>
	
	</div>

	<div class="row">
		<?php 
echo $form->labelEx($model, 'observaciones');
?>
		<?php 
echo $form->textArea($model, 'observaciones', array('maxlength' => 100, 'rows' => 10, 'cols' => 80));
?>
		<?php 
echo $form->error($model, 'observaciones');
?>
Example #13
0
File: Loan.php Project: edsan/opf
 public function getBorrower()
 {
     $models = Employee::model()->findAll(array("order" => "first_name"));
     $list = Chtml::listData($models, 'employee_id', 'fullname');
     return $list;
 }
Example #14
0
?>
		<?php 
echo CHtml::Button('Agregar +', array('id' => 'agregar', 'name' => 'agregar', 'onclick' => 'send();'));
?>
		<?php 
echo $form->error($modelDiagnosticWork, 'work_id');
?>
	</div>
	
	<div class="row">
		<?php 
echo $form->labelEx($model, 'status_order_id');
?>
		<?php 
$statusArray = array(5, 8, 13);
echo $form->dropDownList($model, 'status_order_id', Chtml::listData(StatusOrder::model()->findAllByAttributes(array("id" => $statusArray)), 'id', 'status'), array('prompt' => 'Seleccionar'));
?>
		<?php 
echo $form->error($model, 'status_order_id');
?>
	</div>

	<div class="row buttons">
		<?php 
echo CHtml::submitButton('Guardar', array('id' => 'guardar', 'name' => 'guardar'));
?>
 			
	</div>
	
<?php 
$this->endWidget();
Example #15
0
File: _form.php Project: cicb/tpc
?>
    </div>

    <div class="modal-footer">
     <a data-dismiss="modal" class="btn" href="#">Cerrar</a>    
    </div>
</div>

 <div id="myModal" class="modal hide fade">
    <div class="modal-header">
        <a class="close" data-dismiss="modal">&times;</a>
        <h4>Selecciona un Evento Relecionado</h4>
    </div>
    <div class="modal-body" style="height: 300px;">
        <?php 
echo CHtml::dropDownList('eventos_relacionados', '', Chtml::listData($eventos, 'EventoId', 'EventoNom'), array('empty' => '--------------', 'style' => 'width:500px', 'class' => 'chosen'));
?>
    </div>

    <div class="modal-footer">
     <a data-dismiss="modal" class="btn" href="#">Cerrar</a>    
    </div>

</div>

</div> <!---FIN de controles-->
<style>
.resultado{
}
.resultado ul.result {
    width: 700px;
Example #16
0
 -->				</div>

				<?php 
        //if they are part of an organisation, they can only upload to their own
        if (isset(Yii::app()->user->getUser()->organisation->id)) {
            ?>
					<?php 
            echo $form->hiddenField($CsvFile, 'organisation_id', array('value' => Yii::app()->user->getUser()->organisation->id));
            ?>
				<?php 
        } else {
            ?>

				<div class="form-group">
				<?php 
            $dropDownData = Chtml::listData(Organisation::model()->findAll("view_name != ''"), "id", "title");
            ?>

					<?php 
            echo $form->labelEx($CsvFile, 'organisation_id', array());
            ?>
					<?php 
            echo $form->dropDownList($CsvFile, 'organisation_id', $dropDownData, array('class' => 'form-control'));
            ?>
				</div>
				<?php 
        }
        ?>

				<div class="form-actions">
					<?php 
Example #17
0
File: _form.php Project: reubsc/sds
echo $form->labelEx($model, 'passwordAttempts');
?>
		<?php 
echo $form->textField($model, 'passwordAttempts');
?>
		<?php 
echo $form->error($model, 'passwordAttempts');
?>
	</div>

	<div class="row">
		<?php 
echo $form->labelEx($model, 'passwordStatusID');
?>
		<?php 
echo CHtml::activeDropDownList($model, 'passwordStatusID', Chtml::listData(PasswordStatuses::model()->findAll(), 'passwordStatusID', 'passwordStatus'), array('empty' => 'Select a Orgnization'));
?>
		<?php 
echo $form->error($model, 'passwordStatusID');
?>
	</div>

	<div class="row buttons">
		<?php 
echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save');
?>
	</div>

<?php 
$this->endWidget();
?>
Example #18
0
?>
 
		<?php 
//echo $form->HiddenField($model, 'order_id', array('size' => 10, 'maxlength' => 10, 'value' => $_GET['id'], 'disabled' => true));
?>
		<?php 
echo $form->error($model, 'order_id');
?>
	</div>
 <br>
	<div class="row">
		<?php 
echo $form->labelEx($model, 'activity_guarantee_id');
?>
        <?php 
echo $form->dropDownList($model, 'activity_guarantee_id', Chtml::listData(ActivityGuarantee::model()->findAll(array('condition' => 'active = 1', 'order' => 'description')), 'id', 'description'), array('prompt' => 'Seleccionar'));
?>
		<?php 
// echo $form->textField($model,'activity_guarantee_id',array('size'=>10,'maxlength'=>10));
?>
		<?php 
echo $form->error($model, 'activity_guarantee_id');
?>
	</div>
	<div class="row">
		<?php 
echo $form->labelEx($model, 'date_hour');
?>
		<?php 
$this->widget('CJuiDateTimePicker', array('model' => $model, 'attribute' => 'date_hour', 'options' => array('dateFormat' => 'yy-mm-dd', 'timeFormat' => 'hh:mm:ss', 'pickerTimeFormat' => 'hh:mm:ss', 'showSecond' => true)));
?>
Example #19
0
	<div class="row">
		<?php 
echo $form->labelEx($model, 'equipment_type_id');
?>
		<!-- <?php 
//echo $form->dropDownList($model,'equipment_type_id',
//CHtml::listData(EquipmentType::model()->findAllByAttributes(array('active'=>'1')),'id','type'),array('prompt'=>'Seleccionar',)
//);
//echo $form->dropDownList($model,'equipment_type_id',
//CHtml::listData(EquipmentType::model()->findAll(),'id','type'),array('prompt'=>'Seleccionar',)
//);
?>
 -->
		<?php 
echo $form->dropDownList($model, 'equipment_type_id', Chtml::listData(EquipmentType::model()->findAll(array('condition' => 'active=1', 'order' => 'type')), 'id', 'type'), array('prompt' => 'Seleccionar'));
?>
		<?php 
echo $form->error($model, 'equipment_type_id');
?>
	</div>
	
	<div class="row">
		<?php 
echo $form->labelEx($model, 'brand_id');
?>
		<!-- <?php 
//echo $form->dropDownList($model,'brand_id',
//CHtml::listData(Brand::model()->findAllByAttributes(array('active'=>'1')),'id','name'),array('prompt'=>'Seleccionar',)
//);
//echo $form->dropDownList($model,'brand_id',
Example #20
0
}
?>

	<div class="row">
		<?php 
echo $form->labelEx($model, 'persona_id');
$list = Chtml::listData($personas, 'id', 'descripcion');
echo $form->dropDownList($model, 'persona_id', $list, array('prompt' => 'Selecciona una'));
?>
	</div>

	
	<div class="row">
		<?php 
echo $form->labelEx($model, 'status_id');
$list = Chtml::listData($status, 'id', 'descripcion');
echo $form->dropDownList($model, 'status_id', $list, array('prompt' => 'Selecciona una'));
?>
	</div>

	<div class="row buttons">
		<?php 
echo CHtml::submitButton($model->isNewRecord ? 'Asignar' : 'Guardar', array('class' => 'button green'));
?>
	</div>

<?php 
$this->endWidget();
?>

</div><!-- form -->
Example #21
0
?>

<h1>Desincoporar Bien #<?php 
echo $model->codigo;
?>
</h1>

<div class="form">
	
<?php 
$form = $this->beginWidget('CActiveForm', array('id' => 'bienmueble-form', 'enableClientValidation' => true, 'enableAjaxValidation' => false));
?>

<div class="row">
	<?php 
$list = Chtml::listData($conceptos, 'id', 'descripcion');
echo $form->labelEx($movimiento, 'concepto_id');
echo $form->dropDownList($movimiento, 'concepto_id', $list, array('prompt' => 'Selecciona una'));
echo $form->error($movimiento, 'concepto_id');
?>
</div>

<div class="row buttons">
	<?php 
echo CHtml::submitButton('Aceptar', array('class' => 'button green'));
?>
</div>
<?php 
$this->endWidget();
?>
</div>
Example #22
0
<div class="form">

<?php 
$form = $this->beginWidget('CActiveForm', array('id' => 'departamento-form', 'enableAjaxValidation' => false));
?>

	<?php 
echo $form->errorSummary($model);
?>

	<div class="span3">
		<?php 
echo $form->labelEx($model, 'propiedad_id');
?>
		<?php 
echo $form->dropDownList($model, 'propiedad_id', Chtml::listData($propiedades, 'id', 'nombre'), array('empty' => 'Seleccione una Propiedad'));
?>
		<?php 
echo $form->error($model, 'propiedad_id');
?>
	</div>

	<div class="span2">
		<?php 
echo $form->labelEx($model, 'numero');
?>
		<?php 
echo $form->textField($model, 'numero');
?>
		<?php 
echo $form->error($model, 'numero');
Example #23
0
File: modify.php Project: zwq/unpei
	<?php 
}
?>
	<!-- } -->
     <?php 
$form = $this->beginWidget('CActiveForm', array('id' => 'goodsmodify-form', 'enableAjaxValidation' => true, 'enableClientValidation' => true, 'clientOptions' => array('validateOnSubmit' => true)));
?>
	<div class="form">
		<div class='title title-dashed' style="height:43px">基础信息
	          <span class='row' style="padding-left:42px">
	          <?php 
//echo CHtml::beginForm('','post');
?>
	          <label>版本选择:</label>
				 <?php 
echo $form->dropDownlist($model, 'version', Chtml::listData($version, 'version_name', 'version_name'), array('id' => 'version'));
?>
				 <input type="hidden" name="hidden" id="hidden" value="<?php 
echo $result['id'];
?>
">
				 <?php 
echo $form->error($model, 'version');
?>
				<?php 
//echo CHtml::endForm();
?>
			</span>
			<?php 
echo CHtml::link("返回", Yii::app()->createUrl('maker/salesmanage/querygoods'), array('style' => 'padding-left:350px;'));
?>
Example #24
0
echo $form->error($pdata, 'nombre');
?>
	</div>
	
	<div class="row">
		<?php 
echo $form->labelEx($pdata, 'sexo_id');
$list = Chtml::listData($genero, 'id', 'descripcion');
echo $form->dropDownList($pdata, 'sexo_id', $list, array('prompt' => 'Selecciona una'));
?>
	</div>

	<div class="row">
	<?php 
echo $form->labelEx($pdata, 'profesion_id');
$list2 = Chtml::listData($profesiones, 'id', 'descripcion');
echo $form->dropDownList($pdata, 'profesion_id', $list2, array('prompt' => 'Selecciona una'));
?>
	</div>

	<div class="row buttons">
		<?php 
echo CHtml::submitButton($pdata->isNewRecord ? 'Registrar' : 'Guardar', array('class' => 'button green'));
?>
	</div>

<?php 
$this->endWidget();
?>

</div>
Example #25
0
    <div class="clear"></div>
</div>
<!--box Popup : danh sach cac Bai giang (Lecture)-->
<div id="myModal2" class="modal fade bs-example-modal-lg" >
    <div class="modal-dialog" style="margin-top: 0px !important; width:800px;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">Thêm bài giảng vào khóa học</h4>
            </div>
            <!--form search-->
            <div class="modal-body" >
                <label class="sr-only">Search</label>
                <input type="text" id="lacture_name" class="form-control" placeholder="Tên Lecture cần tìm" style="width: 180px;float: left;">
                <?php 
echo Chtml::dropDownList('dataListLactureCat', 'id', Chtml::listData(LectureCat::model()->findAll(), "id", "cat_name"), array('empty' => 'Chọn danh mục Lecture', 'style' => 'width:215px;float:left;margin-left:10px', 'class' => 'form-control'));
?>
                <button type="button" onclick="return loadLuctureOption();" class="btn btn-primary" style="margin-left: 10px; float: left;">Search</button>
                <div id="bodyLectureList"></div>
                <div class="clear"></div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-danger btn-sm" data-dismiss="modal">Close</button>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    function showPopup(){
        //if($('#bodyLectureList').html()==''){
        loadLecture();
Example #26
0
	<?php 
echo $form->errorSummary($model);
?>

	<div class="row">
		<?php 
echo $form->labelEx($model, 'rol_id');
$list = Chtml::listData($roles, 'id', 'descripcion');
echo $form->dropDownList($model, 'rol_id', $list, array('prompt' => 'Selecciona una'));
?>
	</div>
	
	<div class="row">
		<?php 
echo $form->labelEx($model, 'dependencia_id');
$list = Chtml::listData($dps, 'id', 'descripcion');
echo $form->dropDownList($model, 'dependencia_id', $list, array('prompt' => 'Selecciona una'));
?>
	</div>

	<div class="row">
		<?php 
echo $form->labelEx($model, 'username');
?>
		<?php 
echo $form->textField($model, 'username', array('size' => 60, 'maxlength' => 128));
?>
		<?php 
echo $form->error($model, 'username');
?>
	</div>
Example #27
0
?>
        <?php 
echo $form->error($model, 'description');
?>
    </div>

    <br>


    <div class="row">

        <?php 
echo $form->labelEx($modelRepairWork, 'work_id');
?>
        <?php 
echo $form->dropDownList($modelRepairWork, 'work_id', Chtml::listData(Work::model()->findAll(array('condition' => 'active = 1 AND service_type_id=2', 'order' => 'name')), 'id', 'name'), array('prompt' => 'Seleccionar un trabajo'));
?>
        <?php 
echo CHtml::Button('Agregar +', array('id' => 'agregar', 'name' => 'agregar', 'onclick' => 'send();'));
?>
        <?php 
echo $form->error($modelRepairWork, 'work_id');
?>
    </div>




    <div class="row">
        <?php 
echo $form->labelEx($model, 'finished');
Example #28
0
echo $form->textField($model, 'user_id', array('class' => 'form-control input-sm'));
?>
</td>
                <td><?php 
echo $form->textField($model, 'login', array('class' => 'form-control input-sm'));
?>
</td>
                <td><?php 
echo $form->textField($model, 'email', array('class' => 'form-control input-sm'));
?>
</td>
                <td></td>
                <td></td>
                <td></td>
                <td><?php 
echo $form->dropDownList($model, 'ls_id', Chtml::listData(Ls::model()->not_deleted()->findAll(), 'id', 'name'), array('class' => 'form-control input-sm', 'empty' => Yii::t('backend', 'Выбрать')));
?>
</td>
                <td></td>
                <td>
                    <button type="submit" class="btn btn-primary glyphicon glyphicon-search" title="<?php 
echo Yii::t('backend', 'Искать');
?>
" rel="tooltip"></button>
                    <?php 
echo HTML::link('', array('/backend/' . $this->getId() . '/index'), array('class' => 'btn btn-default glyphicon glyphicon-ban-circle', 'title' => Yii::t('backend', 'Сбросить'), 'rel' => 'tooltip'));
?>
                </td>
            </tr>
            <?php 
if ($data = $dataProvider->getData()) {
Example #29
0
							<?php 
}
?>
						</tr>
					</table>
				</div>
			</div>
			<?php 
echo $form->beginControlGroup($model, 'dea_ptype');
?>
			<?php 
echo $form->controlLabel($model, 'dea_ptype');
?>
			<div class="controls">
				<?php 
echo $form->checkBoxListWithSelectOnLabel($model, 'dea_ptype', Chtml::listData(PropertyType::model()->getTypes(), 'pty_id', 'pty_title'), ['separator' => ' ']);
?>
				<label style="display:inline-block; margin-left:28px;float:none; margin-right:12px; font-weight: bold">Branch</label>
				<?php 
echo $form->checkBoxListWithSelectOnLabel($model, 'dea_branch', CHtml::listData(Branch::model()->active()->findAll(), 'bra_id', 'bra_title'), ['separator' => ' ']);
?>
			</div>
			<?php 
echo $form->endControlGroup();
?>

			<div class="control-group">
				<label class="control-label">
					Negotiator
				</label>
Example #30
0
<div style="margin-bottom: 20px; display: <?php 
echo !empty($display) ? $display : 'none';
?>
; width:100%; clear:left;" class="crow">
    <div class="row" style="width:300px;float: left;">
        <?php 
echo CHtml::activeLabelEx($model, '[' . $index . ']autor_name_id');
?>
        <?php 
//echo CHtml::activeTextField($model, '[' . $index . ']autor_name_id', array('size' => 20, 'maxlength' => 255));
?>
        <?php 
echo CHtml::activeDropDownList($model, '[' . $index . ']autor_name_id', Chtml::listData(Autorname::model()->findAll(array('order' => 'lastname, firstname')), 'id', 'fullname'), array('empty' => '--выберите автора--'));
?>
        <?php 
echo CHtml::error($model, '[' . $index . ']autor_name_id');
?>
    </div>
    <div class="row" style="width:100px;float: left;">
        <br />
        <?php 
echo CHtml::link('Delete', '#', array('onclick' => 'deleteAutor(this, ' . $index . '); return false;'));
?>
    </div>
</div>

<?php 
Yii::app()->clientScript->registerScript('deleteAutor', "\r\nfunction deleteAutor(elm, index)\r\n{\r\n    element=\$(elm).parent().parent();\r\n    /* animate div */\r\n    \$(element).animate(\r\n    {\r\n        opacity: 0.25,\r\n        left: '+=50',\r\n        height: 'toggle'\r\n    }, 500,\r\n    function() {\r\n        /* remove div */\r\n        \$(element).remove();\r\n    });\r\n}", CClientScript::POS_END);