include_once '../scripts/check_auth.php'; include_once '../scripts/function.inc.php'; # Диапазон выборки $from = 0; # Количество строк на странице $step = 15; # Проверка, установлен ли диапазон вывода строк if (!empty($_GET['from'])) { $from = $_GET['from']; } #Ссылка на текущую страницу $url = $_SERVER['PHP_SELF']; $table = 'Costs'; $user = $_SESSION['login_user']; $check = new mysql(); $mysqli = new mysqli_my(); if ($_GET['action']) { $_POST['action'] = $_GET['action']; } ?> <html> <html lang="en"> <head> <meta charset="UTF-8"> <link rel="stylesheet" type="text/css" href="../css/style.css"> <title>Расходы</title> <?php include '../scripts/header.php'; ?> </head>
<?php include_once '../scripts/conf.php'; include_once '../scripts/check_auth.php'; include_once '../scripts/function.inc.php'; ?> <?php $url = $_SERVER['PHP_SELF']; $user = $_SESSION['login_user']; $check = new mysql(); $mysqli = new mysqli_my(); switch ($_POST['action']) { case 'change': $mysqli->balance_change($connection, $user); break; case 'transfer': $mysqli->money_transfer($connection, $user); break; case 'add_account': $mysqli->add_account($connection, $user); break; default: break; } ?> <html lang="en"> <head> <meta charset="UTF-8"> <link rel="stylesheet" type="text/css" href="../css/style.css">