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
1bac95f4
Commit
1bac95f4
authored
Dec 09, 2007
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hide projects on which no time was booked this month. It stops clutering the overview.
parent
cf7cf8e1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
18 deletions
+24
-18
addedit.php
addedit.php
+24
-18
No files found.
addedit.php
View file @
1bac95f4
...
@@ -293,11 +293,6 @@ function showproject()
...
@@ -293,11 +293,6 @@ function showproject()
$projects
=
$q
->
LoadList
();
$projects
=
$q
->
LoadList
();
$timesheet_worked
=
0
;
$timesheet_worked
=
0
;
foreach
(
$projects
as
$row
)
{
foreach
(
$projects
as
$row
)
{
echo
'<tr>'
;
echo
'<td> </td>'
;
echo
'<td><a href="?m=projects&a=view&project_id='
.
$row
[
"project_id"
]
.
'">'
.
$row
[
"project_name"
]
.
'</a>'
;
echo
'</td>'
;
echo
'<td>'
;
$project_id
=
$row
[
"project_id"
];
$project_id
=
$row
[
"project_id"
];
$t
=
new
DBQuery
;
$t
=
new
DBQuery
;
$t
->
addQuery
(
'task_id'
);
$t
->
addQuery
(
'task_id'
);
...
@@ -337,12 +332,20 @@ function showproject()
...
@@ -337,12 +332,20 @@ function showproject()
}
}
}
}
}
}
if
(
$amount
>
0
)
{
echo
'<tr>'
;
echo
'<td> </td>'
;
echo
'<td><a href="?m=projects&a=view&project_id='
.
$row
[
"project_id"
]
.
'">'
.
$row
[
"project_name"
]
.
'</a>'
;
echo
'</td>'
;
echo
'<td>'
;
echo
$amount
;
echo
$amount
;
$timesheet_worked
=
$timesheet_worked
+
$amount
;
$timesheet_worked
=
$timesheet_worked
+
$amount
;
echo
'</td>'
;
echo
'</td>'
;
echo
'<td>'
.
$project_types
[
$row
[
'project_status'
]]
.
'</td>'
;
echo
'<td>'
.
$project_types
[
$row
[
'project_status'
]]
.
'</td>'
;
echo
'</tr>'
;
echo
'</tr>'
;
}
}
}
$obj
->
timesheet_worked
=
$timesheet_worked
;
$obj
->
timesheet_worked
=
$timesheet_worked
;
}
// end of function showproject()
}
// end of function showproject()
...
@@ -369,6 +372,8 @@ function showtimesheetproject()
...
@@ -369,6 +372,8 @@ function showtimesheetproject()
$p
->
addOrder
(
'project_name ASC'
);
$p
->
addOrder
(
'project_name ASC'
);
$projects
=
$p
->
LoadList
();
$projects
=
$p
->
LoadList
();
foreach
(
$projects
as
$project
)
{
foreach
(
$projects
as
$project
)
{
if
(
intval
(
$row
[
'timesheet_project_amount'
]
)
>
0
)
{
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>'
;
...
@@ -379,6 +384,7 @@ function showtimesheetproject()
...
@@ -379,6 +384,7 @@ function showtimesheetproject()
echo
'</tr>'
;
echo
'</tr>'
;
}
}
}
}
}
}
// end of function showtimesheetproject()
}
// end of function showtimesheetproject()
?>
?>
...
...
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