Exemple #1
0
 function printContent() {
     ?>
       <table border="0">
         <tr bgcolor=<?=BGCOLOR_ALT?>>
           <th>#</th>
           <? if (SecurityGroup::havePermission("DELETE")) { ?>
             <th></th>
           <? } ?>
           <th><?=Text::getText("Name")?></th>
           <th>&nbsp;</th>
           <th>&nbsp;</th>
         </tr>
         <? $bg = TRUE; ?>
         <? foreach ($this->groups as $g) { ?>
           <? $bg = !$bg; ?>
           <tr<? if ($bg) { ?> bgcolor=<?=BGCOLOR_ALT?><? } ?>>
             <td>&nbsp;<?=$g->getId()?>&nbsp;</td>
             <? if (SecurityGroup::havePermission("DELETE")) { ?>
               <td><a href="<?=$this->groupDeletePage?>?<?=$this->groupDeleteParamGroupId?>=<?=$g->getId()?>" onClick="return confirm('<?=Text::getText('ConfirmDeleteGroup')?>')"><img src="<?=$this->imgDeleteSrc?>" border="0" alt="<?=Text::getText('Delete')?>"></a></td>
             <? } ?>
             <td>&nbsp;<a href="<?=$this->groupEditPage?>?<?=$this->groupEditParamGroupId?>=<?=$g->getId()?>"><?=$g->getName()?></a>&nbsp;</td>
             <td>&nbsp;<a href="<?=$this->groupMembersPage?>?<?=$this->groupMembersParamGroupId?>=<?=$g->getId()?>"><?=Text::getText("Members")?></a>&nbsp;</td>
             <td>&nbsp;<a href="<?=$this->groupPermissionsPage?>?<?=$this->groupPermissionsParamGroupId?>=<?=$g->getId()?>"><?=Text::getText("Permissions")?></a>&nbsp;</td>
           </tr>
         <? } ?>
       </table>
     <?
 }
Exemple #2
0
"><?php 
echo Text::getText("Members");
?>
</a>&nbsp;</td>
            <td>&nbsp;<a href="groupPermissions.php?id=<?php 
echo $g->getId();
?>
"><?php 
echo Text::getText("Permissions");
?>
</a>&nbsp;</td>
        </tr>
    <? } ?>
</table>

<? if (SecurityGroup::havePermission("ADD")) { ?>
    <h3><?php 
echo Text::getText("AddGroup");
?>
</h3>
    <form method="POST" action="groupAdd.php">
        <input type="hidden" name="action" value="save">
        <table border="0" cellpadding="2">
            <tr>
                <th><?php 
echo Text::getText("Name");
?>
</th>
                <td><input type="text" name="name" value=""></td>
            </tr>
            <tr>
Exemple #3
0
        </td>
    </tr>
    <? if (SecurityUser::havePermission("VIEW")) { ?>
        <tr class="navitem">
            <td class="navitem">
                <a href="<?php 
echo $smellyfish_base_uri;
?>
users.php"><?php 
echo Text::getText("Users");
?>
</a>
            </td>
        </tr>
    <? } ?>
    <? if (SecurityGroup::havePermission("VIEW")) { ?>
        <tr class="navitem">
            <td class="navitem">
                <a href="<?php 
echo $smellyfish_base_uri;
?>
groups.php"><?php 
echo Text::getText("Groups");
?>
</a>
            </td>
        </tr>
    <? } ?>
        <tr class="navitem">
            <td class="navitem">
                <a href="http://nicolas.marchildon.net/carnet/category/smellyfish/">Blog</a>