ACC SHELL

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

<?php
include_once('config/config.php');
include_once('include/secure.php');

$User = new User();
if (isset($_POST['odeslat']) || isset($_POST['odeslat_a_zavrit'])) {
    include_once('include/uzivatele/uzivatele_ulozit.inc');
}
include_once('include/uzivatele/uzivatele_zpracuj.php');
if (isset($_GET['id'])) {
    $detail = $User->fetchSingleById(intval($_GET['id']));
    if (!$detail) {
	Tools::message($_MSG['NOT_EXISTS']);
	Tools::redirect('uzivatele_edit.php');
    }
}
include_once('libs/funkcephp.php');
include_once('libs/tools.class.php');


include_once(TEMPLATES . '/header.tpl');
?>


<div id="obsah1">

    <table>

        <tr>

            <td><a class="mainbutton" href="uzivatele_edit.php"><span>Přidat uživatele</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="uzivatele.php" title="Správa uživatelů">Správa uživatelů</a>
                    &nbsp;&nbsp;/&nbsp;&nbsp;

                    <?php if (isset($_GET['id'])) { ?>
                        <a href="" title="Editace uživatele">Editace uživatele - <?php echo $detail->jmeno . ' ' . $detail->prijmeni;?></a>
                        <?php
                    } else {
                        ?>
                        <a href="" title="Založení nového uživatele">Založení nového uživatele</a>
                        <?php
                    }
                    ?>
                </span></td>
        </tr>

    </table>
    <?php
    include('messages.php');

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

</div> <!-- div id obsah END -->

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

ACC SHELL 2018