本文整理汇总了PHP中AFS::getCadastralLotNumber方法的典型用法代码示例。如果您正苦于以下问题:PHP AFS::getCadastralLotNumber方法的具体用法?PHP AFS::getCadastralLotNumber怎么用?PHP AFS::getCadastralLotNumber使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AFS
的用法示例。
在下文中一共展示了AFS::getCadastralLotNumber方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Main
//.........这里部分代码省略.........
break;
case "add":
// temporarily add points
$pointsArray = $this->formArray["pointsArray"];
$pointID = 1;
if (is_array($pointsArray)) {
$this->tpl->set_block("rptsTemplate", "PointsList", "PointsListBlock");
for ($pointID = 1; $pointID <= count($pointsArray); $pointID++) {
$this->tpl->set_var("pointID", $pointID);
$this->tpl->set_var("pointType", $pointsArray[$pointID]["pointType"]);
$this->tpl->set_var("quadrant", $pointsArray[$pointID]["quadrant"]);
$this->tpl->set_var("bearingDeg", $pointsArray[$pointID]["bearingDeg"]);
$this->tpl->set_var("bearingMin", $pointsArray[$pointID]["bearingMin"]);
$this->tpl->set_var("distance", $pointsArray[$pointID]["distance"]);
$this->tpl->parse("PointsListBlock", "PointsList", true);
}
$pointsArray[$pointID]["pointType"] = $this->formArray["pointType"];
$pointsArray[$pointID]["quadrant"] = $this->formArray["quadrant"];
$pointsArray[$pointID]["bearingDeg"] = $this->formArray["bearingDeg"];
$pointsArray[$pointID]["bearingMin"] = $this->formArray["bearingMin"];
$pointsArray[$pointID]["distance"] = $this->formArray["distance"];
$this->tpl->set_var("pointID", $pointID);
$this->tpl->set_var("pointType", $pointsArray[$pointID]["pointType"]);
$this->tpl->set_var("quadrant", $pointsArray[$pointID]["quadrant"]);
$this->tpl->set_var("bearingDeg", $pointsArray[$pointID]["bearingDeg"]);
$this->tpl->set_var("bearingMin", $pointsArray[$pointID]["bearingMin"]);
$this->tpl->set_var("distance", $pointsArray[$pointID]["distance"]);
$this->tpl->parse("PointsListBlock", "PointsList", true);
} else {
$pointsArray[$pointID]["pointType"] = $this->formArray["pointType"];
$pointsArray[$pointID]["quadrant"] = $this->formArray["quadrant"];
$pointsArray[$pointID]["bearingDeg"] = $this->formArray["bearingDeg"];
$pointsArray[$pointID]["bearingMin"] = $this->formArray["bearingMin"];
$pointsArray[$pointID]["distance"] = $this->formArray["distance"];
$this->tpl->set_block("rptsTemplate", "PointsList", "PointsListBlock");
$this->tpl->set_var("pointID", $pointID);
$this->tpl->set_var("pointType", $pointsArray[$pointID]["pointType"]);
$this->tpl->set_var("quadrant", $pointsArray[$pointID]["quadrant"]);
$this->tpl->set_var("bearingDeg", $pointsArray[$pointID]["bearingDeg"]);
$this->tpl->set_var("bearingMin", $pointsArray[$pointID]["bearingMin"]);
$this->tpl->set_var("distance", $pointsArray[$pointID]["distance"]);
$this->tpl->parse("PointsListBlock", "PointsList", true);
}
$this->formArray["pointsExist"] = "true";
break;
default:
$AFSDetails = new SoapObject(NCCBIZ . "AFSDetails.php", "urn:Object");
$AFSDetails = new SoapObject(NCCBIZ . "AFSDetails.php", "urn:Object");
if (!($xmlStr = $AFSDetails->getAFS($this->formArray["afsID"]))) {
exit("error xml");
} else {
//echo $xmlStr;
if (!($domDoc = domxml_open_mem($xmlStr))) {
exit("error domDoc");
} else {
$afs = new AFS();
$afs->parseDomDocument($domDoc);
$this->formArray["afsID"] = $afs->getAfsID();
$this->formArray["cadastralLotNumber"] = $afs->getCadastralLotNumber();
$this->formArray["gisTechnicalDescription"] = $afs->getGISTechnicalDescription();
if ($this->formArray["gisTechnicalDescription"] == "") {
$this->formArray["pointsExist"] = "false";
$this->hideBlock("PointsList");
} else {
$this->formArray["pointsExist"] = "true";
// parse gisTechnicalDescription into $pointsArray
// separate each pointRecord at "," and each point at "-"
$gisTechDescArray = explode(",", $this->formArray["gisTechnicalDescription"]);
foreach ($gisTechDescArray as $pointString) {
$pointArray = explode("-", $pointString);
$pointID = $pointArray[0];
$pointsArray[$pointID]["pointType"] = $pointArray[1];
$pointsArray[$pointID]["quadrant"] = $pointArray[2];
$pointsArray[$pointID]["bearingDeg"] = $pointArray[3];
$pointsArray[$pointID]["bearingMin"] = $pointArray[4];
$pointsArray[$pointID]["distance"] = $pointArray[5];
}
if (is_array($pointsArray)) {
$this->tpl->set_block("rptsTemplate", "PointsList", "PointsListBlock");
for ($pointID = 1; $pointID <= count($pointsArray); $pointID++) {
$this->tpl->set_var("pointID", $pointID);
$this->tpl->set_var("pointType", $pointsArray[$pointID]["pointType"]);
$this->tpl->set_var("quadrant", $pointsArray[$pointID]["quadrant"]);
$this->tpl->set_var("bearingDeg", $pointsArray[$pointID]["bearingDeg"]);
$this->tpl->set_var("bearingMin", $pointsArray[$pointID]["bearingMin"]);
$this->tpl->set_var("distance", $pointsArray[$pointID]["distance"]);
$this->tpl->parse("PointsListBlock", "PointsList", true);
}
}
}
}
}
break;
}
$this->setForm();
$this->tpl->set_var("Session", $this->sess->url("") . $this->sess->add_query(array("afsID" => $this->formArray["afsID"])));
$this->tpl->parse("templatePage", "rptsTemplate");
$this->tpl->finish("templatePage");
$this->tpl->p("templatePage");
}