Exemple #1
0
  <tr>
    <th width="40%"><?php 
echo $lang['group_name'];
?>
</th>
    <th width="50%"><?php 
echo $lang['right_included'];
?>
</th>
    <th><?php 
echo $lang['common_action'];
?>
</th>
  </tr>
  <?php 
$list = $accessInst->getList();
$style = "light";
while ($element = current($list)) {
    $accessInst->activate($element);
    ?>
<tr class="<?php 
    echo $style;
    ?>
" onmouseover="this.style.backgroundColor='#fafafa'" onmouseout="this.style.backgroundColor=''"><?php 
    echo "<td>" . $accessInst->name . "</td>\n";
    echo "<td><table border=0 cellpadding=0 cellspacing=0>";
    $rightList = $accessInst->getRights();
    while ($right = current($rightList)) {
        echo "<tr>\n";
        echo "<td>" . $accessInst->getRightName($right) . "&nbsp;</td>";
        next($rightList);