Esempio n. 1
0
            </div>
            <div class="ui two column stackable grid">
                <div class="eight wide column">
                    <?php 
echo $model->isNewRecord ? $form->field($model, 'student_id', ['inputTemplate' => '<label style="padding: 0; color: #555; font-weight: 600;">Student</label>{input}', 'inputOptions' => ['class' => 'form-control pva-form-control']])->widget(Select2::classname(), ['data' => ArrayHelper::map(StudentForm::find()->orderBy(['first_name' => SORT_ASC])->all(), 'id', function ($model) {
    return implode(' ', [$model->first_name, $model->middle_name, $model->last_name]);
}), 'language' => 'en', 'options' => ['id' => 'auto-suggest', 'placeholder' => 'Select Student', 'class' => 'form-control pva-form-control'], 'size' => 'md', 'pluginOptions' => ['allowClear' => true], 'pluginEvents' => ['change' => "\n                                function(){\n                                    if(\$('#auto-suggest').val() === ''){\n                                        console.log('empty');\n                                        \$('.tiny.image').attr('src', '/proverbs/uploads/ui/user-blue.svg');\n                                        \$('#header-label').html('&nbsp;');\n                                        \$('#header-content').html('&nbsp;');\n                                        \$('#meta-content').html('&nbsp;');\n                                        \$('#left-content').html('&nbsp;');\n                                        \$('#right-content').addClass('hidden');\n                                    }else {\n                                        \$.ajax({\n                                            type: 'POST',\n                                            url: {$card_url} + JSON.stringify({sid:\$('#auto-suggest').val(),}),\n                                            contentType: 'application/json; charset=utf-8',\n                                            dataType: 'json',\n                                            success: function(data){\n\n                                                \$('#header-label').html('ID# ' + '<strong>' + data.sid + '</strong>');\n                                                \$('#header-content').html(data.name);\n                                                \$('#meta-content').html(data.nick);\n                                                \$('#left-content').html(data.level);\n\n                                                if(data.spd === 0){\n                                                    \$('#right-content').removeClass('hidden');\n                                                }\n\n                                                if(data.img !== 'empty'){\n                                                    \$('.tiny.image').attr('src', data.img);\n                                                }else {\n                                                    \$('.tiny.image').attr('src', '/proverbs/uploads/ui/user-blue.svg');\n                                                }\n                                            }\n                                        });\n                                    }\n                                }\n                            "]])->label(false) : '';
?>
                </div>
                <div class="eight wide column"></div>
            </div>
            <div class="ui two column stackable grid">
                <?php 
if (!$model->isNewRecord) {
    echo '<div class="ui sixteen wide column">';
    echo UiTable::widget(['model' => $model, 'options' => ['class' => 'ui fixed very basic table'], 'attributes' => [['attribute' => 'assessment_id', 'value' => $model->assessment_id], ['attribute' => 'student_id', 'value' => DataHelper::name($model->student->first_name, $model->student->middle_name, $model->student->last_name)], 'paid_amount:currency', 'created_at:date', 'updated_at:date']]);
    echo '</div>';
}
?>
                <div class="eight wide column">

                    <?php 
if ($model->isNewRecord) {
    echo $form->field($model, 'paid_amount', ['inputTemplate' => '<label for="">Amount</label>{input}', 'inputOptions' => []])->label(false)->textInput(['id' => 'pa', 'class' => 'form-control pva-form-control', 'style' => 'text-align: right;', 'placeholder' => '0.00'], ['maxlength' => true]);
}
?>
                </div>
                <div class="eight wide column">
                  <?php 
echo $form->field($model, 'payment_description', ['inputTemplate' => '<div style="margin-top: 0;"><label style="padding: 0; color: #555; font-weight: 600;">Description</label>{input}</div>'])->dropDownList([0 => 'Tuition Fee', 2 => 'Entrance Exam', 3 => 'Others'], ['class' => 'form-control pva-form-control'])->label(false);
?>
Esempio n. 2
0
<?php

