Embedded toolbar
This commit is contained in:
@@ -78,7 +78,7 @@ class Layout
|
||||
return $print;
|
||||
}
|
||||
|
||||
function header()
|
||||
function header($toolbar = "")
|
||||
{
|
||||
global $S;
|
||||
|
||||
@@ -132,28 +132,44 @@ class Layout
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<link rel="stylesheet" type="text/css" href="<?php print URL_ROOT ?>/css/singularity/jquery-ui-1.10.3.custom.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="<?php print URL_ROOT ?>/css/singularity/singularity.css"/>
|
||||
<link rel="shortcut icon" href="<?php print IMG_ROOT ?>/favicon.ico" type="image/x-icon" />
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
|
||||
<link rel="shortcut icon" href="<?php print IMG_ROOT ?>/favicon.ico" type="image/x-icon" />
|
||||
<title>Singularity Viewer - Automated Crash Report Processing System</title>
|
||||
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
$(function() {
|
||||
$( ".toolbarbutton" ).button();
|
||||
|
||||
/*
|
||||
$( ".rowhighlight" ).on("mousedown", function(e) {
|
||||
$(this).addClass("ui-state-disabled");
|
||||
});
|
||||
*/
|
||||
|
||||
});
|
||||
//]]>
|
||||
</script>
|
||||
|
||||
<style type="text/css">
|
||||
#menubar {
|
||||
text-align: justify;
|
||||
margin: 10px 0px 10px 0px;
|
||||
padding: .5em;
|
||||
}
|
||||
|
||||
#menubar div {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#menubar:after {
|
||||
content: '';
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
$(function() {
|
||||
$( ".toolbarbutton" ).button();
|
||||
|
||||
/*
|
||||
$( ".rowhighlight" ).on("mousedown", function(e) {
|
||||
$(this).addClass("ui-state-disabled");
|
||||
});
|
||||
*/
|
||||
|
||||
});
|
||||
//]]>
|
||||
</script>
|
||||
|
||||
<div style="padding-top:20px;">
|
||||
<div style="display: inline-block;">
|
||||
<a href="<?php echo URL_ROOT ?>"><img src="images/singularity_icon.png" width="150px" height="150px"/></a>
|
||||
@@ -164,10 +180,15 @@ $(function() {
|
||||
<span style="font-size: 1.6em;">Automated Crash Report Processing</span>
|
||||
</div>
|
||||
</div>
|
||||
<div id="menubar" style="text-align: right; margin-top:10px; margin-bottom:10px; padding: 5px;" class="ui-widget-header ui-corner-all">
|
||||
<?php for ($i=0; $i<count($menu); $i++): ?>
|
||||
<a class="toolbarbutton" href="<?php echo $menu[$i]->link; ?>"><?php echo htmlspecialchars($menu[$i]->label) ?></a>
|
||||
<?php endfor ?>
|
||||
|
||||
|
||||
<div id="menubar" class="ui-widget-header ui-corner-all">
|
||||
<div><?php echo $toolbar ?></div>
|
||||
<div>
|
||||
<?php for ($i=0; $i<count($menu); $i++): ?>
|
||||
<a class="toolbarbutton" href="<?php echo $menu[$i]->link; ?>"><?php echo htmlspecialchars($menu[$i]->label) ?></a>
|
||||
<?php endfor ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user