$this->formArray[$key] = $value;
                            }
                        }
                    }
                }
                $this->tpl->set_block("rptsTemplate", "personID", "personIDBlock");
                $this->tpl->set_var("personIDBlock", "");
                $this->tpl->set_block("rptsTemplate", "ACK", "ACKBlock");
                $this->tpl->set_var("ACKBlock", "");
        }
        $this->setForm();
        $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"));
//*/
$personEncode = new PersonEncode($HTTP_POST_VARS, $personID, $formAction, $sess, $ownerID, $odID, $locID);
$personEncode->main();
?>

<?php 
page_close();
Esempio n. 2
0
$address1->setNumber("unit 2415 Megaplaza Building");
$address1->setStreet("ADB Avenue corner Garnett Street");
$address1->setBarangay("Barangay San Antonio");
$address1->setDistrict("Ortigas Center");
$address1->setMunicipalityCity("Pasig City");
$address1->setProvince("Metro Manila");
$address1->setDomDocument();
$person = new Person();
//$person->setPersonID(126);
$person->setFirstName("Nelson Juan");
$person->setMiddleName("Miranda");
$person->setLastName(date("H:i:s"));
$person->setGender("male");
$person->setBirthday("1977/07/09");
$person->setMaritalStatus("single");
$person->setTin("1234567890");
$person->setTelephone("026584746");
$person->setMobileNumber("09175302791");
$person->setEmail("*****@*****.**");
$person->setAddressArray($address);
$person->setAddressArray($address1);
$person->setDomDocument();
$domDoc = $person->getDomDocument();
$xmlStr = $domDoc->dump_mem(true);
$obj = new PersonEncode();
//echo "hello<br>";
echo $xmlStr;
//echo $obj->updatePerson($xmlStr);
echo $obj->savePerson($xmlStr);
//echo  $obj->getPersonDetails(1);
//*/