Helpers - softhightech/Reeeh GitHub Wiki

How to use helpers and create add forms or any other forms?

If you want to draw an HTML forms, that’s not big deal, you just need to instantiate class FORMS then you create a simple arry with what kind of fields you need, then you call the methode “Draw” to draw your form and that’s all!

$my_helper = new FORMS();

$form1 = array( array(‘DIVSTART’,‘div_id’,‘div_class’) );

$my_helper→Draw($form1);

In this example i just created a div start the result is : <div id=“div_id” class=“div_class”>

More helpers :

Add an open div tag

array('DIVSTART','div_id','div_class')

Result :

<div id=“div_id” class=“div_class”>

Add a close div tag

array('DIVEND')

Result :

</div>

Input type Text

array('TEXT','name','size','class', 'id', 'tab index','disabled or not if not let it empty','style', 'value' )

Input type Password

array('PASSWORD','name','size','class', 'id', 'tab index')

Input type Hidden

array('HIDDEN','name','size','class', 'id', 'value')

Title

array('TITLE','class','id','style', 'content')

Label

array('LABEL','name','class','id', 'FORCED if required')

Span

array('SPAN','name','class','id', 'FORCED if required')

File

array('FILE','name','class','id')

Textarea

array('TEXTAREA','name','cols','class','id','tab index','true if disabled')

Button to add simple button

array('BUTTON','value','name','class','id','tab index')

Button to add action button

array('CBUTTON','value','name','class','id','javascript code and the action will be on click')

Checkbox

array('CHECKBOX','name','class','id','value','checked if checked')

Radio box

array('RADIO','name','class','id','value','checked if checked','label value','label id','label class')

Select box

array('COMBO','name','class','id','table name','id','field name')

⚠️ **GitHub.com Fallback** ⚠️