public function actionIndex()
 {
     $module = $this->newModule();
     $model = new SModule('search');
     $model->unsetAttributes();
     if (isset($_GET['SModule'])) {
         $model->attributes = $_GET['SModule'];
     }
     $this->render('index', array('model' => $model, 'modelmodule' => $module));
 }
Exemplo n.º 2
0
 public function index()
 {
     SModule::getList();
 }
<?php

$this->widget('ext.EChosen.EChosen', array('target' => 'select'));
?>

<?php 
$form = $this->beginWidget('BootActiveForm', array('id' => 'matrix-user-module-form1', 'type' => 'horizontal', 'enableAjaxValidation' => false));
?>

<?php 
echo $form->dropDownListRow($model, 's_module_id', SModule::itemsAll(), array('class' => 'span8', 'multiple' => 'multiple'));
?>

<?php 
echo $form->dropDownListRow($model, 's_matrix_id', SMatrix::items('SMatrix'), array('class' => 'span3'));
?>

<div class="form-actions">
	<?php 
echo CHtml::htmlButton($model->isNewRecord ? '<i class="icon-ok"></i> Create' : '<i class="icon-ok"></i> Save', array('class' => 'btn', 'type' => 'submit'));
?>
	<?php 
//echo CHtml::htmlButton('Close', array('class'=>'btn', 'type'=>'reset'));
?>
</div>

<?php 
$this->endWidget();
Exemplo n.º 4
0
<?php

$form = $this->beginWidget('BootActiveForm', array('id' => 'matrix-user-module-form1', 'type' => 'horizontal', 'enableAjaxValidation' => false));
?>

<?php 
echo $form->dropDownListRow($model, 's_module_id', SModule::itemsAll(), array('disabled' => true));
?>

<?php 
echo $form->dropDownListRow($model, 's_matrix_id', SMatrix::items('SMatrix'), array('class' => 'span3'));
?>

<div class="form-actions">
	<?php 
echo CHtml::htmlButton($model->isNewRecord ? '<i class="icon-ok"></i> Create' : '<i class="icon-ok"></i> Save', array('class' => 'btn', 'type' => 'submit'));
?>
	<?php 
//echo CHtml::htmlButton('Close', array('class'=>'btn', 'type'=>'reset'));
?>
</div>

<?php 
$this->endWidget();
Exemplo n.º 5
0
<?php

define('MODULE_NAME', 'Daren');
$actions = array('index');
$action = 'index';
if (isset($_REQUEST['action'])) {
    $action = strtolower($_REQUEST['action']);
    if (!in_array($action, $actions)) {
        $action = 'index';
    }
}
define('ACTION_NAME', $action);
require dirname(__FILE__) . '/core/fanwe.php';
$fanwe =& FanweService::instance();
$fanwe->cache_list[] = 'citys';
$fanwe->initialize();
require fimport('module/s');
switch (ACTION_NAME) {
    case 'index':
        SModule::index();
        break;
}