Exemplo n.º 1
0
                            $this->tpl->set_var("ODListBlock", "huh");
                        }
                    }
                }
        }
        $this->initBarangayList();
        $this->setForm();
        $this->setPageDetailPerms();
        $this->tpl->set_var("uname", $this->user["uname"]);
        $this->tpl->set_var("today", date("F j, Y"));
        $this->tpl->set_var("Session", $this->sess->url(""));
        $this->tpl->parse("templatePage", "rptsTemplate");
        $this->tpl->finish("templatePage");
        $this->tpl->p("templatePage");
    }
}
#####################################
# Define Procedures and Functions
#####################################
##########################################################
# Begin Program Script
##########################################################
page_open(array("sess" => "rpts_Session", "auth" => "rpts_Challenge_Auth"));
//global $auth;
//print_r($auth);
if (!$page) {
    $page = 1;
}
$odList = new ODList($HTTP_POST_VARS, $sess, $odID, $page, $searchKey, $barangay, $formAction, $sortBy, $sortOrder);
$odList->main();
page_close();
Exemplo n.º 2
0
            } else {
                $xmlStr = $domDoc->dump_mem(true);
                return $xmlStr;
            }
        } else {
            return false;
        }
    }
    function getSearchCount($searchKey)
    {
        $fields = array(COMPANY_TABLE . ".companyName", PERSON_TABLE . ".lastName", PERSON_TABLE . ".middleName", PERSON_TABLE . ".firstName", LOCATIONADDRESS_TABLE . ".number", LOCATIONADDRESS_TABLE . ".street", BARANGAY_TABLE . ".code", LOCATIONADDRESS_TABLE . ".district", LOCATIONADDRESS_TABLE . ".municipalityCity", LOCATIONADDRESS_TABLE . ".province");
        $odRecords = new odRecords();
        return $odRecords->countSearchRecords($searchKey, $fields);
    }
}
$odList = new ODList();
echo $odList->getODList();
//$odList = new ODList;
//echo $odList->searchOD("","ang");
/*
$address = new Address;
//$address->setAddressID(124);
$address->setNumber("10th Floor Orient Square Building");
$address->setStreet("Emerald Avenue");
$address->setBarangay("Barangay San Antonio");
$address->setDistrict("Ortigas Center");
$address->setMunicipalityCity("Pasig City");
$address->setProvince("Metro Manila");
$address->setDomDocument();

$locationAddress = new LocationAddress;