-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.php
67 lines (67 loc) · 1.96 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<html>
<title>Simple Burndown Chart Generator</title>
<body>
<h2>Simple Burndown Chart Generator</h2><br>
<form action="generate.php" method="post" enctype="multipart/form-data">
Title: <input type="text" name="title"><br>
<select name="dayvel">
<option value="notused" selected="selected">Work days/Velocity</option>
<option value="work-days">Work days</option>
<option value="velocity">Velocity (per day)</option>
</select>:
<select name="dayvelval">
<option value="" selected="selected"> </option>
<?php
for ($i=1; $i<=100; $i++)
{
?>
<option value="<?php echo $i;?>"><?php echo $i;?></option>
<?php
}
?>
</select><br>
Start date: <input type="text" name="date">
e.g
<?php
echo date('Y-m-d');
?><br>
Hours/Points:
<select name="phval">
<option value="" selected="selected"> </option>
<?php
for ($i=1; $i<=1000; $i++)
{
?>
<option value="<?php echo $i;?>"><?php echo $i;?></option>
<?php
}
?>
</select>
<select name="ph">
<option value="" selected="selected">hours/points</option>
<option value="hours">hours</option>
<option value="points">points</option>
</select><br>
Show weekends/holidays: <input type="radio" name="we" value="yes">Yes <input type="radio" name="we" value="no">No<br><br>
Config file:<br>
<input type="file" name="file" id="file"><br><br>
<input type="submit" name="chart_button" value="Generate chart">
<input type="submit" name="config_button" value="Generate config file">
</form>
<br><br><br>
<code>
Simple howto:<br><br>
There are two ways of using Simple Burndown Chart Generator.<br><br>
1. If just a simple burndown chart with "Ideal" line is needed, just enter values and push "Generate chart" button<br><br>
2. If an "Actual" line is needed:<br>
<ul>
<li> Enter starting values
<li> Push "Generate config file"
<li> Edit config file with "Actual" values
<li> Each time you want to generate a new chart, just select your config file and push "Generate chart" button
</ul>
<br><br>
Get the source code <a href="https://github.com/airikka/sbcg">here</a>
</code>
</body>
</html>