Location: PHPKode > projects > SecurityAdmin for PHP > psa-4.0.3/include/profiles.php
<?php
    $profiles=$PSA_SYS->get_profiles();
    if($profiles===FALSE){
        $PSA_SYS->error();
    }else{
?>
    <h2><?php echo _("User Profiles") ?></h2>
    <p><a href="<?php echo $_SERVER['PHP_SELF'] ?>?psaSec=profile_add" title="<?php echo _("Add Profile") ?>"><?php echo _("Add Profile") ?></a></p>
    <table cellpadding="0" cellspacing="0" border="0">
     <tr>
      <th><?php echo _("Profile Name") ?></th>
      <th>&nbsp;</th>
     </tr>
<?php
        $i=0;
        while(list($id,$name)=@each($profiles)){
            $style = ($i&1) ? ' class="dataRowAlt"' : ' class="dataRow"';
            echo '     <tr',$style,'>',
                '<td>',$name,'</td>',
                '<td>[<a href="',$_SERVER['PHP_SELF'],'?psaSec=profile_edit&amp;PSA_id=',$id,'" title="',_("Edit"),'">',_("Edit"),'</a>] ',
                '[<a href="',$_SERVER['PHP_SELF'],'?psaSec=profile_delete&amp;PSA_id=',$id,'" title="',_("Delete"),'">',_("Delete"),'</a>]</td>',
                '</tr>',"\n";
            $i++;
        }
        if($i==0){
            echo '    <tr><td colspan="2">'._("There are currently no profiles defined.").'</td></tr>'."\n";
        }
?>
    </table>
<?php
    }
?>
Return current item: SecurityAdmin for PHP