|
@@ -117,6 +117,8 @@
|
|
|
$relationTargetNumbers = array(
|
|
|
array( // IE offset channels West side
|
|
|
// 22 rows: 3x7 offset channels + IE common
|
|
|
+ "436-EHV-0-0003-0102", // WestCh 00 / not used
|
|
|
+ "436-EHV-0-0003-0202", // WestCh 01 / not used
|
|
|
"436-EHV-0-0003-0302", // WestCh 02 / Patch 00
|
|
|
"436-EHV-0-0003-0402", // WestCh 03 / Patch 01
|
|
|
"436-EHV-0-0003-0502", // WestCh 04 / Patch 02
|
|
@@ -145,6 +147,8 @@
|
|
|
) ,
|
|
|
array( // IE offset channels East side
|
|
|
// 22 rows: 3x7 offset channels + IE common
|
|
|
+ "436-EHV-0-0004-0102", // EastCh 00 / not used
|
|
|
+ "436-EHV-0-0004-0202", // EastCh 01 / not used
|
|
|
"436-EHV-0-0004-0302", // EastCh 02 / Patch 00
|
|
|
"436-EHV-0-0004-0402", // EastCh 03 / Patch 01
|
|
|
"436-EHV-0-0004-0502", // EastCh 04 / Patch 02
|
|
@@ -224,7 +228,7 @@
|
|
|
foreach ($json["result"]["Relation"] as $kn => $data) {
|
|
|
$target = $data["AssociateNumber"];
|
|
|
$patchpanelMap[$kn] = $target;
|
|
|
- echo "\t" . $kn . " => " . $target . PHP_EOL;
|
|
|
+ //echo "\t" . $kn . " => " . $target . PHP_EOL;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -252,9 +256,14 @@
|
|
|
$target = "(default)";
|
|
|
if (array_key_exists($kn, $patchpanelMap)) {
|
|
|
$target = $patchpanelMap[$kn];
|
|
|
- $index = array_search($target, $relationTargetNumbers[$eastwest]);
|
|
|
- if ($index > 22)
|
|
|
- $index = 22;
|
|
|
+ if ($target == "436-EHV-0-1003-0002") {
|
|
|
+ $index = 'IE';
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ $index = array_search($target, $relationTargetNumbers[$eastwest]);
|
|
|
+ if ($index > 22)
|
|
|
+ $index = 22;
|
|
|
+ }
|
|
|
}
|
|
|
echo "\t" . $kn . " => " . $target . " [" . $index . "]" . PHP_EOL;
|
|
|
$strFileContent .= $index . "\n";
|