gluon-web-remote

Web remote Administration for big size of gluon routers
git clone git://archive.git.mtrnord.blog/MTRNord/gluon-web-remote.git
Log | Files | Refs | README

b5fa129d9cb11e0f32b30c3f5208681e5b178f0c_0.file.index.tpl.php (7662B)


      1 <?php /* Smarty version 3.1.27, created on 2015-11-09 18:18:25
      2          compiled from "configs/smarty/templates/index.tpl" */ ?>
      3 <?php
      4 /*%%SmartyHeaderCode:4118014745640e371a07678_11293514%%*/
      5 if(!defined('SMARTY_DIR')) exit('no direct access allowed');
      6 $_valid = $_smarty_tpl->decodeProperties(array (
      7   'file_dependency' => 
      8   array (
      9     'b5fa129d9cb11e0f32b30c3f5208681e5b178f0c' => 
     10     array (
     11       0 => 'configs/smarty/templates/index.tpl',
     12       1 => 1447093045,
     13       2 => 'file',
     14     ),
     15   ),
     16   'nocache_hash' => '4118014745640e371a07678_11293514',
     17   'has_nocache_code' => false,
     18   'version' => '3.1.27',
     19   'unifunc' => 'content_5640e371a2c894_60814898',
     20 ),false);
     21 /*/%%SmartyHeaderCode%%*/
     22 if ($_valid && !is_callable('content_5640e371a2c894_60814898')) {
     23 function content_5640e371a2c894_60814898 ($_smarty_tpl) {
     24 
     25 $_smarty_tpl->properties['nocache_hash'] = '4118014745640e371a07678_11293514';
     26 include_once ('indexClass.php');?>
     27 
     28 <?php include_once ('libs/login-base/vendor/autoload.php');?>
     29 
     30 <?php  Smarty_Internal_Extension_Config::configLoad($_smarty_tpl, 'index.conf', null, 'local');?>
     31 <!DOCTYPE html>
     32 <html>
     33 
     34   <head>
     35     <title>Material Design for Bootstrap</title>
     36 
     37     <!-- Mobile support -->
     38     <meta name="viewport" content="width=device-width, initial-scale=1">
     39 
     40     <!-- Twitter Bootstrap -->
     41     <link href="css/bootstrap.min.css" rel="stylesheet">
     42 
     43     <!-- Material Design for Bootstrap -->
     44     <link href="css/roboto.min.css" rel="stylesheet">
     45     <link href="css/material-fullpalette.min.css" rel="stylesheet">
     46     <link href="css/ripples.min.css" rel="stylesheet">
     47 
     48     <!-- Dropdown.js -->
     49     <link href="css/jquery.dropdown.css" rel="stylesheet">
     50 
     51 	<!-- ex inline css -->
     52 	<link href="css/index.css" rel="stylesheet">
     53 
     54 
     55   </head>
     56   <body>
     57 
     58     <!--<a href="https://github.com/MTRNord/gluon-web-remote" style="position: absolute; top: 0; left: 0; border: 0; z-index: 10;"><img src="images/forkme_left_darkblue_121621.png" alt="Fork me on GitHub" data-canonical-src="images/forkme_right_darkblue_121621.png"></a>-->
     59 
     60     <div class="header-panel shadow-z-2">
     61       <div class="container-fluid">
     62         <div class="row">
     63           <div class="col-xs-3">
     64             <button class="btn btn-primary" type="button" data-toggle="collapse" data-target="#collapseNav" aria-expanded="false" aria-controls="collapseNav" style="position: absolute;bottom: 6px;padding-left: 20px;background-color:#dc0067;">
     65   <?php echo $_smarty_tpl->getConfigVariable( 'collapseMenu');?>
     66 
     67 </button>
     68           </div>
     69         </div>
     70       </div>
     71     </div>
     72     <div class="container-fluid main">
     73       <div class="row">
     74         <nav class="col-xs-3 menu collapse" id="collapseNav" style:"z-index:1000 !important;">
     75           <ul>
     76             <li class="active withripple" data-target="#welcome"><?php echo $_smarty_tpl->getConfigVariable( 'welcomeHead');?>
     77 </li>
     78             <li class="withripple" data-target="#tests">Tests</li>
     79             <li class="withripple" data-target="#login"><?php echo $_smarty_tpl->getConfigVariable( 'login');?>
     80 </li>
     81           </ul>
     82         </nav>
     83         <div class="pages col-xs-9">
     84           <div class="col-xs-10">
     85             <div class="well page active" id="welcome">
     86               <h1 class="header"><?php echo $_smarty_tpl->getConfigVariable( 'welcomeHead');?>
     87 </h1>
     88                 
     89                 <h3><?php echo $_smarty_tpl->getConfigVariable( 'abilitysHead');?>
     90 </h3>
     91                 <p><?php echo $_smarty_tpl->getConfigVariable( 'abilitys');?>
     92 </p>
     93             </div>
     94             <div class="well page" id="tests">
     95               <h1 class="header">Tests</h1>
     96 			  <p>
     97 			    <b>Just testing</b> <br/>
     98 			    <?php 
     99 					main::openConnection("ls -la", "root", "xxxx", "tarp1", "FFKI");
    100 				?>
    101 			  </p>
    102             </div>
    103             <div class="well page" id="login">
    104                 <h1 class="header"><?php echo $_smarty_tpl->getConfigVariable( 'login');?>
    105 </h1>
    106                 <?php 
    107                     // start login application
    108                     new Application();
    109                 ?>
    110             </div>
    111           </div>
    112           <div class="col-xs-2">
    113             <button class="btn btn-fab btn-material-grey-200" id="opensource"><i class="mdi-action-open-in-new"></i></button></div>
    114         </div>
    115       </div>
    116     </div>
    117 
    118     <div id="source-modal" class="modal fade" tabindex="-1">
    119       <div class="modal-dialog modal-lg">
    120         <div class="modal-content">
    121           <div class="modal-header">
    122             <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    123             <h4 class="modal-title">Source Code</h4>
    124           </div>
    125           <div class="modal-body">
    126             <pre></pre>
    127           </div>
    128         </div>
    129       </div>
    130     </div>
    131 
    132 
    133     <!-- jQuery -->
    134     <?php echo '<script'; ?>
    135  src="js/jquery-1.10.2.min.js"><?php echo '</script'; ?>
    136 >
    137 
    138 
    139     <!-- Open source code -->
    140     
    141     <?php echo '<script'; ?>
    142 >
    143       window.page = window.location.hash || "#welcome";
    144 
    145       $(document).ready(function() {
    146         if (window.page != "#welcome") {
    147           $(".menu").find("li[data-target=" + window.page + "]").trigger("click");
    148         }
    149       });
    150 
    151       $(window).on("resize", function() {
    152         $("html, body").height($(window).height());
    153         $(".main, .menu").height($(window).height() - $(".header-panel").outerHeight());
    154         $(".pages").height($(window).height());
    155       }).trigger("resize");
    156 
    157       $(".menu li").click(function() {
    158         // Menu
    159         if (!$(this).data("target")) return;
    160         if ($(this).is(".active")) return;
    161         $(".menu li").not($(this)).removeClass("active");
    162         $(".page").not(page).removeClass("active").hide();
    163         window.page = $(this).data("target");
    164         var page = $(window.page);
    165         window.location.hash = window.page;
    166         $(this).addClass("active");
    167 
    168 
    169         page.show();
    170 
    171         var totop = setInterval(function() {
    172             $(".pages").animate({scrollTop:0}, 0);
    173         }, 1);
    174 
    175         setTimeout(function() {
    176           page.addClass("active");
    177           setTimeout(function() {
    178             clearInterval(totop);
    179           }, 1000);
    180         }, 100);
    181       });
    182 
    183       function cleanSource(html) {
    184         var lines = html.split(/\n/);
    185 
    186         lines.shift();
    187         lines.splice(-1, 1);
    188 
    189         var indentSize = lines[0].length - lines[0].trim().length,
    190             re = new RegExp(" {" + indentSize + "}");
    191 
    192         lines = lines.map(function(line){
    193           if (line.match(re)) {
    194             line = line.substring(indentSize);
    195           }
    196 
    197           return line;
    198         });
    199 
    200         lines = lines.join("\n");
    201 
    202         return lines;
    203       }
    204 
    205       $("#opensource").click(function() {
    206         $.get(window.location.href, function(data){
    207           var html = $(data).find(window.page).html();
    208           html = cleanSource(html);
    209           $("#source-modal pre").text(html);
    210           $("#source-modal").modal();
    211         });
    212       });
    213     <?php echo '</script'; ?>
    214 >
    215     
    216     
    217     <!-- Twitter Bootstrap -->
    218     <?php echo '<script'; ?>
    219  src="js/bootstrap.min.js"><?php echo '</script'; ?>
    220 >
    221 
    222     <!-- Material Design for Bootstrap -->
    223     <?php echo '<script'; ?>
    224  src="js/material.min.js"><?php echo '</script'; ?>
    225 >
    226     <?php echo '<script'; ?>
    227  src="js/ripples.min.js"><?php echo '</script'; ?>
    228 >
    229     <?php echo '<script'; ?>
    230 >
    231       $.material.init();
    232     <?php echo '</script'; ?>
    233 >
    234 
    235     <!-- Dropdown.js -->
    236     <?php echo '<script'; ?>
    237  src="js/jquery.dropdown.js"><?php echo '</script'; ?>
    238 >
    239     
    240     <?php echo '<script'; ?>
    241 >
    242       $("#dropdown-menu select").dropdown();
    243     <?php echo '</script'; ?>
    244 >
    245     
    246     
    247   </body>
    248 </html>
    249 <?php }
    250 }
    251 ?>