-
Notifications
You must be signed in to change notification settings - Fork 0
/
issues.php
executable file
·65 lines (51 loc) · 1.93 KB
/
issues.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
<?php
require_once 'lib/functions.php';
Utils::requireLogin();
$redmine = new Redmine();
// Getting all Projects
$projects = $redmine->getProjects();
$projects = $redmine->processProjects($projects);
// Getting users
$users = $redmine->getUsers();
$users = $redmine->processUsers($users);
$today = date('Y-m-d');
$tmrw = date('Y-m-d', time() + 24 * 3600);
?>
<?php include 'html/head.html.php'; ?>
<h2>Add Issues</h2>
<p>Multiple issues can be added, all assigned to the same project.</p>
<form method="post" action="<?php echo Utils::getProcessLink(__FILE__); ?>" class="niceform">
<table cellpadding="5" class="rows" width="900">
<tr class="project">
<th valign="top">Please Select a Project *</th>
<td valign="top" colspan="5"><?php echo Utils::Select($projects, 'project'); ?></td>
</tr>
<tr>
<th align="left">Subject *</th>
<th align="left">Description</th>
<th align="left">Assign To</th>
<th align="left">Start Date</th>
<th align="left">Due Date</th>
<th align="left">Est. Hours</th>
</tr>
<tr class="copy" style="display:none">
<td valign="top"><input type="text" name="issues[subject][]" size="30"/></td>
<td valign="top"><input type="text" name="issues[description][]" size="36" /></td>
<td valign="top"><?php echo Utils::Select($users, 'issues[assigned_to_id][]', 'id="assignee"'); ?></td>
<td valign="top"><input type="text" name="issues[start_date][]" class="date" size="10" value="<?php echo $today; ?>" /></td>
<td valign="top"><input type="text" name="issues[due_date][]" class="date" size="10" value="<?php echo $tmrw; ?>" /></td>
<td valign="top"><input type="text" name="issues[estimated_hours][]" size="4" /></td>
</tr>
</table>
<table width="900" align="center">
<tr>
<td align="right">
<a href="#" onclick="addmore(5); return false;">Add More</a> or <input type="submit" name="submit" value="Save!" />
</td>
</tr>
</table>
<script>
addmore(5);
</script>
</form>
<?php require 'html/footer.html.php'; ?>