return array(
'working/([0-9]+)/([0-9]+)' => 'working/getTestByNumq/$1/$2',
'work' => 'work/view',
'job/([0-9]+)' => 'job/getTest/$1',
'article/([0-9]+)' => 'article/view/$1',
'kurs' => 'kurs/index',
'' => 'main/index',
);
$result = $db->query ("SELECT * FROM jobs WHERE id = " . $id);
$result->setFetchMode(PDO::FETCH_ASSOC);
if(!$result->fetch()) {
header('HTTP/1.0 404 Not Found');
readfile('err404.html');
exit();
}
return $result->fetch();
(function(b) {
var e = document.querySelectorAll(b),
a = localStorage.getItem(b);
if (typeof a !== 'undefined' && a !== null){
var a = JSON.parse(a);
} else{
var a = {};
localStorage.setItem(b, JSON.stringify(a));
}
[].forEach.call(e, function(c, d) {
c.checked = a[d];
c.addEventListener("change", function() {
a[d] = c.checked;
localStorage.setItem(b, JSON.stringify(a))
});
})
})(".stat_inp<?php echo $test['id']; ?>");
setTimeout(() => {
$('.list.charter_i').slideToggle();
$('html, body').animate({ scrollTop: $('.list.charter_i').offset().top }, 800);
}, 300);
// setTimeout(() => {
$('.list.charter_i').slideToggle();
$('html, body').animate({ scrollTop: $('.list.charter_i').offset().top }, 800);
// }, 300);
<link rel="stylesheet" href="./libs/bootstrap/bootstrap-grid-3.3.2.min.css" />
<link rel="stylesheet" href="./css/fonts.css" />
<link rel="stylesheet" href="./css/main.css" />
<link rel="stylesheet" href="./css/media.css" />
<link rel="stylesheet" href="./css/animate.min.css"/>
<script src="libs/jquery/jquery-1.11.2.min.js"></script>
<script src="libs/modernizr/modernizr.js"></script>
<script src="./js/common.js"></script>