<html>
<head>
<script src='https://code.jquery.com/jquery-3.4.1.js'></script>
</head>
<body>
<div class='tabs'>
<ul><li>Tab1</li><li>Tab2</li></ul>
<div><div style='display:none;'>1111</div><div style='display:none;'>2222</div></div>
</div>
<script type='text/javascript'><!--
(function($){
jQuery.fn.lightTabs = function(options){
var createTabs = function(){
tabs = this;
i = 0;
showPage = function(i){
$(tabs).children("div").children("div").hide();
$(tabs).children("div").children("div").eq(i).show();
$(tabs).children("ul").children("li").removeClass("active");
$(tabs).children("ul").children("li").eq(i).addClass("active");
}
showPage(0);
$(tabs).children("ul").children("li").each(function(index, element){
$(element).attr("data-page", i);
i++;
});
$(tabs).children("ul").children("li").click(function(){
showPage(parseInt($(this).attr("data-page")));
});
};
return this.each(createTabs);
};
})(jQuery);
$(document).ready(function(){
$(".tabs").lightTabs();
});
//--></script>
</body>
</html>
SELECT DATE_FORMAT(date,'%d.%m.%Y') as date1, `date`, `date` - INTERVAL 1 DAY AS `prevDate`, `price_product` FROM `prices` FORCE INDEX (`id_product`) WHERE `id_product` = 235408123 ORDER BY `date`
$DB = mysqli_connect("localhost", "_username_", "_password_", "_database_") or die(mysqli_error($DB));
function ping($IP)
{
global $DB;
if (!preg_match("/^(\d{1,3})(\.\d{1,3}){3}$/", $IP)) return false;
exec('ping -c 2 -i 0.2 ' .$IP,$ping);
$nachalo = substr($ping[1],0,4);
if ($nachalo !== "From")
{
mysqli_query($DB, "INSERT INTO _Primer_ (_row_) VALUES(1)") or die(mysqli_error($DB));
}
else
{
mysqli_query($DB, "INSERT INTO _Primer_ (_row_) VALUES(0)") or die(mysqli_error($DB));
}
}
document.querySelector('.login-form form').addEventListener('submit',function (el) {
el.preventDefault();
$.ajax({
type: "POST",
url: "./admin.php",
data: {
action: "administration",
login: document.querySelector('.login-form form #login').value,
pass: document.querySelector('.login-form form #pass').value,
},
success: function(data) { if (data == "OK") window.location = "admin.php";}
});
});
if ($_POST['action'] && $_POST['action'] === 'administration'){
if ($_POST['login'] === $login && $_POST['pass'] === $pass){
// тут нужно сделать всё, что нужно сделать
// .....
// а потом:
echo("OK"); exit();
}
}
echo "postgresql-10 hold" | sudo dpkg --set-selections
echo "postgresql-client-10 hold" | sudo dpkg --set-selections
echo "postgresql-client-common hold" | sudo dpkg --set-selections
echo "postgresql-common hold" | sudo dpkg --set-selections
echo "postgresql-doc-10 hold" | sudo dpkg --set-selections
echo "postgresql-server-dev-10 hold" | sudo dpkg --set-selections
sudo apt-mark hold postgresql-10
sudo apt-mark hold postgresql-client-10
sudo apt-mark hold postgresql-client-common
sudo apt-mark hold postgresql-common
sudo apt-mark hold postgresql-doc-10
sudo apt-mark hold postgresql-server-dev-10