2014-06-21 22:02:16 -04:00
2014-06-21 20:24:44 -04:00
< script class = " code " type = " text/javascript " >
2014-06-21 22:02:16 -04:00
$ ( document ) . ready ( function () {
$ ( " #ToggleLogon " ) . click ( function ()
2014-06-21 20:24:44 -04:00
{
document . getElementById ( 'public-logon' ) . style . display = " block " ;
document . getElementById ( 'public-status' ) . style . display = " none " ;
2014-06-21 22:02:16 -04:00
});
$ ( " #ToggleStatus " ) . click ( function ()
{
document . getElementById ( 'public-logon' ) . style . display = " none " ;
document . getElementById ( 'public-status' ) . style . display = " block " ;
});
});
2014-06-21 20:24:44 -04:00
</ script >
2014-06-21 09:50:24 -04:00
< ? php
// Set Defaults here
$sql_param = array ();
$pagetitle [] = " Public Devices " ;
2014-06-21 22:02:16 -04:00
$query = " SELECT * FROM `devices` ORDER BY hostname " ;
2014-06-21 09:50:24 -04:00
2014-06-21 22:02:16 -04:00
?>
< div class = " well " >< h3 > System Status < button class = " btn btn-default " type = " submit " style = " float:right; " id = " ToggleLogon " > Logon </ button ></ h3 ></ div >
< div class = " panel panel-default panel-condensed " >
< div class = " table-responsive " >
< table class = " table table-condensed " >
< tr >
< th ></ th >
< th ></ th >
< th > Device </ th >
< th ></ th >
< th > Platform </ th >
< th > Uptime / Location </ th >
</ tr >
< ? php
foreach ( dbFetchRows ( $query , $sql_param ) as $device )
2014-06-21 09:50:24 -04:00
{
2014-06-21 22:02:16 -04:00
include ( " includes/hostbox-public.inc.php " );
2014-06-21 09:50:24 -04:00
}
?>
2014-06-21 22:02:16 -04:00
</ table >
</ div >
</ div >
< footer >
< div class = " container " >
< div class = " row " >
< div class = " col-md-12 text-center " >
2014-06-21 09:50:24 -04:00
< ? php
echo ( ' <br /> <br /> ' . ( isset ( $config [ 'footer' ]) ? $config [ 'footer' ] : '' ));
echo ( ' <br />Powered by <a href="' . $config [ 'project_url' ] . '" target="_blank">' . $config [ 'project_name_version' ] . '</a>. ' );
echo ( $config [ 'project_name' ] . ' is <a href="http://www.gnu.org/philosophy/free-sw.html">Free Software</a>, released under the <a href="http://www.gnu.org/copyleft/gpl.html">GNU GPLv3</a>.<br/>' );
echo ( ' Copyright © 2006-2012 by Adam Armstrong. Copyright © 2013-' . date ( " Y " ) . ' by the ' . $config [ 'project_name' ] . ' Contributors.' );
?>
2014-06-21 22:02:16 -04:00
</ div >
</ div >
</ div >
2014-06-21 09:50:24 -04:00
</ footer >