Location: PHPKode > scripts > phpSecurityAdmin > phpsecurityadmin/include/pages.php
<?php // 6/6/02 4:26PM
	$pages=$sec_sys->getPages();
?>
  <h2><?php echo $sec_sys->PHPSECURITYADMIN_SITE_STRUCTURE ?></h2>
  <?php echo $sec_sys->PHPSECURITYADMIN_SITE_STRUCTURE_DESC ?><br><br>
  <a href="<?php echo $_SERVER['PHP_SELF'] ?>?language=<?php echo $sec_sys->LANGUAGE?>&a=page_add"><?php echo $sec_sys->PHPSECURITYADMIN_ADD_PAGE ?></a>
  <form method=post action="<?php echo $_SERVER['PHP_SELF'] ?>?language=<?php echo $sec_sys->LANGUAGE?>&a=page_edit">
<?php
	if($pages){
		echo '<table cellpadding=2 cellspacing=0 border=0>'."\n";
		echo '<tr style="background-color: #000000;"><td><span style="color: #ffffff;">'.$sec_sys->PHPSECURITYADMIN_PAGE_NAME.
			'</span></td><td></td><td></td></tr>'."\n";
		$i=0;
		while(list($id,$title)=@each($pages)){
			echo '<tr><td';
			if($i%2) echo ' style="background-color: #dfdfdf"';
			echo '>'.$title.'</td><td';

			if($i%2) echo ' style="background-color: #dfdfdf"';
			echo '>[<a href="'.$_SERVER['PHP_SELF'].'?language='.$sec_sys->LANGUAGE.'&a=page_edit&id='.$id.'">'.
				$sec_sys->PHPSECURITYADMIN_EDIT.'</a>] [<a href="'.$_SERVER['PHP_SELF'].
				'?language='.$sec_sys->LANGUAGE.'&a=page_delete&id='.$id.'">'.$sec_sys->PHPSECURITYADMIN_DELETE.
				'</a>]</td></tr>'."\n";
			$i++;
		}
		echo '</table>'."\n";
	}else{
		echo $sec_sys->PHPSECURITYADMIN_NO_PAGES_DEFINED.'<br>'."\n";
	}
	echo '  </form>'."\n";
?>
Return current item: phpSecurityAdmin