toolbar.inc
上传用户:xiao730204
上传日期:2007-01-04
资源大小:141k
文件大小:1k
- <!-- START TOOLBAR -->
- <?php
- $template_obj->ParseTemplate(
- './templates/toolbar/top.inc'
- );
- $t_apps = Array();
- reset( $app_server->apps );
- while( list( $app, $obj_ref ) = each( $app_server->apps ) ) {
- $t_apps[ $app ] = './' . strtolower( $app ) . '/templates/toolbar.inc';
- }
- /*
- This logic puts the application toolbar the
- user is currently in first.
- */
- reset( $t_apps );
- while( list( $app_val, $toolbar ) = each( $t_apps ) ) {
- if ( $app_val == $current_application ) {
- if ( file_exists( $toolbar ) ) {
- include( $toolbar );
- }
- }
- }
- /*
- Print the rest of the apps in the toolbar
- */
- reset( $t_apps );
- while( list( $app_val, $toolbar ) = each( $t_apps ) ) {
- if ( $app_val != $current_application ) {
- if ( file_exists( $toolbar ) ) {
- include( $toolbar );
- }
- }
- }
- $template_obj->ParseTemplate(
- './templates/toolbar/bottom.inc'
- );
- ?>
- <!-- END TOOLBAR -->