Example #1
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;')))));
Example #2
0
echo $form->hiddenField($model, 'QualificationID');
echo $form->labelEx($model, 'QualificationID');
?>
                    <?php 
echo $form->dropDownList($model, 'QualificationID', CHtml::listData(Qualifications::model()->findAll("idQualification = 2 or idQualification = 3"), 'idQualification', 'QualificationName'), array('disabled' => !$model->isNewRecord, 'class' => "span12", 'id' => "QualificationID", 'onchange' => "PSN.changeQType(this ,'" . CController::createUrl('personspeciality/create', array("personid" => $personid, "reload" => 1)) . "');"));
?>
                    <?php 
//echo $form->error($model,'QualificationID');
?>
                </div>
                <div class="span3">
                    <?php 
echo $form->labelEx($model, 'EducationFormID');
?>
                    <?php 
echo $form->dropDownList($model, 'EducationFormID', CHtml::listData(Personeducationforms::model()->findAll("idPersonEducationForm in (1,2)"), 'idPersonEducationForm', 'PersonEducationFormName'), array('empty' => '', 'disabled' => !$model->isNewRecord, 'class' => "span12", 'onchange' => "PSN.onFacChange(this, '#" . CHtml::activeId($model, "SepcialityID") . "','" . CController::createUrl('personspeciality/speciality') . "');"));
?>
                    <?php 
//echo $form->error($model,'EducationFormID');
?>
                </div>
                <div class="span4">
                    <?php 
if (empty($model->sepciality)) {
    $idFacultet = 0;
} else {
    $idFacultet = $model->sepciality->FacultetID;
}
echo CHtml::label("Факультет", "idFacultet");
?>
                    <?php 
Example #3
0
            </div>
             <div class ="span6" >
                 <?php 
echo $form->dropDownListRow($model, 'CourseID', CHtml::listData(Courses::model()->findAll(), "idCourse", "CourseName"), array('empty' => 'Довільний', 'class' => 'span12'));
?>
             </div>
        </div>
        <div class="row-fluid">
            <div class ="span3" >
                <?php 
echo $form->dropDownListRow($model, 'QualificationID', CHtml::listData(Qualifications::model()->findAll(), "idQualification", "QualificationName"), array('empty' => 'Довільний', 'class' => 'span12'));
?>
            </div>
             <div class ="span3" >
                <?php 
echo $form->dropDownListRow($model, 'EducationFormID', CHtml::listData(Personeducationforms::model()->findAll(), 'idPersonEducationForm', 'PersonEducationFormName'), array('empty' => 'Довільний', 'class' => 'span12'));
?>
            </div>
            <div class ="span6" >
                 <?php 
echo $form->textFieldRow($model, 'SpecMask', array('class' => 'span12'));
?>
             </div>
        </div>
        <div class="row-fluid">
            <div class ="span3" >
                 <?php 
