Example #1
0
<?php

use app\helpers\Html;
\app\widgets\FileAsset::register($this);
echo $content = Html::button($params['btn-text'], ['class' => 'choose-file-btn form-control btn', 'id' => 'btn' . $params['id'], 'value' => '1', 'type' => 'button', 'onclick' => "choose_file('{$params['id']}')"]);
echo '<input type="hidden" id="' . $params['id'] . '" name="' . $params['name'] . '">';
$files = '';
foreach ($params['files'] as $k => $v) {
    if (isset($model) && $model->{$params}['pureAttribute'] == $v['id']) {
        $is_checked = true;
    } else {
        $is_checked = false;
    }
    $files .= \app\globals\ApiGlobals::file_row('radio', $v['vneshnee_imya_fajla'], $v['id'], $params['id'], $is_checked);
}
if (!$files) {
    $files = '\\';
}
$files_from = '<div class="dark_fon hidden" tabindex="10" onkeydown="darkKeyDown(event,\\\'' . $params['id'] . '\\\')" id="' . $params['id'] . '_form">\\
         <div class="add_files_form">\\
              <div class="file_add_section">\\
                <form id="add_files' . $params['id'] . '"  method="POST" action="" enctype="multipart/form-data">\\
                    <label for="' . $params['id'] . '_input" id="lable' . $params['id'] . '" class="add-file-button btn btn-primary">Загрузить файл</label>\\
                    <input onchange="change_file' . $params['id'] . '()" type="file" class="file-input" id="' . $params['id'] . '_input" name="' . $params['id'] . '_input[]">\\
                    <div class="myprogress hidden" id="progress' . $params['id'] . '">\\
                        <div class="bar"></div>\\
                        <div class="percent">0%</div >\\
                    </div>\\
                </form>\\
              </div>\\
              <div class="center_files_form">\\
Example #2
0
            <?php 
echo Html::label('Период прохождения аттестации', 'periods', []);
?>
            <?php 
echo Html::dropDownList('periods', null, $periods_for_dropdown, ['id' => 'periods', 'class' => 'form-control inline-block', 'ng-model' => 's.period', 'ng-disabled' => 's.allUnfinished']);
?>
        </div>
        <div class="inline-block checkbox filter-block">
            <label for="all_unfinished">
                <input type="checkbox" id="all_unfinished" ng-change="s.toggleUnfinished()" ng-model="s.allUnfinished"/>
                Все необработанные
            </label>
        </div>
        <div class="inline-block relative" style="top: -1px">
            <?php 
echo Html::button('Загрузить список заявлений', ['class' => 'btn btn-primary', 'ng-click' => 's.loadZayavleniya()']);
?>
        </div>
        <p></p>
        <div>
            <table ng-class="s.spisok.length > 0 ? '' : 'hidden' " class="tb">
                <tr class="thead">
                    <td>ФИО</td>
                    <td>Должность</td>
                    <td></td>
                </tr>
                 <tr ng-repeat="item in s.spisok">
                     <td>{{item.familiya+' '+item.imya+' '+item.otchestvo}}</td>
                     <td>{{item.organizaciya_nazvanie+', '+item.dolzhnost_nazvanie}}</td>
                     <td><button class="btn btn-primary" ng-click="s.putMarks(item.id)">Поставить оценки</button></td>
                 </tr>