mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			40 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
$common_output[] = '
 | 
						|
<div class="table-responsive">
 | 
						|
    <table id="stp-ports" class="table table-condensed table-hover">
 | 
						|
        <thead>
 | 
						|
            <tr>
 | 
						|
                <th data-column-id="port_id">Port</th>
 | 
						|
                <th data-column-id="priority">Priority</th>
 | 
						|
                <th data-column-id="state">State</th>
 | 
						|
                <th data-column-id="enable">Enable</th>
 | 
						|
                <th data-column-id="pathCost">Path cost</th>
 | 
						|
                <th data-column-id="designatedRoot">Designated root</th>
 | 
						|
                <th data-column-id="designatedCost">Designated cost</th>
 | 
						|
                <th data-column-id="designatedBridge">Designated bridge</th>
 | 
						|
                <th data-column-id="designatedPort">Designated port</th>
 | 
						|
                <th data-column-id="forwardTransitions">Forward transitions</th>
 | 
						|
            </tr>
 | 
						|
        </thead>
 | 
						|
    </table>
 | 
						|
</div>
 | 
						|
 | 
						|
<script>
 | 
						|
 | 
						|
var grid = $("#stp-ports").bootgrid( { 
 | 
						|
    ajax: true,
 | 
						|
    templates: {search: ""},
 | 
						|
    post: function () 
 | 
						|
    {
 | 
						|
        return {
 | 
						|
            id: "stp-ports",
 | 
						|
            device_id: ' . $device['device_id'] . ',
 | 
						|
        };
 | 
						|
    },
 | 
						|
    url: "ajax_table.php"
 | 
						|
});
 | 
						|
 | 
						|
</script>
 | 
						|
';
 |