* initial commit

This commit is contained in:
Dávid Danyi
2017-09-15 13:20:54 +02:00
commit 863e6e502b
42 changed files with 4585 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
<?php $this->layout('layout::default', ['title' => 'Support Cases (based on JIRA data)']) ?>
<div class="row">
<div class="col-md-12">
<div id='chart-container' style='width: 1258px; height: 755px; margin: 0 auto'></div>
<div style='display:none'>
<?php foreach ($chartRows as $rowDate => $chartRow): ?>
Week: <span class='week'><?php
list($year,$week) = explode('_', $rowDate);
echo $week; ?></span> Created: <span class='inflow'><?=$chartRow->getIn()?></span>, Resolved: <span class='outflow'>-<?=$chartRow->getOut()?></span>, Sum: <span class='sum'><?=$chartRow->getOpen()?></span><br/>
<?php endforeach; ?>
</div>
</div>
</div>

View File

@@ -0,0 +1,9 @@
<?php $this->layout('layout::default', ['title' => '404 Not Found']) ?>
<h1>Oops!</h1>
<h2>This is awkward.</h2>
<p>We encountered a 404 Not Found error.</p>
<p>
You are looking for something that doesn't exist or may have moved. Check out one of the links on this page
or head back to <a href="/">Home</a>.
</p>

View File

@@ -0,0 +1,11 @@
<?php $this->layout('layout::default', ['title' => sprintf('%d %s', $status, $reason)]) ?>
<h1>Oops!</h1>
<h2>This is awkward.</h2>
<p>We encountered a <?=$this->e($status)?> <?=$this->e($reason)?> error.</p>
<?php if ($status == 404) : ?>
<p>
You are looking for something that doesn't exist or may have moved. Check out one of the links on this page
or head back to <a href="/">Home</a>.
</p>
<?php endif; ?>

View File

@@ -0,0 +1,138 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title><?=$this->e($title)?> - zend-expressive</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" />
<style>
body { padding-top: 60px; }
.app { display: flex; min-height: 100vh; flex-direction: column; }
.app-content { flex: 1; }
.app-footer { padding-bottom: 1em; }
.zf-green, h2 a { color: #68b604; }
</style>
<?=$this->section('stylesheets')?>
</head>
<body class="app">
<header class="app-header">
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">
<img src="/zf-logo.png" alt="Zend Expressive" />
</a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li>
<a href="https://docs.zendframework.com/zend-expressive/" target="_blank">
<i class="fa fa-book"></i> Docs
</a>
</li>
<li>
<a href="https://github.com/zendframework/zend-expressive" target="_blank">
<i class="fa fa-wrench"></i> Contribute
</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<div class="app-content">
<main class="container">
<?=$this->section('content')?>
</main>
</div>
<footer class="app-footer">
<div class="container">
<hr />
<?php if ($this->section('footer')): ?>
<?=$this->section('footer')?>
<?php else: ?>
<p>
&copy; 2005 - <?=date('Y')?> by Zend Technologies Ltd. All rights reserved.
</p>
<?php endif ?>
</div>
</footer>
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script>
$(document).ready(function () {
$('#chart-container').highcharts({
title: {
text: 'Support Cases'
},
yAxis: {
},
xAxis: {
categories: get('.week')
},
plotOptions: {
column: {
dataLabels: {
enabled: true,
style: {
fontSize: '16px'
}
}
},
spline: {
dataLabels: {
enabled: true,
style: {
fontSize: '16px'
}
}
}
},
series: [{
type: 'column',
name: 'Inflow',
data: get('.inflow'),
color: '#993300'
}, {
type: 'column',
name: 'Outflow',
data: get('.outflow'),
color: '#0070c0'
}, {
type: 'spline',
name: 'Open',
data: get('.sum'),
color: '#7030a0'
}]
});
});
function get(type) {
var data_arr = [];
$(type).each(function (i) {
if(type == 'week') {
data_arr.push($(this).text());
} else {
data_arr.push(parseInt($(this).text()));
}
});
return data_arr;
}
</script>
<?=$this->section('javascript')?>
</body>
</html>