Changeset 614 for trunk/admin/include/functions.php
- Timestamp:
- Nov 23, 2004, 11:31:24 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/functions.php
r610 r614 581 581 } 582 582 583 function display_categories( $categories, $indent,584 $selected = -1, $forbidden = -1 )585 {586 global $vtp,$sub;587 588 foreach ( $categories as $category ) {589 if ( $category['id'] != $forbidden )590 {591 $vtp->addSession( $sub, 'associate_cat' );592 $vtp->setVar( $sub, 'associate_cat.value', $category['id'] );593 $content = $indent.'- '.$category['name'];594 $vtp->setVar( $sub, 'associate_cat.content', $content );595 if ( $category['id'] == $selected )596 $vtp->setVar( $sub, 'associate_cat.selected', ' selected="selected"' );597 $vtp->closeSession( $sub, 'associate_cat' );598 display_categories( $category['subcats'], $indent.str_repeat(' ',3),599 $selected, $forbidden );600 }601 }602 }603 604 583 /** 605 584 * returns an array with the ids of the restricted categories for the user
Note: See TracChangeset
for help on using the changeset viewer.