-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproj_add.php
More file actions
121 lines (107 loc) · 3.47 KB
/
proj_add.php
File metadata and controls
121 lines (107 loc) · 3.47 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?php
//$Header: /cvsroot/tsheet/timesheet.php/proj_add.php,v 1.9 2005/05/16 01:39:57 vexil Exp $
// Authenticate
require("class.AuthenticationManager.php");
require("class.CommandMenu.php");
if (!$authenticationManager->isLoggedIn() || !$authenticationManager->hasAccess('aclProjects')) {
Header('Location: login.php?clearanceRequired=' . get_acl_level('aclProjects'));
exit;
}
// Connect to database.
$dbh = dbConnect();
$contextUser = strtolower($_SESSION['contextUser']);
//define the command menu
$commandMenu->add(new TextCommand("Back", true, "javascript:history.back()"));
//load client id from superglobals
$client_id = isset($_REQUEST['client_id']) ? $_REQUEST['client_id']: 1;
?>
<html>
<head>
<title>Add New Project</title>
<?php include ("header.inc"); ?>
</head>
<body <?php include ("body.inc"); ?> >
<?php include ("banner.inc"); ?>
<form action="proj_action.php" method="post">
<input type="hidden" name="action" value="add" />
<table width="600" align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" class="face_padding_cell">
<!-- include the timesheet face up until the heading start section -->
<?php include("timesheet_face_part_1.inc"); ?>
<table width="100%" border="0">
<tr>
<td align="left" nowrap class="outer_table_heading" nowrap>
Add New Project
</td>
</tr>
</table>
<!-- include the timesheet face up until the heading start section -->
<?php include("timesheet_face_part_2.inc"); ?>
<table width="100%" align="center" border="0" cellpadding="0" cellspacing="0" class="outer_table">
<tr>
<td>
<table width="100%" border="0" cellpadding="1" cellspacing="2" class="table_body">
<tr>
<td align="right">Project Title:</td>
<td><input type="text" name="title" size="42" style="width: 100%;" maxlength="200" /></td>
</tr>
<tr>
<td align="right">Client:</td>
<td><?php client_select_list($client_id, 0, false, false, false, true, "", false); ?></td>
</tr>
<tr>
<td align="right" valign="top">Description:</td>
<td><textarea name="description" rows="4" cols="40" wrap="virtual" style="width: 100%;"></textarea></td>
</tr>
<tr>
<td align="right">Start Date:</td>
<td><?php day_button("start_day",0,0); month_button("start_month"); year_button("start_year"); ?></td>
</tr>
<tr>
<td align="right">Deadline:</td>
<td><?php day_button("end_day",0,0); month_button("end_month"); year_button("end_year"); ?></td>
</tr>
<tr>
<td align="right">Status:</td>
<td><?php proj_status_list("proj_status", "Started"); ?></td>
</tr>
<tr>
<td align="right">URL:</td>
<td><input type="text" name="url" size="42" style="width: 100%;" /></td>
</tr>
<tr>
<td align="right" valign="top">Assignments:</td>
<td><?php multi_user_select_list("assigned[]"); ?></td>
</tr>
<tr>
<td align="right">Project Leader:</td>
<td><?php single_user_select_list("project_leader"); ?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" class="table_bottom_panel">
<tr>
<td align="center">
<input type="submit" name="add" value="Add New Project" />
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- include the timesheet face up until the end -->
<?php include("timesheet_face_part_3.inc"); ?>
</td>
</tr>
</table>
</form>
<?php include("footer.inc"); ?>
</body>
</html>
<?php
// vim:ai:ts=4:sw=4
?>