use yii\helpers\ArrayHelpers;
use yii\helpers\Html;
use app\models\UiTable;
use yii\widgets\Pjax;
$avatar = Yii::$app->request->baseUrl . Yii::$app->params['avatar'];
!empty($model->profile_image) ? $img = Yii::$app->request->baseUrl . '/uploads/students/' . $model->profile_image : ($img = $avatar);
!empty($model->profile_image) ? $g = Yii::$app->request->baseUrl . '/uploads/guardians/' . $model->profile_image : ($g = $avatar);
!empty(trim($model->middle_name)) ? $middle = ucfirst(substr($model->middle_name, 0, 1)) . '.' : ($middle = '');
Pjax::begin(['id' => 'user-detail', 'timeout' => 60000]);
?>
<div class="ui segment">
	<div class="ui inverted dimmer">
	    <div class="ui massive text loader"></div>
	</div>
	<?php 
echo Html::a('View Profile', ['/profile/view', 'id' => $profile->id], ['class' => 'ui right floated huge basic button']);
?>
	<?php 
echo UiTable::widget(['model' => $model, 'options' => ['class' => 'ui fixed very basic table'], 'attributes' => ['id', ['attribute' => 'status', 'value' => $model->getStatusName()], ['attribute' => 'username', 'value' => $model->username], ['attribute' => 'email', 'value' => $model->email], 'password_hash', ['attribute' => 'item_name', 'value' => ucfirst($model->getRoleName())], 'auth_key', 'password_reset_token', 'account_activation_token', 'created_at:date', 'updated_at:date']]);
Pjax::end();
?>
</div>
Esempio n. 3
0
use yii\helpers\ArrayHelpers;
use yii\helpers\Html;
use app\models\UiTable;
use yii\widgets\Pjax;
$avatar = Yii::$app->request->baseUrl . Yii::$app->params['avatar'];
!empty($model->student->students_profile_image) ? $img = Yii::$app->request->baseUrl . '/uploads/students/' . $model->student->students_profile_image : ($img = $avatar);
Pjax::begin(['id' => 'enroll-detail', 'timeout' => 60000]);
?>
<div class="ui segment">
	<div class="ui inverted dimmer">
	    <div class="ui massive text loader"></div>
	</div>
	<?php 
if (count($payments) === 0) {
    ?>
		<?php 
    echo Html::a('Pay Enrolment Fee', ['/payments/new', 'sid' => $model->student->id, 'aid' => $assessment->id, 'type' => 1], ['class' => 'ui right floated big basic button']);
    ?>
	<?php 
}
?>
	<?php 
echo Html::a('View Assessment', ['/assessment/view', 'id' => $assessment->id], ['class' => 'ui right floated big basic button']);
?>
	<br><br>
	<?php 
echo UiTable::widget(['model' => $model, 'options' => ['class' => 'ui fixed very basic table'], 'attributes' => [['attribute' => 'enrollment_status', 'value' => $model->statusName], 'student_id', ['attribute' => 'student', 'value' => implode(' ', [$model->student->first_name, !empty(trim($model->student->middle_name)) ? $middle = ucfirst(substr($model->student->middle_name, 0, 1)) . '.' : ($middle = ''), $model->student->last_name])], ['attribute' => 'grade_level_id', 'value' => $model->levelName], ['attribute' => 'section_id', 'value' => $model->section->section_name]]]);
?>
</div>
<?php 
Pjax::end();
Esempio n. 4
0
echo $g;
?>
" style="background: #e9eaed;">
					</div>
					<div class="content">
						<?php 
echo UiTable::widget(['model' => $model, 'options' => ['class' => 'ui fixed very basic table'], 'attributes' => ['guardians_name', 'guardians_relation_to_student', 'guardians_address', 'guardians_occupation', 'guardians_employer', 'guardians_phone', 'guardians_mobile']]);
?>
					</div>
				</div>
			</div>
		</div>
	</div></div>
<div class="ui tab segment" data-tab="fourth">
	<div class="ui inverted dimmer">
	    <div class="ui massive text loader"></div>
	</div>
	<?php 
