Changeset 614 for trunk/admin/include
- Timestamp:
- Nov 23, 2004, 11:31:24 PM (20 years ago)
- Location:
- trunk/admin/include
- Files:
-
- 2 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 -
trunk/admin/include/functions_metadata.php
r600 r614 41 41 if (in_array($pwg_key, $datefields)) 42 42 { 43 if ( 43 if (preg_match('/(\d{4})(\d{2})(\d{2})/', $value, $matches)) 44 44 { 45 45 $iptc[$pwg_key] = $matches[1].'-'.$matches[2].'-'.$matches[3];
Note: See TracChangeset
for help on using the changeset viewer.