verifyPackage( 'pigeonholes' ); $gBitSystem->verifyPermission( 'bit_p_view_pigeonholes' ); include_once( PIGEONHOLES_PKG_PATH.'lookup_pigeonholes_inc.php' ); // set up structure related stuff global $gStructure; $gStructure = new LibertyStructure( $gPigeonholes->mInfo['root_structure_id'] ); $gStructure->load(); // order matters for these conditionals if( empty( $gStructure ) || !$gStructure->isValid() ) { $gBitSystem->fatalError( 'Invalid structure' ); } $gBitSmarty->assign_by_ref( 'gStructure', $gStructure ); $gBitSmarty->assign( 'structureInfo', $gStructure->mInfo ); $gBitSmarty->assign( 'subtree', $gStructure->getSubTree( $gStructure->mStructureId ) ); $listHash = array( 'root_structure_id' => $gPigeonholes->mInfo['root_structure_id'] ); $pigeonList = $gPigeonholes->getList( $listHash, FALSE, TRUE ); $gBitSmarty->assign( 'pigeonList', $pigeonList['data'] ); // Display the template $gBitSystem->display( 'bitpackage:pigeonholes/view_structure.tpl', tra( 'View Pigeonhole' ) ); ?>