Location: PHPKode > projects > SecurityAdmin for PHP > psa-4.0.3/include/pages.php
<?php
    $pages=$PSA_SYS->get_pages();
    if($pages===FALSE){
        $PSA_SYS->error();
    }else{
?>
    <h2><?php echo _("Site Pages") ?></h2>
    <p><?php echo _("Below is a list of pages that can be assigned to profiles. Users can access pages based on the profiles you have assigned them. Users can only access pages within the profiles assigned to them.") ?></p>
    <p><a href="<?php echo $_SERVER['PHP_SELF'] ?>?psaSec=page_add" title="<?php echo _("Add Page") ?>"><?php echo _("Add Page") ?></a></p>
    <table cellpadding="0" cellspacing="0" border="0">
     <tr><th><?php echo _("Page Name") ?></th><th></th><th></th></tr>
<?php
        $i=0;
        while(list($id,$title)=@each($pages)){
            $style = ($i&1)  ? ' class="dataRowAlt"' : ' class="dataRow"';
            echo '     <tr',$style,'>',
                '<td>',$title,'</td>',
                '<td>[<a href="',$_SERVER['PHP_SELF'],'?psaSec=page_edit&amp;PSA_id=',$id,'" title="',_("Edit"),'">',_("Edit"),'</a>]',
                ' [<a href="',$_SERVER['PHP_SELF'],'?psaSec=page_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 pages defined."),'</td></tr>',"\n";
?>
    </table>
<?php
    }
?>
Return current item: SecurityAdmin for PHP