toolbar.inc
上传用户:xiao730204
上传日期:2007-01-04
资源大小:141k
文件大小:1k
源码类别:

WEB邮件程序

开发平台:

PHP

  1. <!-- START TOOLBAR -->
  2. <?php
  3. $template_obj->ParseTemplate(
  4.    './templates/toolbar/top.inc'
  5. );
  6. $t_apps = Array();
  7. reset( $app_server->apps );
  8. while( list( $app, $obj_ref ) = each( $app_server->apps ) ) {
  9.    $t_apps[ $app ] = './' . strtolower( $app ) . '/templates/toolbar.inc';
  10. }
  11. /*
  12. This logic puts the application toolbar the
  13. user is currently in first.
  14. */
  15. reset( $t_apps );
  16. while( list( $app_val, $toolbar ) = each( $t_apps ) ) {
  17.    if ( $app_val == $current_application ) {
  18.       if ( file_exists( $toolbar ) ) {
  19.          include( $toolbar );
  20.       }
  21.    }
  22. }
  23. /*
  24. Print the rest of the apps in the toolbar
  25. */
  26. reset( $t_apps );
  27. while( list( $app_val, $toolbar ) = each( $t_apps ) ) {
  28.    if ( $app_val != $current_application ) {
  29.       if ( file_exists( $toolbar ) ) {
  30.          include( $toolbar );
  31.       }
  32.    }
  33. }
  34. $template_obj->ParseTemplate(
  35.    './templates/toolbar/bottom.inc'
  36. );
  37. ?>
  38. <!-- END TOOLBAR -->