| Index
» Projekty
» phpMyEdit
» Fórum
» [How To] : Showing directly the "View" mode |
 |
cbek
Založený: 25.10.2008
Príspevky: 27
Zaslal: 2008-10-28 13:48
Návrat hore
Odpovedať s citátom
|
This post is not a question but it's a "How To" !
The aim is to explain you how to directly show the "View" mode and to let you "Edit" the record if needed.
| Kód: |
if ($_POST['PME_sys_operation'] != 'Modifier') {
$opts['cgi']['overwrite']['PME_sys_operation'] = 'PME_op_View';
$opts['cgi']['overwrite']['PME_sys_rec'] = $MemberID;
}
|
Note :
1- This code is made for France, so you will need to change 'Modifier' by the Equivalent in your language (I did not find a way to avoid this language issue).
2- As this code will display a record, you will need to define it. In my case, the Key column is the MemberId ($MemberID).
Hope this will help you...
Cyril.
|
daleu
Založený: 06.02.2012
Príspevky: 1
Zaslal: 2012-02-06 23:48
Návrat hore
Odpovedať s citátom
|
| cbek Napísal: |
This post is not a question but it's a "How To" !
The aim is to explain you how to directly show the "View" mode and to let you "Edit" the record if needed.
| Kód: |
if ($_POST['PME_sys_operation'] != 'Modifier') {
$opts['cgi']['overwrite']['PME_sys_operation'] = 'PME_op_View';
$opts['cgi']['overwrite']['PME_sys_rec'] = $MemberID;
}
|
Note :
1- This code is made for France, so you will need to change 'Modifier' by the Equivalent in your language (I did not find a way to avoid this language issue).
2- As this code will display a record, you will need to define it. In my case, the Key column is the MemberId ($MemberID).
Hope this will help you...
Cyril. |
Just found this Cyril. It did help! Here's my change for English:
if ($_POST['PME_sys_operation'] != 'Change') {
$opts['cgi']['overwrite']['PME_sys_operation'] = 'View';
$opts['cgi']['overwrite']['PME_sys_rec'] = $RecID;
}
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|