success: function (res) {
console.log(res);
if (res.length != 0)
{
document.getElementById("namef").value = res[0]['name'];
document.getElementById("agef").value = res[0]['age'];
}
else
{
document.getElementById("namef").value = '';
document.getElementById("agef").value = '';
}
},
$('#num_tab').on('change', function ()
{
var num_man = $("#num_man").val();
var num_tab = $("#num_tab").val();
$.ajax(
{
url:'index.php?r=site/vacancies',
data: {a:[num_man,num_tab]},
type: 'POST',
success: function (res) {
console.log(res);
document.getElementById("namef").value = res[0]['name'];
document.getElementById("agef").value = res[0]['age'];
},
error: function () {
alert('Error');
}
}
);
});
if (Yii::$app->request->isAjax && Yii::$app->request->isPost)
{
$cardorder = Yii::$app->request->post('a');
$tal = Testios::find()->where(['num_man' => $cardorder[0], 'num_tab' => $cardorder[1]])->asArray()->all();
return $this->asJson($tal);
}
Несмотря на это, при низкой яркости дисплея в авиарежиме можно работать с офисными документами на протяжении девяти часов. Просмотр видео в формате Full HD через Wi-Fi сжигает запас энергии за шесть часов. При ёмких вычислениях с использованием всех аппаратных возможностей больше двух часов ноутбук не продержится.