Example #1
0
<?php

/*
 * @File  getListing File
 * Description:
 	Ajax Listing File output xml listing
---------------------------------------------------------------------------------
*/
//include("../index.php");
include_once SITE_CLASS_GEN . "class.ajax.php";
$listObj = new AjaxListing();
$xmlcontent = $listObj->MakeXml();
include_once SITE_CLASS_GEN . "class.xmlparser.php";
$parseObj = new xmlparser();
$parseObj->output_xml($xmlcontent);
Example #2
0
<?php

$links = '';
$backURL = '';
//include ajax class
include_once SITE_CLASS_GEN . "class.ajax.php";
//intiailize ajax object
$listObj = new AjaxListing();
// echo GetVar('view'); exit;
//get table array according to module
$TableArr = $listObj->getTableArray();
//encrypt table array
for ($i = 0, $ni = count($TableArr); $i < $ni; $i++) {
    $TableArr_inc[] = $listObj->encrptyArrayFields($TableArr[$i]);
}
//get extra array according to module
$ExtraPara = $listObj->getExtraParamArray();
//get filed array according to module
$Field_arr = $listObj->getFieldArray();
//print_r($Field_arr)
for ($i = 0, $ni = count($Field_arr); $i < $ni; $i++) {
    $field_arr_inc[] = $listObj->encrptyArrayFields($Field_arr[$i]);
}
$addFile = $ExtraPara[4];
$tableString = $listObj->setTableAndRelationforAlphaSearch();
//ends here
switch (GetVar('file')) {
    case "ge-city":
        $sql_state = "select vStateCode from " . PRJ_DB_PREFIX . "_state_master where iStateId = '" . GetVar('iStateId') . "'";
        $db_state = $dbobj->MySQLSelect($sql_state);
        $ssql .= " AND cit.vState = '" . $db_state[0]['vStateCode'] . "'";