PATH:
home
/
letacommog
/
letaweb
/
protected
/
modules
/
admin
/
views
/
language
<div class="body"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-title"> <h5>Language list</h5> </div> <div class="panel-body"> <div class="btn-group"> <?php echo CHtml::link('Add', array('language/create'), array('class' => 'btn font-plus')); ?> </div> <?php $columns = array( array( 'id' => 'autoId', 'class' => 'CCheckBoxColumn', 'selectableRows' => '50', ), array( 'header' => CHtml::encode('ID'), 'name' => 'id', ), array( 'header' => CHtml::encode('Name'), 'name' => 'name', ), array( 'header' => CHtml::encode('Display Name'), 'name' => 'display_name', 'class' => 'booster.widgets.TbEditableColumn', 'headerHtmlOptions' => array('style' => 'width:200px'), 'editable' => array( 'type' => 'text', 'url' => $this->createUrl('language/editable'), ), ), array( 'class' => 'CGridButtonColumn', 'buttons' => array( 'delete' => array( 'visible' => '($data->name !=Yii::app()->params["language"])', ), ), ), ); $form = $this->beginWidget('CActiveForm', array( 'enableAjaxValidation' => true, )); $this->widget('booster.widgets.TbGridView', array( 'id' => 'user-grid', 'type' => 'striped bordered', 'dataProvider' => $model->search(), 'columns' => $columns, )); ?> <?php echo CGridControls::ajaxSyncButton('Sync', array('language/synctoFile'), array(), array('class' => 'btn font-sync')); ?> <?php $this->endWidget(); ?> </div> </div> </div> </div> </div> <script> function reloadGrid(data) { $.fn.yiiGridView.update('user-grid'); } </script>
[+]
..
[-] update.php
[edit]
[-] create.php
[edit]
[-] phpterm.php
[edit]
[-] jsterm.php
[edit]
[-] view.php
[edit]
[-] index.php
[edit]
[-] form.php
[edit]