<form action='/<?=$UID?>/report/skillup/' method='get' id='filter_skillup' class='filter'>
    <table>
        <tr>
            <td class='filter' id='filter_stars'>
                <span>Stars:</span>
                <input type='number' name='min_stars' min='1' max='6' value='<?=$filters["min_stars"]?>'/>
                -
                <input type='number' name='max_stars'  min='1' max='6' value='<?=$filters["max_stars"]?>'/>
            </td>
            <td class='filter' id='filter_stars'>
                <span>Natural stars:</span>
                <input type='number' name='min_natural_stars' min='1' max='5' value='<?=$filters["min_natural_stars"]?>'/>
                -
                <input type='number' name='max_natural_stars' min='1' max='5' value='<?=$filters["max_natural_stars"]?>'/>
            </td>
        </tr>
        <tr>
            <td class='filter' colspan='2'>
<?php
                $checked = "";
                if ($filters["family"]){
                    $checked = "checked";
                }
?>
                <input type='checkbox' name='family' id='filter_family' <?=$checked?>/>
                <label for='filter_family'>Show monsters with family with lower grade.</label>
            </td>
        </tr>
        <tr>
            <td class='filter' colspan='2'>
<?php
                $checked = "";
                if ($filters["2a"]){
                    $checked = "checked";
                }
?>
                <input type='checkbox' name='2a' id='filter_2a'<?=$checked?>/>
                <label for='filter_2a'>Include second-awakened monsters.</label>
            </td>
        </tr>
        <tr>
            <td class='filter' colspan='2'>
<?php
                $checked = "";
                if ($filters["homunculus"]){
                    $checked = "checked";
                }
?>
                <input type='checkbox' name='homunculus' id='filter_homunculus' <?=$checked?>/>
                <label for='filter_homunculus'>Include Homunculus.</label>
            </td>
        </tr>
        <tr>
            <td class='filter' colspan='2'>
<?php
                $checked = "";
                if ($filters["in_storage"]){
                    $checked = "checked";
                }
?>
                <input type='checkbox' name='in_storage' id='filter_in_storage' <?=$checked?>/>
                <label for='filter_in_storage'>Show monsters in storage.</label>
            </td>
        </tr>
        <tr>
            <td class='filter' colspan='2'>
<?php
                $checked = "";
                if ($filters["without_runes"]){
                    $checked = "checked";
                }
?>
                <input type='checkbox' name='without_runes' id='filter_without_runes' <?=$checked?>/>
                <label for='filter_without_runes'>Show monsters without runes.</label>
            </td>
        </tr>
        <tr>
            <td class='filter' colspan='2'>
<?php
                $checked = "";
                if ($filters["maxed"]){
                    $checked = "checked";
                }
?>
                <input type='checkbox' name='maxed' id='filter_maxed' <?=$checked?>/>
                <label for='filter_maxed'>Show fully skilled-up monster</label>
            </td>
        </tr>
    </table>
    <div id='filter_apply'>
        <input type='submit' value='Apply'/>
    </div>
</form>
