Web Marketing Tool
Reseller
WMT .
Using WMTResults
Referred By: Web Marketing Tool
Login

Added: 05/29/2013   |   Updated: 7 Years Ago
Using these objects help you to write less code making it faster to get the data you need.

We will make a members page as an example

you need to work on the following files:
memberspagetest.php  .................... in admin folder
memberspagetest.html ................... in admin html pages
memberspagetest-content-tr.html ....... in misc folder

after it you can add the default for every page
then you can get the content for every row(record) NOTE we uploaded it to the misc folder
last thing in the php file is to add the code to get the data
$trContent this variable include all records from the database in the same structure you uploaded in the misc folder (memberpagetest-content-tr.html) example of this file
Last thing you need to do is the html file (memberspagetest.html) to add the head for the table and ~~ for replacing with records on it example of this file
you can use more functions rather than showAllFields for more functions you can find here:
https://webmarketingtool.com/admin/softwareobject.php?id=15
https://webmarketingtool.com/admin/softwareobject.php?id=16




When using an object that extends WMTResults, the functions need to be called in a specific order.

GROUP 1
hideAllFields()
hideField($fieldTitle)
showAllFields()
showField($fieldTitle)

GROUP 1 OR 2
setPage($nPage)
useObjectsOff()
useObjectsOn()
getResultLimit()
setResultLimit($nResultLimit)


GROUP 2
addConditionalContent($cField, $cValue, $cTilde, $cContent)
addDate($dField, $nDate)
addValueLabel($dField, $labelArray)

GROUP 3
# loadAll()
# loadCustomQuery($query)

GROUP 4
# getResults()
# getTable($trTemplate = "")
getCount()
getPages($filename, $pTitle = "Page: ")


INDEPENDENT
getArray($nField, $whereQuery = "", $orderQuery = "")
getOptions($nField, $whereQuery = "", $orderQuery = "")


* Functions with a * in front are required
# Functions with a # in front mean that one of the ones with the # is required for that group


DMCA.com Protection Status Authorize.net
Valid HTML! Valid CSS!


Reseller: WMT
|
Login
(502) 225-3237