echo UiTable::widget(['model' => $model, 'options' => ['class' => 'ui fixed very basic table'], 'attributes' => ['previous_school_name', ['attribute' => 'previous_school_grade_level', 'value' => $model->getGradeLevelId($model->grade_level_id)], 'previous_school_address', 'previous_school_description', 'previous_school_average_grade', 'previous_school_teacher_in_charge', 'previous_school_principal', ['attribute' => 'previous_school_from_school_year', 'value' => $model->getCarbonDate($model->previous_school_from_school_year)], ['attribute' => 'previous_school_to_school_year', 'value' => $model->getCarbonDate($model->previous_school_to_school_year)], 'previous_school_phone', 'previous_school_mobile']]);
?>
</div>
<div class="ui tab segment" data-tab="fifth">
	<div class="ui inverted dimmer">
	    <div class="ui massive text loader"></div>
	</div>
	<?php 
echo UiTable::widget(['model' => $model, 'options' => ['class' => 'ui fixed very basic table'], 'attributes' => [['attribute' => 'student_photo', 'value' => $model->getSubmitted($model->student_photo)], ['attribute' => 'guardians_photo', 'value' => $model->getSubmitted($model->guardians_photo)], ['attribute' => 'report_card', 'value' => $model->getSubmitted($model->report_card)], ['attribute' => 'birth_certificate', 'value' => $model->getSubmitted($model->birth_certificate)], ['attribute' => 'good_moral', 'value' => $model->getSubmitted($model->good_moral)], ['attribute' => 'student_has_sibling_enrolled', 'value' => $model->getHasSiblingEnrolled($model->student_has_sibling_enrolled)]]]);
Pjax::end();
?>
</div>
Esempio n. 5
0
<?php

use yii\helpers\ArrayHelpers;
use yii\helpers\Html;
use app\models\UiTable;
use yii\widgets\Pjax;
Pjax::begin(['id' => 'profile-detail', 'timeout' => 60000]);
?>
<div class="ui segment">
	<div class="ui inverted dimmer">
	    <div class="ui massive text loader"></div>
	</div>
	<?php 
echo UiTable::widget(['model' => $model, 'options' => ['class' => 'ui fixed very basic table'], 'attributes' => ['username', 'first_name', 'middle_name', 'last_name', 'email', ['attribute' => 'gender', 'value' => $model->getGenderName($model->gender)], 'birth_date:date', 'address', 'phone', 'mobile']]);
Pjax::end();
?>
</div>
Esempio n. 6
0
	<div class="ui inverted dimmer">
	    <div class="ui massive text loader"></div>
	</div>
	<?php 
if (count($payments) > 0) {
    ?>
		<?php 
    echo Html::a('New Payment', ['/payments/new', 'sid' => $model->enrolled->student->id, 'aid' => $model->id], ['class' => 'ui right floated big basic button']);
    ?>
	<?php 
} else {
    ?>
		<?php 
    echo Html::a('Pay Enrolment Fee', ['/payments/new', 'sid' => $model->enrolled->student->id, 'aid' => $model->id, 'type' => 1], ['class' => 'ui right floated big basic button']);
    ?>
	<?php 
}
?>
	<?php 
if (count($payments) > 0) {
    for ($i = 0; $i < count($payments); $i++) {
        echo implode('', ['<div class="ui two stackable grid">', '<div class="eight wide column">', '<label><strong>', DataHelper::carbonDate($payments[$i]->created_at), '</strong></label>', '</div>', '<div class="eight wide column">', UiTable::widget(['model' => $payments[$i], 'options' => ['class' => 'ui fixed basic payment-history table'], 'attributes' => [['attribute' => 'payment_description', 'value' => DataHelper::paymentDescription($payments[$i]->payment_description)], ['attribute' => 'transaction', 'value' => DataHelper::transaction($payments[$i]->transaction)], 'paid_amount:currency']]), '</div>', '</div>', '<div class="ui divider"></div>']);
    }
} else {
    echo 'No payment transactions yet.';
}
?>

</div>
<?php 
Pjax::end();
Esempio n. 7
0
<?php

use yii\helpers\ArrayHelpers;
use yii\helpers\Html;
use app\models\UiTable;
use app\models\DataHelper;
use yii\widgets\Pjax;
Pjax::begin(['id' => 'assign-subject-detail', 'timeout' => 60000]);
?>
<div class="ui segment">
	<div class="ui inverted dimmer">
	    <div class="ui massive text loader"></div>
	</div>
	<?php 
