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
4abafdd1
Commit
4abafdd1
authored
Sep 07, 2008
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show Customer in timesheet details.
parent
05bf8f64
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
+19
-6
addedit.php
addedit.php
+19
-6
No files found.
addedit.php
View file @
4abafdd1
...
@@ -320,6 +320,7 @@ function showproject()
...
@@ -320,6 +320,7 @@ function showproject()
$q
=
new
DBQuery
();
$q
=
new
DBQuery
();
$q
->
addQuery
(
'project_id'
);
$q
->
addQuery
(
'project_id'
);
$q
->
addQuery
(
'project_name'
);
$q
->
addQuery
(
'project_name'
);
$q
->
addQuery
(
'project_company'
);
$q
->
addQuery
(
'project_status'
);
$q
->
addQuery
(
'project_status'
);
$q
->
addTable
(
'projects'
);
$q
->
addTable
(
'projects'
);
$q
->
addOrder
(
'project_name ASC'
);
$q
->
addOrder
(
'project_name ASC'
);
...
@@ -339,6 +340,18 @@ function showproject()
...
@@ -339,6 +340,18 @@ function showproject()
$tasks
=
$t
->
LoadList
();
$tasks
=
$t
->
LoadList
();
$t
->
Clear
();
$t
->
Clear
();
// show company in details
$company
=
"unknown"
;
$t
->
addQuery
(
'company_id'
);
$t
->
addQuery
(
'company_name'
);
$t
->
addTable
(
'companies'
);
$t
->
addWhere
(
'company_id = '
.
$row
[
"project_company"
]);
$companies
=
$t
->
LoadList
();
foreach
(
$companies
as
$list
)
{
$company
=
$list
[
'company_name'
];
}
$t
->
Clear
();
$amount
=
0
;
$amount
=
0
;
foreach
(
$tasks
as
$item
)
{
foreach
(
$tasks
as
$item
)
{
// Query the task_log table for actual start dates.
// Query the task_log table for actual start dates.
...
@@ -370,7 +383,7 @@ function showproject()
...
@@ -370,7 +383,7 @@ function showproject()
echo
'<tr>'
;
echo
'<tr>'
;
echo
'<td> </td>'
;
echo
'<td> </td>'
;
echo
'<td><a href="?m=projects&a=view&project_id='
.
$row
[
"project_id"
]
.
'">'
.
$row
[
"project_name"
]
.
'</a></td>'
;
echo
'<td><a href="?m=projects&a=view&project_id='
.
$row
[
"project_id"
]
.
'">'
.
$row
[
"project_name"
]
.
'</a></td>'
;
echo
'<td>
</td>'
;
echo
'<td>
'
.
$company
.
'
</td>'
;
echo
'<td>'
.
$amount
.
'</td>'
;
echo
'<td>'
.
$amount
.
'</td>'
;
$timesheet_worked
=
$timesheet_worked
+
$amount
;
$timesheet_worked
=
$timesheet_worked
+
$amount
;
echo
'<td>'
.
$project_types
[
$row
[
'project_status'
]]
.
'</td>'
;
echo
'<td>'
.
$project_types
[
$row
[
'project_status'
]]
.
'</td>'
;
...
@@ -384,11 +397,11 @@ function showproject()
...
@@ -384,11 +397,11 @@ function showproject()
// Print the overview table
// 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>'
;
echo
'<th nowrap="nowrap">'
.
$AppUI
->
_
(
'Project'
)
.
'</th>'
;
echo
'<th nowrap="nowrap">'
.
$AppUI
->
_
(
'Project'
)
.
'</th>'
;
echo
'<th nowrap="nowrap">'
.
$AppUI
->
_
(
'Customer'
)
.
'</th>'
;
echo
'<th nowrap="nowrap">'
.
$AppUI
->
_
(
'Customer'
)
.
'</th>'
;
echo
'<th nowrap="nowrap">'
.
$AppUI
->
_
(
'Worked hours'
)
.
'</th>'
;
echo
'<th nowrap="nowrap">'
.
$AppUI
->
_
(
'Worked hours'
)
.
'</th>'
;
echo
'<th nowrap="nowrap">'
.
$AppUI
->
_
(
'Project status'
)
.
'</th>'
;
echo
'<th nowrap="nowrap">'
.
$AppUI
->
_
(
'Project status'
)
.
'</th>'
;
echo
'</tr>'
;
echo
'</tr>'
;
echo
'<form name="projectFrm" action="./index.php?m=timesheet" method="post">'
;
echo
'<form name="projectFrm" action="./index.php?m=timesheet" method="post">'
;
...
...
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