phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] [19083] Fix some interesting bug (try to count from 1


From: Caeies
Subject: [Phpgroupware-cvs] [19083] Fix some interesting bug (try to count from 100 to 100 ...), fix the selected stuff
Date: Wed, 18 Feb 2009 18:28:39 +0000

Revision: 19083
          
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=19083
Author:   Caeies
Date:     2009-02-18 18:28:39 +0000 (Wed, 18 Feb 2009)

Log Message:
-----------
Fix some interesting bug (try to count from 100 to 100 ...), fix the selected 
stuff

Modified Paths:
--------------
    core/trunk/phpgwapi/inc/class.sbox.inc.php

Modified: core/trunk/phpgwapi/inc/class.sbox.inc.php
===================================================================
--- core/trunk/phpgwapi/inc/class.sbox.inc.php  2009-02-18 18:25:59 UTC (rev 
19082)
+++ core/trunk/phpgwapi/inc/class.sbox.inc.php  2009-02-18 18:28:39 UTC (rev 
19083)
@@ -335,11 +335,11 @@
 
 HTML;
 
-                       for ( $i = 100; $i <= 100; $i += $interval)
+                       for ( $i = 0; $i <= 100; $i += $interval)
                        {
-                               $slctd = $i == $selected ? ' selected' : '';
+                               $slctd = $i == $selected ? ' selected=""' : '';
                                $html .= <<<HTML
-                               <option value="{$i}">$i</option>
+                               <option value="{$i}"{$slctd}>$i</option>
 
 HTML;
                        }
@@ -367,8 +367,9 @@
 HTML;
                        foreach ( $priorities as $id => $priority )
                        {
+                               $slctd = $id == $selected ? ' selected=""' : '';
                                $html .= <<<HTML
-                               <option value="{$id}">$priority</option>
+                               <option value="{$id}"{$slctd}>$priority</option>
 
 HTML;
                        }
@@ -407,7 +408,7 @@
 
                        foreach ( $options as $id => $option )
                        {
-                               $slctd = $id == $selected ? ' selected' : '';
+                               $slctd = $id == $selected ? ' selected=""' : '';
                                $html .= <<<HTML
                                <option value="{$id}">$option</option>
 HTML;
@@ -434,7 +435,7 @@
                        }
                        $selected = trim($selected);
 
-                       $slctd = !$selected ? '' : ' selected';
+                       $slctd = !$selected ? '' : ' selected=""';
                        $lang_select1 = lang('Select One');
                        $select = <<<HTML
                                <select name="{$name}">
@@ -443,7 +444,7 @@
 HTML;
                        foreach ( phpgwapi_country::get_translated_list() as 
$code => $country )
                        {
-                               $slctd = $code == $selected ? '' : ' selected';
+                               $slctd = $code == $selected ? '' : ' 
selected=""';
                                $select .= <<<HTML
                                        <option 
value="{$code}"{$selected}>{$country}</option>
 
@@ -505,7 +506,7 @@
 
                        foreach ( $options as $value => $option )
                        {
-                               $selected = isset( $selected[$value] ) ? ' 
selected' : '';
+                               $selected = isset( $selected[$value] ) ? ' 
selected=""' : '';
                                $option = $no_lang ? $option : lang($option);
 
                                $html .= <<<HTML






reply via email to

[Prev in Thread] Current Thread [Next in Thread]