[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] phpgwapi/inc/class.sbox.inc.php, 1.22.2.3.2.5
From: |
nomail |
Subject: |
[Phpgroupware-cvs] phpgwapi/inc/class.sbox.inc.php, 1.22.2.3.2.5 |
Date: |
Sat, 6 Nov 2004 16:34:26 +0100 |
Update of /phpgwapi/inc
Modified Files:
Branch: Version-0_9_16-branch
class.sbox.inc.php
date: 2004/11/06 15:34:26; author: powerstat; state: Exp; lines: +18 -18
Log Message:
Bugfixes HTML; makes it a bit more W3C conform;
see patch #3503
=====================================================================
Index: phpgwapi/inc/class.sbox.inc.php
diff -u phpgwapi/inc/class.sbox.inc.php:1.22.2.3.2.4
phpgwapi/inc/class.sbox.inc.php:1.22.2.3.2.5
--- phpgwapi/inc/class.sbox.inc.php:1.22.2.3.2.4 Tue Feb 10 13:51:18 2004
+++ phpgwapi/inc/class.sbox.inc.php Sat Nov 6 15:34:26 2004
@@ -303,7 +303,7 @@
function hour_formated_text($name, $selected = 0)
{
$s = '<select name="' . $name . '">';
- $t_s[$selected] = ' selected';
+ $t_s[$selected] = ' selected="selected"';
for ($i=0; $i<24; $i++)
{
@@ -318,7 +318,7 @@
function hour_text($name, $selected = 0)
{
$s = '<select name="' . $name . '">';
- $t_s[$selected] = " selected";
+ $t_s[$selected] = ' selected="selected"';
for ($i=1; $i<13; $i++)
{
$s .= '<option value="' . $i . '"' . $t_s[$i] .
'>'
@@ -334,7 +334,7 @@
function sec_minute_text($name, $selected = 0)
{
$s = '<select name="' . $name . '">';
- $t_s[$selected] = " selected";
+ $t_s[$selected] = ' selected="selected"';
for ($i=0; $i<60; $i++)
{
@@ -348,7 +348,7 @@
function ap_text($name,$selected)
{
$selected = strtolower($selected);
- $t[$selected] = " selected";
+ $t[$selected] = ' selected="selected"';
$s = '<select name="' . $name . '">'
. ' <option value="am"' . $t['am'] .
'>am</option>'
. ' <option value="pm"' . $t['pm'] .
'>pm</option>';
@@ -371,7 +371,7 @@
$out = '';
for($i=0;$i<count($this->weekdays);$i++)
{
- $out .= '<option
value="'.$i.'"'.($selected!=$i?'':'
selected').'>'.($this->weekdays[$i]!=''?lang($this->weekdays[$i]):'').'</option>'."\n";
+ $out .= '<option
value="'.$i.'"'.($selected!=$i?'':'
selected="selected"').'>'.($this->weekdays[$i]!=''?lang($this->weekdays[$i]):'').'</option>'."\n";
}
return '<select
name="'.$name.'">'."\n".$out.'</select>'."\n";
}
@@ -393,7 +393,7 @@
$c_monthnames = count($this->monthnames);
for($i=0;$i<$c_monthnames;$i++)
{
- $out .= '<option
value="'.$i.'"'.($selected!=$i?'':'
selected').'>'.($this->monthnames[$i]!=''?lang($this->monthnames[$i]):'').'</option>'."\n";
+ $out .= '<option
value="'.$i.'"'.($selected!=$i?'':'
selected="selected"').'>'.($this->monthnames[$i]!=''?lang($this->monthnames[$i]):'').'</option>'."\n";
}
return '<select
name="'.$name.'">'."\n".$out.'</select>'."\n";
}
@@ -404,7 +404,7 @@
for($i=0;$i<32;$i++)
{
- $out .= '<option
value="'.($i?$i:'').'"'.($selected!=$i?'':'
selected').'>'.($i?$i:'').'</option>'."\n";
+ $out .= '<option
value="'.($i?$i:'').'"'.($selected!=$i?'':'
selected="selected"').'>'.($i?$i:'').'</option>'."\n";
}
return '<select
name="'.$name.'">'."\n".$out.'</select>'."\n";
}
@@ -428,7 +428,7 @@
$out .= '<option value=""';
if ($selected == 0 OR $selected == '')
{
- $out .= ' SELECTED';
+ $out .= ' selected="selected"';
}
$out .= '></option>'."\n";
@@ -438,7 +438,7 @@
$out .= '<option value="'.$i.'"';
if ($selected==$i)
{
- $out .= ' SELECTED';
+ $out .= ' selected="selected"';
}
$out .= '>'.$i.'</option>'."\n";
}
@@ -456,7 +456,7 @@
$out .= "<option value=\"$i\"";
if($selected==$i)
{
- $out .= " SELECTED";
+ $out .= ' selected="selected"';
}
$out .= ">$i%</option>\n";
}
@@ -477,7 +477,7 @@
$out .= "\"";
if ($selected==$i)
{
- $out .= ' SELECTED';
+ $out .= ' selected="selected"';
}
$out .= ">";
$out .= lang($arr[$i]);
@@ -507,7 +507,7 @@
$out .= '<option value="' . key($arr) . '"';
if($selected==key($arr))
{
- $out .= " SELECTED";
+ $out .= ' selected="selected"';
}
$out .= ">" . pos($arr) . "</option>\n";
}
@@ -527,14 +527,14 @@
{
if ($group['account_id'] ==
$selected[$i])
{
- $out .= " SELECTED";
+ $out .= '
selected="selected"';
break;
}
}
}
elseif (ereg("," . $group['account_id'] . ",",
$selected))
{
- $out .= " SELECTED";
+ $out .= ' selected="selected"';
}
$out .= ">" . $group['account_name'] .
"</option>\n";
}
@@ -606,7 +606,7 @@
$s .= '<option value="' . $sn . '"';
if ($selected == $sn)
{
- $s .= ' selected';
+ $s .= ' selected="selected"';
}
$s .= '>' . $ln . '</option>';
}
@@ -620,11 +620,11 @@
$name = 'country';
}
$str = '<select name="'.$name.'">'."\n"
- . ' <option value=" "'.($selected == ' '?'
selected':'').'>Select One</option>'."\n";
+ . ' <option value=" "'.($selected == ' '?'
selected="selected"':'').'>Select One</option>'."\n";
reset($this->country_array);
while(list($key,$value) = each($this->country_array))
{
- $str .= ' <option value="'.$key.'"'.($selected
== $key?' selected':'') . '>'.lang($value).'</option>'."\n";
+ $str .= ' <option value="'.$key.'"'.($selected
== $key?' selected="selected"':'') . '>'.lang($value).'</option>'."\n";
}
$str .= '</select>'."\n";
return $str;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] phpgwapi/inc/class.sbox.inc.php, 1.22.2.3.2.5,
nomail <=