<?php
if (isset($id_file) && $id_file) {
    if (!$id_cat) return; // cannot inherit permissions from root category
} else {
    if (!$id_parent) return; // cannot inherit permissions from root category
}
?>
<tr id="permission6" class="secondarycolor">
    <td><?php echo lang('Inherited permissions'); ?>:</td>
    <td>
        <table>
        <tr>
            <td><?php echo lang('Inherited client types'); ?></td>
            <td><?php echo lang('Inherited users'); ?></td>
            <td><?php echo lang('Inherited servers'); ?></td>
        </tr>
        <tr>
            <td>
                <select size="10" style="width: 150px;"><?php echo Template::htmlOptions($inherited_clienttypes_assoc); ?></select>
            </td>
            <td>
                <select size="10" style="width: 150px;"><?php echo Template::htmlOptions($inherited_users_assoc); ?></select>
            </td>
            <td>
                <select size="10" style="width: 150px;"><?php echo Template::htmlOptions($inherited_servers_assoc); ?></select>
            </td>
        </tr>
        </table>
    </td>
</tr>
