Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
timesheet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
web2project
timesheet
Commits
4d3143d3
Commit
4d3143d3
authored
Apr 05, 2008
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace tabs by spaces
parent
1e681afe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
96 additions
and
99 deletions
+96
-99
addedit.php
addedit.php
+96
-99
No files found.
addedit.php
View file @
4d3143d3
...
@@ -122,19 +122,18 @@ while ( $row = $q->fetchRow()) {
...
@@ -122,19 +122,18 @@ while ( $row = $q->fetchRow()) {
if
(
"
$obj->timesheet_creator
"
==
""
)
{
if
(
"
$obj->timesheet_creator
"
==
""
)
{
$submitter
=
$users
[
$AppUI
->
user_id
];
$submitter
=
$users
[
$AppUI
->
user_id
];
$obj
->
timesheet_creator
=
$AppUI
->
user_id
;
$obj
->
timesheet_creator
=
$AppUI
->
user_id
;
}
}
else
{
else
$submitter
=
$users
[
$obj
->
timesheet_creator
];
$submitter
=
$users
[
$obj
->
timesheet_creator
];
}
$q
->
Clear
();
$q
->
Clear
();
// Get the current timesheet period
// Get the current timesheet period
if
(
intval
(
$obj
->
timesheet_period
))
{
if
(
intval
(
$obj
->
timesheet_period
))
{
$period
=
new
CDate
();
$period
=
new
CDate
();
$period
->
setMonth
(
$obj
->
timesheet_period
);
$period
->
setMonth
(
$obj
->
timesheet_period
);
}
}
else
{
else
$period
=
new
CDate
();
$period
=
new
CDate
();
}
// Get the current timesheet status
// Get the current timesheet status
if
(
intval
(
$obj
->
timesheet_status
))
if
(
intval
(
$obj
->
timesheet_status
))
...
@@ -411,7 +410,6 @@ function showtimesheetproject()
...
@@ -411,7 +410,6 @@ function showtimesheetproject()
echo
'<tr>'
;
echo
'<tr>'
;
echo
'<td> </td>'
;
echo
'<td> </td>'
;
echo
'<td><a href="?m=projects&a=view&project_id='
.
$project
[
"project_id"
]
.
'">'
.
$project
[
"project_name"
]
.
'</a>'
;
echo
'<td><a href="?m=projects&a=view&project_id='
.
$project
[
"project_id"
]
.
'">'
.
$project
[
"project_name"
]
.
'</a>'
;
// echo '<td><a href="?m=projects&a=view&project_id=' . $row["timesheet_project"] . '">' . $project["project_name"] . '</a>';
echo
'</td>'
;
echo
'</td>'
;
echo
'<td>'
.
$row
[
'timesheet_project_amount'
]
.
'</td>'
;
echo
'<td>'
.
$row
[
'timesheet_project_amount'
]
.
'</td>'
;
echo
'<td>'
.
$project_types
[
$project
[
'project_status'
]]
.
'</td>'
;
echo
'<td>'
.
$project_types
[
$project
[
'project_status'
]]
.
'</td>'
;
...
@@ -420,9 +418,8 @@ function showtimesheetproject()
...
@@ -420,9 +418,8 @@ function showtimesheetproject()
}
}
}
}
}
// end of function showtimesheetproject()
}
// end of function showtimesheetproject()
?>
<?php
// Print the overview table
echo
'<table width="100%" border="0" cellpadding="2" cellspacing="1" class="tbl">'
;
echo
'<table width="100%" border="0" cellpadding="2" cellspacing="1" class="tbl">'
;
echo
'<tr>'
;
echo
'<tr>'
;
echo
'<th nowrap="nowrap"> </th>'
;
echo
'<th nowrap="nowrap"> </th>'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment