104 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			104 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 | 
						|
<!--
 | 
						|
Design by Free CSS Templates
 | 
						|
http://www.freecsstemplates.org
 | 
						|
Released for free under a Creative Commons Attribution 2.5 License
 | 
						|
 | 
						|
Name       : Indication  
 | 
						|
Description: A two-column, fixed-width design with dark color scheme.
 | 
						|
Version    : 1.0
 | 
						|
Released   : 20090910
 | 
						|
 | 
						|
-->
 | 
						|
<html xmlns="http://www.w3.org/1999/xhtml">
 | 
						|
<head>
 | 
						|
    <meta name="keywords" content="" />
 | 
						|
    <meta name="description" content="" />
 | 
						|
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
 | 
						|
    <title>Tisbackup GUI</title>
 | 
						|
    
 | 
						|
    <!-- Styles -->
 | 
						|
    <link rel="stylesheet" type="text/css" href="/static/styles/jquery.dataTables.css">
 | 
						|
    <link rel="stylesheet" type="text/css" href="/static/styles/style.css">
 | 
						|
    <link rel="stylesheet" type="text/css" href="/static/styles/bootstrap.min.css">
 | 
						|
    
 | 
						|
    <!-- Scripts -->
 | 
						|
    <script type=text/javascript   src="/static/js/jquery.min.js"></script>
 | 
						|
    <script type=text/javascript   src="/static/js/jquery.dataTables.js"></script>
 | 
						|
    <script type=text/javascript   src="/static/js/bootbox.js"></script>
 | 
						|
    <script type=text/javascript   src="/static/js/bootstrap.min.js"></script>
 | 
						|
</head>
 | 
						|
<body background='/static/images/bg_body.gif'>
 | 
						|
<div id="wrapper">
 | 
						|
	<div id="header">
 | 
						|
		<div id="logo">
 | 
						|
			<h1><a href="/">TIS Backup GUI</a></h1>
 | 
						|
			<p> design by Hübert</p>
 | 
						|
		</div>
 | 
						|
	</div>
 | 
						|
	<!-- end #header -->
 | 
						|
	<div id="menu">
 | 
						|
 | 
						|
		<ul>
 | 
						|
			<li><a href="/">Backups</a></li>
 | 
						|
			<li><a href="/export_backup">Export Backup</a></li>
 | 
						|
			<li><a href="/last_backups">Last Backups</a></li>
 | 
						|
		</ul>
 | 
						|
	</div>
 | 
						|
        <!-- end #menu -->
 | 
						|
        <div id="page">
 | 
						|
        <div id="page-bgtop">
 | 
						|
        <div id="page-bgbtm">
 | 
						|
	<div id="choix_conf" style="float:right;margin-top:5px;">
 | 
						|
	Choix du fichier de configuration :
 | 
						|
	 <select id="config">
 | 
						|
	</select> </div>
 | 
						|
                <div id="content">
 | 
						|
                        <div class="post">
 | 
						|
                                {% block content %}
 | 
						|
                                <div id="mouter">
 | 
						|
                                <div id="minner">
 | 
						|
                                <p>Hello World</p>
 | 
						|
                                </div>
 | 
						|
                                </div>
 | 
						|
                                {% endblock %}
 | 
						|
                        </div>
 | 
						|
 | 
						|
                        <div style="clear: both;"> </div>
 | 
						|
                </div>
 | 
						|
 | 
						|
                <div style="clear: both;"> </div>
 | 
						|
        </div>
 | 
						|
 | 
						|
        <!-- end #page -->
 | 
						|
</div>
 | 
						|
        </div>
 | 
						|
        <!-- end #footer -->
 | 
						|
</div>
 | 
						|
        <div id="footer">
 | 
						|
                <p>Copyright (c) 2012 Tranquil IT Systems. All rights reserved. Design by <a href="http://www.tranquil-it-systems.fr/">TIS</a>.</p>
 | 
						|
        </div>
 | 
						|
<script>
 | 
						|
function configs(){
 | 
						|
    $.getJSON("/config_number/", function(data) {
 | 
						|
	if ( data.configs.length == 1){
 | 
						|
	   $("#choix_conf").hide();
 | 
						|
	   return 0;
 | 
						|
	}
 | 
						|
        $.each(data.configs, function(key,val){
 | 
						|
            if (key == data.config_number)
 | 
						|
            $('#config').append('<option vaulue="'+key+'" selected>'+val+'</option>');
 | 
						|
	    else
 | 
						|
            $('#config').append('<option vaulue="'+key+'">'+val+'</option>');
 | 
						|
        });
 | 
						|
    });
 | 
						|
    $( "#config" ).change(function() {
 | 
						|
	$.get( "/config_number/"+this.selectedIndex, function( data ) {location.reload();});
 | 
						|
});
 | 
						|
};
 | 
						|
configs();
 | 
						|
</script>
 | 
						|
 | 
						|
</body>
 | 
						|
</html>
 |