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
bbea0a0d
Commit
bbea0a0d
authored
17 years ago
by
Regis Houssin
Browse files
Options
Downloads
Patches
Plain Diff
Ajout positionnement sur la ligne en édition
Ajout bouton annulé Ajout confirmation de suppression d'une ligne
parent
38072ee2
Branches
Branches containing commit
Tags
Tags containing commit
Loading
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
htdocs/admin/dict.php
+20
-4
20 additions, 4 deletions
htdocs/admin/dict.php
htdocs/langs/en_US/admin.lang
+2
-0
2 additions, 0 deletions
htdocs/langs/en_US/admin.lang
htdocs/langs/fr_FR/admin.lang
+2
-2
2 additions, 2 deletions
htdocs/langs/fr_FR/admin.lang
with
24 additions
and
6 deletions
htdocs/admin/dict.php
+
20
−
4
View file @
bbea0a0d
...
@@ -200,6 +200,7 @@ $msg='';
...
@@ -200,6 +200,7 @@ $msg='';
$sortfield
=
$_GET
[
"sortfield"
];
$sortfield
=
$_GET
[
"sortfield"
];
$sortorder
=
$_GET
[
"sortorder"
];
/*
/*
* Actions ajout ou modification d'une entre dans un dictionnaire de donne
* Actions ajout ou modification d'une entre dans un dictionnaire de donne
...
@@ -312,7 +313,12 @@ if ($_POST["actionadd"] || $_POST["actionmodify"])
...
@@ -312,7 +313,12 @@ if ($_POST["actionadd"] || $_POST["actionmodify"])
$_GET
[
"id"
]
=
$_POST
[
"id"
];
// Force affichage dictionnaire en cours d'edition
$_GET
[
"id"
]
=
$_POST
[
"id"
];
// Force affichage dictionnaire en cours d'edition
}
}
if
(
$_GET
[
"action"
]
==
'delete'
)
// delete
if
(
$_POST
[
"actioncancel"
])
{
$_GET
[
"id"
]
=
$_POST
[
"id"
];
// Force affichage dictionnaire en cours d'edition
}
if
(
$_POST
[
'action'
]
==
'confirm_delete'
&&
$_POST
[
'confirm'
]
==
'yes'
)
// delete
{
{
if
(
$tabrowid
[
$_GET
[
"id"
]])
{
$rowidcol
=
$tabrowid
[
$_GET
[
"id"
]];
}
if
(
$tabrowid
[
$_GET
[
"id"
]])
{
$rowidcol
=
$tabrowid
[
$_GET
[
"id"
]];
}
else
{
$rowidcol
=
"rowid"
;
}
else
{
$rowidcol
=
"rowid"
;
}
...
@@ -386,6 +392,15 @@ print_fiche_titre($titre,'','setup');
...
@@ -386,6 +392,15 @@ print_fiche_titre($titre,'','setup');
print
$langs
->
trans
(
"DictionnaryDesc"
)
.
"<br>
\n
"
;
print
$langs
->
trans
(
"DictionnaryDesc"
)
.
"<br>
\n
"
;
print
"<br>
\n
"
;
print
"<br>
\n
"
;
/*
* Confirmation de la suppression de la ligne
*/
if
(
$_GET
[
'action'
]
==
'delete'
)
{
$html
=
new
Form
(
$db
);
$html
->
form_confirm
(
$_SERVER
[
"PHP_SELF"
]
.
'?sortfield='
.
$sortfield
.
'&sortorder='
.
$sortorder
.
'&rowid='
.
$_GET
[
"rowid"
]
.
'&code='
.
$_GET
[
"code"
]
.
'&id='
.
$_GET
[
"id"
],
$langs
->
trans
(
'DeleteLine'
),
$langs
->
trans
(
'ConfirmDeleteLine'
),
'confirm_delete'
);
print
'<br>'
;
}
/*
/*
* Affichage d'un dictionnaire particulier
* Affichage d'un dictionnaire particulier
...
@@ -535,7 +550,8 @@ if ($_GET["id"])
...
@@ -535,7 +550,8 @@ if ($_GET["id"])
print
'<input type="hidden" name="id" value="'
.
$_GET
[
"id"
]
.
'">'
;
print
'<input type="hidden" name="id" value="'
.
$_GET
[
"id"
]
.
'">'
;
print
'<input type="hidden" name="rowid" value="'
.
$_GET
[
"rowid"
]
.
'">'
;
print
'<input type="hidden" name="rowid" value="'
.
$_GET
[
"rowid"
]
.
'">'
;
fieldList
(
$fieldlist
,
$obj
);
fieldList
(
$fieldlist
,
$obj
);
print
'<td colspan="3" align="right"><input type="submit" class="button" name="actionmodify" value="'
.
$langs
->
trans
(
"Modify"
)
.
'"></td>'
;
print
'<td colspan="3" align="right"><a name="'
.
(
$obj
->
rowid
?
$obj
->
rowid
:
$obj
->
code
)
.
'"> </a><input type="submit" class="button" name="actionmodify" value="'
.
$langs
->
trans
(
"Modify"
)
.
'">'
;
print
' <input type="submit" class="button" name="actioncancel" value="'
.
$langs
->
trans
(
"Cancel"
)
.
'"></td>'
;
}
}
else
else
{
{
...
@@ -573,7 +589,7 @@ if ($_GET["id"])
...
@@ -573,7 +589,7 @@ if ($_GET["id"])
print
"</td>"
;
print
"</td>"
;
if
(
$iserasable
)
{
if
(
$iserasable
)
{
print
'<td align="center"><a href="dict.php?sortfield='
.
$sortfield
.
'&sortorder='
.
$sortorder
.
'&rowid='
.
(
$obj
->
rowid
?
$obj
->
rowid
:
$obj
->
code
)
.
'&code='
.
$obj
->
code
.
'&id='
.
$_GET
[
"id"
]
.
'&action=modify">'
.
img_edit
()
.
'</a></td>'
;
print
'<td align="center"><a href="dict.php?sortfield='
.
$sortfield
.
'&sortorder='
.
$sortorder
.
'&rowid='
.
(
$obj
->
rowid
?
$obj
->
rowid
:
$obj
->
code
)
.
'&code='
.
$obj
->
code
.
'&id='
.
$_GET
[
"id"
]
.
'&action=modify
#'
.
(
$obj
->
rowid
?
$obj
->
rowid
:
$obj
->
code
)
.
'
">'
.
img_edit
()
.
'</a></td>'
;
}
else
{
}
else
{
print
'<td> </td>'
;
print
'<td> </td>'
;
}
}
...
...
This diff is collapsed.
Click to expand it.
htdocs/langs/en_US/admin.lang
+
2
−
0
View file @
bbea0a0d
...
@@ -765,3 +765,5 @@ DetailLevel=Niveau (-1:menu top, 0:entete menu, >0 menu et sous menu)
...
@@ -765,3 +765,5 @@ DetailLevel=Niveau (-1:menu top, 0:entete menu, >0 menu et sous menu)
ModifMenu=Menu change
ModifMenu=Menu change
DeleteMenu=Delete menu entry
DeleteMenu=Delete menu entry
ConfirmDeleteMenu=Are you sure you want to delete menu entry <b>%s</b> ?
ConfirmDeleteMenu=Are you sure you want to delete menu entry <b>%s</b> ?
DeleteLine=Delete line
ConfirmDeleteLine=Are you sure you want to delete this line ?
\ No newline at end of file
This diff is collapsed.
Click to expand it.
htdocs/langs/fr_FR/admin.lang
+
2
−
2
View file @
bbea0a0d
...
@@ -771,5 +771,5 @@ DetailLevel=Niveau (-1:menu top, 0:entete menu, >0 menu et sous menu)
...
@@ -771,5 +771,5 @@ DetailLevel=Niveau (-1:menu top, 0:entete menu, >0 menu et sous menu)
ModifMenu=Modification du menu
ModifMenu=Modification du menu
DeleteMenu=Effacer entrée de menu
DeleteMenu=Effacer entrée de menu
ConfirmDeleteMenu=Etes-vous sur de vouloir supprimer l'entrée de menu <b>%s</b> ?
ConfirmDeleteMenu=Etes-vous sur de vouloir supprimer l'entrée de menu <b>%s</b> ?
DeleteLine=Suppression de ligne
ConfirmDeleteLine=Êtes-vous sûr de vouloir effacer cette ligne ?
\ No newline at end of file
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