本文整理汇总了PHP中removePreZero函数的典型用法代码示例。如果您正苦于以下问题:PHP removePreZero函数的具体用法?PHP removePreZero怎么用?PHP removePreZero使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了removePreZero函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Main
//.........这里部分代码省略.........
$this->tpl->set_var("cityTreasurerName", $cityTreasurer);
$this->formArray["cityTreasurerName"] = $cityTreasurer;
}
break;
case "tdArray":
$this->tpl->set_block("rptsTemplate", "defaultTDList", "defaultTDListBlock");
$this->tpl->set_block("rptsTemplate", "toggleTDList", "toggleTDListBlock");
$this->tpl->set_block("rptsTemplate", "TDList", "TDListBlock");
$tdCtr = 0;
if (count($value)) {
$this->tpl->set_block("rptsTemplate", "TDDBEmpty", "TDDBEmptyBlock");
$this->tpl->set_var("TDDBEmptyBlock", "");
/*
$this->tpl->set_block("TDList", "Land", "LandBlock");
$this->tpl->set_block("TDList", "PlantsTrees", "PlantsTreesBlock");
$this->tpl->set_block("TDList", "ImprovementsBuildings", "ImprovementsBuildingsBlock");
$this->tpl->set_block("TDList", "Machineries", "MachineriesBlock");
*/
foreach ($value as $tkey => $tvalue) {
//foreach($tvalue as $column => $val){
// $this->tpl->set_var($column,$val);
//}
$this->tpl->set_var("taxDeclarationNumber", $tvalue->getTaxDeclarationNumber());
$this->tpl->set_var("afsID", $tvalue->getAfsID());
$this->tpl->set_var("cancelsTDNumber", $tvalue->getCancelsTDNumber());
$this->tpl->set_var("canceledByTDNumber", $tvalue->getCanceledByTDNumber());
$this->tpl->set_var("taxBeginsWithTheYear", $tvalue->getTaxBeginsWithTheYear());
$this->tpl->set_var("ceasesWithTheYear", $tvalue->getCeasesWithTheYear());
$this->tpl->set_var("enteredInRPARForBy", $tvalue->getEnteredInRPARForBy());
$this->tpl->set_var("enteredInRPARForYear", $tvalue->getEnteredInRPARForYear());
$this->tpl->set_var("previousOwner", $tvalue->getPreviousOwner());
$this->tpl->set_var("previousAssessedValue", $tvalue->getPreviousAssessedValue());
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $tvalue->getProvincialAssessorDate());
$this->tpl->set_var("pa_yearValue", removePreZero($dateArr["year"]));
$this->tpl->set_var("pa_month", removePreZero($dateArr["month"]));
$this->tpl->set_var("pa_dayValue", removePreZero($dateArr["day"]));
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $tvalue->getCityMunicipalAssessorDate());
$this->tpl->set_var("cm_yearValue", removePreZero($dateArr["year"]));
$this->tpl->set_var("cm_month", removePreZero($dateArr["month"]));
$this->tpl->set_var("cm_dayValue", removePreZero($dateArr["day"]));
$this->tpl->set_var("provincialAssessorName", $tvalue->provincialAssessor);
$this->tpl->set_var("cityMunicipalAssessorName", $tvalue->cityMunicipalAssessor);
//$this->tpl->set_var("assessedValue",$tvalue->getAssessedValue());
$this->tpl->set_var("basicTax", "");
$this->tpl->set_var("sefTax", "");
$this->tpl->set_var("total", "");
//$this->tpl->set_var("basicTax",$tvalue->getBasicTax());
//$this->tpl->set_var("sefTax",$tvalue->getSefTax());
//$this->tpl->set_var("total",$tvalue->getTotal());
$AFSDetails = new SoapObject(NCCBIZ . "AFSDetails.php", "urn:Object");
if (!($xmlStr = $AFSDetails->getAFSForList($tvalue->getAfsID()))) {
//$this->tpl->set_block("rptsTemplate", "AFSTable", "AFSTableBlock");
//$this->tpl->set_var("AFSTableBlock", "afs not found");
} else {
//echo $xmlStr;
if (!($domDoc = domxml_open_mem($xmlStr))) {
//$this->tpl->set_block("rptsTemplate", "OwnerListTable", "OwnerListTableBlock");
//$this->tpl->set_var("OwnerListTableBlock", "error xmlDoc");
} else {
$afs = new AFS();
$afs->parseDomDocument($domDoc);
$this->formArray["landTotalMarketValue"] += $afs->getLandTotalMarketValue();
$this->formArray["landTotalAssessedValue"] += $afs->getLandTotalAssessedValue();
$this->formArray["plantTotalMarketValue"] += $afs->getPlantTotalMarketValue();
$this->formArray["plantTotalAssessedValue"] += $afs->getPlantTotalAssessedValue();
$this->formArray["bldgTotalMarketValue"] += $afs->getBldgTotalMarketValue();
示例2: Main
function Main()
{
$LandDetails = new SoapObject(NCCBIZ . "LandDetails.php", "urn:Object");
if (!($xmlStr = $LandDetails->getLand($this->formArray["propertyID"]))) {
echo "xml failed";
} else {
//echo $xmlStr;
if (!($domDoc = domxml_open_mem($xmlStr))) {
$this->tpl->set_block("rptsTemplate", "OwnerListTable", "OwnerListTableBlock");
$this->tpl->set_var("OwnerListTableBlock", "error xmlDoc");
} else {
$land = new Land();
$land->parseDomDocument($domDoc);
foreach ($land as $key => $value) {
switch ($key) {
case "propertyAdministrator":
if (is_a($value, Person)) {
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $value->getBirthday());
$this->formArray["personID"] = $value->getPersonID();
$this->formArray["lastName"] = $value->getLastName();
$this->formArray["firstName"] = $value->getFirstName();
$this->formArray["middleName"] = $value->getMiddleName();
$this->formArray["gender"] = $value->getGender();
$this->formArray["birth_year"] = removePreZero($dateArr["year"]);
$this->formArray["birth_month"] = removePreZero($dateArr["month"]);
$this->formArray["birth_day"] = removePreZero($dateArr["day"]);
$this->formArray["maritalStatus"] = $value->getMaritalStatus();
$this->formArray["tin"] = $value->getTin();
$this->formArray["addressID"] = $value->addressArray[0]->getAddressID();
$this->formArray["number"] = $value->addressArray[0]->getNumber();
$this->formArray["street"] = $value->addressArray[0]->getStreet();
$this->formArray["barangay"] = $value->addressArray[0]->getBarangay();
$this->formArray["district"] = $value->addressArray[0]->getDistrict();
$this->formArray["municipalityCity"] = $value->addressArray[0]->getMunicipalityCity();
$this->formArray["province"] = $value->addressArray[0]->getProvince();
$this->formArray["telephone"] = $value->getTelephone();
$this->formArray["mobileNumber"] = $value->getMobileNumber();
$this->formArray["email"] = $value->getEmail();
} else {
$this->formArray[$key] = "";
}
break;
case "verifiedBy":
if (is_a($value, Assessor)) {
$this->formArray["verifiedByID"] = $value->getAssessorID();
$this->formArray["verifiedByName"] = $value->getFullName();
} else {
$this->formArray[$key] = "";
}
break;
case "plottingsBy":
if (is_a($value, Assessor)) {
$this->formArray["plottingsByID"] = $value->getAssessorID();
$this->formArray["plottingsByName"] = $value->getFullName();
} else {
$this->formArray[$key] = "";
}
break;
case "notedBy":
if (is_a($value, Assessor)) {
$this->formArray["notedByID"] = $value->getAssessorID();
$this->formArray["notedByName"] = $value->getFullName();
} else {
$this->formArray[$key] = "";
}
break;
case "appraisedBy":
if (is_a($value, Assessor)) {
$this->formArray["appraisedByID"] = $value->getAssessorID();
$this->formArray["appraisedByName"] = $value->getFullName();
} else {
$this->formArray[$key] = "";
}
break;
case "appraisedByDate":
if (true) {
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $value);
$this->formArray["as_year"] = removePreZero($dateArr["year"]);
$this->formArray["as_month"] = removePreZero($dateArr["month"]);
$this->formArray["as_day"] = removePreZero($dateArr["day"]);
} else {
$this->formArray[$key] = "";
}
break;
case "recommendingApproval":
if (is_a($value, Assessor)) {
$this->formArray["recommendingApprovalID"] = $value->getAssessorID();
$this->formArray["recommendingApprovalName"] = $value->getFullName();
} else {
$this->formArray[$key] = "";
}
break;
case "recommendingApprovalDate":
if (true) {
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $value);
$this->formArray["re_year"] = removePreZero($dateArr["year"]);
$this->formArray["re_month"] = removePreZero($dateArr["month"]);
$this->formArray["re_day"] = removePreZero($dateArr["day"]);
} else {
$this->formArray[$key] = "";
//.........这里部分代码省略.........
示例3: displayDetails
function displayDetails($value)
{
//print_r($value);
foreach ($value as $lkey => $lvalue) {
switch ($lkey) {
case "propertyAdministrator":
if (is_a($lvalue, Person)) {
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $lvalue->getBirthday());
$this->tpl->set_var("personID", $lvalue->getPersonID());
$this->tpl->set_var("lastName", $lvalue->getLastName());
$this->tpl->set_var("firstName", $lvalue->getFirstName());
$this->tpl->set_var("middleName", $lvalue->getMiddleName());
$this->tpl->set_var("gender", $lvalue->getGender());
$this->tpl->set_var("birth_year", removePreZero($dateArr["year"]));
$this->tpl->set_var("birth_month", removePreZero($dateArr["month"]));
$this->tpl->set_var("birth_day", removePreZero($dateArr["day"]));
$this->tpl->set_var("maritalStatus", $lvalue->getMaritalStatus());
$this->tpl->set_var("tin", $lvalue->getTin());
if (is_a($lvalue->addressArray[0], "address")) {
$this->tpl->set_var("addressID", $lvalue->addressArray[0]->getAddressID());
$this->tpl->set_var("number", $lvalue->addressArray[0]->getNumber());
$this->tpl->set_var("street", $lvalue->addressArray[0]->getStreet());
$this->tpl->set_var("barangay", $lvalue->addressArray[0]->getBarangay());
$this->tpl->set_var("district", $lvalue->addressArray[0]->getDistrict());
$this->tpl->set_var("municipalityCity", $lvalue->addressArray[0]->getMunicipalityCity());
$this->tpl->set_var("province", $lvalue->addressArray[0]->getProvince());
}
$this->tpl->set_var("telephone", $lvalue->getTelephone());
$this->tpl->set_var("mobileNumber", $lvalue->getMobileNumber());
$this->tpl->set_var("email", $lvalue->getEmail());
} else {
$this->tpl->set_var($lkey, "");
}
break;
case "verifiedBy":
if (is_numeric($lvalue)) {
$verifiedBy = new Person();
$verifiedBy->selectRecord($lvalue);
$this->tpl->set_var("verifiedByID", $verifiedBy->getPersonID());
$this->tpl->set_var("verifiedByName", $verifiedBy->getFullName());
} else {
$verifiedBy = $lvalue;
$this->tpl->set_var("verifiedByID", $verifiedBy);
$this->tpl->set_var("verifiedByName", $verifiedBy);
}
break;
case "plottingsBy":
if (is_numeric($lvalue)) {
$plottingsBy = new Person();
$plottingsBy->selectRecord($lvalue);
$this->tpl->set_var("plottingsByID", $plottingsBy->getPersonID());
$this->tpl->set_var("plottingsByName", $plottingsBy->getFullName());
} else {
$plottingsBy = $lvalue;
$this->tpl->set_var("plottingsByID", $plottingsBy);
$this->tpl->set_var("plottingsByName", $plottingsBy);
}
break;
case "notedBy":
if (is_numeric($lvalue)) {
$notedBy = new Person();
$notedBy->selectRecord($lvalue);
$this->tpl->set_var("notedByID", $notedBy->getPersonID());
$this->tpl->set_var("notedByName", $notedBy->getFullName());
} else {
$notedBy = $lvalue;
$this->tpl->set_var("notedByID", $notedBy);
$this->tpl->set_var("notedByName", $notedBy);
}
break;
case "appraisedBy":
if (is_numeric($lvalue)) {
$appraisedBy = new Person();
$appraisedBy->selectRecord($lvalue);
$this->tpl->set_var("appraisedByID", $appraisedBy->getPersonID());
$this->tpl->set_var("appraisedByName", $appraisedBy->getFullName());
} else {
$appraisedBy = $lvalue;
$this->tpl->set_var("appraisedByID", $appraisedBy);
$this->tpl->set_var("appraisedByName", $appraisedBy);
}
break;
case "appraisedByDate":
if (true) {
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $lvalue);
$this->tpl->set_var("as_yearValue", removePreZero($dateArr["year"]));
eval(MONTH_ARRAY);
//$monthArray
$this->tpl->set_var("as_month", $monthArray[removePreZero($dateArr["month"])]);
$this->tpl->set_var("as_dayValue", removePreZero($dateArr["day"]));
} else {
$this->tpl->set_var("as_yearValue", "");
$this->tpl->set_var("as_month", "");
$this->tpl->set_var("as_dayValue", "");
}
break;
case "recommendingApproval":
if (is_numeric($lvalue)) {
$recommendingApproval = new Person();
$recommendingApproval->selectRecord($lvalue);
//.........这里部分代码省略.........
示例4: displayTDDetails
function displayTDDetails($propertyType)
{
$afsID = $this->formArray["afsID"];
$propertyID = $this->formArray["propertyID"];
$TDDetails = new SoapObject(NCCBIZ . "TDDetails.php", "urn:Object");
if (!($xmlStr = $TDDetails->getTD("", $afsID, $propertyID, $propertyType))) {
$this->formArray["tdNumber"] = "";
$this->formArray["tdID"] = "";
$this->formArray["propertyType"] = $propertyType;
} else {
if (!($domDoc = domxml_open_mem($xmlStr))) {
$this->formArray["tdNumber"] = "";
$this->formArray["tdID"] = "";
$this->formArray["propertyType"] = $propertyType;
} else {
$td = new TD();
$td->parseDomDocument($domDoc);
$this->formArray["tdNumber"] = $td->getTaxDeclarationNumber();
//$this->formArray["effectivity"] = $td->taxBeginsWithTheYear();
foreach ($td as $tdkey => $tdvalue) {
switch ($tdkey) {
case "provincialAssessor":
if (is_a($tdvalue, Assessor)) {
$this->formArray["provincialAssessorID"] = $tdvalue->getAssessorID();
$this->formArray["provincialAssessorName"] = $tdvalue->getFullName();
} else {
$this->formArray[$tdkey] = "";
}
break;
case "provincialAssessorDate":
if (true) {
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $tdvalue);
$this->formArray["pa_yearValue"] = removePreZero($dateArr["year"]);
eval(MONTH_ARRAY);
//$monthArray
$this->formArray["pa_month"] = $monthArray[removePreZero($dateArr["month"])];
$this->formArray["pa_dayValue"] = removePreZero($dateArr["day"]);
} else {
$this->formArray[$tdkey] = "";
}
$this->formArray[$tdkey] = $tdvalue;
//RC 20091007
break;
case "cityMunicipalAssessor":
if (is_a($tdvalue, Assessor)) {
$this->formArray["cityMunicipalAssessorID"] = $tdvalue->getAssessorID();
$this->formArray["cityMunicipalAssessorName"] = $tdvalue->getFullName();
} else {
$this->formArray[$tdkey] = "";
}
break;
case "cityMunicipalAssessorDate":
if (true) {
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $tdvalue);
$this->formArray["cm_yearValue"] = removePreZero($dateArr["year"]);
eval(MONTH_ARRAY);
//$monthArray
$this->formArray["cm_month"] = $monthArray[removePreZero($dateArr["month"])];
$this->formArray["cm_dayValue"] = removePreZero($dateArr["day"]);
} else {
$this->formArray[$tdkey] = "";
}
$this->formArray[$tdkey] = $tdvalue;
//RC 20091007
break;
case "enteredInRPARForBy":
if (is_a($tdvalue, Assessor)) {
$this->formArray["enteredInRPARForByID"] = $tdvalue->getAssessorID();
$this->formArray["enteredInRPARForByName"] = $tdvalue->getFullName();
} else {
$this->formArray[$tdkey] = "";
}
break;
case "previousOwner":
// RC 20091006 This case allows for extra info
$posSlash = strpos($tdvalue, "/");
if ($posSlash !== false) {
$this->formArray[$tdkey] = substr($tdvalue, 0, $posSlash);
$this->formArray["previousOwnerExtra"] = substr($tdvalue, $posSlash + 1);
} else {
$this->formArray[$tdkey] = $tdvalue;
}
break;
case "cancelsTDNumber":
// RC 20091006 allow for extra info
$posSlash = strpos($tdvalue, "/");
if ($posSlash !== false) {
$this->formArray[$tdkey] = substr($tdvalue, 0, $posSlash);
$this->formArray["cancelsTDNumberExtra"] = substr($tdvalue, $posSlash + 1);
} else {
$this->formArray[$tdkey] = $tdvalue;
}
break;
default:
$this->formArray[$tdkey] = $tdvalue;
}
}
}
}
}
示例5: displayTDDetails
function displayTDDetails($propertyType)
{
$afsID = $this->formArray["afsID"];
$propertyID = $this->formArray["propertyID"];
$TDDetails = new SoapObject(NCCBIZ . "TDDetails.php", "urn:Object");
if (!($xmlStr = $TDDetails->getTD("", $afsID, $propertyID, $propertyType))) {
$this->formArray["tdNumber"] = "";
$this->formArray["tdID"] = "";
$this->formArray["propertyType"] = $propertyType;
} else {
if (!($domDoc = domxml_open_mem($xmlStr))) {
$this->formArray["tdNumber"] = "";
$this->formArray["tdID"] = "";
$this->formArray["propertyType"] = $propertyType;
} else {
$td = new TD();
$td->parseDomDocument($domDoc);
$this->formArray["tdNumber"] = $td->getTaxDeclarationNumber();
foreach ($td as $tdkey => $tdvalue) {
switch ($tdkey) {
case "provincialAssessor":
if (is_a($tdvalue, Assessor)) {
$this->formArray["provincialAssessorID"] = $tdvalue->getAssessorID();
$this->formArray["provincialAssessorName"] = $tdvalue->getFullName();
} else {
$this->formArray[$tdkey] = "";
}
break;
case "provincialAssessorDate":
if (true) {
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $tdvalue);
$this->formArray["pa_yearValue"] = removePreZero($dateArr["year"]);
eval(MONTH_ARRAY);
//$monthArray
$this->formArray["pa_month"] = $monthArray[removePreZero($dateArr["month"])];
$this->formArray["pa_dayValue"] = removePreZero($dateArr["day"]);
} else {
$this->formArray[$tdkey] = "";
}
break;
case "cityMunicipalAssessor":
if (is_a($tdvalue, Assessor)) {
$this->formArray["cityMunicipalAssessorID"] = $tdvalue->getAssessorID();
$this->formArray["cityMunicipalAssessorName"] = $tdvalue->getFullName();
} else {
$this->formArray[$tdkey] = "";
}
break;
case "cityMunicipalAssessorDate":
if (true) {
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $tdvalue);
$this->formArray["cm_yearValue"] = removePreZero($dateArr["year"]);
eval(MONTH_ARRAY);
//$monthArray
$this->formArray["cm_month"] = $monthArray[removePreZero($dateArr["month"])];
$this->formArray["cm_dayValue"] = removePreZero($dateArr["day"]);
} else {
$this->formArray[$tdkey] = "";
}
break;
case "enteredInRPARForBy":
if (is_a($tdvalue, Assessor)) {
$this->formArray["enteredInRPARForByID"] = $tdvalue->getAssessorID();
$this->formArray["enteredInRPARForByName"] = $tdvalue->getFullName();
} else {
$this->formArray[$tdkey] = "";
}
break;
default:
$this->formArray[$tdkey] = $tdvalue;
}
}
}
}
}
示例6: displayDetails
function displayDetails($value)
{
foreach ($value as $lkey => $lvalue) {
switch ($lkey) {
case "propertyAdministrator":
if (is_a($lvalue, Person)) {
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $lvalue->getBirthday());
$this->tpl->set_var("personID", $lvalue->getPersonID());
$this->tpl->set_var("lastName", $lvalue->getLastName());
$this->tpl->set_var("firstName", $lvalue->getFirstName());
$this->tpl->set_var("middleName", $lvalue->getMiddleName());
$this->tpl->set_var("gender", $lvalue->getGender());
$this->tpl->set_var("birth_year", removePreZero($dateArr["year"]));
$this->tpl->set_var("birth_month", removePreZero($dateArr["month"]));
$this->tpl->set_var("birth_day", removePreZero($dateArr["day"]));
$this->tpl->set_var("maritalStatus", $lvalue->getMaritalStatus());
$this->tpl->set_var("tin", $lvalue->getTin());
$this->tpl->set_var("addressID", $lvalue->addressArray[0]->getAddressID());
$this->tpl->set_var("number", $lvalue->addressArray[0]->getNumber());
$this->tpl->set_var("street", $lvalue->addressArray[0]->getStreet());
$this->tpl->set_var("barangay", $lvalue->addressArray[0]->getBarangay());
$this->tpl->set_var("district", $lvalue->addressArray[0]->getDistrict());
$this->tpl->set_var("municipalityCity", $lvalue->addressArray[0]->getMunicipalityCity());
$this->tpl->set_var("province", $lvalue->addressArray[0]->getProvince());
$this->tpl->set_var("telephone", $lvalue->getTelephone());
$this->tpl->set_var("mobileNumber", $lvalue->getMobileNumber());
$this->tpl->set_var("email", $lvalue->getEmail());
} else {
$this->tpl->set_var($lkey, "");
}
break;
case "verifiedBy":
if (is_a($lvalue, Assessor)) {
$this->tpl->set_var("verifiedByID", $lvalue->getAssessorID());
$this->tpl->set_var("verifiedByName", $lvalue->getFullName());
} else {
$this->tpl->set_var($lkey, "");
}
break;
case "plottingsBy":
if (is_a($lvalue, Assessor)) {
$this->tpl->set_var("plottingsByID", $lvalue->getAssessorID());
$this->tpl->set_var("plottingsByName", $lvalue->getFullName());
} else {
$this->tpl->set_var($lkey, "");
}
break;
case "notedBy":
if (is_a($lvalue, Assessor)) {
$this->tpl->set_var("notedByID", $lvalue->getAssessorID());
$this->tpl->set_var("notedByName", $lvalue->getFullName());
} else {
$this->tpl->set_var($lkey, "");
}
break;
case "appraisedBy":
if (is_a($lvalue, Assessor)) {
$this->tpl->set_var("appraisedByID", $lvalue->getAssessorID());
$this->tpl->set_var("appraisedByName", $lvalue->getFullName());
} else {
$this->tpl->set_var($lkey, "");
}
break;
case "appraisedByDate":
if (true) {
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $lvalue);
$this->tpl->set_var("as_yearValue", removePreZero($dateArr["year"]));
eval(MONTH_ARRAY);
//$monthArray
$this->tpl->set_var("as_month", $monthArray[removePreZero($dateArr["month"])]);
$this->tpl->set_var("as_dayValue", removePreZero($dateArr["day"]));
} else {
$this->tpl->set_var($lkey, "");
}
break;
case "recommendingApproval":
if (is_a($lvalue, Assessor)) {
$this->tpl->set_var("recommendingApprovalID", $lvalue->getAssessorID());
$this->tpl->set_var("recommendingApprovalName", $lvalue->getFullName());
} else {
$this->tpl->set_var($lkey, "");
}
break;
case "recommendingApprovalDate":
if (true) {
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $lvalue);
$this->tpl->set_var("re_yearValue", removePreZero($dateArr["year"]));
eval(MONTH_ARRAY);
//$monthArray
$this->tpl->set_var("re_month", $monthArray[removePreZero($dateArr["month"])]);
$this->tpl->set_var("re_dayValue", removePreZero($dateArr["day"]));
} else {
$this->tpl->set_var($lkey, "");
}
case "approvedBy":
if (is_a($lvalue, Assessor)) {
$this->tpl->set_var("approvedByID", $lvalue->getAssessorID());
$this->tpl->set_var("approvedByName", $lvalue->getFullName());
} else {
$this->tpl->set_var($lkey, "");
//.........这里部分代码省略.........
示例7: Main
//.........这里部分代码省略.........
} else {
$cityTreasurer = $value;
$this->tpl->set_var("cityTreasurerID", $cityTreasurer);
$this->tpl->set_var("cityTreasurerName", $cityTreasurer);
$this->formArray["cityTreasurerName"] = $cityTreasurer;
}
break;
case "tdArray":
$this->tpl->set_block("rptsTemplate", "defaultTDList", "defaultTDListBlock");
$this->tpl->set_block("rptsTemplate", "toggleTDList", "toggleTDListBlock");
$this->tpl->set_block("rptsTemplate", "TDList", "TDListBlock");
$this->tpl->set_block("rptsTemplate", "JSTDList", "JSTDListBlock");
$this->tpl->set_block("TDList", "DueTypeList", "DueTypeListBlock");
$this->tpl->set_block("TDList", "BacktaxesList", "BacktaxesListBlock");
$this->tpl->set_block("JSTDList", "JSBacktaxesList", "JSBacktaxesListBlock");
$this->tpl->set_block("BacktaxesList", "BacktaxDueTypeList", "BacktaxDueTypeListBlock");
$tdCtr = 0;
if (count($value)) {
$this->tpl->set_block("rptsTemplate", "TDDBEmpty", "TDDBEmptyBlock");
$this->tpl->set_var("TDDBEmptyBlock", "");
foreach ($value as $tkey => $tvalue) {
$this->tpl->set_var("tdID", $tvalue->getTDID());
$this->tpl->set_var("taxDeclarationNumber", $tvalue->getTaxDeclarationNumber());
$this->tpl->set_var("afsID", $tvalue->getAfsID());
$this->tpl->set_var("cancelsTDNumber", $tvalue->getCancelsTDNumber());
$this->tpl->set_var("canceledByTDNumber", $tvalue->getCanceledByTDNumber());
$this->tpl->set_var("taxBeginsWithTheYear", $tvalue->getTaxBeginsWithTheYear());
$this->tpl->set_var("ceasesWithTheYear", $tvalue->getCeasesWithTheYear());
$this->tpl->set_var("enteredInRPARForBy", $tvalue->getEnteredInRPARForBy());
$this->tpl->set_var("enteredInRPARForYear", $tvalue->getEnteredInRPARForYear());
$this->tpl->set_var("previousOwner", $tvalue->getPreviousOwner());
$this->tpl->set_var("previousAssessedValue", $tvalue->getPreviousAssessedValue());
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $tvalue->getProvincialAssessorDate());
$this->tpl->set_var("pa_yearValue", removePreZero($dateArr["year"]));
$this->tpl->set_var("pa_month", removePreZero($dateArr["month"]));
$this->tpl->set_var("pa_dayValue", removePreZero($dateArr["day"]));
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $tvalue->getCityMunicipalAssessorDate());
$this->tpl->set_var("cm_yearValue", removePreZero($dateArr["year"]));
$this->tpl->set_var("cm_month", removePreZero($dateArr["month"]));
$this->tpl->set_var("cm_dayValue", removePreZero($dateArr["day"]));
$this->tpl->set_var("provincialAssessorName", $tvalue->provincialAssessor);
$this->tpl->set_var("cityMunicipalAssessorName", $tvalue->cityMunicipalAssessor);
$this->tpl->set_var("propertyType", $tvalue->getPropertyType());
$this->tpl->set_var("basicTax", "");
$this->tpl->set_var("sefTax", "");
$this->tpl->set_var("total", "");
$AFSDetails = new SoapObject(NCCBIZ . "AFSDetails.php", "urn:Object");
if (!($xmlStr = $AFSDetails->getAFS($tvalue->getAfsID()))) {
//
} else {
if (!($domDoc = domxml_open_mem($xmlStr))) {
//
} else {
$afs = new AFS();
$afs->parseDomDocument($domDoc);
$this->formArray["landTotalMarketValue"] += $afs->getLandTotalMarketValue();
$this->formArray["landTotalAssessedValue"] += $afs->getLandTotalAssessedValue();
$this->formArray["plantTotalMarketValue"] += $afs->getPlantTotalMarketValue();
$this->formArray["plantTotalAssessedValue"] += $afs->getPlantTotalAssessedValue();
$this->formArray["bldgTotalMarketValue"] += $afs->getBldgTotalMarketValue();
$this->formArray["bldgTotalAssessedValue"] += $afs->getBldgTotalAssessedValue();
$this->formArray["machTotalMarketValue"] += $afs->getMachTotalMarketValue();
$this->formArray["machTotalAssessedValue"] += $afs->getMachTotalAssessedValue();
$this->formArray["totalMarketValue"] += $afs->getTotalMarketValue();
$this->formArray["totalAssessedValue"] += $afs->getTotalAssessedValue();
$this->tpl->set_var("marketValue", number_format($afs->getTotalMarketValue(), 2, '.', ','));
示例8: Main
function Main()
{
switch ($this->formArray["formAction"]) {
case "edit":
$PlantsTreesDetails = new SoapObject(NCCBIZ . "PlantsTreesDetails.php", "urn:Object");
if (!($xmlStr = $PlantsTreesDetails->getPlantsTrees($this->formArray["propertyID"]))) {
echo "xml failed";
} else {
//echo $xmlStr;
if (!($domDoc = domxml_open_mem($xmlStr))) {
$this->tpl->set_block("rptsTemplate", "OwnerListTable", "OwnerListTableBlock");
$this->tpl->set_var("OwnerListTableBlock", "error xmlDoc");
} else {
$plantsTrees = new PlantsTrees();
$plantsTrees->parseDomDocument($domDoc);
foreach ($plantsTrees as $key => $value) {
switch ($key) {
case "propertyAdministrator":
if (is_a($value, Person)) {
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $value->getBirthday());
$this->formArray["personID"] = $value->getPersonID();
$this->formArray["lastName"] = $value->getLastName();
$this->formArray["firstName"] = $value->getFirstName();
$this->formArray["middleName"] = $value->getMiddleName();
$this->formArray["gender"] = $value->getGender();
$this->formArray["birth_year"] = removePreZero($dateArr["year"]);
$this->formArray["birth_month"] = removePreZero($dateArr["month"]);
$this->formArray["birth_day"] = removePreZero($dateArr["day"]);
$this->formArray["maritalStatus"] = $value->getMaritalStatus();
$this->formArray["tin"] = $value->getTin();
$this->formArray["addressID"] = $value->addressArray[0]->getAddressID();
$this->formArray["number"] = $value->addressArray[0]->getNumber();
$this->formArray["street"] = $value->addressArray[0]->getStreet();
$this->formArray["barangay"] = $value->addressArray[0]->getBarangay();
$this->formArray["district"] = $value->addressArray[0]->getDistrict();
$this->formArray["municipalityCity"] = $value->addressArray[0]->getMunicipalityCity();
$this->formArray["province"] = $value->addressArray[0]->getProvince();
$this->formArray["telephone"] = $value->getTelephone();
$this->formArray["mobileNumber"] = $value->getMobileNumber();
$this->formArray["email"] = $value->getEmail();
} else {
$this->formArray[$key] = "";
}
break;
case "appraisedByDate":
if (true) {
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $value);
$this->formArray["as_year"] = removePreZero($dateArr["year"]);
$this->formArray["as_month"] = removePreZero($dateArr["month"]);
$this->formArray["as_day"] = removePreZero($dateArr["day"]);
} else {
$this->formArray[$key] = "";
}
break;
case "recommendingApprovalDate":
if (true) {
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $value);
$this->formArray["re_year"] = removePreZero($dateArr["year"]);
$this->formArray["re_month"] = removePreZero($dateArr["month"]);
$this->formArray["re_day"] = removePreZero($dateArr["day"]);
} else {
$this->formArray[$key] = "";
}
case "approvedByDate":
if (true) {
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $value);
$this->formArray["av_year"] = removePreZero($dateArr["year"]);
$this->formArray["av_month"] = removePreZero($dateArr["month"]);
$this->formArray["av_day"] = removePreZero($dateArr["day"]);
} else {
$this->formArray[$key] = "";
}
break;
case "dateAcquired":
if (true) {
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $value);
$this->formArray["da_year"] = removePreZero($dateArr["year"]);
$this->formArray["da_month"] = removePreZero($dateArr["month"]);
$this->formArray["da_day"] = removePreZero($dateArr["day"]);
} else {
$this->formArray[$key] = "";
}
break;
case "dateOfInstallation":
if (true) {
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $value);
$this->formArray["di_year"] = removePreZero($dateArr["year"]);
$this->formArray["di_month"] = removePreZero($dateArr["month"]);
$this->formArray["di_day"] = removePreZero($dateArr["day"]);
} else {
$this->formArray[$key] = "";
}
break;
case "dateOfOperation":
if (true) {
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $value);
$this->formArray["do_year"] = removePreZero($dateArr["year"]);
$this->formArray["do_month"] = removePreZero($dateArr["month"]);
$this->formArray["do_day"] = removePreZero($dateArr["day"]);
} else {
//.........这里部分代码省略.........
示例9: Main
function Main()
{
switch ($this->formArray["formAction"]) {
case "edit":
$ImprovementsBuildingsDetails = new SoapObject(NCCBIZ . "ImprovementsBuildingsDetails.php", "urn:Object");
if (!($xmlStr = $ImprovementsBuildingsDetails->getImprovementsBuildings($this->formArray["propertyID"]))) {
echo "xml failed";
} else {
//echo $xmlStr;
if (!($domDoc = domxml_open_mem($xmlStr))) {
$this->tpl->set_block("rptsTemplate", "OwnerListTable", "OwnerListTableBlock");
$this->tpl->set_var("OwnerListTableBlock", "error xmlDoc");
} else {
$improvementsBuildings = new ImprovementsBuildings();
$improvementsBuildings->parseDomDocument($domDoc);
foreach ($improvementsBuildings as $key => $value) {
switch ($key) {
case "propertyAdministrator":
if (is_a($value, Person)) {
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $value->getBirthday());
$this->formArray["personID"] = $value->getPersonID();
$this->formArray["lastName"] = $value->getLastName();
$this->formArray["firstName"] = $value->getFirstName();
$this->formArray["middleName"] = $value->getMiddleName();
$this->formArray["gender"] = $value->getGender();
$this->formArray["birth_year"] = removePreZero($dateArr["year"]);
$this->formArray["birth_month"] = removePreZero($dateArr["month"]);
$this->formArray["birth_day"] = removePreZero($dateArr["day"]);
$this->formArray["maritalStatus"] = $value->getMaritalStatus();
$this->formArray["tin"] = $value->getTin();
if (is_array($value->addressArray)) {
$this->formArray["addressID"] = $value->addressArray[0]->getAddressID();
$this->formArray["number"] = $value->addressArray[0]->getNumber();
$this->formArray["street"] = $value->addressArray[0]->getStreet();
$this->formArray["barangay"] = $value->addressArray[0]->getBarangay();
$this->formArray["district"] = $value->addressArray[0]->getDistrict();
$this->formArray["municipalityCity"] = $value->addressArray[0]->getMunicipalityCity();
$this->formArray["province"] = $value->addressArray[0]->getProvince();
}
$this->formArray["telephone"] = $value->getTelephone();
$this->formArray["mobileNumber"] = $value->getMobileNumber();
$this->formArray["email"] = $value->getEmail();
} else {
$this->formArray[$key] = "";
}
break;
case "appraisedByDate":
if (true) {
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $value);
$this->formArray["as_year"] = removePreZero($dateArr["year"]);
$this->formArray["as_month"] = removePreZero($dateArr["month"]);
$this->formArray["as_day"] = removePreZero($dateArr["day"]);
} else {
$this->formArray[$key] = "";
}
break;
case "recommendingApprovalDate":
if (true) {
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $value);
$this->formArray["re_year"] = removePreZero($dateArr["year"]);
$this->formArray["re_month"] = removePreZero($dateArr["month"]);
$this->formArray["re_day"] = removePreZero($dateArr["day"]);
} else {
$this->formArray[$key] = "";
}
break;
case "approvedByDate":
if (true) {
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $value);
$this->formArray["av_year"] = removePreZero($dateArr["year"]);
$this->formArray["av_month"] = removePreZero($dateArr["month"]);
$this->formArray["av_day"] = removePreZero($dateArr["day"]);
} else {
$this->formArray[$key] = "";
}
break;
case "dateConstructed":
if (true) {
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $value);
$this->formArray["dc_year"] = removePreZero($dateArr["year"]);
$this->formArray["dc_month"] = removePreZero($dateArr["month"]);
$this->formArray["dc_day"] = removePreZero($dateArr["day"]);
} else {
$this->formArray[$key] = "";
}
break;
case "dateOccupied":
if (true) {
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $value);
$this->formArray["do_year"] = removePreZero($dateArr["year"]);
$this->formArray["do_month"] = removePreZero($dateArr["month"]);
$this->formArray["do_day"] = removePreZero($dateArr["day"]);
} else {
$this->formArray[$key] = "";
}
break;
case "dateCompleted":
if (true) {
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $value);
$this->formArray["dm_year"] = removePreZero($dateArr["year"]);
//.........这里部分代码省略.........
示例10: Main
//.........这里部分代码省略.........
$doc = $td->getDomDocument();
$xmlStr = $doc->dump_mem(true);
//exit($xmlStr);
if (!($ret = $TDEncode->updateTD($xmlStr))) {
exit("error update");
}
}
}
} else {
$td = new TD();
$td->parseDomDocument($domDoc);
//$td->setTdID($this->formArray["tdID"]);
$td->setAfsID($this->formArray["afsID"]);
$td->setPropertyID($this->formArray["propertyID"]);
$td->setPropertyType($this->formArray["propertyType"]);
$td->setTaxDeclarationNumber($this->formArray["taxDeclarationNumber"]);
$td->setProvincialAssessor($this->formArray["provincialAssessorID"]);
$td->setProvincialAssessorDate($this->formArray["provincialAssessorDate"]);
$td->setCityMunicipalAssessor($this->formArray["cityMunicipalAssessorID"]);
$td->setCityMunicipalAssessorDate($this->formArray["cityMunicipalAssessorDate"]);
$td->setCancelsTDNumber($this->formArray["cancelsTDNumber"]);
$td->setCanceledByTDNumber($this->formArray["canceledByTDNumber"]);
$td->setTaxBeginsWithTheYear($this->formArray["taxBeginsWithTheYear"]);
$td->setCeasesWithTheYear($this->formArray["ceasesWithTheYear"]);
$td->setEnteredInRPARForYear($this->formArray["enteredInRPARForYear"]);
$td->setEnteredInRPARForBy($this->formArray["enteredInRPARForByID"]);
$td->setPreviousOwner($this->formArray["previousOwner"]);
$td->setPreviousAssessedValue($this->formArray["previousAssessedValue"]);
$td->setCreatedBy($this->userID);
$td->setModifiedBy($this->userID);
$td->setDomDocument();
$doc = $td->getDomDocument();
$xmlStr = $doc->dump_mem(true);
//echo $xmlStr;
if (!($ret = $TDEncode->saveTD($xmlStr))) {
echo "Error saving";
}
}
$this->formArray["propertyID"] = $ret;
header("location: TDClose.php" . $this->sess->url("") . $this->sess->add_query(array("afsID" => $this->formArray["afsID"])));
exit($ret);
break;
case "cancel":
header("location: TDList.php");
exit;
break;
default:
if ($this->formArray["tdID"]) {
$TDDetails = new SoapObject(NCCBIZ . "TDDetails.php", "urn:Object");
if (!($xmlStr = $TDDetails->getTD($this->formArray["tdID"]))) {
echo "xml failed";
} else {
//echo $xmlStr;
if (!($domDoc = domxml_open_mem($xmlStr))) {
$this->tpl->set_block("rptsTemplate", "OwnerListTable", "OwnerListTableBlock");
$this->tpl->set_var("OwnerListTableBlock", "error xmlDoc");
} else {
$td = new TD();
$td->parseDomDocument($domDoc);
foreach ($td as $key => $value) {
switch ($key) {
case "provincialAssessorDate":
if (true) {
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $value);
$this->formArray["pa_year"] = removePreZero($dateArr["year"]);
$this->formArray["pa_month"] = removePreZero($dateArr["month"]);
$this->formArray["pa_day"] = removePreZero($dateArr["day"]);
} else {
$this->formArray[$key] = "";
}
break;
case "cityMunicipalAssessorDate":
if (true) {
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $value);
$this->formArray["cm_year"] = removePreZero($dateArr["year"]);
$this->formArray["cm_month"] = removePreZero($dateArr["month"]);
$this->formArray["cm_day"] = removePreZero($dateArr["day"]);
} else {
$this->formArray[$key] = "";
}
break;
default:
//echo $key."=>".$value."<br>";
$this->formArray[$key] = $value;
}
}
}
}
}
$this->tpl->set_block("rptsTemplate", "odID", "odIDBlock");
$this->tpl->set_var("odIDBlock", "");
$this->tpl->set_block("rptsTemplate", "ACK", "ACKBlock");
$this->tpl->set_var("ACKBlock", "");
}
$this->setForm();
$this->tpl->set_var("Session", $this->sess->url("") . $this->sess->add_query(array("tdID" => $this->formArray["tdID"], "propertyType" => $this->formArray["propertyType"], "propertyID" => $this->formArray["propertyID"], "afsID" => $this->formArray["afsID"])));
$this->tpl->parse("templatePage", "rptsTemplate");
$this->tpl->finish("templatePage");
$this->tpl->p("templatePage");
}
示例11: Main
function Main()
{
switch ($this->formArray["formAction"]) {
case "edit":
$PersonDetails = new SoapObject(NCCBIZ . "PersonDetails.php", "urn:Object");
if (!($xmlStr = $PersonDetails->getPersonDetails($this->formArray["personID"]))) {
$this->tpl->set_block("rptsTemplate", "Table", "TableBlock");
$this->tpl->set_var("TableBlock", "record not found");
} else {
if (!($domDoc = domxml_open_mem($xmlStr))) {
$this->tpl->set_block("rptsTemplate", "Table", "TableBlock");
$this->tpl->set_var("TableBlock", "error xmlDoc");
} else {
$person = new Person();
$person->parseDomDocument($domDoc);
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $person->getBirthday());
$this->formArray["personID"] = $person->getPersonID();
$this->formArray["lastName"] = $person->getLastName();
$this->formArray["firstName"] = $person->getFirstName();
$this->formArray["middleName"] = $person->getMiddleName();
$this->formArray["gender"] = $person->getGender();
$this->formArray["birth_year"] = removePreZero($dateArr["year"]);
$this->formArray["birth_month"] = removePreZero($dateArr["month"]);
$this->formArray["birth_day"] = removePreZero($dateArr["day"]);
$this->formArray["maritalStatus"] = $person->getMaritalStatus();
$this->formArray["tin"] = $person->getTin();
$address = $person->addressArray[0];
if (is_a($address, Address)) {
$this->formArray["addressID"] = $address->getAddressID();
$this->formArray["number"] = $address->getNumber();
$this->formArray["street"] = $address->getStreet();
$this->formArray["barangay"] = $address->getBarangay();
$this->formArray["district"] = $address->getDistrict();
$this->formArray["municipalityCity"] = $address->getMunicipalitycity();
$this->formArray["province"] = $address->getProvince();
}
$this->formArray["telephone"] = $person->getTelephone();
$this->formArray["mobileNumber"] = $person->getMobileNumber();
$this->formArray["email"] = $person->getEmail();
}
}
break;
case "save":
$PersonEncode = new SoapObject(NCCBIZ . "PersonEncode.php", "urn:Object");
if ($this->formArray["personID"] != "") {
$PersonDetails = new SoapObject(NCCBIZ . "PersonDetails.php", "urn:Object");
if (!($xmlStr = $PersonDetails->getPersonDetails($this->formArray["personID"]))) {
$this->tpl->set_block("rptsTemplate", "Table", "TableBlock");
$this->tpl->set_var("TableBlock", "record not found");
} else {
if (!($domDoc = domxml_open_mem($xmlStr))) {
$this->tpl->set_block("rptsTemplate", "Table", "TableBlock");
$this->tpl->set_var("TableBlock", "error xmlDoc");
} else {
$person = new Person();
$person->parseDomDocument($domDoc);
$address = $person->addressArray[0];
if (is_a($address, Address)) {
$address->setAddressID($this->formArray["addressID"]);
$address->setNumber($this->formArray["number"]);
$address->setStreet($this->formArray["street"]);
$address->setBarangay($this->formArray["barangay"]);
$address->setDistrict($this->formArray["district"]);
$address->setMunicipalityCity($this->formArray["municipalityCity"]);
$address->setProvince($this->formArray["province"]);
$address->setDomDocument();
}
$person->setPersonID($this->formArray["personID"]);
$person->setLastName($this->formArray["lastName"]);
$person->setFirstName($this->formArray["firstName"]);
$person->setMiddleName($this->formArray["middleName"]);
$person->setGender($this->formArray["gender"]);
$person->setBirthday($this->birthdate);
$person->setMaritalStatus($this->formArray["maritalStatus"]);
$person->setTin($this->formArray["tin"]);
$person->setAddressArray($address);
$person->setTelephone($this->formArray["telephone"]);
$person->setMobileNumber($this->formArray["mobileNumber"]);
$person->setEmail($this->formArray["email"]);
$person->setDomDocument();
$doc = $person->getDomDocument();
$xmlStr = $doc->dump_mem(true);
if (!($ret = $PersonEncode->updatePerson($xmlStr))) {
exit("error update");
}
}
}
} else {
$address = new Address();
$address->setNumber($this->formArray["number"]);
$address->setStreet($this->formArray["street"]);
$address->setBarangay($this->formArray["barangay"]);
$address->setDistrict($this->formArray["district"]);
$address->setMunicipalityCity($this->formArray["municipalityCity"]);
$address->setProvince($this->formArray["province"]);
$address->setDomDocument();
$person = new Person();
$person->setPersonID($this->formArray["personID"]);
$person->setLastName($this->formArray["lastName"]);
$person->setFirstName($this->formArray["firstName"]);
//.........这里部分代码省略.........
示例12: Main
function Main()
{
switch ($this->formArray["formAction"]) {
case "edit":
$UserDetails = new SoapObject(NCCBIZ . "UserDetails.php", "urn:Object");
if (!($xmlStr = $UserDetails->getUserDetails($this->formArray["userID"]))) {
$this->tpl->set_block("rptsTemplate", "Table", "TableBlock");
$this->tpl->set_var("TableBlock", "User record not found");
} else {
if (!($domDoc = domxml_open_mem($xmlStr))) {
$this->tpl->set_block("rptsTemplate", "Table", "TableBlock");
$this->tpl->set_var("TableBlock", "error xmlDoc");
} else {
$user = new User();
$user->parseDomDocument($domDoc);
$this->formArray["userID"] = $user->getUserID();
$this->formArray["userType"] = $user->getUserType();
$this->formArray["username"] = $user->getUsername();
$this->formArray["password"] = $user->getPassword();
$this->formArray["personID"] = $user->getPersonID();
$this->formArray["status"] = $user->getStatus();
}
}
$PersonDetails = new SoapObject(NCCBIZ . "PersonDetails.php", "urn:Object");
if (!($xmlStr = $PersonDetails->getPersonDetails($this->formArray["personID"]))) {
$this->tpl->set_block("rptsTemplate", "Table", "TableBlock");
$this->tpl->set_var("TableBlock", "Person record not found");
} else {
if (!($domDoc = domxml_open_mem($xmlStr))) {
$this->tpl->set_block("rptsTemplate", "Table", "TableBlock");
$this->tpl->set_var("TableBlock", "error xmlDoc");
} else {
$person = new Person();
$person->parseDomDocument($domDoc);
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $person->getBirthday());
$this->formArray["personID"] = $person->getPersonID();
$this->formArray["lastName"] = $person->getLastName();
$this->formArray["firstName"] = $person->getFirstName();
$this->formArray["middleName"] = $person->getMiddleName();
$this->formArray["gender"] = $person->getGender();
$this->formArray["birth_year"] = removePreZero($dateArr["year"]);
$this->formArray["birth_month"] = removePreZero($dateArr["month"]);
$this->formArray["birth_day"] = removePreZero($dateArr["day"]);
$this->formArray["maritalStatus"] = $person->getMaritalStatus();
$this->formArray["tin"] = $person->getTin();
$address = $person->addressArray[0];
if (is_a($address, Address)) {
$this->formArray["addressID"] = $address->getAddressID();
$this->formArray["number"] = $address->getNumber();
$this->formArray["street"] = $address->getStreet();
$this->formArray["barangay"] = $address->getBarangay();
$this->formArray["district"] = $address->getDistrict();
$this->formArray["municipalityCity"] = $address->getMunicipalitycity();
$this->formArray["province"] = $address->getProvince();
}
$this->formArray["telephone"] = $person->getTelephone();
$this->formArray["mobileNumber"] = $person->getMobileNumber();
$this->formArray["email"] = $person->getEmail();
}
}
$this->tpl->set_block("rptsTemplate", "NewUserPassword", "NewUserPasswordBlock");
$this->tpl->set_var("NewUserPasswordBlock", "");
$this->tpl->set_block("rptsTemplate", "OldUserPassword", "OldUserPasswordBlock");
$this->tpl->set_var("oldNewUserRowspan", 5);
//$this->tpl->set_var("oldNewUserRowspan", 3);
$this->tpl->parse("OldUserPasswordBlock", "OldUserPassword", true);
break;
case "save":
/*
if($this->isOldPasswordCorrect()==false){
$this->message = "Error. Cannot Save. Old password incorrect to create new password.";
$this->tpl->set_var("message", $this->message);
$this->tpl->parse("MessageBlock", "Message", true);
$this->tpl->set_block("rptsTemplate", "NewUserPassword", "NewUserPasswordBlock");
$this->tpl->set_var("NewUserPasswordBlock", "");
$this->tpl->set_block("rptsTemplate", "OldUserPassword", "OldUserPasswordBlock");
$this->tpl->set_var("oldNewUserRowspan", 3);
$this->tpl->parse("OldUserPasswordBlock", "OldUserPassword", true);
break;
}
*/
if ($this->formArray["newPassword"] != "" && $this->formArray["newPassword"] != "null") {
$this->formArray["password"] = md5($this->formArray["newPassword"]);
}
if ($this->usernameAlreadyExists() == true) {
$this->message = "Error. Cannot Save. Username already exists.";
$this->tpl->set_var("message", $this->message);
$this->tpl->parse("MessageBlock", "Message", true);
$this->tpl->set_block("rptsTemplate", "NewUserPassword", "NewUserPasswordBlock");
$this->tpl->set_block("rptsTemplate", "OldUserPassword", "OldUserPasswordBlock");
if ($this->formArray["personID"] != "") {
$this->tpl->set_var("NewUserPasswordBlock", "");
$this->tpl->set_var("oldNewUserRowspan", 3);
$this->tpl->parse("OldUserPasswordBlock", "OldUserPassword", true);
} else {
$this->tpl->set_var("oldNewUserRowspan", 2);
$this->tpl->parse("NewUserPasswordBlock", "NewUserPassword", true);
$this->tpl->set_var("OldUserPasswordBlock", "");
//.........这里部分代码省略.........
示例13: Main
//.........这里部分代码省略.........
}
break;
case "tdArray":
$this->tpl->set_block("rptsTemplate", "defaultTDList", "defaultTDListBlock");
$this->tpl->set_block("rptsTemplate", "toggleTDList", "toggleTDListBlock");
$this->tpl->set_block("rptsTemplate", "TDList", "TDListBlock");
$this->tpl->set_block("TDList", "BacktaxesList", "BacktaxesListBlock");
$tdCtr = 0;
if (count($value)) {
$this->tpl->set_block("rptsTemplate", "TDDBEmpty", "TDDBEmptyBlock");
$this->tpl->set_var("TDDBEmptyBlock", "");
/*
$this->tpl->set_block("TDList", "Land", "LandBlock");
$this->tpl->set_block("TDList", "PlantsTrees", "PlantsTreesBlock");
$this->tpl->set_block("TDList", "ImprovementsBuildings", "ImprovementsBuildingsBlock");
$this->tpl->set_block("TDList", "Machineries", "MachineriesBlock");
*/
foreach ($value as $tkey => $tvalue) {
//foreach($tvalue as $column => $val){
// $this->tpl->set_var($column,$val);
//}
$this->tpl->set_var("tdID", $tvalue->getTDID());
$this->tpl->set_var("taxDeclarationNumber", $tvalue->getTaxDeclarationNumber());
$this->tpl->set_var("afsID", $tvalue->getAfsID());
$this->tpl->set_var("cancelsTDNumber", $tvalue->getCancelsTDNumber());
$this->tpl->set_var("canceledByTDNumber", $tvalue->getCanceledByTDNumber());
$this->tpl->set_var("taxBeginsWithTheYear", $tvalue->getTaxBeginsWithTheYear());
$this->tpl->set_var("ceasesWithTheYear", $tvalue->getCeasesWithTheYear());
$this->tpl->set_var("enteredInRPARForBy", $tvalue->getEnteredInRPARForBy());
$this->tpl->set_var("enteredInRPARForYear", $tvalue->getEnteredInRPARForYear());
$this->tpl->set_var("previousOwner", $tvalue->getPreviousOwner());
$this->tpl->set_var("previousAssessedValue", $tvalue->getPreviousAssessedValue());
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $tvalue->getProvincialAssessorDate());
$this->tpl->set_var("pa_yearValue", removePreZero($dateArr["year"]));
$this->tpl->set_var("pa_month", removePreZero($dateArr["month"]));
$this->tpl->set_var("pa_dayValue", removePreZero($dateArr["day"]));
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $tvalue->getCityMunicipalAssessorDate());
$this->tpl->set_var("cm_yearValue", removePreZero($dateArr["year"]));
$this->tpl->set_var("cm_month", removePreZero($dateArr["month"]));
$this->tpl->set_var("cm_dayValue", removePreZero($dateArr["day"]));
$this->tpl->set_var("provincialAssessorName", $tvalue->provincialAssessor);
$this->tpl->set_var("cityMunicipalAssessorName", $tvalue->cityMunicipalAssessor);
//$this->tpl->set_var("assessedValue",$tvalue->getAssessedValue());
$this->tpl->set_var("propertyType", $tvalue->getPropertyType());
$this->tpl->set_var("basicTax", "");
$this->tpl->set_var("sefTax", "");
$this->tpl->set_var("total", "");
//$this->tpl->set_var("basicTax",$tvalue->getBasicTax());
//$this->tpl->set_var("sefTax",$tvalue->getSefTax());
//$this->tpl->set_var("total",$tvalue->getTotal());
$AFSDetails = new SoapObject(NCCBIZ . "AFSDetails.php", "urn:Object");
if (!($xmlStr = $AFSDetails->getAFS($tvalue->getAfsID()))) {
//$this->tpl->set_block("rptsTemplate", "AFSTable", "AFSTableBlock");
//$this->tpl->set_var("AFSTableBlock", "afs not found");
} else {
//echo $xmlStr;
if (!($domDoc = domxml_open_mem($xmlStr))) {
//$this->tpl->set_block("rptsTemplate", "OwnerListTable", "OwnerListTableBlock");
//$this->tpl->set_var("OwnerListTableBlock", "error xmlDoc");
} else {
$afs = new AFS();
$afs->parseDomDocument($domDoc);
$this->formArray["landTotalMarketValue"] += $afs->getLandTotalMarketValue();
$this->formArray["landTotalAssessedValue"] += $afs->getLandTotalAssessedValue();
$this->formArray["plantTotalMarketValue"] += $afs->getPlantTotalMarketValue();
$this->formArray["plantTotalAssessedValue"] += $afs->getPlantTotalAssessedValue();
示例14: Main
//.........这里部分代码省略.........
$this->formArray["cityTreasurerName"] = $cityTreasurer;
}
break;
case "tdArray":
$this->tpl->set_block("rptsTemplate", "defaultTDList", "defaultTDListBlock");
$this->tpl->set_block("rptsTemplate", "toggleTDList", "toggleTDListBlock");
$this->tpl->set_block("rptsTemplate", "TDList", "TDListBlock");
$tdCtr = 0;
if (count($value)) {
$this->tpl->set_block("rptsTemplate", "TDDBEmpty", "TDDBEmptyBlock");
$this->tpl->set_var("TDDBEmptyBlock", "");
/*
$this->tpl->set_block("TDList", "Land", "LandBlock");
$this->tpl->set_block("TDList", "PlantsTrees", "PlantsTreesBlock");
$this->tpl->set_block("TDList", "ImprovementsBuildings", "ImprovementsBuildingsBlock");
$this->tpl->set_block("TDList", "Machineries", "MachineriesBlock");
*/
foreach ($value as $tkey => $tvalue) {
//foreach($tvalue as $column => $val){
// $this->tpl->set_var($column,$val);
//}
$this->tpl->set_var("tdID", $tvalue->getTDID());
$this->tpl->set_var("taxDeclarationNumber", $tvalue->getTaxDeclarationNumber());
$this->tpl->set_var("afsID", $tvalue->getAfsID());
$this->tpl->set_var("cancelsTDNumber", $tvalue->getCancelsTDNumber());
$this->tpl->set_var("canceledByTDNumber", $tvalue->getCanceledByTDNumber());
$this->tpl->set_var("taxBeginsWithTheYear", $tvalue->getTaxBeginsWithTheYear());
$this->tpl->set_var("ceasesWithTheYear", $tvalue->getCeasesWithTheYear());
$this->tpl->set_var("enteredInRPARForBy", $tvalue->getEnteredInRPARForBy());
$this->tpl->set_var("enteredInRPARForYear", $tvalue->getEnteredInRPARForYear());
$this->tpl->set_var("previousOwner", $tvalue->getPreviousOwner());
$this->tpl->set_var("previousAssessedValue", $tvalue->getPreviousAssessedValue());
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $tvalue->getProvincialAssessorDate());
$this->tpl->set_var("pa_yearValue", removePreZero($dateArr["year"]));
$this->tpl->set_var("pa_month", removePreZero($dateArr["month"]));
$this->tpl->set_var("pa_dayValue", removePreZero($dateArr["day"]));
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $tvalue->getCityMunicipalAssessorDate());
$this->tpl->set_var("cm_yearValue", removePreZero($dateArr["year"]));
$this->tpl->set_var("cm_month", removePreZero($dateArr["month"]));
$this->tpl->set_var("cm_dayValue", removePreZero($dateArr["day"]));
$this->tpl->set_var("provincialAssessorName", $tvalue->provincialAssessor);
$this->tpl->set_var("cityMunicipalAssessorName", $tvalue->cityMunicipalAssessor);
//$this->tpl->set_var("assessedValue",$tvalue->getAssessedValue());
$this->tpl->set_var("propertyType", $tvalue->getPropertyType());
$this->tpl->set_var("basicTax", "");
$this->tpl->set_var("sefTax", "");
$this->tpl->set_var("total", "");
//$this->tpl->set_var("basicTax",$tvalue->getBasicTax());
//$this->tpl->set_var("sefTax",$tvalue->getSefTax());
//$this->tpl->set_var("total",$tvalue->getTotal());
$AFSDetails = new SoapObject(NCCBIZ . "AFSDetails.php", "urn:Object");
if (!($xmlStr = $AFSDetails->getAFS($tvalue->getAfsID()))) {
//$this->tpl->set_block("rptsTemplate", "AFSTable", "AFSTableBlock");
//$this->tpl->set_var("AFSTableBlock", "afs not found");
} else {
//echo $xmlStr;
if (!($domDoc = domxml_open_mem($xmlStr))) {
//$this->tpl->set_block("rptsTemplate", "OwnerListTable", "OwnerListTableBlock");
//$this->tpl->set_var("OwnerListTableBlock", "error xmlDoc");
} else {
$afs = new AFS();
$afs->parseDomDocument($domDoc);
$this->formArray["landTotalMarketValue"] += $afs->getLandTotalMarketValue();
$this->formArray["landTotalAssessedValue"] += $afs->getLandTotalAssessedValue();
$this->formArray["plantTotalMarketValue"] += $afs->getPlantTotalMarketValue();
$this->formArray["plantTotalAssessedValue"] += $afs->getPlantTotalAssessedValue();
示例15: Main
//.........这里部分代码省略.........
}
$this->formArray["propertyID"] = $ret;
header("location: TDClose.php" . $this->sess->url("") . $this->sess->add_query(array("afsID" => $this->formArray["afsID"])));
exit($ret);
break;
case "cancel":
header("location: TDList.php");
exit;
break;
default:
if ($this->formArray["tdID"]) {
$TDDetails = new SoapObject(NCCBIZ . "TDDetails.php", "urn:Object");
if (!($xmlStr = $TDDetails->getTD($this->formArray["tdID"]))) {
echo "xml failed";
} else {
//echo $xmlStr;
if (!($domDoc = domxml_open_mem($xmlStr))) {
$this->tpl->set_block("rptsTemplate", "OwnerListTable", "OwnerListTableBlock");
$this->tpl->set_var("OwnerListTableBlock", "error xmlDoc");
} else {
$td = new TD();
$td->parseDomDocument($domDoc);
if ($td->getCancelsTDNumber() == "") {
$td = $this->updateTDCancelsTDNumber($td);
}
if ($td->getCanceledByTDNumber() == "") {
$td = $this->updateTDCanceledByTDNumber($td);
}
foreach ($td as $key => $value) {
switch ($key) {
case "provincialAssessorDate":
if (true) {
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $value);
$this->formArray["pa_year"] = removePreZero($dateArr["year"]);
$this->formArray["pa_month"] = removePreZero($dateArr["month"]);
$this->formArray["pa_day"] = removePreZero($dateArr["day"]);
} else {
$this->formArray[$key] = "";
}
break;
case "cityMunicipalAssessorDate":
if (true) {
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $value);
$this->formArray["cm_year"] = removePreZero($dateArr["year"]);
$this->formArray["cm_month"] = removePreZero($dateArr["month"]);
$this->formArray["cm_day"] = removePreZero($dateArr["day"]);
} else {
$this->formArray[$key] = "";
}
break;
case "propertyType":
// so it wont go to the default loop. so that propertyType can refresh from the GET input
break;
default:
//echo $key."=>".$value."<br>";
$this->formArray[$key] = $value;
}
}
}
}
} else {
$AFSDetails = new SoapObject(NCCBIZ . "AFSDetails.php", "urn:Object");
if (!($xmlStr = $AFSDetails->getAFS($this->formArray["afsID"]))) {
// xml failed
} else {
if (!($domDoc = domxml_open_mem($xmlStr))) {