<form name="add" action="prosm.php" method="post">
Выберите дату с <input type="date" name="Data1"> по <input type="date" name="Data2"><br>
<select name="Subdivision">
<option selected value="*">Все подразделения</option>
<option value="1 отделение">1 отделение</option>
<option value="2 отделение">2 отделение</option>
<option value="3 отделение">3 отделение</option>
<option value="4 отделение">4 отделение</option>
<option value="5 отделение">5 отделение</option>
</select>
<input type="text" name="type_problem" pattern="[A-Za-zА-Яа-яЁё]{1,}" placeholder="Тип проблемы"><br>
<input type="submit" value="Просмотр">
<div id="printResult"></div>
</form>
echo '<pre>';
print_r($_POST);
echo '</pre>';
function startAjax(form, url) {
/* ... */
request.open ('POST', 'prosm.php', true);
request.send (new FormData(form));
});
<form ...>
<input type="button" value="Просмотр" onclick="startAjax(this, 'prosm.php')">
</form>
$currentDate = date("Y-m-d");
$showStatus = $currentDate >= '2019-02-18' && $currentDate < '2019-02-25';
$fecha = date('Y-m-d', strtotime('+1 day'));
foreach ($list_earlier as $list) {
if ($list->date == $fecha) {
$statusClass = $showStatus ? $list->status : '';
echo '<a href="' . $list->url . '" target="_blank" class="box__link ' .$statusClass . '">
<span class="b__link__item item__icon">' .$list->icon. '</span>
<span class="b__link__item item__name">' .$list->name. '</span>
<span class="b__link__item item__rate">x' .$list->rate. '</span>
<span class="b__link__item item__date">' .Yii::$app->formatter->asDate($list->date). '
</span>
</a>';
}
}