echo $form->textFieldRow($model, 'printIP', array('class' => 'span12'));
?>
             </div>
            <div class ="span3" >
 /**
  * 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 = Personeducationforms::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }
Example #5
0
    Параметри звіту:
<div class="row-fluid">
    <div class ="span6">
         <?php 
echo CHtml::label("Спеціальність", 'SpecialityID');
?>
         <?php 
echo CHtml::dropDownList('SpecialityID', "", Specialities::DropDown(0), array('empty' => '', 'class' => "span12"));
?>
    </div>    
    <div class ="span2">
         <?php 
echo CHtml::label("Форма обучения", 'eduFormID');
?>
         <?php 
echo CHtml::dropDownList('eduFormID', "", CHtml::listData(Personeducationforms::model()->findAll(), 'idPersonEducationForm', 'PersonEducationFormName'), array('empty' => '', 'class' => "span12"));
?>
    </div>    
    <div class="span2">
		<?php 
echo Chtml::label("Окр", 'idOKR');
?>
		<?php 
echo CHtml::dropDownList('idOKR', "", CHtml::listData(Qualifications::model()->findAll(), 'idQualification', 'QualificationName'), array('empty' => '', 'class' => "span12"));
?>
		
    </div>
    <div class ="span2">
                    <?php 
echo CHtml::label("Дата", 'Date');
?>
Example #6
0
                </div>
                <div class="span2">
                    <?php 
        echo $form->label($model, 'PaymentTypeID');
        ?>
                    <?php 
        echo $form->dropDownList($model, 'PaymentTypeID', CHtml::listData(Personeducationpaymenttypes::model()->findAll(), 'idEducationPaymentTypes', 'EducationPaymentTypesName'), array("disabled" => "disabled", 'class' => "span12", "id" => "PaymentTypeID"));
        ?>
                </div>
                <div class="span2">
                    <?php 
        echo $form->label($model, 'EducationFormID');
        ?>
                    <?php 
        echo $form->dropDownList($model, 'EducationFormID', CHtml::listData(Personeducationforms::model()->findAll(), 'idPersonEducationForm', 'PersonEducationFormName'), array("disabled" => "disabled", "id" => "EducationFormID", 'class' => "span12"));
        ?>
                </div>
                  
                <div class="span1"> 
                    <span>&nbsp;</span>
                  <?php 
        $url = Yii::app()->createUrl("personspeciality/delete", array("id" => $model->idPersonSpeciality));
        $this->widget("bootstrap.widgets.TbButton", array('type' => 'danger', 'label' => '', 'size' => null, 'icon' => "icon-trash", 'htmlOptions' => array("style" => "margin-top: 2px;", 'title' => "Видалити спеціальність", 'class' => "span12", 'onclick' => "PSN.delSpec(this,'{$url}');")));
        ?>
                </div>
                 <div class="span1"> 
                     <span>&nbsp;</span>
                  <?php 
        $url = Yii::app()->createUrl("personspeciality/update", array("id" => $model->idPersonSpeciality));
        $this->widget("bootstrap.widgets.TbButton", array('label' => '', 'size' => null, 'icon' => "icon-edit", 'htmlOptions' => array("style" => "margin-top: 2px;", 'title' => "Видалити спеціальність", 'class' => "span12", 'onclick' => "PSN.editSpec(this,'{$url}');")));
Example #7
0
echo $form->labelEx($model, 'number');
?>
        <?php 
echo $form->textField($model, 'number', array("class" => "span12", 'size' => 60, 'maxlength' => 100, 'readonly' => 'readonly'));
?>
        <?php 
echo $form->error($model, 'number');
?>
    </div>
    <div class="row-fluid" >
         <div class ="span2">
            <?php 
echo $form->labelEx($model, 'EducationFormID');
?>
            <?php 
echo $form->dropDownList($model, 'EducationFormID', CHtml::listData(Personeducationforms::model()->findAll(), "idPersonEducationForm", "PersonEducationFormName"), array('class' => 'span12', "id" => "EducationFormID", 'onchange' => "PSN.changeFacultet(this,'" . Yii::app()->createUrl("personspeciality/speciality") . "')"));
?>
        </div>
         <div class ="span4">
            <?php 
echo $form->labelEx($model, 'FacultetID');
?>
            <?php 
echo $form->dropDownList($model, 'FacultetID', CHtml::listData(Facultets::model()->findAll(), "idFacultet", "FacultetFullName"), array('class' => 'span12', "id" => "FacultetID", 'empty' => "", 'onchange' => "PSN.changeFacultet(this,'" . Yii::app()->createUrl("personspeciality/speciality") . "')"));
?>
        </div>
        <div class ="span6">
            <?php 
echo $form->labelEx($model, 'SpecialityID');
?>
            <?php 
Example #8
0
 /**
  * Метод асинхронно повертає список форм навчання
  */
 public function actionEduforms()
 {
     $models = Personeducationforms::model()->findAll('1 ORDER BY PersonEducationFormName ASC');
     $result = array();
     foreach ($models as $model) {
         /* @var $model Personeducationforms */
         $result[] = array('text' => str_replace('"', "'", $model->PersonEducationFormName), 'id' => $model->idPersonEducationForm);
     }
     echo CJSON::encode($result);
 }
Example #9
0
<?php

/* @var $this Specialitiescontroller */
/* @var $model Specialities */
$this->breadcrumbs = array('Specialities' => array('index'), 'Довідник ');
$this->menu = array(array('label' => 'Додати запис', 'url' => array('create'), 'icon' => "icon-plus"));
?>

<h1>Довідник "Спеціальності"</h1>


