Update of /cvsroot/phpicalendar/phpicalendar
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9224
Modified Files:
preferences.php
Log Message:
Validated XHMTL for preferences
Index: preferences.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/preferences.php,v
retrieving revision 1.44
retrieving revision 1.45
diff -C2 -d -r1.44 -r1.45
*** preferences.php 9 Feb 2004 00:51:48 -0000 1.44
--- preferences.php 16 May 2004 17:09:01 -0000 1.45
***************
*** 80,86 ****
$language_tmp = urlencode(ucfirst(substr($file, 0, -8)));
if ($language_tmp == $cookie_language) {
! $language_select .= "<option value=\"$language_tmp\" selected>$language_tmp</option>\n";
} else {
! $language_select .= "<option value=\"$language_tmp\">$language_tmp</option>\n";
}
}
--- 80,86 ----
$language_tmp = urlencode(ucfirst(substr($file, 0, -8)));
if ($language_tmp == $cookie_language) {
! $language_select .= '<option value="'.$language_tmp.'" selected="selected">'.$language_tmp.'</option>';
} else {
! $language_select .= '<option value="'.$language_tmp.'">'.$language_tmp.'</option>';
}
}
***************
*** 92,105 ****
// select for dayview
! $view_select = ($cookie_view == 'day') ? '<option value="day" selected>{L_DAY}</option>' : '<option value="day">{L_DAY}</option>';
! $view_select .= ($cookie_view == 'week') ? '<option value="week" selected>{L_WEEK}</option>' : '<option value="week">{L_WEEK}</option>';
! $view_select .= ($cookie_view == 'month') ? '<option value="month" selected>{L_MONTH}</option>' : '<option value="month">{L_MONTH}</option>';
// select for time
for ($i = 000; $i <= 1200; $i += 100) {
$s = sprintf("%04d", $i);
! $time_select .= "<option value=\"$s\"";
if ($s == $cookie_time) {
! $time_select .= " selected";
}
$time_select .= ">$s</option>\n";
--- 92,105 ----
// select for dayview
! $view_select = ($cookie_view == 'day') ? '<option value="day" selected="selected">{L_DAY}</option>' : '<option value="day">{L_DAY}</option>';
! $view_select .= ($cookie_view == 'week') ? '<option value="week" selected="selected">{L_WEEK}</option>' : '<option value="week">{L_WEEK}</option>';
! $view_select .= ($cookie_view == 'month') ? '<option value="month" selected="selected">{L_MONTH}</option>' : '<option value="month">{L_MONTH}</option>';
// select for time
for ($i = 000; $i <= 1200; $i += 100) {
$s = sprintf("%04d", $i);
! $time_select .= '<option value="'.$s.'"';
if ($s == $cookie_time) {
! $time_select .= ' selected="selected"';
}
$time_select .= ">$s</option>\n";
***************
*** 109,116 ****
$i=0;
foreach ($daysofweek_lang as $daysofweek) {
! if ($startdays[$i] == "$cookie_startday") {
! $startday_select .= "<option value=\"$startdays[$i]\" selected>$daysofweek</option>\n";
} else {
! $startday_select .= "<option value=\"$startdays[$i]\">$daysofweek</option>\n";
}
$i++;
--- 109,116 ----
$i=0;
foreach ($daysofweek_lang as $daysofweek) {
! if ($startdays[$i] == $cookie_startday) {
! $startday_select .= '<option value="'.$startdays[$i].'" selected="selected">'.$daysofweek.'</option>';
} else {
! $startday_select .= '<option value="'.$startdays[$i].'">'.$daysofweek.'</option>';
}
$i++;
***************
*** 122,126 ****
if (!is_file($file)) {
$file_disp = ucfirst($file);
! $style_select .= ($file == "$cookie_style") ? "<option value=\"$file\" selected>$file_disp</option>\n" : "<option value=\"$file\">$file_disp</option>\n";
}
}
--- 122,126 ----
if (!is_file($file)) {
$file_disp = ucfirst($file);
! $style_select .= ($file == "$cookie_style") ? "<option value=\"$file\" selected=\"selected\">$file_disp</option>\n" : "<option value=\"$file\">$file_disp</option>\n";
}
}
|