From 1b56a087aa6e173e82bb349e5dd3121d8010a7e4 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 12 Apr 2007 13:51:16 +0000 Subject: [PATCH] The displayed header image is part of the setup_step class git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6033 594d385d-05f5-0310-b6e9-bd551577e9d8 --- setup/class_setup.inc | 21 +-------------------- setup/class_setupStep.inc | 11 ++++++++++- setup/class_setupStep1.inc | 1 + setup/setup_frame.tpl | 4 +--- 4 files changed, 13 insertions(+), 24 deletions(-) diff --git a/setup/class_setup.inc b/setup/class_setup.inc index 5b1ca7872..4b9af867d 100644 --- a/setup/class_setup.inc +++ b/setup/class_setup.inc @@ -233,26 +233,7 @@ class setup /* Create header entry */ function get_header_html() { - $str =""; - $str.="
"; - $str.="
"; - $str.=" "; - $str.= $this->o_steps[$this->i_current]->get_long_title(); - $str.=" "; - $str.="
"; -# $str.="
"; -# if(isset($this->o_steps[$this->i_current -1]) && $this->o_steps[$this->i_current -1]->is_enabled()){ -# $str.=" "; -# }else{ -# $str.=" "; -# } -# if(isset($this->o_steps[$this->i_current +1]) && $this->o_steps[$this->i_current +1]->is_enabled()){ -# $str.=" "; -# }else{ -# $str.=" "; -# } -# $str.= "
"; - $str.= "
"; + $str= $this->o_steps[$this->i_current]->print_header(); return ($str); } diff --git a/setup/class_setupStep.inc b/setup/class_setupStep.inc index cbbb73926..f685da56c 100644 --- a/setup/class_setupStep.inc +++ b/setup/class_setupStep.inc @@ -20,7 +20,7 @@ */ -class setup_step +class setup_step extends plugin { var $s_title = "Still undefined"; var $s_title_long = "This is a still undefined long title"; @@ -29,9 +29,12 @@ class setup_step var $is_enabled = false; var $is_completed = false; + var $header_image = "images/personal.png"; + var $attributes = array(); var $parent = NULL; + function setup_step() { } @@ -111,6 +114,12 @@ class setup_step } return($tmp); } + + function print_header() + { + $display= print_header(get_template_path($this->header_image),$this->s_title_long,""); + return($display); + } } diff --git a/setup/class_setupStep1.inc b/setup/class_setupStep1.inc index 2dae4b87e..59a45524e 100644 --- a/setup/class_setupStep1.inc +++ b/setup/class_setupStep1.inc @@ -26,6 +26,7 @@ class setup_step_1 extends setup_step var $lang = "en_EN"; /* Detected language */ var $languages = array(); var $attributes = array("lang","lang_selected"); + var $header_image = "images/system.png"; function setup_step_1() { diff --git a/setup/setup_frame.tpl b/setup/setup_frame.tpl index 79c3218ed..f3e20530e 100644 --- a/setup/setup_frame.tpl +++ b/setup/setup_frame.tpl @@ -21,9 +21,7 @@
  • -
    - {$header} -
    + {$header}
  • -- 2.30.2