Beispiel #1
0
<?php

include "system.php";
include_once '../simantz/class/Religion.inc.php';
$o = new Religion();
$s = new XoopsSecurity();
$action = $_REQUEST['action'];
$isadmin = $xoopsUser->isAdmin();
$uid = $xoopsUser->getVar('uid');
switch ($action) {
    case "search":
        //return xml table to grid
        $wherestring = " WHERE religion_id>0";
        $o->showReligion($wherestring);
        exit;
        //after return xml shall not run more code.
        break;
    case "lookup":
        //return xml table to grid
        include_once "../simantz/class/EBAGetHandler.php";
        $defaultorganization_id = $_SESSION['defaultorganization_id'];
        $lookupdelay = 1000;
        $pagesize =& $_GET["pagesize"];
        $ordinalStart =& $_GET["startrecordindex"];
        $sortcolumn =& $_GET["sortcolumn"];
        $sortdirection =& $_GET["sortdirection"];
        $getHandler = new EBAGetHandler();
        $getHandler->ProcessRecords();
        $wherestring = " WHERE religion_id>0";
        $o->showLookupReligion($wherestring);
        exit;