| Index
» Projekty
» phpMyEdit
» Fórum
» page mode and language |
 |
hbernard
Založený: 23.03.2003
Príspevky: 159
Bydlisko: FRANCE
Zaslal: 2004-04-13 11:48
Návrat hore
Odpovedať s citátom
|
| Doug Hockinson Napísal: |
Will the following code work as expected if the user's HTTP_ACCEPT_LANGUAGE is _NOT_ English? Or is there a better method to determine if the current page mode is List mode?
| Kód: |
$opts['language'] =
$HTTP_SERVER_VARS['HTTP_ACCEPT_LANGUAGE'];
$operation = $HTTP_GET_VARS['operation'];
if(!isset($operation)) {
$operation = $HTTP_POST_VARS['operation'];
}
if(
$operation == ''
&& $moreadd != 'More'
&& $morechange != 'Apply'
)
{
// Current page operation is List mode
}
|
|
Well, page_type should be an hidden variable of every forms in PME., but this is not the case.
Sorry, this will not work in other languages.
But if you use some cut and paste from the main class, you may directly replace 'More' and 'Apply' with good translated labels.
Then, this will work.
But, as said, page_type should be an available cgi value, but this this is not the case currently
_________________ hbernard - phpMyEdit updater.
|
michal
Založený: 17.06.2003
Príspevky: 537
Bydlisko: Slovakia
Zaslal: 2004-04-13 12:21
Návrat hore
Odpovedať s citátom
|
this will not work even for english users. i have pme configured (on same pages) to jump directly to view mode after insert.
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|