Created
June 1, 2011 19:58
-
-
Save davialexandre/1003157 to your computer and use it in GitHub Desktop.
Dependent dropdown sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row"> | |
<?php echo $form->labelEx($model,'ficha'); ?> | |
<?php echo $form->dropDownList($model,'ficha', | |
CHtml::listData($fichas, 'id', 'name'), | |
array( | |
'ajax' => array( | |
'type'=>'POST', | |
'url'=>CController::createUrl('movimentos/AtivosPorFicha'), | |
'update'=>'#Movimentos_id_servico', | |
), | |
'prompt'=>'Selecione a Ficha' | |
)); | |
?> | |
<?php echo $form->error($model,'ficha'); ?> | |
</div> | |
<div class="row"> | |
<?php echo $form->labelEx($model,'id_servico'); ?> | |
<?php echo $form->dropDownList($model, 'id_servico', | |
CHtml::listData($servicos, 'id', 'nome'), | |
array('prompt' => 'Selecione um Serviço Ativo')); | |
?> | |
<?php echo $form->error($model,'id_servico'); ?> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment