Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
9536a59d
Commit
9536a59d
authored
15 years ago
by
Regis Houssin
Browse files
Options
Downloads
Patches
Plain Diff
Add on/off button
parent
26a4575c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
htdocs/admin/modules.php
+8
-18
8 additions, 18 deletions
htdocs/admin/modules.php
htdocs/admin/multicompany.php
+1
-1
1 addition, 1 deletion
htdocs/admin/multicompany.php
htdocs/projet/tasks/task.php
+1
-30
1 addition, 30 deletions
htdocs/projet/tasks/task.php
with
10 additions
and
49 deletions
htdocs/admin/modules.php
+
8
−
18
View file @
9536a59d
...
...
@@ -3,7 +3,7 @@
* Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org>
* Copyright (C) 2004-2008 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
* Copyright (C) 2005-200
9
Regis Houssin <regis@dolibarr.fr>
* Copyright (C) 2005-20
1
0 Regis Houssin <regis@dolibarr.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -335,8 +335,7 @@ print " <td colspan=\"2\">".$langs->trans("Module")."</td>\n";
print
" <td>"
.
$langs
->
trans
(
"Description"
)
.
"</td>
\n
"
;
print
" <td align=
\"
center
\"
>"
.
$langs
->
trans
(
"Version"
)
.
"</td>
\n
"
;
//print " <td align=\"center\">".$langs->trans("DbVersion")."</td>\n";
print
" <td align=
\"
center
\"
>"
.
$langs
->
trans
(
"Activated"
)
.
"</td>
\n
"
;
print
" <td align=
\"
center
\"
>"
.
$langs
->
trans
(
"Action"
)
.
"</td>
\n
"
;
print
" <td align=
\"
center
\"
>"
.
$langs
->
trans
(
"Status"
)
.
"</td>
\n
"
;
print
" <td>"
.
$langs
->
trans
(
"SetupShort"
)
.
"</td>
\n
"
;
print
"</tr>
\n
"
;
...
...
@@ -431,19 +430,6 @@ foreach ($orders as $key => $value)
print
$objMod
->
getVersion
();
print
"</td>
\n
"
;
// Tick
print
"<td align=
\"
center
\"
valign=
\"
top
\"
>"
;
if
(
!
empty
(
$conf
->
global
->
$const_name
))
{
print
img_tick
();
}
else
{
print
" "
;
}
print
"</td>
\n
"
;
// Activate/Disable and Setup
print
"<td align=
\"
center
\"
valign=
\"
top
\"
>"
;
if
(
!
empty
(
$conf
->
global
->
$const_name
))
...
...
@@ -458,7 +444,9 @@ foreach ($orders as $key => $value)
}
else
{
print
"<a href=
\"
modules.php?id="
.
$objMod
->
numero
.
"&action=reset&value="
.
$modName
.
"&mode="
.
$mode
.
"
\"
>"
.
$langs
->
trans
(
"Disable"
)
.
"</a></td>
\n
"
;
print
'<a href="modules.php?id='
.
$objMod
->
numero
.
'&action=reset&value='
.
$modName
.
'&mode='
.
$mode
.
'">'
;
print
img_picto
(
$langs
->
trans
(
"Activated"
),
'on'
);
print
'</a></td>'
.
"
\n
"
;
}
if
(
!
empty
(
$objMod
->
config_page_url
)
&&
!
$disableSetup
)
...
...
@@ -503,7 +491,9 @@ foreach ($orders as $key => $value)
}
// Module non actif
print
"<a href=
\"
modules.php?id="
.
$objMod
->
numero
.
"&action=set&value="
.
$modName
.
"&mode="
.
$mode
.
"
\"
>"
.
$langs
->
trans
(
"Activate"
)
.
"</a></td>
\n
<td> </td>
\n
"
;
print
'<a href="modules.php?id='
.
$objMod
->
numero
.
'&action=set&value='
.
$modName
.
'&mode='
.
$mode
.
'">'
;
print
img_picto
(
$langs
->
trans
(
"Disabled"
),
'off'
);
print
"</a></td>
\n
<td> </td>
\n
"
;
}
print
"</tr>
\n
"
;
...
...
This diff is collapsed.
Click to expand it.
htdocs/admin/multicompany.php
+
1
−
1
View file @
9536a59d
<?php
/* Copyright (C) 200
9
Regis Houssin
<regis@dolibarr.fr>
/* Copyright (C) 20
1
0 Regis Houssin <regis@dolibarr.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
This diff is collapsed.
Click to expand it.
htdocs/projet/tasks/task.php
+
1
−
30
View file @
9536a59d
...
...
@@ -228,39 +228,10 @@ if ($taskid)
print
'</td></tr>'
;
// Description
print
'<td>'
.
$langs
->
trans
(
"Description"
)
.
'</td><td colspan="3">'
;
print
'<td
valign="top"
>'
.
$langs
->
trans
(
"Description"
)
.
'</td><td colspan="3">'
;
print
nl2br
(
$task
->
description
);
print
'</td></tr>'
;
/* List of time spent */
$sql
=
"SELECT t.task_date, t.task_duration, t.fk_user, u.login, u.rowid"
;
$sql
.
=
" FROM "
.
MAIN_DB_PREFIX
.
"projet_task_time as t"
;
$sql
.
=
", "
.
MAIN_DB_PREFIX
.
"user as u"
;
$sql
.
=
" WHERE t.fk_task ="
.
$task
->
id
;
$sql
.
=
" AND t.fk_user = u.rowid"
;
$sql
.
=
" ORDER BY t.task_date DESC"
;
$var
=
true
;
$resql
=
$db
->
query
(
$sql
);
if
(
$resql
)
{
$num
=
$db
->
num_rows
(
$resql
);
$i
=
0
;
$tasks
=
array
();
while
(
$i
<
$num
)
{
$row
=
$db
->
fetch_object
(
$resql
);
$tasks
[
$i
]
=
$row
;
$i
++
;
}
$db
->
free
(
$resql
);
}
else
{
dol_print_error
(
$db
);
}
print
'</table></form>'
;
print
'</div>'
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment