diff --git a/phpgwapi/inc/class.sbox.inc.php b/phpgwapi/inc/class.sbox.inc.php new file mode 100644 index 0000000000..1ccd431381 --- /dev/null +++ b/phpgwapi/inc/class.sbox.inc.php @@ -0,0 +1,208 @@ +'; + $t_s[$selected] = " selected"; + for ($i=0; $i<24; $i++) { + $s .= ''; + $s .= "\n"; + } + $s .= ""; + return $s; + } + + function hour_text($name, $selected = 0) + { + global $phpgw; + + $s = '"; + return $s; + } + + // I would like to add a increment feature + function sec_minute_text($name, $selected = 0) + { + $s = '"; + return $s; + } + + function ap_text($name,$selected) + { + $selected = strtolower($selected); + $t[$selected] = " selected"; + $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"; + + for(reset($arr);current($arr);next($arr)) + { + $out .= '