Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Sobota, 28. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  [How To] : Showing directly the "View" mode

phpMyEdit Configuration     [How To] : Showing directly the "View" mode
Odoslať novú tému   Odpovedať na tému    
 
cbek     Založený: 25.10.2008   Príspevky: 27  
Príspevok 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  
Príspevok 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    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov