ACC SHELL

Path : /srv/www/vhosts/centrumlb/administrace/include/role/
File Upload :
Current File : /srv/www/vhosts/centrumlb/administrace/include/role/widget_role.inc

<!-- zacatek panelu 1 -->
<div class="content-box" id="Item160">

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

        <h3 style="cursor: s-resize;">Editace rolí</h3>

    </div>

    <div class="content-box-content" <?php echo $close; ?>>

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

        <form method="post" action="" name="form160" id="form160" class="hromada">

            <table width="100%" cellpadding="10" class="stripe sample">

                <thead>

                    <tr>

                        <th width="20px"><input class="checkall" type="checkbox"></th>
                        <th width="35%">Název role</th>
                        <th width="35%">Datum změny</th>
                        <th width="35%">Akce</th>

                    </tr>

                </thead>

                <tbody>
		    <?php
		    $Role = new Role;
		    //$rows = $Role->fetchAll();
		    foreach ($Role->fetchAll() as $n): ?>
		    <tr>
			<td><input type="checkbox" name="checkbox[]" value="<?php echo $n->id; ?>" id="" ></td>
			<td><a href="role_edit.php?id_role=<?php echo $n->id; ?>"><?php echo $n->nazev; ?></a></td>
			<td><?php echo datum_i_cas($n->modifikace); ?></td>
			<td><a href="role_edit.php?id_role=<?php echo $n->id; ?>" title="Editovat"><img src="images/iko/note_edit.png" alt="Editovat" /></a>
                            <?php
                            // Role administrátor nelze smazat
                            if ($n->id != 1): ?>
			    <a href="?smazat=<?php echo $n->id; ?>" class="potvrzujiciLink" title="Smazat">
				<img src="images/iko/remove.png" alt="Smazat" />
			    </a>
                            <?php endif;?>
			</td>
		    </tr>
		    <?php endforeach; ?>
                </tbody>

            </table><br /><br />

            <div class="bulk-actions align-left">
                <select name="dropdown">
                    <option selected="selected" value="option1">Vyberte akci...</option>
                    <option value="smazat" id="smazat">Smazat</option>
                </select>

                <input value="Aplikovat na vybrané" type="hidden" name="aplikovat" id="aplikovat" >
                <input class="button" value="Aplikovat na vybrané" type="submit" name="aplikovat" id="aplikovat">
            </div>

        </form>

        <!-- select pro vybrane end -->
	<div class="pagination">
	<?php //pageLinks($Role->totalpages, $Role->currentpage, $Role->pagesize, "recordstart", "role"); ?>
        </div>

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

    </div>

</div>

ACC SHELL 2018