diff --git a/backend/modules/calendar/views/calendar/alternative.php b/backend/modules/calendar/views/calendar/alternative.php deleted file mode 100644 index 4b20d21..0000000 --- a/backend/modules/calendar/views/calendar/alternative.php +++ /dev/null @@ -1,80 +0,0 @@ -title = 'Календарь ДР'; -?> - Html::a(' Назад', - Yii::$app->request->referrer, ['class' => 'btn btn-primary',]), - 'runBuild' => "function (date, content){ - this.build(date, content) - }", - 'updateContent' => "function(date){ - let monthNumber = date.substr(5, 2); - return fetch('../ajax/get-birthday-by-month?' + - 'month=' + monthNumber) - .then((res) => { - return res.json() - }) - }", - 'getColor' => "function (date, dates = null) { - for (let contentDate of dates) { - if (contentDate['dob'].substr(8, 2) == DateHelper.intToDate(date.getDate())) { - return 'success'; - } - } - }", - 'getHtmlContentForDate' => 'function (content, date) { - let flag = false - let html = ` - - - - - - - - `; - for (let i = 1; i <= content.length; i++) { - let model = content[i - 1]; - if (model["dob"].substr(8, 2) == date.substr(8, 2)) { - flag = true; - html += `` - html += `` - html += `` - html += `` - html += `` - html += `` - } - } - html += `
#ФИОДата рождения 
${i}${model["fio"]}${model["dob"]} - - - - - - -
` - if (flag) return html; - return "empty" - }' -]) ?> - -