Example #1
0
					$.cookie( 'grinder-system', index, { expires: 31 } );
					if( index == 0 )
						enableAutoRefresh();
					else
						disableAutoRefresh();
				},
				change: function( event, ui ) {
					$( ui.newContent ).find('*[jqplot]').each( function(index) {
						this.plot.replot();
					} );
				}
			});
			
		</script>
		
		<div id='system-accordion'>
		
			<h3><a href="#">Overview</a></h3>
			<div>
				<?php 
show_overview();
?>
			</div>
			
		</div>
		
	</body>

</html>

Example #2
0
    $servers = 'none';
    $servers_text = 'Servers';
    if (count($_SESSION['configuration']['Servers']) == 0) {
        message('warning', 'No servers defined, you probably want to add one.');
    } else {
        $servers = '';
        $servers_text = 'Servers (' . count($_SESSION['configuration']['Servers']) . ')';
        $sep = '';
        foreach ($_SESSION['configuration']['Servers'] as $key => $val) {
            $servers .= $sep;
            $sep = ', ';
            $servers .= get_server_name($val, $key);
        }
        unset($sep);
    }
    show_overview('Current configuration overview', array(array($servers_text, $servers), array('SQL files upload', empty($_SESSION['configuration']['UploadDir']) ? 'disabled' : 'enabled'), array('Exported files on server', empty($_SESSION['configuration']['SaveDir']) ? 'disabled' : 'enabled'), array('Charset conversion', isset($_SESSION['configuration']['AllowAnywhereRecoding']) && $_SESSION['configuration']['AllowAnywhereRecoding'] ? 'enabled' : 'disabled')));
    unset($servers_text, $servers);
}
// And finally display all actions:
echo '<p>Available global actions (please note that these will delete any changes you could have done above):</p>';
echo '<fieldset class="toolbar"><legend>Servers</legend>' . "\n";
echo get_action('addserver', 'Add');
$servers = get_server_selection($_SESSION['configuration']);
if (!empty($servers)) {
    echo get_action('servers', 'List');
    echo get_action('deleteserver', 'Delete', $servers);
    echo get_action('editserver', 'Edit', $servers);
}
echo '</fieldset>' . "\n\n";
echo '<fieldset class="toolbar"><legend>Layout</legend>' . "\n";
echo get_action('lay_navigation', 'Navigation frame');