EIOS/rabprog/tpl/templates_c/3a2b07832d00a8c3043a0eb2680...

75 lines
3.0 KiB
PHP
Raw Normal View History

2023-12-28 15:39:22 +03:00
<?php
/* Smarty version 4.0.0-rc.0, created on 2023-09-04 12:14:59
from '/home/admin/web/eios.mkgtu.ru/public_html/rabprog/tpl/mod_header.html' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '4.0.0-rc.0',
'unifunc' => 'content_64f5a013b032e1_31990957',
'has_nocache_code' => false,
'file_dependency' =>
array (
'3a2b07832d00a8c3043a0eb2680b45c08c125cb6' =>
array (
0 => '/home/admin/web/eios.mkgtu.ru/public_html/rabprog/tpl/mod_header.html',
1 => 1679327906,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_64f5a013b032e1_31990957 (Smarty_Internal_Template $_smarty_tpl) {
?><header class="navbar navbar-dark sticky-top bg-dark flex-md-nowrap p-0 shadow">
<a class="navbar-brand col-md-3 col-lg-2 me-0 px-3" href="#">Рабочие программы</a>
<button class="navbar-toggler position-absolute d-md-none collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#sidebarMenu" aria-controls="sidebarMenu" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="container-fluid">
<div class="row w-100">
<div class="col-md-6">
<input class="form-control form-control-dark w-100" type="text" placeholder="Добро пожаловать" aria-label="Search" id="search_input">
</div>
<div class="col-md-6">
<a href="#" class="btn <?php if ($_smarty_tpl->tpl_vars['year_cur']->value == 2022) {?>btn-success<?php } else { ?>btn-secondary<?php }?> year_chng" data-year="2022">2022</a>
<a href="#" class="btn <?php if ($_smarty_tpl->tpl_vars['year_cur']->value == 2023) {?>btn-success<?php } else { ?>btn-secondary<?php }?> year_chng" data-year="2023">2023</a>
</div>
</div>
</div>
<div class="navbar-nav">
<div class="nav-item text-nowrap">
<a class="nav-link px-3" href="#">Помощь</a>
</div>
</div>
</header>
<?php echo '<script'; ?>
>$(document).ready(function(){
$(".year_chng").click(function(e){
let year = $(this).data('year');
$.ajax({url: '/rabprog/',cache:false,datatype:'json',method:'post',
data: 'year_change='+year,
success:function(data){
window.location.reload();
}
});
return false;
});
$("#search_input").keyup(function(e){
let word = $(this).val();
if(e.keyCode == 13){
$(this).trigger("enterKey");
window.ToastShow1("Поиск",'ищем...',0);
$("#main_body").html('ищем...');
$.ajax({url: '/rabprog/search/',cache:false,datatype:'json',method:'post',
data: 'ajdes=SEASRCH&word='+word,
success:function(data){
$("#main_body").html(data.html);
}
});
}
});
})<?php echo '</script'; ?>
><?php }
}