phpMyDataGrid Professional - Sample of use
Related Field Sample
Este ejemplo enseña utilizar el tipo de campo 'related'
This sample teach how to use the 'related' typefield
{"emp_id" : {"strfieldName" : "emp_id","strHeader" : "ID","fieldWidth" : "40","maxlength" : "50","columnwidth" : "93px","align" : "left","mask" : "text","default" : "","select" : "","cutChar" : "0","datatype" : "text","inputtype" : "1","ordering" : "1"},"active" : {"strfieldName" : "active","strHeader" : "Status","fieldWidth" : "13","maxlength" : "1","columnwidth" : "60px","align" : "left","mask" : "check:Inactive:Active","default" : "","select" : {0 : "Inactive",1 : "Active"},"cutChar" : "0","datatype" : "check","inputtype" : "0","ordering" : "1"},"fname" : {"strfieldName" : "fname","strHeader" : "Name","fieldWidth" : "13","maxlength" : "20","columnwidth" : "95px","align" : "left","mask" : "text","default" : "","select" : "","cutChar" : "0","datatype" : "text","inputtype" : "0","ordering" : "1"},"minit" : {"strfieldName" : "minit","strHeader" : "Middle Name","fieldWidth" : "5","maxlength" : "1","columnwidth" : "80px","align" : "left","mask" : "text","default" : "","select" : "","cutChar" : "0","datatype" : "text","inputtype" : "0","ordering" : "1"},"lname" : {"strfieldName" : "lname","strHeader" : "Last Name","fieldWidth" : "5","maxlength" : "30","columnwidth" : "95px","align" : "left","mask" : "text","default" : "","select" : "","cutChar" : "0","datatype" : "text","inputtype" : "0","ordering" : "1"},"birth_date" : {"strfieldName" : "birth_date","strHeader" : "Birth Date","fieldWidth" : "5","maxlength" : "10","columnwidth" : "105px","align" : "left","mask" : "date:ymd:-","default" : "","select" : "","cutChar" : "0","datatype" : "date","inputtype" : "0","ordering" : "1"},"job_id" : {"strfieldName" : "job_id","strHeader" : "Job Name","fieldWidth" : "5","maxlength" : "30","columnwidth" : "195px","align" : "left","mask" : "related:select job_desc from jobs where job_id=%s","default" : "2","select" : "","cutChar" : "0","datatype" : "related","inputtype" : "1","ordering" : "1"}};
New
Search
Export
Export to ...
ID
Status
Name
Middle Name
Last Name
Birth Date
Job Name
111124127
Inactive
Managing Editor
111124128
Inactive
New Hire - Job not specified
100660
Inactive
j
R
Salamanca
1961-01-20
Public Relations Manager
100661
Active
Martin
L
Saavedra
1965-10-05
New Hire - Job not specified
100662
Inactive
Rafael
I
Villegas
1985-04-24
Marketing Manager
100663
Inactive
Cesar
R
1988-09-22
Public Relations Manager
100664
Active
Alejandro
P
Silva
1987-04-07
Productions Manager
100665
Inactive
Magaly
M
Ascanio
1990-04-18
New Hire - Job not specified
Quick search:
Name
Last Name
5
8
10
15
20
25
40
Page
of 553
Displaying rows 1 to 8 of 4,417
Tip: Hold shift key while click the ordering arrows to order by multiple columns
Sugerencia: Mantenga presionada la tecla Shift mientras hace clic en las flechas de ordenamiento para ordenar por múltiples columnas