<?php 
$controller = $this;
$this->widget('bootstrap.widgets.TbGridView', array('id' => 'specialities-grid', 'type' => 'striped bordered condensed', 'dataProvider' => $model->search(), 'filter' => $model, 'columns' => array(array('name' => 'SPEC', 'header' => 'Назва спеціальності', 'value' => '$data->SPEC', 'htmlOptions' => array('class' => 'span6')), array('name' => 'FacultetID', 'header' => 'Факультет', 'filter' => CHtml::listData(Facultets::model()->findAll(), "idFacultet", "FacultetFullName"), 'value' => '$data->facultet->FacultetFullName', 'htmlOptions' => array('class' => 'span2')), array('name' => 'PersonEducationFormID', 'header' => 'Форма', 'filter' => CHtml::listData(Personeducationforms::model()->findAll(), "idPersonEducationForm", "PersonEducationFormName"), 'value' => '$data->eduform->PersonEducationFormName', 'htmlOptions' => array('class' => 'span1')), array('class' => 'bootstrap.widgets.TbEditableColumn', 'name' => 'SpecialityBudgetCount', 'header' => 'Б', 'editable' => array('url' => $this->createUrl('specialities/xedit'), 'placement' => 'right', 'inputclass' => 'span3'), 'headerHtmlOptions' => array('title' => 'Кількість бюджетних місць'), 'htmlOptions' => array('class' => 'span1')), array('class' => 'bootstrap.widgets.TbEditableColumn', 'name' => 'SpecialityContractCount', 'header' => 'К', 'editable' => array('url' => $this->createUrl('specialities/xedit'), 'placement' => 'right', 'inputclass' => 'span3'), 'headerHtmlOptions' => array('title' => 'Кількість контракних місць'), 'htmlOptions' => array('class' => 'span1')), array('class' => 'bootstrap.widgets.TbEditableColumn', 'name' => 'Quota1', 'header' => 'ПК', 'editable' => array('url' => $this->createUrl('specialities/xedit'), 'placement' => 'right', 'inputclass' => 'span3'), 'headerHtmlOptions' => array('title' => 'Квота для тих, хто поступає поза конкурсом'), 'htmlOptions' => array('class' => 'span1')), array('class' => 'bootstrap.widgets.TbEditableColumn', 'name' => 'ZnoKoef1', 'header' => 'K1', 'editable' => array('url' => $this->createUrl('specialities/xedit'), 'placement' => 'right', 'inputclass' => 'span3'), 'headerHtmlOptions' => array('title' => 'Квота для тих, хто поступає поза конкурсом'), 'htmlOptions' => array('class' => 'span1')), array('class' => 'bootstrap.widgets.TbEditableColumn', 'name' => 'ZnoKoef2', 'header' => 'K2', 'editable' => array('url' => $this->createUrl('specialities/xedit'), 'placement' => 'right', 'inputclass' => 'span3'), 'headerHtmlOptions' => array('title' => 'Квота для тих, хто поступає поза конкурсом'), 'htmlOptions' => array('class' => 'span1')), array('class' => 'bootstrap.widgets.TbEditableColumn', 'name' => 'ZnoKoef3', 'header' => 'K3', 'editable' => array('url' => $this->createUrl('specialities/xedit'), 'placement' => 'right', 'inputclass' => 'span3'), 'headerHtmlOptions' => array('title' => 'Квота для тих, хто поступає поза конкурсом'), 'htmlOptions' => array('class' => 'span1')), array('header' => 'ЦН', 'value' => function ($data) use($controller) {
    /* @var $data Specialities */
    $types = array('info', 'warning', 'success', 'important', 'inverse');
    $i = 0;
    foreach ($data->specquotes as $squota) {
        echo '<a href="' . Yii::app()->CreateUrl('specialityquotes/update', array('id' => $squota->idSpecialityQuotes)) . '" target="_blank" >';
        $controller->widget('bootstrap.widgets.TbLabel', array('type' => $types[$i], 'label' => $squota->BudgetPlaces, 'htmlOptions' => array('title' => $squota->quota->QuotaName, 'style' => 'font-size: 12pt !important; width: 21px; text-align: center; font-family: Verdana;')));
        echo "</a> &nbsp;";
        $i++;
    }
}, 'headerHtmlOptions' => array('title' => 'Квота для тих, хто поступає за цільовим направленням'), 'htmlOptions' => array('class' => 'span1')), array('class' => 'bootstrap.widgets.TbButtonColumn', 'template' => '{view} {update} {delete}', 'buttons' => array(), 'htmlOptions' => array('class' => 'span2')))));