What do you mean. I attached an image that shows that the circuit-id is linkable.
See the code change. This is not finished. The variable stuff can be placed in config.php
Index: customers.inc.php
===================================================================
— customers.inc.php (revision 4807)
+++ customers.inc.php (working copy)
@@ -26,7 +26,21 @@
$ifname = fixifname($device['ifDescr']);
$ifclass = ifclass($port['ifOperStatus'], $port['ifAdminStatus']);
+
+ // Start of Solcon Specific parsing of Port description circuit
+ $crm_urls['R'] = "http://a.b.c.d/xxxx/modules/relaties/index.php?mode=result&keyfield=";
+ $crm_urls['S'] = "http://a.b.c.d/xxxx/modules/services/index.php?mode=result&keyfield=";
+ foreach( $crm_urls as $key => $crm_url ) {
+ if ( $port['port_descr_circuit'][0] == $key || $port['port_descr_circuit'][0] == strtolower($key) )
{
+ $crm_url_id = substr($port['port_descr_circuit'],1);
+ $port_descr_circuit_href = "<a href='". $crm_url . $crm_url_id . "'>" . $port['port_descr_circuit'] . "</a>";
+ }
else
{
+ $port_descr_circuit_href = $port['port_descr_circuit'];
+ }
+ }
+ // End Solcon Specific parsing of Port description circuit
+
if ($device['os'] == "ios")
{
if ($port['ifTrunk'])
{ $vlan = "<span class=small><span class=red>" . $port['ifTrunk'] . "</span></span>"; }
@@ -40,7 +54,7 @@
<td width='150'>" . generate_device_link($device) . "</td>
<td width='100'>" . generate_port_link($port, makeshortif($port['ifDescr'])) . "</td>
<td width='100'>".$port['port_descr_speed']."</td>
- <td width='100'>".$port['port_descr_circuit']."</td>
+ <td width='100'>". $port_descr_circuit_href ."</td>
<td>".$port['port_descr_notes']."</td>
</tr>
");
I'd prefer to do this via a user-defineable custom function which would generate a URL from this if required.