Esempio n. 1
0
// array containing select query db object
$formdata = array();
// array containing filter/pagination form data objects
/**  **  **  **  **  **  **  **  **  **
 *   INITIALIZE VIEWS FOR EACH TAB
 */
foreach ($views as $v) {
    // Set some params
    $table = TABLEPREFIX . $v;
    $joins = dbfn::_getJoins($table);
    // Prepare the parameters for the query.
    $oQ = new formfilterpage($table, $joins);
    #Get filter and pagination data
    $select = $oQ->_getQuery();
    #Get query
    $data[$v] = new db($select);
    #Perform query and load the results into the data array
    $oQ->_update($data[$v]);
    #Update the filter/pagination object
    $formdata[$v] = $oQ;
    #Load filter/pagination object into formdata array
}
/**  **  **  **  **  **  **  **  **  **
 *   LOAD UP THE QUICKVIEW VIEW
 */
include "views/qv.php";
?>