Exemplo n.º 1
0
echo trad('Autorisation', 'admin');
?>
</th>
                        <th><?php 
echo trad('Description', 'admin');
?>
</th>
                        <th><?php 
echo trad('Acces', 'admin');
?>
</th>
                    </tr>
                    </thead>
                    <tbody>
                        <?php 
foreach ($currentProfil->query_liste("SELECT a.id, ap.ecriture, ap.lecture FROM " . Autorisation::TABLE . " a LEFT JOIN " . Autorisation_profil::TABLE . " ap ON a.id=ap.autorisation AND ap.profil='{$currentProfil->id}'") as $row) {
    $autorisationdesc = new Autorisationdesc();
    $autorisationdesc->charger($row->id);
    ?>
                            <tr>
                                <td><?php 
    echo $autorisationdesc->titre;
    ?>
</td>
                                <td><?php 
    echo $autorisationdesc->description;
    ?>
</td>
                                <td><input type="checkbox" class="js-genral-permissions" js-id="<?php 
    echo $row->id;
    ?>