Пример #1
0
<?php

include "system.php";
include_once '../simantz/class/Races.inc.php';
$o = new Races();
$s = new XoopsSecurity();
$action = $_REQUEST['action'];
$isadmin = $xoopsUser->isAdmin();
$uid = $xoopsUser->getVar('uid');
switch ($action) {
    case "search":
        //return xml table to grid
        $wherestring = " WHERE races_id>0";
        $o->showRaces($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 races_id>0";
        $o->showLookupRaces($wherestring);
        exit;