Пример #1
0
function display_category_pages($category_id, $category_name)
{
    include './_categoryPages.php';
    if ($children = child_categories($category_id)) {
        foreach ($children as $child_id => $child_name) {
            display_category_pages($child_id, $child_name);
        }
    }
}
Пример #2
0
<?
require('../inc/config.php');
$session->auth_or_redirect('admin', '/admin');

$admin_title = 'Edit Blocks';

include('../inc/header.php');
?>

	<p><a href="/admin">Back to Admin Home</a></p>

  <table>
  <?php 
display_category_pages(0, 'No Category');
?>
	<?php 
include './_categories.php';
?>
  </table>


<?
include('../inc/footer.php'); 
?>
Пример #3
0
<?
$parents = parent_categories();
if (!empty($parents)) {
	foreach ($parents as $category_id => $category_name)
	  {
	  	display_category_pages($category_id, $category_name);
	  }
}
?>