mainrules, childRules
caption |
fieldname |
fieldtype |
(see section) |
formcolumn |
left, right, both, same, *auto |
default |
Can use "NOW" for dates |
inclbutton |
true, *false |
incllabel |
*true, false |
maxlength |
noedit |
true, *false |
nosave |
true, *false |
suffix |
"html to display after the control" |
validation |
(see section) |
validationcaption |
Used instead of caption |
visibility |
add|edit|delete|display, *all |
afterchildrows |
true, *false |
See ajax combos section for extra properties. These are set in the model
Ajax Combos (for mainrules and childRules)
relatedajaxurl |
"/stock/ajaxlookup" |
relatedajaxmodel |
"StockModel" |
relatedajaxdescriptionurl |
relatedentityidfield |
"#entityid" |
|
relatedtable |
"stock_master" |
relateddisplayfield |
"title" |
relatedkeyfield |
"stockid" |
relatedorderby |
"date" |
relatedwhere |
"recordtype='FT'" |
relatedinclnotrequired |
false, *true |
relatedvalues |
array("1"=>"Active", "2"=>"Prospect") |
relateddefaultflagfield |
"defaultrow" |
These are extra properties for mainrules and childrules. Set these in the model
childRowButtons
name |
"btn1" |
caption |
"test1" |
icon |
"pencil" |
method |
"test1" |
color |
"blue" |
listcolumns
caption |
fieldname |
fieldtype |
date, email, link, yesno, *text |
align |
*left, right, center |
columnpercent |
## (no %) |
columnpixels |
### (no px) |
sortable |
true, *false |
linkmethod |
"/ipaddress/display" |
linkanchor |
"?var=value#anchor" |
These are for the listviews. Set these in the model
listHeaderButtons
name |
"btn1" |
caption |
"test1" |
icon |
"pencil" |
method |
"test1" |
color |
"blue" |
listRowButtons
name |
"btn1" |
caption |
"test1" |
icon |
"pencil" |
method |
"test1" |
color |
"blue" |
validation
email |
trim |
ltrim |
rtrim |
strtoupper |
strtolower |
required |
requirednotzero |
date |
time |
alpha |
alphanumeric |
integer |
positiveinteger |
2decimals |
exactlength[10] |
maxlength[10] |
minlength[10] |
>=[20] |
<=[20] |
intable[table.field] |
notintable[table.field] |
unique |
Fieldtypes
label |
textarea |
textboxsmall |
textboxmedium |
textboxlarge |
password |
radio |
checkbox |
money |
percent |
date |
time |
email |
phone |
ipaddress |
url |
formsection |
warningtext |
tags |
hidden |
droplistsmall |
droplistmedium |
droplistlarge |
droplistarraysmall |
droplistarraymedium |
droplistarraylarge |
ajaxlistmedium |
lookuplabel |
*datelabel |
*trimzeros |
*text |
mvchtmlhelpers
Trademark |
Copyright |
Br |
TextboxSmall |
TextboxMedium |
TextboxLarge |
Textarea |
Email |
Money |
Datebox |
Timebox |
FormatDate |
FormatDateTime |
Percent |
Password |
Checkbox |
Radio |
Hidden |
Phone |
FormSection |
WarningText |
Label |
RawLabel |
IPV4Address |
Url |
OKButton |
ExitButton |
OKCancelButons |
DeleteCancelButtons |
UndoCancelButtons |
Button |
ButtonsX1 |
ButtonsX2 |
DropListSmall |
DropListMedium |
DropListLarge |
DropListSmall2 |
DropListMedium2 |
DropListLarge2 |
GridButton |
ListHeaderButton |
MessageWarning |
MessageSuccess |
MessageInfo |
span1colm |
span2colm |
span3colm |
span4colm |
mvchtmlhelpers AjaxLookup
ajaxLookupHeader |
ajaxLookup |
$name, $caption, $value, $modelname, $incllabel, $makefit |
ajaxLookupJavascript |
$name, $relatedajaxurl, $relatedajaxdescriptionurl, $relatedentityidfield |
Colors
blue |
light blue |
red |
yellow |
green |
purple |
grey |
light grey |
black |
transparent |
Session and useful Variables
$session->companyID |
Active company |
$session->userID |
Active user |
$current_user |
Enter user record |
$current_company->countryid |
Country code (eg 64) |
HOMEPAGE |
"/dashboard" |
SERVER |
"http://localhost" |
PREPATH |
"http://localost" |
DEVELOPMENT_ENVIRONMENT |
false |
IS_AJAX_REQUEST |
true/false |
PRODUCTNAME |
"MyPayroll" |
COMPANYNAME |
"Blinkdata" |
ezsql - db
escape($value) |
escapelike($value) |
query($sql) |
get_scalar($sql) |
get_row($sql) |
get_results($sql) |
column_exists($table,$field) |
table_exists($table) |
index_exists($table,$idxname) |
sysdate() |
sqlbase
$sqlbase->fieldname = $value |
SQLescape() |
SQLinsert() |
SQLinsertWithIdentity() |
SQLupdate() |
SQLupdateNoWhere() |
SQLdelete() |
SQLdeleteNoWhere() |
SQLclear() |
SQLreset() |
SQLsetwhere($where) |
SQLandwhere($where) |
listcontroller (add, edit, copy)
add() |
Edit_EditHook_Clean |
|
$listcontroller->editRecord |
edit($id=0) |
testDelegateEdit |
|
Edit_EditHook_Clean |
|
$listcontroller->editRecord |
copyrow($id=0) |
testDelegateCopy |
|
Edit_CopyHook_Clean |
|
$listcontroller->editRecord |
delete($id=0) |
testDelegateDelete |
|
Delete_Hook |
|
deleteconfirm |
display($id=0) |
testDelegateDisplay |
|
Display_Hook |
index($id=0) |
Index_Hook_Before($id) |
|
Index_Hook_BeforeDisplay |
listcontroller (editRecord)
editRecord |
EditRecord_Add_Hook / Edit / Copy |
editconfirm($id) |
EditConfirm_Hook_BeforeEverything |
|
testDelegateEdit / Copy |
|
EditConfirm_Hook_GatherAndValidateAllChildren |
|
EditConfirm_Hook_GatherAndValidateChildRow |
|
EditConfirm_Hook_GatherAndValidateAllChildren |
|
EditConfirm_Hook_RemapPostValues |
|
EditConfirm_Hook_Validate |
|
EditConfirm_Hook_BeforeUpdate |
|
EditConfirm_Hook_AfterUpdate |
model
AddRecord |
AddRecord_Hook_Before |
|
AddRecord_Hook_SqlHandler |
|
AddRecord_Hook_After |
UpdateRecord |
(also used for copy) |
|
UpdateRecord_Hook_Before |
|
UpdateRecord_Hook_SqlHandler |
|
UpdateChildRecord_Hook_SqlHandler |
|
CopyRecord_Hook (copy only) |
|
UpdateRecord_Hook_After |
delete |
Delete_Hook_Before |
|
Delete_Hook_After |
validate |
Validate_Hook_Before |
|
Validate_Hook_After |
getEmptyRecord |
GetEmptyRecord_Hook |
|
|
|