clipbucket/upload/includes/functions_admin.php
Arslan Hassan ea10f2989b Added : New Category System inc SQL updates
Added : Amplify 
Added : bootstrap and jQuery UI
Added : Amlpify on front-end
Added : Category iCons
Updated : Admin Area Template
2012-05-19 13:42:45 +00:00

32 lines
677 B
PHP

<?php
// Funtions ued in for admin area only
function list_admin_categories($categories)
{
foreach($categories as $category)
{
if(!$category['parent_id'])
list_category($category);
}
}
function list_category($category,$prefix=NULL)
{
if($category)
{
assign('prefix',$prefix);
assign('category',$category);
Template('blocks/category.html');
if($category['children'])
{
$prefix = $prefix.' &ndash; ';
foreach($category['children'] as $child)
{
list_category($child,$prefix);
}
}
}
}
?>