Pareces nuevo por aquí. Si quieres participar, ¡pulsa uno de estos botones!
if($field['Type']=='tinyint(1)'){ if(!isset($form['components'][$field['Field']]['valueType'])){ $form['components'][$field['Field']]['valueType'] = "checkbox"; } }
if(!isset($form['components'][$field['Field']]['type'])){ if(!ereg("tinyint", $field['Type'])) { $form['components'][$field['Field']]['type'] = "text"; } else { $form['components'][$field['Field']]['type'] = "checkbox"; } }
case 'checkbox': Generator::forms_print("<tr><td valign='top' align='right'><label for='flid_".$name."'><strong>".$com['caption']." :</strong></label></td><td>\r\n<input type='checkbox' disabled name='fl_$name' id='flid_$name' style='border:1px solid #FFFFFF'; margin: 0px;"); if(isset($_REQUEST['fl_'.$name]) && $_REQUEST['fl_'.$name]==$com['checkedValue']){ Generator::forms_print(" checked='checked' "); } if($com["attributes"]){ foreach($com["attributes"] as $nitem => $item) { Generator::forms_print(" $nitem='$item' "); } } Generator::forms_print(">\r\n</td></tr>"); break;
Comentarios