示例#1
0
 function printContent() {
   ?>
     <table border="0">
       <tr bgcolor="<?=BGCOLOR_ALT?>">
         <th>#</th>
         <? if (SecurityUser::havePermission("DELETE")) { ?>
           <th></th>
         <? } ?>
         <th><?=Text::getText("FullName")?></th>
         <th><?=Text::getText("LoginName")?></th>
       </tr>
       <? $bg = TRUE; ?>
       <? foreach ($this->users as $u) { ?>
         <? $bg = !$bg; ?>
         <tr<? if ($bg) { ?> bgcolor="<?=BGCOLOR_ALT?>"<? } ?>>
           <td>&nbsp;<?=$u->getId()?>&nbsp;</td>
             <? if (SecurityUser::havePermission("DELETE")) { ?>
               <td><a href="<?=$this->userDeletePage?>?<?=$this->userDeleteUserParam?>=<?=$u->getId()?>" onClick="return confirm('<?=Text::getText('ConfirmDeleteUser')?>\n\n<?=$u->getLoginName()?>')"><img src="<?=IMAGE_TRASH?>" border="0" alt="<?=Text::getText('Delete')?>"></a></td>
             <? } ?>
             <td>&nbsp;<?=$u->getFullName()?>&nbsp;</td>
             <td>&nbsp;<a href="<?=$this->getUserPage()?>?id=<?=$u->getId()?>"><?=$u->getLoginName()?></a>&nbsp;</td>
         </tr>
       <? } ?>
     </table>
   <?
 }
示例#2
0
</a>
            </td>
        </tr>
    <? } ?>
    <tr class="navitem">
        <td class="navitem">
            <a href="<?php 
echo $smellyfish_base_uri;
?>
options.php"><?php 
echo Text::getText("Options");
?>
</a>
        </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">
示例#3
0
echo Text::getText("Delete");
?>
"></a></td>
            <? } ?>
            <td>&nbsp;<?php 
echo $u->getFullName();
?>
&nbsp;</td>
            <td>&nbsp;<a href="<?php 
echo $u->href();
?>
"><?php 
echo $u->getLoginName();
?>
</a>&nbsp;</td>
            <? if (SecurityUser::havePermission("CHANGE")) { ?>
                <td>&nbsp;<a href="userEdit.php?id=<?php 
echo $u->getId();
?>
"><?php 
echo Text::getText("Edit");
?>
</a>&nbsp;</td>
            <? } ?>
        </tr>
    <? } ?>
</table>

<? if (SecurityUSer::havePermission("ADD")) { ?>
    <h3><?php 
echo Text::getText("AddUser");