Base field types
Basic field types support. Xcrud tries to define type automatically from database, or you can set it manualy
HIDE CODE
<?php $xcrud = Xcrud::get_instance(); if(isset($_SESSION["lang"])){ $xcrud->language($_SESSION["lang"]); $language = $_SESSION["lang"]; }else{ $xcrud->language('en'); $language = "en"; } $xcrud->table('base_fields'); $xcrud->no_editor('text_area'); $xcrud->fields("text,text_area,text_editor,integer,float,price,range,enum,set,date,datetime,time,bool,point,radio,radio_custom,radio_switch,drawing"); $xcrud->fields_arrange("text,text_area,text_editor","Text",true); $xcrud->fields_arrange("integer,float,price,range","Numerals",true); $xcrud->fields_arrange("enum,set,bool,radio,radio_custom,radio_switch","Options/Collection",true); $xcrud->fields_arrange("date,datetime,time","Date & Time",true); $xcrud->fields_arrange("point,xx1","Map",true); $xcrud->change_type("radio","radio","",array("Yes"=>"Yes","No"=>"No")); $xcrud->change_type("radio_custom","radio_buttons","",array("Yes"=>"Yes","No"=>"No")); $xcrud->change_type("range","range","12",array(0=>"0",150=>"150")); $xcrud->change_type("radio_switch","switch","",array("Yes"=>"Yes")); $xcrud->change_type('price', 'price','0',array('prefix'=>'€')); //$xcrud->column_callback("radio_switch","getStatusSwitchRadio"); //$xcrud->field_callback("radio_switch","getStatusSwitchRadio_Edit"); $xcrud->change_type("drawing","drawing"); $xcrud->fields_arrange("drawing","Signature",true); $xcrud->label("radio_custom","Custom Radio"); $xcrud->create_field("xx1","select","",array("Yes"=>"Yes","No"=>"No")); echo $xcrud->render('create'); $out = '<script src="//maps.google.com/maps/api/js?key=' . Xcrud_config::$google_map_api . '&language=' . $language . '"></script>'; echo $out; ?>