formName | : | Name of the form |
doForm | : |
strMethod | : | You can use either of the methods available form, GET or POST |
parameters | : | You must set the parameter list in the same way that parameters of the type GET |
The variables to be included in the list of parameters must have been previously caught, for instance, to capture the variable session:
If method = GET:
$session = $_GET['session'];
If method = POST:
$session = $_POST['session'];
If you do not know the request method or it can be mixed (GET and/or POST):
$session = (isset($_GET['session'])?$_GET['session']:(isset($_POST['session'])?$_POST['session']:''));
Note that the list of parameters are delimited by double quotes and the name of the variables enclosed between brackets {}, so, the variables are replaced by its record value.
classpath | : | write the full path including filename for phpMyMenu class |
bolStat | : | true = for readable friendly HTML output false = For obfuscated code |
bolStat | : | true = XHTML compatible code false = HTML only code |
strPath | : | Path to images |
strServer | : | Server Name or Server IP |
strUsername | : | DataBase Username |
strPassword | : | Password |
strDatabase | : | Database Name |
useADOdb | : | true = Will use ADOdb library for connection false = Will use MySQL native drivers on php |
strType | : | For connetions made with ADOdb, you can define the database Type to use |
intPort | : | DataBase port |
strLang | : | Enter the two-character ISO code language |
bolAdd | : | true = Enable the option to add false = Disable the option to add option |
bolUpd | : | true = Enable the option to Edit false = Disable the option to Edit Option |
bolDel | : | true = Enable the option to Delete false = Disable the option to Delete Option |
bolChk | : | true = Enable the option to View false = Disable the option to View option |
intColumn | : | Define the column in which you want to display the maintenance icons (-1 indicates at the right side of the grid) |
strColumnName | : | Complete this field, whether to show a title in the column of icons |
bolExportsheet | : | true = Enable the option to export to worksheet (XLS) false = Disable the option to export to worksheet (XLS) |
bolExportCSV | : | true = Enable the option to export to CSV false = Disable the option to export to CSV |
bolExportXML | : | true = Enable the option to export to XML false = Disable the option to export to XML |
bolPrinter | : | true = Enable the option to print false = Disable the option to print |
bolExportPDF | : | true = Enable the option to export to PDF false = Disable the option to export to PDF |
pdfOrientation | : | Select the page orientation to export to PDF (P) = Portrait (L) = Landscape |
status | : | true = Enable checkboxes column false = Disable checkboxes column |
strTitle | : |
strFooter | : |
intLines | : | Number of entries per page |
amount | : | Enter the number of links that you want to display |
pgm | : | Define the type of paging, there are 3 available values: links = Generates a list page numbers indicating the page number to which the user want to go (Recommended tables with no more than 20 pages) select = Generates a menu that lets you choose the number of page you want to go mixed = Generates a list combining the above methods (default) input = Set a input for the user type the page numbers |
inTable | : | This parameter is not used anymore, left for backward compatibility |
code | : |
amount | : |
char | : |
style | : | none = Disable online edition default = Enables online edition with confirmation recording silent = Enables online edition with automatic recording |
clicks | : | Define the amount of clicks needed to activate the data for online edition. 1 - Single click 2 - Double click |
strColor | : | It must be a valid hex color |
if ($objGrid -> isAjaxRequest()){
echo 'This is an AJAX request';
} else {
echo 'This is a direct request';
}
button | : | |
event | : |
strTable | : |
strWhere | : |
strHaving | : |
strGroup | : |
fields | : | List of fields to which you want to sort the output, separated by commas |
style | : | Define the type ordering type for each field ASC or DESC, if blank, ASC will be used automatically |
field | : | The consecutive field should not be the table ID |
strSQL | : | |
strCount | : |
strMail | : | Developer e-mail |
bolShow | : | true = Display SQL errors on the screen to end user (Recommended while developing)) false = Hides any generated SQL errors (Recommended for production environments) |
strField | : |
listoffields | : | You can add the instruction :SELECT to field name to display a drop-down menu with the resume of all possible values to search. |
icon | : | Defines if the return data is just text or a icon, default: false |
strfieldName | : | Field name |
strHeader | : | Column Title |
fieldWidth | : | Used only in textarea fields, it is used to set the textarea rows |
maxlength | : | Max length allowed to be typed by user |
inputtype | : | Field type 0 = Normal Field 1 = Read only field 2 = Hidden field 3 = Image, calc, link or imagelink without relation to a field 4 = Image, calc or link related with a field |
columnwidth | : | Column width (in pixels) |
align | : | Column Text align center = (default) left right |
Mask | : | Masking to field text = Normal field text textarea = Region for text editing (may have a larger area that the fields type text) image = Display an image, may be field related or static. (see samples) imagelink = Display a clickable image, may be field related or static. (see samples) number = Numeric field money = Numeric money sign field, format: money:sign, sample money:$ money:£ date = Date type field, format: date:format:separator, sample date:dmy:/ date:ymd:- datetime = Date and time type field, format: datetime:dateformat:separator:timeformat,separator, sampledatetime:datetime:mdy:/:His,: or datetime:mdy:/:hisa,: link = Link field. view samples password = Password type field calc = Calculated field. view samples scalc = Calculated field which stores the result in a field, view samples bool = Boolean field, create a checkbox and store 0 when unchecked and 1 when checked check = same as bool type field select = Field with a dropdown menu, the options can be manually defined or dynamically loaded from another table in the database. 0 = Integer, no decimals 1 = Float 1 decimal 2 = Float 2 decimals 3 = Float 3 decimals 4 = float 4 decimals integer = Integer, no decimals related = Find a correspondence in other table based in the field value array() - conditional = Display a value based on a set of conditions that meet the field value. (see samples) |
default | : | Default value for field (Used in add option) |
cutChar | : | Used generally in textarea fields which are too long, by using this parameter the grid will only display the amount of X characters |
strfieldName | : | Field Name |
permissions | : | N+ = Display field while adding N- = Hide field while adding E+ = Display field while editing E- = Hide field while editing V+ = Display field while viewing records V- = Hide field while viewing R = Remove order arrows for field U = (only for imagetype fields) allow new images to be uploaded to the field M = (only for imagetype fields) Allow images to be uploaded, no matter if field already has an image on it X+ = To export hidden fields in grid X- = To not export visible fields |
overwrite | : | Define whether the definitions made earlier to the field must be erased or cumulative |
field | : | |
width | : |
strField | : | FieldName |
strValidation | : | JavaScript code to validate, (You can call a JS function as well) |
strErrorMessage | : | Error Message |
strDisplayMessage | : | Input instructions message |
strField | : | Field name |
strDisplayMessage | : | Input instructions message |
bolCalendar | : |
fields | : | List of fields to totalize, comma separated |
field | : | Field Name |
width | : | Width in px (just the integer value) |
height | : | Height in px (just the integer value) |
field | : | Field Name |
condition | : | String, condition. |
style | : | Name of the CSS class to use |
condition | : | String, condition. |
style | : | Name of the CSS class to use |
skin | : | Skin name |
path | : | Path to images |
newData | : | New data to store when editing online |
js | : | JavaScript function name to call when the Online edition finishes |
img | : | Path and image name of the icon to display |
action | : | Javascript funcion to call when the button is selected |
message | : | Message to display at side of the icon |
arrData | : | 'toDisplay1','key2'=>'toDisplay2','key3'=>'toDisplay3','keyN'=>'toDisplayN')' onblur='ut("$objGrid","58","addSelect(¬c¬arrData¬c¬, ¬c¬action¬c¬, ¬c¬message¬c¬);","ta58","arrData,action,message",false)' /> |
action | : | Name of the JavaScript function to execute |
message | : | Message to display at side of the icon |
phpScriptFile | : | php script name |
jsFile | : | path and name to datagrid JS file |
cssFile | : | path and name to datagrid CSS file |
jsCalFile | : | path and name to calendar JS file |
cssCalFile | : | path and name to calendar CSS file |
jsmmenu | : | path and name to right click menu |