} $(".essay_buttons, .essay_confirmed").addClass("hide"); $(".essay_canceled").removeClass("hide"); }) $("#filter-form").on("change", function(){ this.submit(); }) ', yii\web\View::POS_READY); $this->title = 'Модерация работ'; ?> <div> <?php echo Html::beginForm('', 'post', ['id' => 'filter-form', 'class' => 'col-md-3']); echo Html::dropDownList("filter_week", $filter_week, Weeks::getWeeksDropDown(), ['prompt' => 'Неделя розыгрыша', 'class' => 'form-control']); echo "<br/>"; echo Html::dropDownList("filter_status", $filter_status, [1 => 'Не обработано', 2 => 'Принято', 3 => 'Не принято'], ['prompt' => 'Статус обработки', 'class' => 'form-control ']); echo Html::endForm(); ?> <div class="clearfix"></div> <br/> <?php if (count($model) > 0) { ?> <table class="table table-hover shell-table"> <thead> <tr> <th>Фамилия</th> <th>Имя</th>
</strong></p> </div> <?php if (count($wEssays) > 0) { ?> <div class="gallery-wrapper" id="tabs"> <div class="nav-gallery"> <ul> <?php $i = 0; foreach ($wEssays as $key => $uEssays) { $i++; ?> <li class="<?php echo Weeks::isCurrentVote($key) ? 'ui-tabs-active ui-state-active' : ''; ?> "><a href="#week_<?php echo $i; ?> " >Неделя<br/>с <?php echo date('d.m.Y', strtotime($weeks[$key]['date_vote_start'])); ?> по <?php echo date('d.m.Y', strtotime($weeks[$key]['date_vote_end'])); ?> </a></li> <?php } ?> </ul>