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
b023117f
Commit
b023117f
authored
13 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix: W3C
parent
4652b87c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/comm/index.php
+1
-1
1 addition, 1 deletion
htdocs/comm/index.php
htdocs/lib/agenda.lib.php
+44
-44
44 additions, 44 deletions
htdocs/lib/agenda.lib.php
with
45 additions
and
45 deletions
htdocs/comm/index.php
+
1
−
1
View file @
b023117f
...
...
@@ -404,7 +404,6 @@ if ($conf->societe->enabled && $user->rights->societe->lire)
$var
=!
$var
;
}
print
"</table><br>"
;
$db
->
free
(
$resql
);
}
...
...
@@ -412,6 +411,7 @@ if ($conf->societe->enabled && $user->rights->societe->lire)
{
print
'<tr '
.
$bc
[
$var
]
.
'><td colspan="3">'
.
$langs
->
trans
(
"None"
)
.
'</td></tr>'
;
}
print
"</table><br>"
;
}
}
...
...
This diff is collapsed.
Click to expand it.
htdocs/lib/agenda.lib.php
+
44
−
44
View file @
b023117f
...
...
@@ -134,8 +134,8 @@ function show_array_actions_to_do($max=5)
$sql
=
"SELECT a.id, a.label, a.datep as dp, a.fk_user_author, a.percent,"
;
$sql
.
=
" c.code, c.libelle,"
;
$sql
.
=
" s.nom as sname, s.rowid, s.client"
;
$sql
.
=
" FROM ("
.
MAIN_DB_PREFIX
.
"actioncomm as
a
"
;
$sql
.
=
"
,
"
.
MAIN_DB_PREFIX
.
"
c_
actioncomm as
c
"
;
$sql
.
=
" FROM ("
.
MAIN_DB_PREFIX
.
"
c_
actioncomm as
c,
"
;
$sql
.
=
" "
.
MAIN_DB_PREFIX
.
"actioncomm as
a
"
;
if
(
!
$user
->
rights
->
societe
->
client
->
voir
&&
!
$socid
)
$sql
.
=
", "
.
MAIN_DB_PREFIX
.
"societe_commerciaux as sc"
;
$sql
.
=
")"
;
$sql
.
=
" LEFT JOIN "
.
MAIN_DB_PREFIX
.
"societe as s ON a.fk_soc = s.rowid AND s.entity IN (0, "
.
$conf
->
entity
.
")"
;
...
...
@@ -150,34 +150,34 @@ function show_array_actions_to_do($max=5)
if
(
$resql
)
{
$num
=
$db
->
num_rows
(
$resql
);
if
(
$num
>
0
)
{
print
'<table class="noborder" width="100%">'
;
print
'<tr class="liste_titre"><td colspan="2">'
.
$langs
->
trans
(
"LastActionsToDo"
,
$max
)
.
'</td>'
;
print
'<td colspan="2" align="right"><a href="'
.
DOL_URL_ROOT
.
'/comm/action/listactions.php?status=todo">'
.
$langs
->
trans
(
"FullList"
)
.
'</a>'
;
print
'</tr>'
;
$var
=
true
;
$i
=
0
;
$staticaction
=
new
ActionComm
(
$db
);
$customerstatic
=
new
Client
(
$db
);
print
'<table class="noborder" width="100%">'
;
print
'<tr class="liste_titre"><td colspan="2">'
.
$langs
->
trans
(
"LastActionsToDo"
,
$max
)
.
'</td>'
;
print
'<td colspan="2" align="right"><a href="'
.
DOL_URL_ROOT
.
'/comm/action/listactions.php?status=todo">'
.
$langs
->
trans
(
"FullList"
)
.
'</a>'
;
print
'</tr>'
;
$var
=
true
;
$i
=
0
;
while
(
$i
<
$num
)
{
$obj
=
$db
->
fetch_object
(
$resql
);
$var
=!
$var
;
$staticaction
=
new
ActionComm
(
$db
);
$customerstatic
=
new
Client
(
$db
);
while
(
$i
<
$num
)
{
$obj
=
$db
->
fetch_object
(
$resql
);
$var
=!
$var
;
print
'<tr '
.
$bc
[
$var
]
.
'>'
;
print
'<tr '
.
$bc
[
$var
]
.
'>'
;
$staticaction
->
type_code
=
$obj
->
code
;
$staticaction
->
libelle
=
$obj
->
label
;
$staticaction
->
id
=
$obj
->
id
;
print
'<td>'
.
$staticaction
->
getNomUrl
(
1
,
34
)
.
'</td>'
;
$staticaction
->
type_code
=
$obj
->
code
;
$staticaction
->
libelle
=
$obj
->
label
;
$staticaction
->
id
=
$obj
->
id
;
print
'<td>'
.
$staticaction
->
getNomUrl
(
1
,
34
)
.
'</td>'
;
// print '<td>'.dol_trunc($obj->label,22).'</td>';
// print '<td>'.dol_trunc($obj->label,22).'</td>';
print
'<td>'
;
if
(
$obj
->
rowid
>
0
)
print
'<td>'
;
if
(
$obj
->
rowid
>
0
)
{
$customerstatic
->
id
=
$obj
->
rowid
;
$customerstatic
->
name
=
$obj
->
sname
;
...
...
@@ -186,28 +186,28 @@ function show_array_actions_to_do($max=5)
}
print
'</td>'
;
$datep
=
$db
->
jdate
(
$obj
->
dp
);
$datep2
=
$db
->
jdate
(
$obj
->
dp2
);
$datep
=
$db
->
jdate
(
$obj
->
dp
);
$datep2
=
$db
->
jdate
(
$obj
->
dp2
);
// Date
print
'<td width="100" align="right">'
.
dol_print_date
(
$datep
,
'day'
)
.
' '
;
$late
=
0
;
if
(
$obj
->
percent
==
0
&&
$datep
&&
$datep
<
time
())
$late
=
1
;
if
(
$obj
->
percent
==
0
&&
!
$datep
&&
$datep2
&&
$datep2
<
time
())
$late
=
1
;
if
(
$obj
->
percent
>
0
&&
$obj
->
percent
<
100
&&
$datep2
&&
$datep2
<
time
())
$late
=
1
;
if
(
$obj
->
percent
>
0
&&
$obj
->
percent
<
100
&&
!
$datep2
&&
$datep
&&
$datep
<
time
())
$late
=
1
;
if
(
$late
)
print
img_warning
(
$langs
->
trans
(
"Late"
));
print
"</td>"
;
// Date
print
'<td width="100" align="right">'
.
dol_print_date
(
$datep
,
'day'
)
.
' '
;
$late
=
0
;
if
(
$obj
->
percent
==
0
&&
$datep
&&
$datep
<
time
())
$late
=
1
;
if
(
$obj
->
percent
==
0
&&
!
$datep
&&
$datep2
&&
$datep2
<
time
())
$late
=
1
;
if
(
$obj
->
percent
>
0
&&
$obj
->
percent
<
100
&&
$datep2
&&
$datep2
<
time
())
$late
=
1
;
if
(
$obj
->
percent
>
0
&&
$obj
->
percent
<
100
&&
!
$datep2
&&
$datep
&&
$datep
<
time
())
$late
=
1
;
if
(
$late
)
print
img_warning
(
$langs
->
trans
(
"Late"
));
print
"</td>"
;
// Statut
print
"<td align=
\"
right
\"
width=
\"
14
\"
>"
.
$staticaction
->
LibStatut
(
$obj
->
percent
,
3
)
.
"</td>
\n
"
;
// Statut
print
"<td align=
\"
right
\"
width=
\"
14
\"
>"
.
$staticaction
->
LibStatut
(
$obj
->
percent
,
3
)
.
"</td>
\n
"
;
print
"</tr>
\n
"
;
print
"</tr>
\n
"
;
$i
++
;
}
print
"</table><br>"
;
$i
++
;
}
print
"</table><br>"
;
}
$db
->
free
(
$resql
);
}
else
...
...
@@ -230,8 +230,8 @@ function show_array_last_actions_done($max=5)
$sql
=
"SELECT a.id, a.percent, a.datep as da, a.datep2 as da2, a.fk_user_author, a.label,"
;
$sql
.
=
" c.code, c.libelle,"
;
$sql
.
=
" s.rowid, s.nom as sname, s.client"
;
$sql
.
=
" FROM ("
.
MAIN_DB_PREFIX
.
"actioncomm as
a
"
;
$sql
.
=
"
,
"
.
MAIN_DB_PREFIX
.
"
c_
actioncomm as
c
"
;
$sql
.
=
" FROM ("
.
MAIN_DB_PREFIX
.
"
c_
actioncomm as
c,
"
;
$sql
.
=
" "
.
MAIN_DB_PREFIX
.
"actioncomm as
a
"
;
if
(
!
$user
->
rights
->
societe
->
client
->
voir
&&
!
$socid
)
$sql
.
=
", "
.
MAIN_DB_PREFIX
.
"societe_commerciaux as sc"
;
$sql
.
=
")"
;
$sql
.
=
" LEFT JOIN "
.
MAIN_DB_PREFIX
.
"societe as s ON a.fk_soc = s.rowid AND s.entity IN (0, "
.
$conf
->
entity
.
")"
;
...
...
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