1<?php 2 3/** 4 * Script to display circuit details 5 */ 6 7# verify that user is logged in 8$User->check_user_session(); 9# perm check 10$User->check_module_permissions ("circuits", 1, true, false); 11 12# check 13is_numeric($_GET['sPage']) ? : $Result->show("danger", _("Invalid ID"), true); 14 15# fetch circuit 16$logical_circuit = $Tools->fetch_object ("circuitsLogical", "id", $_GET['sPage']); 17$member_circuits = $Tools->fetch_all_logical_circuit_members($_GET['sPage']); 18 19// back link 20print "<div'>"; 21print "<a class='btn btn-sm btn-default' href='".create_link("tools","circuits", "logical")."' style='margin-bottom:10px;'><i class='fa fa-angle-left'></i> ". _('All Logical circuits')."</a>"; 22print "</div>"; 23 24# print 25if($logical_circuit!==false) { 26 //get custom fields 27 $custom_fields = $Tools->fetch_custom_fields('circuitsLogical'); 28 29 // overlay 30 print "<div class='row'>"; 31 32 // 33 // details 34 // 35 print "<div class='col-xs-12 col-md-6'>"; 36 // details 37 print "<div class='col-xs-12'>"; 38 include("logical-circuit-details-general.php"); 39 print "</div>"; 40 41 // connection points 42 print "<div class='col-xs-12' style='margin-top:20px'>"; 43 include("logical-circuit-details-members.php"); 44 print "</div>"; 45 print "</div>"; 46 47 48 // 49 // map 50 // 51 print "<div class='col-xs-12 col-md-6'>"; 52 if($User->settings->enableLocations==1 && $User->get_module_permissions ("locations")>0) { 53 print "<div class='col-xs-12'>"; 54 include("logical-circuit-details-map.php"); 55 print "</div>"; 56 } 57 print "</div>"; 58 59 print "</div>"; 60} 61else { 62 $Result->show("danger", _("Invalid circuit id"), true); 63} 64