예제 #1
0
파일: update.php 프로젝트: cntabana/inyungu
<?php

$this->breadcrumbs = array($model->label(2) => array('index'), GxHtml::valueEx($model) => array('view', 'id' => GxActiveRecord::extractPkValue($model, true)), Yii::t('app', 'Update'));
$this->menu = array(array('label' => Yii::t('app', 'Amamaza ') . ' ' . IguClientProduct::label(), 'url' => array('create')));
$this->beginWidget('zii.widgets.CPortlet', array('htmlOptions' => array('class' => '')));
$this->widget('bootstrap.widgets.TbMenu', array('type' => 'pills', 'items' => array(array('label' => 'Amamaza', 'icon' => 'icon-plus', 'url' => Yii::app()->controller->createUrl('create'), 'linkOptions' => array()), array('label' => 'Ibicuruzwa', 'icon' => 'icon-search', 'url' => Yii::app()->controller->createUrl('admin'), 'linkOptions' => array()))));
$this->endWidget();
?>
<h3><?php 
echo Yii::t('app', 'Guhindura') . ' ' . GxHtml::encode($model->label());
?>
</h3>

<?php 
$this->renderPartial('_form', array('model' => $model));
예제 #2
0
파일: index.php 프로젝트: cntabana/inyungu
<?php

$model = new IguClientProduct();
$b = $model->searchArray();
$this->menu = array(array('label' => Yii::t('app', 'Create') . ' ' . IguClientProduct::label(), 'url' => array('create')));
$form = $this->beginWidget('GxActiveForm', array('action' => Yii::app()->createUrl($this->route), 'method' => 'get'));
$this->beginWidget('zii.widgets.CPortlet', array('title' => "Shakisha"));
$this->widget('zii.widgets.jui.CJuiAutoComplete', array('name' => 'productname', 'source' => $b, 'options' => array('minLength' => '2'), 'htmlOptions' => array('style' => 'height:20px;width:60%')));
echo '&nbsp;&nbsp;&nbsp;' . GxHtml::submitButton(Yii::t('app', 'Search'));
$this->endWidget();
$this->endWidget();
?>
	
<h3><?php 
echo GxHtml::encode(IguClientProduct::label(2));
?>
</h3>

<?php 
$this->widget('zii.widgets.CListView', array('dataProvider' => $dataProvider, 'itemView' => '_view'));