diff --git a/phpgwapi/inc/class.sbox.inc.php b/phpgwapi/inc/class.sbox.inc.php index 2fffa17cca..e1a5ae8654 100644 --- a/phpgwapi/inc/class.sbox.inc.php +++ b/phpgwapi/inc/class.sbox.inc.php @@ -42,7 +42,7 @@ ); var $country_array = array( - ' '=>'Select One', + ' '=>'Select One', 'AF'=>'AFGHANISTAN', 'AL'=>'ALBANIA', 'DZ'=>'ALGERIA', @@ -283,11 +283,11 @@ 'ZM'=>'ZAMBIA', 'ZW'=>'ZIMBABWE', ); - + function hour_formated_text($name, $selected = 0) { global $phpgw; - + $s = ''; $t_s[$selected] = " selected"; for ($i=1; $i<13; $i++) @@ -317,7 +317,7 @@ return $s; } - + // I would like to add a increment feature function sec_minute_text($name, $selected = 0) { @@ -343,54 +343,70 @@ $s .= ''; return $s; } - - function full_time($hour_name,$hour_selected,$min_name,$min_selected,$sec_name,$sec_selected,$ap_name,$ap_selected) - { - // This needs to be changed to support there time format preferences - $s = $this->hour_text($hour_name,$hour_selected) - . $this->sec_minute_text($min_name,$min_selected) - . $this->sec_minute_text($sec_name,$sec_selected) - . $this->ap_text($ap_name,$ap_selected); - return $s; - } - - function getMonthText($name, $selected=0) - { - $out = ''."\n"; - return $out; - } - - function getDays($name, $selected=0) - { - $out = ''."\n"; - return $out; - } - + + function full_time($hour_name,$hour_selected,$min_name,$min_selected,$sec_name,$sec_selected,$ap_name,$ap_selected) + { + // This needs to be changed to support there time format preferences + $s = $this->hour_text($hour_name,$hour_selected) + . $this->sec_minute_text($min_name,$min_selected) + . $this->sec_minute_text($sec_name,$sec_selected) + . $this->ap_text($ap_name,$ap_selected); + return $s; + } + + function getMonthText($name, $selected=0) + { + $out = ''."\n"; + return $out; + } + + function getDays($name, $selected=0) + { + $out = ''."\n"; + return $out; + } + function getYears($name, $selected = 0, $startYear = 0, $endyear = 0) { - if (!$startYear) { $startYear = date('Y') - 2; @@ -426,29 +442,32 @@ return $out; } - - function getPercentage($name, $selected=0) - { - $out = "\n"; - - for(reset($arr);current($arr);next($arr)) - { - $out .= '