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
048035a0
Commit
048035a0
authored
12 years ago
by
Philippe Grand
Browse files
Options
Downloads
Patches
Plain Diff
english language standardization
parent
382d216d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/contact/fiche.php
+3
-3
3 additions, 3 deletions
htdocs/contact/fiche.php
htdocs/contact/list.php
+11
-11
11 additions, 11 deletions
htdocs/contact/list.php
with
14 additions
and
14 deletions
htdocs/contact/fiche.php
+
3
−
3
View file @
048035a0
...
...
@@ -633,7 +633,7 @@ else
print
$object
->
ref
;
print
'</td></tr>'
;
//
N
ame
//
Lastn
ame
print
'<tr><td width="20%" class="fieldrequired">'
.
$langs
->
trans
(
"Lastname"
)
.
' / '
.
$langs
->
trans
(
"Label"
)
.
'</td><td width="30%"><input name="lastname" type="text" size="20" maxlength="80" value="'
.
(
isset
(
$_POST
[
"lastname"
])
?
$_POST
[
"lastname"
]
:
$object
->
lastname
)
.
'"></td>'
;
print
'<td width="20%">'
.
$langs
->
trans
(
"Firstname"
)
.
'</td><td width="30%"><input name="firstname" type="text" size="20" maxlength="80" value="'
.
(
isset
(
$_POST
[
"firstname"
])
?
$_POST
[
"firstname"
]
:
$object
->
firstname
)
.
'"></td></tr>'
;
...
...
@@ -811,9 +811,9 @@ else
if
(
$action
==
'create_user'
)
{
// Full firstname and name separated with a dot : firstname.name
// Full firstname and
last
name separated with a dot : firstname.
last
name
include_once
DOL_DOCUMENT_ROOT
.
'/core/lib/functions2.lib.php'
;
$login
=
dol_buildlogin
(
$object
->
nom
,
$object
->
prenom
);
$login
=
dol_buildlogin
(
$object
->
lastname
,
$object
->
firstname
);
$generated_password
=
''
;
if
(
!
$ldap_sid
)
// TODO ldap_sid ?
...
...
This diff is collapsed.
Click to expand it.
htdocs/contact/list.php
+
11
−
11
View file @
048035a0
...
...
@@ -35,8 +35,8 @@ $contactid = GETPOST('id','int');
if
(
$user
->
societe_id
)
$socid
=
$user
->
societe_id
;
$result
=
restrictedArea
(
$user
,
'contact'
,
$contactid
,
''
);
$search_
nom
=
GETPOST
(
"search_
nom
"
);
$search_
prenom
=
GETPOST
(
"search_
prenom
"
);
$search_
lastname
=
GETPOST
(
"search_
lastname
"
);
$search_
firstname
=
GETPOST
(
"search_
firstname
"
);
$search_societe
=
GETPOST
(
"search_societe"
);
$search_poste
=
GETPOST
(
"search_poste"
);
$search_phone
=
GETPOST
(
"search_phone"
);
...
...
@@ -87,8 +87,8 @@ if (! empty($text)) $titre.= " $text";
if
(
GETPOST
(
'button_removefilter'
))
{
$search_
nom
=
""
;
$search_
prenom
=
""
;
$search_
lastname
=
""
;
$search_
firstname
=
""
;
$search_societe
=
""
;
$search_poste
=
""
;
$search_phone
=
""
;
...
...
@@ -142,13 +142,13 @@ else
if
(
$search_priv
==
'1'
)
$sql
.
=
" AND (p.priv='1' AND p.fk_user_creat="
.
$user
->
id
.
")"
;
}
if
(
$search_
nom
)
// filtre sur le nom
if
(
$search_
lastname
)
// filtre sur le nom
{
$sql
.
=
" AND p.name LIKE '%"
.
$db
->
escape
(
$search_
nom
)
.
"%'"
;
$sql
.
=
" AND p.name LIKE '%"
.
$db
->
escape
(
$search_
lastname
)
.
"%'"
;
}
if
(
$search_
prenom
)
// filtre sur le prenom
if
(
$search_
firstname
)
// filtre sur le prenom
{
$sql
.
=
" AND p.firstname LIKE '%"
.
$db
->
escape
(
$search_
prenom
)
.
"%'"
;
$sql
.
=
" AND p.firstname LIKE '%"
.
$db
->
escape
(
$search_
firstname
)
.
"%'"
;
}
if
(
$search_societe
)
// filtre sur la societe
{
...
...
@@ -233,7 +233,7 @@ if ($result)
$contactstatic
=
new
Contact
(
$db
);
$param
=
'&begin='
.
urlencode
(
$begin
)
.
'&view='
.
urlencode
(
$view
)
.
'&userid='
.
urlencode
(
$userid
)
.
'&contactname='
.
urlencode
(
$sall
);
$param
.
=
'&type='
.
urlencode
(
$type
)
.
'&view='
.
urlencode
(
$view
)
.
'&search_
nom
='
.
urlencode
(
$search_
nom
)
.
'&search_
prenom
='
.
urlencode
(
$search_
prenom
)
.
'&search_societe='
.
urlencode
(
$search_societe
)
.
'&search_email='
.
urlencode
(
$search_email
);
$param
.
=
'&type='
.
urlencode
(
$type
)
.
'&view='
.
urlencode
(
$view
)
.
'&search_
lastname
='
.
urlencode
(
$search_
lastname
)
.
'&search_
firstname
='
.
urlencode
(
$search_
firstname
)
.
'&search_societe='
.
urlencode
(
$search_societe
)
.
'&search_email='
.
urlencode
(
$search_email
);
if
(
$search_priv
==
'0'
||
$search_priv
==
'1'
)
$param
.
=
"&search_priv="
.
urlencode
(
$search_priv
);
$num
=
$db
->
num_rows
(
$result
);
...
...
@@ -279,10 +279,10 @@ if ($result)
// Ligne des champs de filtres
print
'<tr class="liste_titre">'
;
print
'<td class="liste_titre">'
;
print
'<input class="flat" type="text" name="search_
nom
" size="9" value="'
.
$search_
nom
.
'">'
;
print
'<input class="flat" type="text" name="search_
lastname
" size="9" value="'
.
$search_
lastname
.
'">'
;
print
'</td>'
;
print
'<td class="liste_titre">'
;
print
'<input class="flat" type="text" name="search_
prenom
" size="9" value="'
.
$search_
prenom
.
'">'
;
print
'<input class="flat" type="text" name="search_
firstname
" size="9" value="'
.
$search_
firstname
.
'">'
;
print
'</td>'
;
print
'<td class="liste_titre">'
;
print
'<input class="flat" type="text" name="search_poste" size="9" value="'
.
$search_poste
.
'">'
;
...
...
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