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
7625a10a
Commit
7625a10a
authored
20 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Look: Modifications esthétiques mineures.
parent
a3bdf848
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
htdocs/user/addon.php
+9
-3
9 additions, 3 deletions
htdocs/user/addon.php
htdocs/user/fiche.php
+5
-7
5 additions, 7 deletions
htdocs/user/fiche.php
htdocs/user/index.php
+45
-39
45 additions, 39 deletions
htdocs/user/index.php
with
59 additions
and
49 deletions
htdocs/user/addon.php
+
9
−
3
View file @
7625a10a
<?php
<?php
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
*
*
* This program is free software; you can redistribute it and/or modify
* 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
* it under the terms of the GNU General Public License as published by
...
@@ -19,6 +20,12 @@
...
@@ -19,6 +20,12 @@
* $Source$
* $Source$
*/
*/
/*!
\file htdocs/user/addon.php
\brief Onglet addon de la fiche utilisateur
\version $Revision$
*/
require
(
"./pre.inc.php"
);
require
(
"./pre.inc.php"
);
require_once
DOL_DOCUMENT_ROOT
.
"/bookmark4u.class.php"
;
require_once
DOL_DOCUMENT_ROOT
.
"/bookmark4u.class.php"
;
...
@@ -78,16 +85,15 @@ if ($_GET["id"])
...
@@ -78,16 +85,15 @@ if ($_GET["id"])
$head
[
$h
][
0
]
=
DOL_URL_ROOT
.
'/user/addon.php?id='
.
$fuser
->
id
;
$head
[
$h
][
0
]
=
DOL_URL_ROOT
.
'/user/addon.php?id='
.
$fuser
->
id
;
$head
[
$h
][
1
]
=
$langs
->
trans
(
"Addons"
);
$head
[
$h
][
1
]
=
$langs
->
trans
(
"Addons"
);
$hselected
=
$h
;
$hselected
=
$h
;
$h
++
;
$h
++
;
dolibarr_fiche_head
(
$head
,
$hselected
,
$fuser
->
nom
.
" "
.
$fuser
->
prenom
);
dolibarr_fiche_head
(
$head
,
$hselected
,
$fuser
->
fullname
);
/*
/*
* Fiche en mode visu
* Fiche en mode visu
*/
*/
print
'<table class="border" width="100%"
cellpadding="3" cellspacing="0"
>'
;
print
'<table class="border" width="100%">'
;
print
"<tr>"
.
'<td width="25%" valign="top">'
.
$langs
->
trans
(
"LastName"
)
.
'</td>'
;
print
"<tr>"
.
'<td width="25%" valign="top">'
.
$langs
->
trans
(
"LastName"
)
.
'</td>'
;
print
'<td width="25%" class="valeur">'
.
$fuser
->
nom
.
'</td>'
;
print
'<td width="25%" class="valeur">'
.
$fuser
->
nom
.
'</td>'
;
...
...
This diff is collapsed.
Click to expand it.
htdocs/user/fiche.php
+
5
−
7
View file @
7625a10a
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
/*!
/*!
\file htdocs/user/fiche.php
\file htdocs/user/fiche.php
\brief
Page
de la fiche utilisateur
\brief
Onglet user et permissions
de la fiche utilisateur
\version $Revision$
\version $Revision$
*/
*/
...
@@ -425,11 +425,9 @@ else
...
@@ -425,11 +425,9 @@ else
}
}
/* ************************************************************************** */
/*
/* */
* Fiche en mode edition
/* Edition */
*/
/* */
/* ************************************************************************** */
if
(
$_GET
[
"action"
]
==
'edit'
&&
$user
->
admin
)
if
(
$_GET
[
"action"
]
==
'edit'
&&
$user
->
admin
)
{
{
print
'<form action="fiche.php?id='
.
$fuser
->
id
.
'" method="post">'
;
print
'<form action="fiche.php?id='
.
$fuser
->
id
.
'" method="post">'
;
...
@@ -474,7 +472,7 @@ else
...
@@ -474,7 +472,7 @@ else
print
"<tr>"
.
'<td align="center" colspan="2"><input value="'
.
$langs
->
trans
(
"Save"
)
.
'" type="submit"></td></tr>'
;
print
"<tr>"
.
'<td align="center" colspan="2"><input value="'
.
$langs
->
trans
(
"Save"
)
.
'" type="submit"></td></tr>'
;
print
'</table>'
;
print
'</table>
<br>
'
;
print
'</form>'
;
print
'</form>'
;
}
}
...
...
This diff is collapsed.
Click to expand it.
htdocs/user/index.php
+
45
−
39
View file @
7625a10a
...
@@ -20,6 +20,13 @@
...
@@ -20,6 +20,13 @@
* $Source$
* $Source$
*
*
*/
*/
/*!
\file htdocs/user/index.php
\brief Page d'accueil de la gestion des utilisateurs
\version $Revision$
*/
require
(
"./pre.inc.php"
);
require
(
"./pre.inc.php"
);
$langs
->
load
(
"users"
);
$langs
->
load
(
"users"
);
...
@@ -28,8 +35,9 @@ $langs->load("users");
...
@@ -28,8 +35,9 @@ $langs->load("users");
llxHeader
();
llxHeader
();
$sortfield
=
$_GET
[
"sortfield"
];
$sortfield
=
isset
(
$_GET
[
"sortfield"
])
?
$_GET
[
"sortfield"
]
:
$_POST
[
"sortfield"
];
$sortorder
=
$_GET
[
"sortorder"
];
$sortorder
=
isset
(
$_GET
[
"sortorder"
])
?
$_GET
[
"sortorder"
]
:
$_POST
[
"sortorder"
];
$page
=
isset
(
$_GET
[
"page"
])
?
$_GET
[
"page"
]
:
$_POST
[
"page"
];
print_titre
(
$langs
->
trans
(
"ListOfUsers"
));
print_titre
(
$langs
->
trans
(
"ListOfUsers"
));
...
@@ -50,10 +58,10 @@ if ($result)
...
@@ -50,10 +58,10 @@ if ($result)
print
"<table class=
\"
noborder
\"
width=
\"
100%
\"
>"
;
print
"<table class=
\"
noborder
\"
width=
\"
100%
\"
>"
;
print
'<tr class="liste_titre">'
;
print
'<tr class="liste_titre">'
;
print_liste_field_titre
(
$langs
->
trans
(
"LastName"
),
"index.php"
,
"name"
);
print_liste_field_titre
(
$langs
->
trans
(
"LastName"
),
"index.php"
,
"name"
,
""
,
""
,
""
,
$sortfield
);
print_liste_field_titre
(
$langs
->
trans
(
"FirstName"
),
"index.php"
,
"firstname"
);
print_liste_field_titre
(
$langs
->
trans
(
"FirstName"
),
"index.php"
,
"firstname"
,
""
,
""
,
""
,
$sortfield
);
print_liste_field_titre
(
$langs
->
trans
(
"Login"
),
"index.php"
,
"login"
);
print_liste_field_titre
(
$langs
->
trans
(
"Login"
),
"index.php"
,
"login"
,
""
,
""
,
""
,
$sortfield
);
print_liste_field_titre
(
$langs
->
trans
(
"Code"
),
"index.php"
,
"code"
);
print_liste_field_titre
(
$langs
->
trans
(
"Code"
),
"index.php"
,
"code"
,
""
,
""
,
""
,
$sortfield
);
print
"</tr>
\n
"
;
print
"</tr>
\n
"
;
$var
=
True
;
$var
=
True
;
while
(
$i
<
$num
)
while
(
$i
<
$num
)
...
@@ -62,19 +70,17 @@ if ($result)
...
@@ -62,19 +70,17 @@ if ($result)
$var
=!
$var
;
$var
=!
$var
;
print
"<tr
$bc[$var]
>"
;
print
"<tr
$bc[$var]
>"
;
print
'<td><a href="fiche.php?id='
.
$obj
->
rowid
.
'">'
;
print
'<td>'
.
ucfirst
(
$obj
->
name
)
.
'</td>'
;
print
img_file
();
print
'</a> '
.
ucfirst
(
$obj
->
name
)
.
'</TD>'
;
print
'<td>'
.
ucfirst
(
$obj
->
firstname
)
.
'</td>'
;
print
'<td>'
.
ucfirst
(
$obj
->
firstname
)
.
'</td>'
;
if
(
$obj
->
login
)
if
(
$obj
->
login
)
{
{
print
'<td><a href="fiche.php?id='
.
$obj
->
rowid
.
'">'
.
$obj
->
login
.
'</a></td>'
;
print
'<td><a href="fiche.php?id='
.
$obj
->
rowid
.
'">
'
.
img_file
()
.
'
'
.
$obj
->
login
.
'</a></td>'
;
}
}
else
else
{
{
print
'<td><a class="impayee" href="fiche.php?id='
.
$obj
->
rowid
.
'">Inactif</a></td>'
;
print
'<td><a class="impayee" href="fiche.php?id='
.
$obj
->
rowid
.
'">
'
.
img_file
()
.
'
Inactif</a></td>'
;
}
}
print
'<td>'
.
$obj
->
code
.
'</
TD
>'
;
print
'<td>'
.
$obj
->
code
.
'</
td
>'
;
print
"</tr>
\n
"
;
print
"</tr>
\n
"
;
$i
++
;
$i
++
;
}
}
...
@@ -83,7 +89,7 @@ if ($result)
...
@@ -83,7 +89,7 @@ if ($result)
}
}
else
else
{
{
print
$db
->
error
();
dolibarr_print_
error
(
$db
);
}
}
$db
->
close
();
$db
->
close
();
...
...
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