2014-04-24 15:10:08 +02:00
|
|
|
<!DOCTYPE html>
|
2011-11-26 10:45:31 +01:00
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
<head>
|
2013-08-02 11:53:17 +02:00
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
2011-11-26 10:45:31 +01:00
|
|
|
<?php echo $this->Html->charset(); ?>
|
|
|
|
<title>
|
2014-09-10 11:48:48 +02:00
|
|
|
<?php echo $title_for_layout, ' - MISP'; ?>
|
2011-11-26 10:45:31 +01:00
|
|
|
</title>
|
|
|
|
<?php
|
|
|
|
echo $this->Html->meta('icon');
|
2013-05-30 16:40:47 +02:00
|
|
|
// echo $this->Html->css('cake.generic');
|
2013-05-30 11:14:00 +02:00
|
|
|
echo $this->Html->css('roboto');
|
2013-05-31 11:35:27 +02:00
|
|
|
echo $this->Html->css('bootstrap'); // see http://twitter.github.io/bootstrap/base-css.html
|
2013-05-30 11:14:00 +02:00
|
|
|
echo $this->Html->css('datepicker');
|
2014-01-02 15:51:41 +01:00
|
|
|
echo $this->Html->css('bootstrap-timepicker');
|
2014-01-23 12:25:04 +01:00
|
|
|
echo $this->Html->css('bootstrap-colorpicker.min');
|
2013-05-30 11:14:00 +02:00
|
|
|
echo $this->Html->css('main');
|
2014-02-28 14:40:20 +01:00
|
|
|
echo $this->Html->css('print', 'stylesheet', array('media' => 'print'));
|
2013-05-30 11:14:00 +02:00
|
|
|
|
|
|
|
// FIXME chri: re-add print stylesheet
|
|
|
|
//echo $this->Html->css(array('print'), 'stylesheet', array('media' => 'print'));
|
2012-03-25 16:25:16 +02:00
|
|
|
|
2012-03-15 15:06:45 +01:00
|
|
|
echo $this->fetch('meta');
|
|
|
|
echo $this->fetch('css');
|
|
|
|
echo $this->fetch('script');
|
2012-04-01 14:49:28 +02:00
|
|
|
|
2014-02-11 15:54:46 +01:00
|
|
|
echo $this->Html->script('jquery-2.1.0.min'); // Include jQuery library
|
2011-11-26 10:45:31 +01:00
|
|
|
?>
|
2012-06-28 17:24:12 +02:00
|
|
|
|
|
|
|
<!--?php echo $scripts_for_layout; ?-->
|
2011-11-26 10:45:31 +01:00
|
|
|
</head>
|
|
|
|
<body>
|
2014-12-19 13:32:16 +01:00
|
|
|
<div id="popover_form" class="ajax_popover_form"></div>
|
|
|
|
<div id="confirmation_box" class="confirmation_box"></div>
|
2014-05-02 14:29:15 +02:00
|
|
|
<div id="gray_out" class="gray_out"></div>
|
2014-08-01 14:14:20 +02:00
|
|
|
<div id="container">
|
|
|
|
<?php echo $this->element('global_menu');
|
|
|
|
$padding_top = 10;
|
|
|
|
if ($debugMode == 'debugOff') $padding_top = 50;
|
|
|
|
?>
|
2014-08-03 21:24:46 +02:00
|
|
|
<div class="container-fluid <?php echo $debugMode; ?>" style="padding-top:<?php echo $padding_top; ?>px;width:98%;">
|
2013-07-04 11:25:48 +02:00
|
|
|
<?php
|
2014-08-01 14:14:20 +02:00
|
|
|
$has_flash = false;
|
|
|
|
$flash = array();
|
|
|
|
$flash[] = $this->Session->flash('email');
|
|
|
|
$flash[] = $this->Session->flash();
|
|
|
|
$flash[] = $this->Session->flash('gpg');
|
|
|
|
$flash[] = $this->Session->flash('error');
|
|
|
|
$flash[] = $this->Session->flash('auth');
|
|
|
|
foreach ($flash as $f) {
|
|
|
|
if ($f) {
|
|
|
|
echo $f;
|
|
|
|
$has_flash = true;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
2013-07-04 11:25:48 +02:00
|
|
|
?>
|
2014-08-01 14:14:20 +02:00
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
$topGap = 50;
|
2015-12-03 01:45:38 +01:00
|
|
|
if (Configure::read('debug') > 1) {
|
2014-08-03 21:24:46 +02:00
|
|
|
$topGap = 10;
|
|
|
|
} else {
|
|
|
|
if ($has_flash) $topGap += 50;
|
|
|
|
}
|
2014-08-01 14:14:20 +02:00
|
|
|
?>
|
|
|
|
<div style="padding-top:<?php echo $topGap; ?>px !important;">
|
2012-03-15 15:06:45 +01:00
|
|
|
<?php echo $this->fetch('content'); ?>
|
2013-07-02 16:59:02 +02:00
|
|
|
</div>
|
2014-04-24 15:10:08 +02:00
|
|
|
</div>
|
2013-06-01 11:05:15 +02:00
|
|
|
<?php
|
2013-07-02 15:41:11 +02:00
|
|
|
echo $this->element('footer');
|
2013-11-15 15:39:34 +01:00
|
|
|
echo $this->element('sql_dump');
|
2013-06-01 11:05:15 +02:00
|
|
|
echo $this->Html->script('bootstrap');
|
2013-07-02 15:41:11 +02:00
|
|
|
// echo $this->Html->script('bootstrap.min');
|
2014-01-02 15:51:41 +01:00
|
|
|
echo $this->Html->script('bootstrap-timepicker');
|
2013-06-01 11:05:15 +02:00
|
|
|
echo $this->Html->script('bootstrap-datepicker');
|
2014-01-23 12:25:04 +01:00
|
|
|
echo $this->Html->script('bootstrap-colorpicker.min');
|
2013-06-01 11:05:15 +02:00
|
|
|
echo $this->Html->script('main');
|
2014-07-10 17:02:19 +02:00
|
|
|
echo $this->Html->script('ajaxification');
|
2013-06-01 11:05:15 +02:00
|
|
|
?>
|
2014-05-02 14:29:15 +02:00
|
|
|
<div id = "ajax_success_container" class="ajax_container">
|
|
|
|
<div id="ajax_success" class="ajax_result ajax_success"></div>
|
|
|
|
</div>
|
|
|
|
<div id = "ajax_fail_container" class="ajax_container">
|
|
|
|
<div id="ajax_fail" class="ajax_result ajax_fail"></div>
|
|
|
|
</div>
|
2013-08-19 17:26:06 +02:00
|
|
|
<div class="loading">
|
|
|
|
<div class="spinner"></div>
|
|
|
|
<div class="loadingText">Loading</div>
|
|
|
|
</div>
|
2014-03-06 09:20:05 +01:00
|
|
|
<?php
|
|
|
|
if ($debugMode == 'debugOff'):
|
|
|
|
?>
|
2013-11-06 10:52:18 +01:00
|
|
|
<script type="text/javascript">
|
|
|
|
$(window).scroll(function(e) {
|
|
|
|
$('.actions').css('left',-$(window).scrollLeft());
|
|
|
|
});
|
|
|
|
</script>
|
2014-03-06 09:20:05 +01:00
|
|
|
<?php
|
|
|
|
endif;
|
|
|
|
?>
|
2011-11-26 10:45:31 +01:00
|
|
|
</body>
|
|
|
|
</html>
|