ACC SHELL

Path : /srv/www/vhosts/centrumlb/administrace/include/diskografie/
File Upload :
Current File : /srv/www/vhosts/centrumlb/administrace/include/diskografie/widget_diskografie_prirazeni.inc

<!-- zacatek panelu 1 -->
<?php
if (!isset($_GET['id']))
    return false;
?>

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

    <!-- nadpis panelu start -->

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

        <h3 style="cursor: s-resize;">Přiřazené alba</h3>

    </div>

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

        <div id="fragment-1">

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

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

                    <thead>

                        <tr>

                            <th width="20px"><input class="checkall" type="checkbox"></th>
                            <th width="35%">Název alba</th>
                            <th>Název kategorie</th>
                            <th>Akce</th>

                        </tr>

                    </thead>

                    <tbody>

                        <?php
                        $prirazeni = $Diskografie->getPrirazeni(isset($_GET['id']) ? $_GET['id'] : '', 'diskografie');

                        //NDebugger::barDump($prirazeni, 'Prirazeni');
                        if (count($prirazeni) == 0) {
                            ?>
                            <tr><td colspan='9'>Album není přiřazeno.</td></tr>
                            <?php
                        } else {
                            foreach ($prirazeni as $n => $row) {
                                ?>

                                <tr>
                                    <td>
                                        <input type="checkbox" name="checkbox[]" value="<?php echo $row->cpr_id; ?>" id="" >
                                    </td>
                                    <td>
                                        <a href="diskografie_edit.php?id=<?php echo $row->id_fotogalerie; ?>"><?php echo $row->galerie_nazev; ?></a>
                                    </td>
                                    <td>
                                        <a href="kategorie_edit.php?id=<?php echo $row->id_kategorie; ?>"><?php echo $row->kategorie_nazev; ?></a>
                                    </td>
                                    <td>
                                        <a href="?zrusit=<?php echo $row->cpr_id; ?>" class="potvrzujiciLink" title="Zrušit přiřazení">
                                            <img src="images/iko/remove.png" alt="Zrušit přiřazení" />
                                        </a>
                                    </td>
                                </tr>
                                <?php
                            }
                        }
                        ?>

                    </tbody>

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

                <!-- select pro vybrane start -->

                <div class="bulk-actions align-left">
                    <select name="dropdown">
                        <option selected="selected" value="option1">Vyberte akci...</option>
                        <option value="zrusit" id="zrusit">Zrušit vše</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 echo pageLinks($Diskografie->totalpages, $Diskografie->currentpage, $Diskografie->pagesize, "recordstart", "diskografie"); ?>
            </div>
            <!-- strankovani end -->

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

        </div>

    </div>

</div>


ACC SHELL 2018