- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/widgets/class.widgets.php
r0 r117 220 220 } 221 221 222 public function formSettings($pr='' )222 public function formSettings($pr='',&$i=0) 223 223 { 224 224 $res = ''; 225 225 foreach ($this->settings as $id => $s) 226 226 { 227 $wfid = "wf-".$i; 227 228 $iname = $pr ? $pr.'['.$id.']' : $id; 228 229 switch ($s['type']) … … 230 231 case 'text': 231 232 $res .= 232 '<p><label >'.$s['title'].' '.233 form::field(array($iname ),20,255,html::escapeHTML($s['value']),'maximal').233 '<p><label for="'.$wfid.'">'.$s['title'].' '. 234 form::field(array($iname,$wfid),20,255,html::escapeHTML($s['value']),'maximal'). 234 235 '</label></p>'; 235 236 break; 236 237 case 'textarea': 237 238 $res .= 238 '<p><label >'.$s['title'].' '.239 form::textarea(array($iname ),30,5,html::escapeHTML($s['value']),'maximal').239 '<p><label for="'.$wfid.'">'.$s['title'].' '. 240 form::textarea(array($iname,$wfid),30,5,html::escapeHTML($s['value']),'maximal'). 240 241 '</label></p>'; 241 242 break; … … 243 244 $res .= 244 245 '<p>'.form::hidden(array($iname),'0'). 245 '<label class="classic" >'.246 form::checkbox(array($iname ),'1',$s['value']).' '.$s['title'].246 '<label class="classic" for="'.$wfid.'">'. 247 form::checkbox(array($iname,$wfid),'1',$s['value']).' '.$s['title']. 247 248 '</label></p>'; 248 249 break; 249 250 case 'combo': 250 251 $res .= 251 '<p><label>'.$s['title'].' '. 252 form::combo(array($iname),$s['options'],$s['value']). 253 '</label></p>'; 254 break; 255 } 252 '<p><label for="'.$wfid.'">'.$s['title'].' '. 253 form::combo(array($iname,$wfid),$s['options'],$s['value']). 254 '</label></p>'; 255 break; 256 } 257 $i++; 256 258 } 257 259
Note: See TracChangeset
for help on using the changeset viewer.