/**
  * Method returns array (id => status name)
  */
 public function getStatusList()
 {
     $list = array();
     foreach (Personrequeststatustypes::model()->findAll() as $model) {
         $list[$model->idPersonRequestStatusType] = $model->PersonRequestStatusTypeName;
     }
     return $list;
 }
Beispiel #2
0
// Информация о высшем образовании персоны. echo $model->getAttributeLabel("isNeedHostel");
?>
            </label>
        </div>
        <?php 
if (Yii::app()->user->checkAccess("showSpecStatus")) {
    ?>
            <?php 
    $access = Yii::app()->user->checkAccess("editSpecStatus") ? "" : "disabled";
    ?>
            <div class="span2">
                <?php 
    echo $form->labelEx($model, 'StatusID');
    ?>
                <?php 
    echo $form->dropDownList($model, 'StatusID', CHtml::listData(Personrequeststatustypes::model()->findAll(), "idPersonRequestStatusType", "PersonRequestStatusTypeName"), array('empty' => "", 'class' => "span12", 'disabled' => $access));
    ?>

            </div>
        <?php 
}
?>
        <?php 
if (Yii::app()->user->checkAccess("showSpecEdboID")) {
    ?>
            <div class="span2">
                <?php 
    echo $form->labelEx($model, 'edboID');
    ?>
                <?php 
    echo $form->textField($model, 'edboID', array('class' => "span12"));
 /**
  * Метод асинхронно повертає усі статуси заявок
  */
 public function actionReqstatuses()
 {
     $models = Personrequeststatustypes::model()->findAll();
     $result = array();
     foreach ($models as $model) {
         /* @var $model Personrequeststatustypes */
         $result[] = array('text' => $model->PersonRequestStatusTypeName, 'id' => $model->idPersonRequestStatusType);
     }
     echo CJSON::encode($result);
 }
Beispiel #4
0
//});
//return false;
//});
//");
//
?>


<h1>Перелік абітурієнтів</h1>

<p>Ви можете використовувати операції порівняння (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>&lt;&gt;</b>
або <b>=</b>) на початку кожного з параметрі що необхідно знайти.
</p>


<?php 
// echo CHtml::link('Розширений пошук','#',array('class'=>'search-button'));
?>
<div class="search-form" style="display:none">
    <?php 
/*$this->renderPartial('_search',array(
	'model'=>$model,
)); */
?>
</div><!-- search-form -->

<?php 
$edt = CHtml::listData(Personeducationforms::model()->findAll(), 'idPersonEducationForm', 'PersonEducationFormName');
$facs = CHtml::listData(Facultets::model()->findAll(), 'idFacultet', 'FacultetFullName');
$status = CHtml::listData(Personrequeststatustypes::model()->findAll(), 'idPersonRequestStatusType', 'PersonRequestStatusTypeName');
$this->widget('bootstrap.widgets.TbGroupGridView', array('id' => 'person-speciality-view-grid', 'type' => 'striped bordered condensed', 'dataProvider' => $model->search(), 'rowCssClassExpression' => '$data->getRowStyle()', 'filter' => $model, 'mergeColumns' => array('FIO', 'Birthday', "PersonRequestNumber", 'idPerson'), 'columns' => array(array('name' => 'idPerson', 'htmlOptions' => array('style' => 'width: 50px')), array('name' => 'PersonRequestNumber', 'value' => '$data->RequestPrefix.str_pad($data->PersonRequestNumber, 5, "0", STR_PAD_LEFT)', 'htmlOptions' => array('style' => 'width: 100px')), array('name' => 'RequestNumber', 'value' => 'str_pad($data->RequestNumber, 5, "0", STR_PAD_LEFT)', 'htmlOptions' => array('style' => 'width: 50px')), array('name' => 'FIO', 'htmlOptions' => array('style' => 'width: 250px')), 'SpecCodeName', array('name' => 'EducationFormID', 'htmlOptions' => array('style' => 'width: 70px'), 'filter' => $edt, 'value' => '$data->educationform->PersonEducationFormName'), array('name' => 'CreateDate', 'htmlOptions' => array('style' => 'width: 100px')), array('name' => 'StatusID', 'htmlOptions' => array(), 'filter' => $status, 'value' => '$data->status->PersonRequestStatusTypeName'), array('name' => 'isCopyEntrantDoc', 'htmlOptions' => array('style' => 'width: 70px'), 'filter' => array('1' => 'так', '0' => 'ні'), 'value' => '($data->isCopyEntrantDoc=="1")?("так"):("ні")'), array('name' => 'Facultet', 'htmlOptions' => array('style' => 'width: 150px'), 'filter' => $facs, 'value' => '$data->speciality->facultet->FacultetFullName'), array('name' => 'DocumentSubject1Value', 'htmlOptions' => array('style' => 'width: 50px')), array('name' => 'DocumentSubject2Value', 'htmlOptions' => array('style' => 'width: 50px')), array('name' => 'DocumentSubject3Value', 'htmlOptions' => array('style' => 'width: 50px')), array('name' => 'AtestatValue', 'htmlOptions' => array('style' => 'width: 50px')), array('class' => 'bootstrap.widgets.TbButtonColumn', 'template' => '{update}{view}', 'buttons' => array('update' => array('label' => 'Редагувати', 'icon' => 'pencil', 'url' => 'Yii::app()->createUrl("person/update", array("id"=>$data->idPerson))', 'options' => array('class' => 'btn')), 'view' => array('label' => 'Параметри вступу', 'icon' => 'icon-th-list', 'url' => 'Yii::app()->createUrl("person/view", array("id"=>$data->idPerson))', 'options' => array('class' => 'btn'))), 'htmlOptions' => array('style' => 'width: 90px;')))));
Beispiel #5
0
$statdetail_act = Yii::app()->createUrl("statistic/stat/viewall");
/* @var $statdetail_form TbActiveForm */
$statdetail_form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('id' => 'ratings', 'enableAjaxValidation' => false, 'method' => "GET", 'action' => $statdetail_act));
?>
            <div class="row-fluid">
                <?php 
$smodel = new Specialities();
?>
                <div class="span7">
                    <?php 
echo $statdetail_form->checkBoxListRow($smodel, 'modes', array('budget' => 'На бюджет', 'contract' => 'На контракт', 'pv' => 'Вступ першочергово', 'pzk' => 'Вступ поза конкурсом', 'electro' => 'Електронні заявки', 'originals' => 'Оригінали', 'Donetsk' => "Донецька обл.", 'Lugansk' => "Луганська обл.", 'Crimea' => "Крим"));
?>
                </div>
                <div class="span5">
                    <?php 
echo $statdetail_form->checkBoxListRow($smodel, 'statuses', Personrequeststatustypes::model()->getStatusList());
?>
                </div>
            </div>
            <div class="span12 row-fluid">
                <div class="span6">
                    <?php 
echo Chtml::label("ОКР", 'QualificationID');
?>
                    <?php 
echo CHtml::dropDownList('QualificationID', "", array("1" => "Бакалавр", "3" => "Спеціаліст", "2" => "Магістр"), array('empty' => '', 'class' => 'span12'));
?>
                </div>
                <div class="span6">
                    <?php 
echo Chtml::label("Секретар", 'secname');