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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
453c2483
Commit
453c2483
authored
19 years ago
by
Rodolphe Quiedeville
Browse files
Options
Downloads
Patches
Plain Diff
Nouvelle interface
parent
1884320f
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/telephonie/index.php
+39
-3
39 additions, 3 deletions
htdocs/telephonie/index.php
with
39 additions
and
3 deletions
htdocs/telephonie/index.php
+
39
−
3
View file @
453c2483
...
@@ -60,6 +60,11 @@ print '</table></form>';
...
@@ -60,6 +60,11 @@ print '</table></form>';
print
'<br />'
;
print
'<br />'
;
print
'</td><td width="30%" valign="top">'
;
$sql
=
"SELECT distinct statut, count(*) as cc"
;
$sql
=
"SELECT distinct statut, count(*) as cc"
;
$sql
.
=
" FROM "
.
MAIN_DB_PREFIX
.
"telephonie_societe_ligne as l"
;
$sql
.
=
" FROM "
.
MAIN_DB_PREFIX
.
"telephonie_societe_ligne as l"
;
$sql
.
=
","
.
MAIN_DB_PREFIX
.
"societe_perms as sp"
;
$sql
.
=
","
.
MAIN_DB_PREFIX
.
"societe_perms as sp"
;
...
@@ -101,6 +106,12 @@ else
...
@@ -101,6 +106,12 @@ else
print
$db
->
error
()
.
' '
.
$sql
;
print
$db
->
error
()
.
' '
.
$sql
;
}
}
print
'</td><td width="40%" valign="top">'
;
print
'</td></tr>'
;
print
'<tr><td colspan="3">'
;
if
(
$user
->
rights
->
telephonie
->
fournisseur
->
lire
)
if
(
$user
->
rights
->
telephonie
->
fournisseur
->
lire
)
{
{
print
'<br />'
;
print
'<br />'
;
...
@@ -109,6 +120,22 @@ if ($user->rights->telephonie->fournisseur->lire)
...
@@ -109,6 +120,22 @@ if ($user->rights->telephonie->fournisseur->lire)
* Fournisseurs
* Fournisseurs
*
*
*/
*/
$statuts
=
array
();
$sql
=
"SELECT count(*), l.fk_fournisseur, l.statut"
;
$sql
.
=
" FROM "
.
MAIN_DB_PREFIX
.
"telephonie_societe_ligne as l"
;
$sql
.
=
" ,"
.
MAIN_DB_PREFIX
.
"societe_perms as sp"
;
$sql
.
=
" WHERE l.fk_client_comm = sp.fk_soc"
;
$sql
.
=
" AND sp.fk_user = "
.
$user
->
id
.
" AND sp.pread = 1"
;
$sql
.
=
" GROUP BY l.fk_fournisseur, l.statut"
;
$resql
=
$db
->
query
(
$sql
);
if
(
$resql
)
{
while
(
$row
=
$db
->
fetch_row
(
$resql
))
{
$statuts
[
$row
[
1
]][
$row
[
2
]]
=
$row
[
0
];
}
}
$sql
=
"SELECT distinct f.nom as fournisseur, f.rowid, count(*) as cc"
;
$sql
=
"SELECT distinct f.nom as fournisseur, f.rowid, count(*) as cc"
;
$sql
.
=
" FROM "
.
MAIN_DB_PREFIX
.
"societe as s"
;
$sql
.
=
" FROM "
.
MAIN_DB_PREFIX
.
"societe as s"
;
...
@@ -129,6 +156,10 @@ if ($user->rights->telephonie->fournisseur->lire)
...
@@ -129,6 +156,10 @@ if ($user->rights->telephonie->fournisseur->lire)
print
'<table class="noborder" width="100%" cellspacing="0" cellpadding="4">'
;
print
'<table class="noborder" width="100%" cellspacing="0" cellpadding="4">'
;
print
'<tr class="liste_titre"><td>Fournisseur</td><td align="center">Nb lignes</td>'
;
print
'<tr class="liste_titre"><td>Fournisseur</td><td align="center">Nb lignes</td>'
;
for
(
$j
=
-
1
;
$j
<
8
;
$j
++
)
{
print
'<td align="center"><img border="0" src="./ligne/graph'
.
$j
.
'.png"></td>'
;
}
print
"</tr>
\n
"
;
print
"</tr>
\n
"
;
$var
=
True
;
$var
=
True
;
...
@@ -141,6 +172,12 @@ if ($user->rights->telephonie->fournisseur->lire)
...
@@ -141,6 +172,12 @@ if ($user->rights->telephonie->fournisseur->lire)
print
'<td><a href="'
.
DOL_URL_ROOT
.
'/telephonie/ligne/liste.php?fournisseur='
.
$obj
->
rowid
.
'">'
;
print
'<td><a href="'
.
DOL_URL_ROOT
.
'/telephonie/ligne/liste.php?fournisseur='
.
$obj
->
rowid
.
'">'
;
print
$obj
->
fournisseur
.
'</a></td>'
;
print
$obj
->
fournisseur
.
'</a></td>'
;
print
'<td align="center">'
.
$obj
->
cc
.
"</td>
\n
"
;
print
'<td align="center">'
.
$obj
->
cc
.
"</td>
\n
"
;
for
(
$k
=
-
1
;
$k
<
8
;
$k
++
)
{
print
'<td align="center">'
.
$statuts
[
$obj
->
rowid
][
$k
]
.
'</td>'
;
}
print
"</tr>
\n
"
;
print
"</tr>
\n
"
;
$i
++
;
$i
++
;
}
}
...
@@ -152,7 +189,6 @@ if ($user->rights->telephonie->fournisseur->lire)
...
@@ -152,7 +189,6 @@ if ($user->rights->telephonie->fournisseur->lire)
print
$db
->
error
()
.
' '
.
$sql
;
print
$db
->
error
()
.
' '
.
$sql
;
}
}
}
}
print
'</td><td width="70%" valign="top">'
;
print
'</td></tr>'
;
print
'</td></tr>'
;
print
'</table>'
;
print
'</table>'
;
...
...
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