ACC SHELL

Path : /srv/www/vhosts/centrumlb/administrace/include/komentare/
File Upload :
Current File : //srv/www/vhosts/centrumlb/administrace/include/komentare/filtruj.php

<?php
if (isset($_GET['typ']) && intval($_GET['typ']) != 0) {
    $Kategorie->typ = $_GET['typ'];
}

if (isset($_GET['detail']) && intval($_GET['detail']) != 0) {
    $detail = $_GET['detail'];
}
?>
<script type="text/javascript">
    $(document).ready(function()
    {
	if (<?php echo $Kategorie->typ; ?> != 0) {
	    var dataString = 'typ='+ <?php echo $Kategorie->typ; ?> ;
	    if (<?php echo $detail; ?> != 0) {
		dataString = dataString + '&detail='+ <?php echo $detail; ?>;
	    }
	    //alert(dataString);
	    $.ajax
	    ({
		type: "POST",
		url: "/administrace/include/komentare/dep_select_box_zpracuj.php",
		data: dataString,
		cache: false,
		success: function(html)
		{
		    $("#detail").html(html);
		}
	    });
	}

	$("#typ").change(function()
	{
	    var typ=$(this).val();
	    var dataString = 'typ='+ typ;
	    $.ajax
	    ({
		type: "POST",
		url: "/administrace/include/komentare/dep_select_box_zpracuj.php",
		data: dataString,
		cache: false,
		success: function(html)
		{
		    $("#detail").html(html);
		}
	    });
	});
    });
</script>
<form method="get" action="" name="depend" id="depend">

    <table>
	<tr>
	    <th width="200px">Typ kategorie
                <a class="help" title="Typ kategorie podle její funkce. Pro běžné obsahové stránky zvolte typ Běžná stránka.">
                    <img src="images/iko/help.png" alt="" />
                </a>
            </th>
	    <th width="200px">Typ kategorie
                <a class="help" title="Typ kategorie podle její funkce. Pro běžné obsahové stránky zvolte typ Běžná stránka.">
                    <img src="images/iko/help.png" alt="" />
                </a>
            </th>
	</tr>
	<tr>
	    <td>
		<select name="typ" id="typ" class="medium-input">
		    <option selected="selected">--Vyberte typ--</option>
		    <?php $Kategorie->getTypOption(isset($Kategorie->typ) ? $Kategorie->typ : "", 'kategorie', true); ?>
		</select>
	    </td>
	    <td>
		<select name="detail" id="detail" class="medium-input"></select>
	    </td>
	    <td></td>
	    <td></td>
	    <td></td>
	    <td>
		<input value="Filtrovat" type="hidden" />
		<input class="button" value="Filtrovat" type="submit" />
	    </td>

	</tr>

    </table>

</form>

ACC SHELL 2018