Пример #1
0
	

	<?php 
echo $form->textFieldRow($model, 'username', array('class' => 'span5', 'maxlength' => 255));
?>

	<?php 
echo $form->passwordFieldRow($model, 'password', array('class' => 'span5', 'maxlength' => 255));
?>

	<?php 
echo $form->textFieldRow($model, 'email', array('class' => 'span5', 'maxlength' => 255));
?>
        
        <?php 
echo $form->dropDownListRow($model, 'SysPkID', CHtml::listData(SysPk::model()->findAll(), "idPk", "PkName"), array('empty' => "", 'class' => 'span5'));
?>

	<?php 
echo $form->textAreaRow($model, 'info', array('rows' => 6, 'cols' => 50, 'class' => 'span8'));
?>
        
        
        <?php 
echo $form->errorSummary($model);
?>
	<hr>
		<?php 
$this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'type' => 'primary', 'label' => $model->isNewRecord ? 'Створити' : 'Зберегти'));
?>
	
Пример #2
0
<?php

$this->breadcrumbs = array('Users' => array('index'), 'Manage');
?>

<h1>Статистика роботи користувачів</h1>

<p>
    Фільтр поля "Прийнято заяв" відображає значення менші введеного 
</p>



<?php 
$pk = CHtml::listData(SysPk::model()->findAll("idPk in (2,5) "), "idPk", "PkName");
$this->widget('bootstrap.widgets.TbGridView', array('id' => 'user-grid', 'type' => 'striped bordered condensed', 'dataProvider' => $model->search(), 'filter' => $model, 'columns' => array(array("header" => "Код", 'name' => 'id', 'htmlOptions' => array("style" => "width: 50px;")), 'username', array("header" => "ПІБ оператора", 'name' => 'info'), array("header" => "Приймальна коміссія", "name" => 'pkname', 'filter' => $pk), array("header" => "Прийнято заяв", 'name' => 'speccount'))));
Пример #3
0
 /**
  * Returns the data model based on the primary key given in the GET variable.
  * If the data model is not found, an HTTP exception will be raised.
  * @param integer the ID of the model to be loaded
  */
 public function loadModel($id)
 {
     $model = SysPk::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }