<commit_before><?php

use yii\bootstrap\Collapse;
use yii\bootstrap\Modal;
use app\models\Category;
use app\models\Course;
use app\models\Timing;
use yii\helpers\Html;
use yii\helpers\Url;
use kartik\popover\PopoverX;
use yii\web\JsExpression;
use yii\bootstrap\ActiveForm;
use yii\helpers\ArrayHelper;
use kartik\date\DatePicker;
use kartik\color\ColorInput;
use yii\widgets\Pjax;
use kartik\grid\GridView;


$this->title = 'Курсы и расписание';
$this->params['breadcrumbs'][] = $this->title;
?>




<div style='display:flex; justify-content: center' class='hidden-sm hidden-xs'>
<?php

$categories = Category::find()->all();
$items = [];

foreach ($categories as $category) {
if ($modelCat!==false){
    $classMy = ($modelCat->id==$category->id)?"block-cat-select":"block-cat";
    echo "<div onClick=\"window.location.href='".Url::to(['site/courses','id'=>$category->id])."'\" align=center class='".$classMy." col-lg-2 col-md-2'><img class='img-responsive img-cat' src='".$category->img."'></img><br/>".$category->name."</div>"; 
} else {   
    echo "<div align=center class='block-cat col-lg-2 col-md-2'>".Html::a("<img class='img-responsive img-cat' src='".$category->img."'></img><br/>".$category->name,['courses','id'=>$category->id],['class'=>'not-hover','style'=>'color:inherit'])."</div>";
}
//echo "<div align=center  class='block-cat'><img class='img-responsive img-cat' src='".$category->img."'></img><br/>".$category->name."</div>";
}

?>
</div>

<div class='hidden-lg hidden-md'>
<?php

$categories = Category::find()->all();<commit_msg>Просмотр категорий и отправка заявки v.1<commit_after><?php

use yii\bootstrap\Collapse;
use yii\bootstrap\Modal;
use app\models\Category;
use app\models\Course;
use app\models\Timing;
use yii\helpers\Html;
use yii\helpers\Url;
use kartik\popover\PopoverX;
use yii\web\JsExpression;
use yii\bootstrap\ActiveForm;
use yii\helpers\ArrayHelper;
use kartik\date\DatePicker;
use kartik\color\ColorInput;
use yii\widgets\Pjax;
use kartik\grid\GridView;


$this->title = 'Курсы и расписание';
$this->params['breadcrumbs'][] = $this->title;
?>




<div style='display:flex; justify-content: center' class='hidden-sm hidden-xs'>
<?php

$categories = Category::find()->all();
$items = [];

foreach ($categories as $category) {
if ($modelCat!==false){
    $classMy = ($modelCat->id==$category->id)?"block-cat-select":"block-cat";
    echo "<div onClick=\"window.location.href='".Url::to(['site/courses','id'=>$category->id])."'\" align=center class='".$classMy." col-lg-2 col-md-2'><img class='img-responsive img-cat' src='".$category->img."'></img><br/>".$category->name."</div>"; 
} else {   
    echo "<div onClick=\"window.location.href='".Url::to(['site/courses','id'=>$category->id])."'\" align=center class='block-cat col-lg-2 col-md-2'><img class='img-responsive img-cat' src='".$category->img."'></img><br/>".$category->name."</div>";
}
//echo "<div align=center  class='block-cat'><img class='img-responsive img-cat' src='".$category->img."'></img><br/>".$category->name."</div>";
}

?>
</div>

<div class='hidden-lg hidden-md'>
<?php

$categories = Category::find()->all();
{'fraction_non_alphanumeric': 0.24120281509916827, 'fraction_numerical': 0.0028790786948176585, 'mean_word_length': 5.474120082815735, 'pattern_counts': {'":': 2, '<': 45, '<?xml version=': 0, '>': 79, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2322628', 'n_tokens_mistral': 1141, 'n_tokens_neox': 1140, 'n_words': 183}