echo UiTable::widget(['model' => $model, 'options' => ['class' => 'ui fixed very basic table'], 'attributes' => [['attribute' => 'sy_id', 'value' => DataHelper::schoolYear($model->sy_id)], ['attribute' => 'teacher_id', 'value' => DataHelper::name($model->teacher->first_name, $model->teacher->middle_name, $model->teacher->last_name)], ['attribute' => 'grade_level_id', 'value' => $model->gradeLevel->name], 'section.section_name']]);
?>
</div>
<?php 
Pjax::end();
Esempio n. 8
0
<?php

use yii\helpers\ArrayHelpers;
use yii\helpers\Html;
use app\models\UiTable;
use yii\widgets\Pjax;
$avatar = Yii::$app->request->baseUrl . Yii::$app->params['avatar'];
!empty(trim($model->applicant['middle_name'])) ? $middle = ucfirst(substr($model->applicant['middle_name'], 0, 1)) . '.' : ($middle = '');
$this->title = implode(' ', [$model->applicant['first_name'], $middle, $model->applicant['last_name']]);
Pjax::begin(['id' => 'entrance-exam-detail', 'timeout' => 60000]);
?>
<div class="ui segment">
    <div class="ui inverted dimmer">
        <div class="ui massive text loader"></div>
    </div>
	<?php 
echo UiTable::widget(['model' => $model, 'options' => ['class' => 'ui fixed very basic table'], 'attributes' => ['applicant_id', 'english', 'reading_skills', 'science', 'comprehension', ['attribute' => 'remarks', 'value' => $model->getRemarks($model->remarks)], ['attribute' => 'recommendations', 'value' => $model->getRecommendations($model->recommendations)], 'created_at:date', 'updated_at:date']]);
?>
</div>
<?php 
Pjax::end();
Esempio n. 9
0
use yii\helpers\ArrayHelpers;
use yii\helpers\Html;
use app\models\UiTable;
use app\models\Options;
use yii\widgets\Pjax;
Pjax::begin(['id' => 'profile-detail', 'timeout' => 60000]);
?>
<div class="ui two column stackable grid">
    <div class="thirteen wide column">
        <div class="ui segment">
            <div class="column">
                <div class="ui inverted dimmer">
                    <div class="ui massive text loader"></div>
                </div>
                <?php 
echo UiTable::widget(['model' => $model, 'options' => ['class' => 'ui fixed very basic table'], 'attributes' => ['id', 'request_text', ['attribute' => 'user_id', 'value' => $model->getUsername($model->user_id)], ['attribute' => 'student_id', 'value' => $model->getStudentDetails($model->student_id)], ['attribute' => 'request_status', 'value' => $model->getStatus($model->request_status)], 'created_at:date', 'updated_at:date']]);
?>
            </div>
        </div>
    </div>
    <div class="three wide column">
        <div class="column">
            <?php 
echo Options::render(['scenario' => Yii::$app->controller->action->id, 'id' => $model->id]);
?>
        </div>
    </div>
<?php 
Pjax::end();
?>
</div>
Esempio n. 10
0
<?php

use yii\helpers\ArrayHelpers;
use yii\helpers\Html;
use app\models\UiTable;
use yii\widgets\Pjax;
Pjax::begin(['id' => 'section-detail', 'timeout' => 60000]);
?>
<div class="ui segment">
	<div class="ui inverted dimmer">
	    <div class="ui massive text loader"></div>
	</div>
	<?php 
echo UiTable::widget(['model' => $model, 'options' => ['class' => 'ui fixed very basic table'], 'attributes' => ['section_name', ['attribute' => 'grade_level_id', 'value' => $model->getLeveLName($model->grade_level_id)], 'created_at:date', 'updated_at:date']]);
?>
    <?php 
Pjax::end();
?>
</div>
Esempio n. 11
0
<?php

use yii\helpers\ArrayHelpers;
use yii\helpers\Html;
use app\models\UiTable;
use yii\widgets\Pjax;
Pjax::begin(['id' => 'school-year-detail', 'timeout' => 60000]);
?>
<div class="ui segment">
	<div class="ui inverted dimmer">
	    <div class="ui massive text loader"></div>
	</div>
	<?php 
echo UiTable::widget(['model' => $model, 'options' => ['class' => 'ui fixed very basic table'], 'attributes' => ['id', 'sy', 'created_at:date', 'updated_at:date']]);
Pjax::end();
?>
</div>