Documentation

JARSForm
in package

JarsForm class to create neat forms in Jars

Table of Contents

Properties

$compact  : mixed
$divstyle  : mixed
$inert  : mixed
$action  : mixed
$formwidth  : mixed
$indent  : mixed
$labelwidth  : mixed
$method  : mixed
$name  : mixed

Methods

__construct()  : mixed
button()  : mixed
checkbox()  : mixed
close()  : mixed
date()  : mixed
error()  : mixed
hidden()  : mixed
Function to create a 'hidden' form element - note this must be craeted after the 'open' function
idt()  : mixed
Function to indent content - one of several functions designed to prettify the form rendering
info()  : mixed
item_end()  : mixed
item_start()  : mixed
label()  : mixed
number()  : mixed
open()  : mixed
option()  : mixed
options_db()  : mixed
will iterate thru values from a database result return line number of item selected
password()  : mixed
pounds()  : mixed
radio()  : mixed
select_close()  : mixed
select_open()  : mixed
setLabelWidth()  : mixed
softbreak()  : mixed
submit()  : mixed
text()  : mixed
textarea()  : mixed

Properties

Methods

__construct()

public __construct(mixed $name[, mixed $action = '' ][, mixed $method = 'POST' ][, mixed $compact = false ]) : mixed
Parameters
$name : mixed
$action : mixed = ''
$method : mixed = 'POST'
$compact : mixed = false

button()

public button(mixed $label, mixed $link[, mixed $extras = '' ]) : mixed
Parameters
$label : mixed
$link : mixed
$extras : mixed = ''

checkbox()

public checkbox(mixed $fieldname, mixed $label[, mixed $checked = false ][, mixed $extra = '' ][, mixed $note = '' ]) : mixed
Parameters
$fieldname : mixed
$label : mixed
$checked : mixed = false
$extra : mixed = ''
$note : mixed = ''

date()

public date(mixed $fieldname, mixed $label[, mixed $value = '' ][, mixed $extra = '' ][, mixed $note = '' ]) : mixed
Parameters
$fieldname : mixed
$label : mixed
$value : mixed = ''
$extra : mixed = ''
$note : mixed = ''

error()

public error(mixed $errmsg) : mixed
Parameters
$errmsg : mixed

hidden()

Function to create a 'hidden' form element - note this must be craeted after the 'open' function

public hidden(string $name, string $value) : mixed
Parameters
$name : string

element name

$value : string

element value

idt()

Function to indent content - one of several functions designed to prettify the form rendering

public idt(string $content) : mixed
Parameters
$content : string

the string to be indented

info()

public info(mixed $msg) : mixed
Parameters
$msg : mixed

item_start()

public item_start() : mixed

label()

public label(mixed $fieldname, mixed $label) : mixed
Parameters
$fieldname : mixed
$label : mixed

number()

public number(mixed $fieldname, mixed $label, mixed $value[, mixed $extra = '' ][, mixed $note = '' ]) : mixed
Parameters
$fieldname : mixed
$label : mixed
$value : mixed
$extra : mixed = ''
$note : mixed = ''

open()

public open([mixed $width = '50em' ]) : mixed
Parameters
$width : mixed = '50em'

option()

public option([mixed $value = '0' ][, mixed $caption = 'Please Select ...' ][, mixed $match = '' ]) : mixed
Parameters
$value : mixed = '0'
$caption : mixed = 'Please Select ...'
$match : mixed = ''

options_db()

will iterate thru values from a database result return line number of item selected

public options_db(mixed $result[, mixed $match = '0' ]) : mixed
Parameters
$result : mixed
$match : mixed = '0'

password()

public password(mixed $fieldname, mixed $label, mixed $value[, mixed $extra = '' ][, mixed $note = '' ]) : mixed
Parameters
$fieldname : mixed
$label : mixed
$value : mixed
$extra : mixed = ''
$note : mixed = ''

pounds()

public pounds(mixed $fieldname, mixed $label[, mixed $value = '0.00' ][, mixed $extra = 'style="width:6em;text-align:right"' ][, mixed $note = '' ]) : mixed
Parameters
$fieldname : mixed
$label : mixed
$value : mixed = '0.00'
$extra : mixed = 'style="width:6em;text-align:right"'
$note : mixed = ''

radio()

public radio(mixed $fieldname, mixed $label, mixed $value[, mixed $checked = false ][, mixed $extra = '' ]) : mixed
Parameters
$fieldname : mixed
$label : mixed
$value : mixed
$checked : mixed = false
$extra : mixed = ''

select_close()

public select_close() : mixed

select_open()

public select_open(mixed $fieldname, mixed $label[, mixed $extras = '' ]) : mixed
Parameters
$fieldname : mixed
$label : mixed
$extras : mixed = ''

setLabelWidth()

public setLabelWidth(mixed $width) : mixed
Parameters
$width : mixed

submit()

public submit([mixed $caption = 'Submit' ][, mixed $extras = '' ][, mixed $type = 'submit' ]) : mixed
Parameters
$caption : mixed = 'Submit'
$extras : mixed = ''
$type : mixed = 'submit'

text()

public text(mixed $fieldname, mixed $label, mixed $value[, mixed $extra = '' ][, mixed $note = '' ]) : mixed
Parameters
$fieldname : mixed
$label : mixed
$value : mixed
$extra : mixed = ''
$note : mixed = ''

textarea()

public textarea(mixed $fieldname, mixed $label, mixed $value[, mixed $extra = '' ][, mixed $note = '' ]) : mixed
Parameters
$fieldname : mixed
$label : mixed
$value : mixed
$extra : mixed = ''
$note : mixed = ''

        
On this page

Search results