<?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="permission7" class="secondarycolor">
    <td><?php echo $this->lang('Inherited permissions'); ?>:</td>
    <td>
        <table>
        <tr>
            <td><?php echo $this->lang('Inherited client types'); ?></td>
            <td><?php echo $this->lang('Inherited users'); ?></td>
            <td><?php echo $this->lang('Inherited servers'); ?></td>
        </tr>
        <tr>
            <td>
                <select size="10" style="width: 150px;"><?php echo SugoLibTemplate::htmlOptions($inherited_clienttypes_assoc); ?></select>
            </td>
            <td>
                <select size="10" style="width: 150px;"><?php echo SugoLibTemplate::htmlOptions($inherited_users_assoc); ?></select>
            </td>
            <td>
                <select size="10" style="width: 150px;"><?php echo SugoLibTemplate::htmlOptions($inherited_servers_assoc); ?></select>
            </td>
        </tr>
        </table>
    </td>
</tr>
