ACC SHELL

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

<?php
include_once('config/config.php');
$Admin = new UserAdmin();
isset($_GET['logout']) ? $Admin->logout() : $Admin->isLogged();

include_once('libs/funkcephp.php');
include_once('libs/tools.class.php');
include_once('libs/kategorie.class.php');
include_once(TEMPLATES . '/header.tpl');
?>

<div id="obsah">

    <h2>Vítáme Vás, přihlášen je uživatel <?php echo $_SESSION['adminuser']['username']; ?></h2><br /><br />

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

    <div class="clear"></div>


    <div class="content-box column-left">

        <div class="content-box-header">

            <h3 style="cursor: s-resize;">Kategorie webu podle návštěvnosti za poslední měsíc</h3>

        </div>

        <!-- levy halfpanel obsah -->

        <div class="content-box-content">

	    <?php if (isset($_SESSION['message_ok']))
		session_unregister($_SESSION['message_ok']); //include('messages.php');  ?>

            <br />

            <fieldset>

                <table width="100%" class="stripe sample">
                    <thead>
                        <tr>
                            <!--<th width="3%">No.</th>-->
                            <th width="55%">Název kategorie</th>
                            <th>Počet zobrazení</th>
                            <th>Poslední návštěva</th>
                        </tr>
                    </thead>
                    <tbody>

			<?php $Kategorie->getNavstevnostAdmin(); ?>

                    </tbody>
                </table>
            </fieldset>

        </div>

    </div>

    <div class="content-box column-right">

        <div class="content-box-header">

            <h3 style="cursor: s-resize;">Poslední komentáře</h3>

        </div>

        <!-- levy halfpanel obsah -->

        <div class="content-box-content">

	    <?php if (isset($_SESSION['message_ok']))
		session_unregister($_SESSION['message_ok']); //include('messages.php');  ?>

            <br />

            <fieldset>

		<fieldset>
		    <?php
		    $komentare = new Komentare();
		    $komenty = $komentare->fetchAll();
		    ?>
		    <table width="100%" class="stripe sample">
			<thead>
			    <tr>
				<!--<th width="3%">No.</th>-->
				<th width="55%">Text</th>
				<th>Uživatelé</th>
				<th>Datum</th>
			    </tr>
			</thead>
			<tbody>

			    <?php
			    foreach ($komenty as $k) {
				echo '<tr>';
				//http://alicekonecna.loc/administrace/komentare_edit.php?id=1&typ=4&detail=7
				echo '<td>';
				echo '<a href="komentare_edit.php?id=' . $k->id . '&typ=' . $k->typ_kategorie . '&detail=' . $k->id_sablony . '">' . $k->text . '</a></td>';
				echo '<td>' . $k->jmeno . '</td>';
				echo '<td>' . datum_i_cas($k->datum . '</td>');
			    }
			    ?>

			</tbody>
		    </table>
		</fieldset>

		<div class="clear"></div>
            </fieldset>

        </div>

    </div>

    <?php //include_once('include/remote_message.inc');   ?>

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

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

ACC SHELL 2018