Joywork/admin/dischargeTariffs.php
2026-05-22 21:21:54 +03:00

74 lines
2.0 KiB
PHP

<?php
require_once($_SERVER['DOCUMENT_ROOT'] . "/config.php");
ini_set('display_errors', 1);
error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE);
// закрываем доступ на выполнение запросов
if (!isset($_SESSION['superadmin'])) {
header("location:/index.php");
die("Доступ запрещён!");
}
require_once($_SERVER['DOCUMENT_ROOT'] . "/templates/header-admin.php");
?>
<div class="main-title">
<h1>Тарифы для выписок ЕГРН</h1>
</div>
<div class="users fr__users" style="margin-right: 20px;">
<?php
$sql = "select * from discharge_tariff";
$rez = mysql_query($sql);
?>
<div class="jw__NB">
<div class="jw__NB__flat-list">
<table>
<thead>
<tr>
<th>ID</th>
<th>Количество выписок</th>
<th>Цена</th>
<th></th>
</tr>
</thead>
<tbody>
<?php
$num = 1;
while($dischargeTariff = mysql_fetch_array($rez)) {
echo '<tr ';
if ($num % 2 > 0) {
echo 'style="background-color: #f9f9f9;"';
}
echo '>';
echo '<td>' . $dischargeTariff['id'] . '</td>';
echo '<td>' . $dischargeTariff['count'] . '</td>';
echo '<td>' . $dischargeTariff['price'] . '</td>';
echo '<td width="50"><a href="/admin/dischargeTariffsEdit.php?id=' . $dischargeTariff['id'] . '" title="Редактировать"><i class="ti-pencil"></i></a></td>';
echo '</tr>';
$num++;
}
?>
</tbody>
</table>
</div>
</div>
<div class="clear"></div>
</div>
<?php
require_once($_SERVER['DOCUMENT_ROOT'] . "/templates/footer-admin.php");
?>