getAvailableBlocks() public static method

public static getAvailableBlocks ( $render_view = false )
コード例 #1
0
<div class="form">
<?php 
$this->render('cmswidgets.views.notification');
$form = $this->beginWidget('CActiveForm', array('id' => 'block-start-form', 'enableAjaxValidation' => false));
?>
	<?php 
echo $form->errorSummary($model);
?>
	<div class="row">
		<?php 
echo $form->labelEx($model, 'type');
?>
		<?php 
echo $form->dropDownList($model, 'type', GxcHelpers::getAvailableBlocks(true), array('options' => array($type => array('selected' => true))));
?>
			
                <?php 
echo $form->error($model, 'type');
?>
        <div class="clear"></div> 
	</div>
        <script>
            function nextSlotStep(){
                window.location = document.URL+"/type/"+$('#Block_type').val();
            }
        </script>
	
	<div class="row">
            <?php 
echo CHtml::Button('Next', array('class' => 'button', 'onclick' => 'return nextSlotStep();'));
?>