1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00

Added webconsole to system pane, added tabs to system pane to allow for webconsole to be hidden/shown

This commit is contained in:
Lawrence 2017-10-14 12:55:42 +08:00
parent 0d456d3540
commit 4d04155895
3 changed files with 868 additions and 0 deletions

14
dist/css/custom.css vendored
View File

@ -33,3 +33,17 @@
width: 140px; width: 140px;
float: left; float: left;
} }
.webconsole {
width:100%;
height:100%;
}
#console {
height:500px;
}
.systemtabcontent {
height:100%;
min-height:500px;
}

View File

@ -81,6 +81,13 @@ function DisplaySystem(){
elseif ($cpuload > 0) { $cpuload_status = "success"; } elseif ($cpuload > 0) { $cpuload_status = "success"; }
?> ?>
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active systemtab"><a href="#system" aria-controls="system" role="tab" data-toggle="tab">System</a></li>
<li role="presentation" class="consoletab"><a href="#console" aria-controls="console" role="tab" data-toggle="tab">Console</a></li>
</ul>
<div class="systemtabcontent tab-content">
<div role="tabpanel" class="tab-pane active" id="system">
<div class="row"> <div class="row">
<div class="col-lg-12"> <div class="col-lg-12">
<div class="panel panel-primary"> <div class="panel panel-primary">
@ -137,6 +144,12 @@ function DisplaySystem(){
</div><!-- /.panel-primary --> </div><!-- /.panel-primary -->
</div><!-- /.col-lg-12 --> </div><!-- /.col-lg-12 -->
</div><!-- /.row --> </div><!-- /.row -->
</div>
<div role="tabpanel" class="tab-pane" id="console">
<iframe src="includes/webconsole.php" class="webconsole"></iframe>
</div>
</div>
<?php <?php
} }
?> ?>

841
includes/webconsole.php Normal file

File diff suppressed because one or more lines are too long