ACC SHELL

Path : /srv/www/vhosts/centrumlb/administrace/
File Upload :
Current File : /srv/www/vhosts/centrumlb/administrace/role_edit.php

<?php
include_once('config/config.php');
include_once('include/secure.php');
isset($_GET['id']) ? $Admin->getInfo($_GET['id'], 'user_admin') : $Admin->getInfo('', 'user_admin');


include_once('libs/funkcephp.php');
include_once('libs/tools.class.php');

$Role = new Role();
include_once('include/role/role_zpracuj.php');

if (isset($_POST['odeslat']) || isset($_POST['odeslat_a_zavrit'])) {
    include_once('include/role/role_ulozit.inc');
}
include_once(TEMPLATES . '/header.tpl');

if (isset($_GET['id_role'])) {
    $detail = $Role->fetchSingle($_GET['id_role']);
    if (!$detail) {
        Tools::message('Došlo k zadání špatného identifikačního čísla.', 'ERR');
        Tools::redirect('role.php');
    }
}

?>

<div id="obsah1">

    <table>

        <tr>

            <td><a class="mainbutton" href="role_edit.php"><span>Přidat roli</span></a></td>

            <td>
                &nbsp;&nbsp; | &nbsp;&nbsp;<a href="javascript:history.back(-1)" title="Zpět na předchozí stranu">Zpět na předchozí stranu</a>
                &nbsp;&nbsp; | &nbsp;&nbsp;<span id="drobecky">Kde se nacházíte: &nbsp;&nbsp;
                    <a href="index.php" title="Úvodní strana">Úvodní strana</a>&nbsp;&nbsp;/&nbsp;&nbsp;
                    <a href="role.php" title="Správa rolí">Správa rolí</a>
                    &nbsp;&nbsp;/&nbsp;&nbsp;

                    <?php if (isset($_GET['id_role'])) { ?>
                        <a href="" title="Editace role">Editace role - <?php echo $detail->nazev; ?></a>
                        <?php
                    } else {
                        ?>
                        <a href="" title="Založení nové role">Založení nové role</a>
                        <?php
                    }
                    ?>
                </span></td>
        </tr>
    </table>
    <?php
    include('messages.php');

    $Widget = new Widget();
    $id_panelu = array(161);
    $user_id = $_SESSION['adminuser']['id'];
    include_once('include/widgety.php');
    ?>

</div>

<?php include_once(TEMPLATES . '/footer.tpl'); ?>


ACC SHELL 2018