Changeset 7655 for trunk/phpgwapi/inc/class.sbox.inc.php
- Timestamp:
- 12/14/12 14:30:35 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/inc/class.sbox.inc.php
r5912 r7655 75 75 $t_s[$selected] = ' selected'; 76 76 77 for ($i=0; $i<24; $i++)77 for ($i=0; $i<24; ++$i) 78 78 { 79 79 $s .= '<option value="' . $i . '"' . $t_s[$i] . '>' … … 89 89 $s = '<select name="' . $name . '">'; 90 90 $t_s[$selected] = " selected"; 91 for ($i=1; $i<13; $i++)91 for ($i=1; $i<13; ++$i) 92 92 { 93 93 $s .= '<option value="' . $i . '"' . $t_s[$i] . '>' … … 106 106 $t_s[$selected] = " selected"; 107 107 108 for ($i=0; $i<60; $i++)108 for ($i=0; $i<60; ++$i) 109 109 { 110 110 $s .= '<option value="' . $i . '"' . $t_s[sprintf("%02d",$i)] . '>' . sprintf("%02d",$i) . '</option>'; … … 139 139 { 140 140 $out = ''; 141 for($i=0;$i<count($this->weekdays); $i++)141 for($i=0;$i<count($this->weekdays);++$i) 142 142 { 143 143 $out .= '<option value="'.$i.'"'.($selected!=$i?'':' selected').'>'.($this->weekdays[$i]!=''?lang($this->weekdays[$i]):'').'</option>'."\n"; … … 148 148 function nr2weekday($selected = 0) 149 149 { 150 for($i=0;$i<count($this->weekdays); $i++)150 for($i=0;$i<count($this->weekdays);++$i) 151 151 { 152 152 if ($selected > 0 && $selected == $i) … … 161 161 $out = ''; 162 162 $c_monthnames = count($this->monthnames); 163 for($i=0;$i<$c_monthnames; $i++)163 for($i=0;$i<$c_monthnames;++$i) 164 164 { 165 165 $out .= '<option value="'.$i.'"'.($selected!=$i?'':' selected').'>'.($this->monthnames[$i]!=''?lang($this->monthnames[$i]):'').'</option>'."\n"; … … 171 171 { 172 172 $out = ''; 173 for($i=0;$i<=12; $i++)173 for($i=0;$i<=12;++$i) 174 174 { 175 175 $out .= '<option value="'.$i.'"'.($selected!=$i?'':' selected').'>'.($i?$i:'').'</option>'."\n"; … … 183 183 $out = ''; 184 184 185 for($i=0;$i<32; $i++)185 for($i=0;$i<32;++$i) 186 186 { 187 187 $out .= '<option value="'.($i?$i:'').'"'.($selected!=$i?'':' selected').'>'.($i?$i:'').'</option>'."\n"; … … 214 214 215 215 // We need to add some good error checking here. 216 for ($i=$startYear;$i<$endyear; $i++)216 for ($i=$startYear;$i<$endyear; ++$i) 217 217 { 218 218 $out .= '<option value="'.$i.'"'; … … 251 251 $out = '<select name="' . $name . '">'; 252 252 253 for($i=1;$i<count($arr); $i++)253 for($i=1;$i<count($arr);++$i) 254 254 { 255 255 $out .= "<option value=\""; … … 304 304 if(@is_array($selected)) 305 305 { 306 for($i=0;$i<count($selected); $i++)306 for($i=0;$i<count($selected);++$i) 307 307 { 308 308 if ($group['account_id'] == $selected[$i])
Note: See TracChangeset
for help on using the changeset viewer.