EngineGP/system/acp/engine/tarifs.php
Sergei Solovev b59003e559 Reformat code
This update contains code reformatting to meet PHP standards.
2023-11-12 21:12:42 +03:00

33 lines
687 B
PHP

<?php
if (!DEFINED('EGP'))
exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
$info = '<i class="fa fa-shopping-bag"></i> Управление тарифами';
$aSection = array(
'index',
'add',
'copy',
'stats',
'delete'
);
if (!in_array($section, $aSection))
$section = 'index';
$html->get('menu', 'sections/tarifs');
$html->unit('s_' . $section, true);
unset($aSection[array_search($section, $aSection)]);
foreach ($aSection as $noactive)
$html->unit('s_' . $noactive);
$sql->query('SELECT `id` FROM `tarifs`');
$html->set('tarifs', $sql->num());
$html->pack('menu');
include(SEC . 'tarifs/' . $section . '.php');
?>