function renderPatchCableConfiguration() { global $nextorder; echo '<table class=objview border=0 width="100%"><tr><td class=pcleft>'; startPortlet('Connectors'); renderSimpleTableWithOriginViewer(getPatchCableConnectorList(), array('header' => 'Connector', 'key' => 'id', 'value' => 'connector', 'width' => 32)); finishPortlet(); startPortlet('Connector compatibility'); renderTwoColumnCompatTableViewer(getPatchCableConnectorCompat(), array('header' => 'Cable type', 'key' => 'pctype_id', 'value' => 'pctype', 'width' => 64), array('header' => 'Connector', 'key' => 'connector_id', 'value' => 'connector', 'width' => 32)); finishPortlet(); echo '</td><td class=pcright>'; startPortlet('Cable types'); renderSimpleTableWithOriginViewer(getPatchCableTypeList(), array('header' => 'Cable type', 'key' => 'id', 'value' => 'pctype', 'width' => 64)); finishPortlet(); startPortlet('Cable types and port outer interfaces'); renderTwoColumnCompatTableViewer(getPatchCableOIFCompat(), array('header' => 'Cable type', 'key' => 'pctype_id', 'value' => 'pctype', 'width' => 64), array('header' => 'Outer interface', 'key' => 'oif_id', 'value' => 'oif_name', 'width' => 48)); finishPortlet(); echo '</td></tr></table>'; }
function renderIIFOIFCompat() { echo '<br>'; renderTwoColumnCompatTableViewer(getPortInterfaceCompat(), array('header' => 'Inner interface', 'key' => 'iif_id', 'value' => 'iif_name', 'width' => 16), array('header' => 'Outer interface', 'key' => 'oif_id', 'value' => 'oif_name', 'width' => 48)); echo '<br>'; }