projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
XHTML fixes
[squirrelmail.git]
/
plugins
/
calendar
/
functions.php
diff --git
a/plugins/calendar/functions.php
b/plugins/calendar/functions.php
index 6b646832e69f0d85a27f03dc385cf584c6c084c8..d7cbb6b9bb5d9e915ab6de68461c3e5a195c58ef 100644
(file)
--- a/
plugins/calendar/functions.php
+++ b/
plugins/calendar/functions.php
@@
-3,7
+3,7
@@
/**
* functions.php
*
/**
* functions.php
*
- * Copyright (c) 2002-200
3
The SquirrelMail Project Team
+ * Copyright (c) 2002-200
4
The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* Originally contrubuted by Michal Szczotka <michal@tuxy.org>
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* Originally contrubuted by Michal Szczotka <michal@tuxy.org>
@@
-11,9
+11,13
@@
* miscelenous functions.
*
* $Id$
* miscelenous functions.
*
* $Id$
+ * @package plugins
+ * @subpackage calendar
*/
*/
-
+/**
+ * @return void
+ */
function calendar_header() {
//Add Second layer ofCalendar links to upper menu
global $color,$year,$day,$month;
function calendar_header() {
//Add Second layer ofCalendar links to upper menu
global $color,$year,$day,$month;
@@
-37,7
+41,7
@@
function select_option_length($selected) {
$eventlength = array(
'0' => _("0 min."),
'15' => _("15 min."),
$eventlength = array(
'0' => _("0 min."),
'15' => _("15 min."),
- '30' => _("3
5
min."),
+ '30' => _("3
0
min."),
'45' => _("45 min."),
'60' => _("1 hr."),
'90' => _("1.5 hr."),
'45' => _("45 min."),
'60' => _("1 hr."),
'90' => _("1.5 hr."),
@@
-52,9
+56,9
@@
function select_option_length($selected) {
while( $bar = each($eventlength)) {
if($selected==$bar['key']){
while( $bar = each($eventlength)) {
if($selected==$bar['key']){
- echo
" <OPTION VALUE=\"".$bar['key']."\" SELECTED>".$bar['value']."</OPTION
>\n";
+ echo
' <option value="'.$bar['key'].'" selected="selected">'.$bar['value']."</option
>\n";
} else {
} else {
- echo
" <OPTION VALUE=\"".$bar['key']."\">".$bar['value']."</OPTION
>\n";
+ echo
' <option value="'.$bar['key'].'">'.$bar['value']."</option
>\n";
}
}
}
}
}
}
@@
-77,9
+81,9
@@
function select_option_minute($selected) {
while ( $bar = each($eventminute)) {
if ($selected==$bar['key']){
while ( $bar = each($eventminute)) {
if ($selected==$bar['key']){
- echo
" <OPTION VALUE=\"".$bar['key']."\" SELECTED>".$bar['value']."</OPTION
>\n";
+ echo
' <option value="'.$bar['key'].'" selected="selected">'.$bar['value']."</option
>\n";
} else {
} else {
- echo
" <OPTION VALUE=\"".$bar['key']."\">".$bar['value']."</OPTION
>\n";
+ echo
' <option value="'.$bar['key'].'">'.$bar['value']."</option
>\n";
}
}
}
}
}
}
@@
-89,9
+93,9
@@
function select_option_hour($selected) {
for ($i=0;$i<24;$i++){
($i<10)? $ih = "0" . $i : $ih = $i;
if ($ih==$selected){
for ($i=0;$i<24;$i++){
($i<10)? $ih = "0" . $i : $ih = $i;
if ($ih==$selected){
- echo
" <OPTION VALUE=\"$ih\" SELECTED>$i</OPTION
>\n";
+ echo
' <option value="'.$ih.'" selected="selected">'.$i."</option
>\n";
} else {
} else {
- echo
" <OPTION VALUE=\"$ih\">$i</OPTION
>\n";
+ echo
' <option value="'.$ih.'">'.$i."</option
>\n";
}
}
}
}
}
}
@@
-104,9
+108,9
@@
function select_option_priority($selected) {
while( $bar = each($eventpriority)) {
if($selected==$bar['key']){
while( $bar = each($eventpriority)) {
if($selected==$bar['key']){
- echo
" <OPTION VALUE=\"".$bar['key']."\" SELECTED>".$bar['value']."</OPTION
>\n";
+ echo
' <option value="'.$bar['key'].'" selected="selected">'.$bar['value']."</option
>\n";
} else {
} else {
- echo
" <OPTION VALUE=\"".$bar['key']."\">".$bar['value']."</OPTION
>\n";
+ echo
' <option value="'.$bar['key'].'">'.$bar['value']."</option
>\n";
}
}
}
}
}
}
@@
-115,9
+119,9
@@
function select_option_year($selected) {
for ($i=1902;$i<2038;$i++){
if ($i==$selected){
for ($i=1902;$i<2038;$i++){
if ($i==$selected){
- echo
" <OPTION VALUE=\"$i\" SELECTED>$i</OPTION
>\n";
+ echo
' <option value="'.$i.'" selected="selected">'.$i."</option
>\n";
} else {
} else {
- echo
" <OPTION VALUE=\"$i\">$i</OPTION
>\n";
+ echo
' <option value="'.$i.'">'.$i."</option
>\n";
}
}
}
}
}
}
@@
-126,11
+130,11
@@
function select_option_month($selected) {
for ($i=1;$i<13;$i++){
$im=date('m',mktime(0,0,0,$i,1,1));
for ($i=1;$i<13;$i++){
$im=date('m',mktime(0,0,0,$i,1,1));
- $is =
substr( _( date('F',mktime(0,0,0,$i,1,1)) ), 0, 3
);
+ $is =
getMonthAbrv( date('m',mktime(0,0,0,$i,1,1))
);
if ($im==$selected){
if ($im==$selected){
- echo
" <OPTION VALUE=\"$im\" SELECTED>$is</OPTION
>\n";
+ echo
' <option value="'.$im.'" selected="selected">'.$is."</option
>\n";
} else {
} else {
- echo
" <OPTION VALUE=\"$im\">$is</OPTION
>\n";
+ echo
' <option value="'.$im.'">'.$is."</option
>\n";
}
}
}
}
}
}
@@
-140,11
+144,11
@@
function select_option_day($selected) {
for ($i=1;$i<32;$i++){
($i<10)? $ih="0".$i : $ih=$i;
if ($i==$selected){
for ($i=1;$i<32;$i++){
($i<10)? $ih="0".$i : $ih=$i;
if ($i==$selected){
- echo
" <OPTION VALUE=\"$ih\" SELECTED>$i</OPTION
>\n";
+ echo
' <option value="'.$ih.'" selected="selected">'.$i."</option
>\n";
} else {
} else {
- echo
" <OPTION VALUE=\"$ih\">$i</OPTION
>\n";
+ echo
' <option value="'.$ih.'">'.$i."</option
>\n";
}
}
}
}
}
}
-?>
+?>
\ No newline at end of file