Esempio n. 1
0
                    <div class="row">
            <?php 
echo $form->label($model, 'stlg_record_id');
?>
                            <?php 
echo $form->textField($model, 'stlg_record_id', array('size' => 20, 'maxlength' => 20));
?>
                    </div>

                    <div class="row">
            <?php 
echo $form->label($model, 'stlg_user_id');
?>
                            <?php 
echo $form->dropDownList($model, 'stlg_user_id', CHtml::listData(SUsers::model()->findAll(), 'id', 'username'), array('prompt' => 'all'));
?>
                    </div>

                    <div class="row">
            <?php 
echo $form->label($model, 'stlg_stst_id');
?>
                            <?php 
echo $form->dropDownList($model, 'stlg_stst_id', CHtml::listData(StstState::model()->findAll(), 'stst_id', 'stst_name'), array('prompt' => 'all'));
?>
                    </div>

                    <div class="row">
            <?php 
echo $form->label($model, 'stlg_datetime');
Esempio n. 2
0
<?php

$this->breadcrumbs[] = Yii::t('D1StatusModule.crud', 'Stlg Logs');
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\$('.search-form').toggle();\nreturn false;\n});\n\$('.search-form form').submit(function(){\n\$.fn.yiiGridView.update('stlg-log-grid', {\ndata: \$(this).serialize()\n});\nreturn false;\n});\n");
?>

<?php 
$this->widget("TbBreadcrumbs", array("links" => $this->breadcrumbs));
?>
<h1>
    <?php 
echo Yii::t('D1StatusModule.crud', 'Stlg Logs');
?>
 <small><?php 
echo Yii::t('D1StatusModule.crud', 'Manage');
?>
</small>
</h1>

<?php 
$this->renderPartial("_toolbar", array("model" => $model));
$this->widget('TbGridView', array('id' => 'stlg-log-grid', 'dataProvider' => $model->search(), 'filter' => $model, 'pager' => array('class' => 'TbPager', 'displayFirstAndLast' => true), 'columns' => array(array('name' => 'stlg_stfl_id', 'value' => 'CHtml::value($data,\'stlgStfl.stfl_name\')', 'filter' => CHtml::listData(StflFlow::model()->findAll(), 'stfl_id', 'stfl_name')), 'stlg_record_id', array('name' => 'stlg_user_id', 'value' => 'CHtml::value($data,\'stlgUser.username\')', 'filter' => CHtml::listData(SUsers::model()->findAll(), 'id', 'username')), array('name' => 'stlg_stst_id', 'value' => 'CHtml::value($data,\'stlgStst.stst_name\')', 'filter' => CHtml::listData(StstState::model()->findAll(), 'stst_id', 'stst_name')), 'stlg_datetime', array('class' => 'TbButtonColumn', 'viewButtonUrl' => "Yii::app()->controller->createUrl('view', array('stlg_id' => \$data->stlg_id))", 'updateButtonUrl' => "Yii::app()->controller->createUrl('update', array('stlg_id' => \$data->stlg_id))", 'deleteButtonUrl' => "Yii::app()->controller->createUrl('delete', array('stlg_id' => \$data->stlg_id))"))));