| Index
» Projekty
» phpMyEdit
» Fórum
» vertical table? |
 |
mrscripto
Založený: 03.04.2004
Príspevky: 10
Zaslal: 2004-04-05 00:05
Návrat hore
Odpovedať s citátom
|
Another question for the pros
Is there a way to run the results of a table vertical instead of horizontal? I have some tables that only have one record, and are used for configuration options. For example:
Table name = user_options
columns = id, allow_login, show_name, show_address, etc.
So I want it to look more like a form where you can change each option to Yes or No, and just have a submit button at the bottom.
Is this possible?
Regards,
MrS
|
michal
Založený: 17.06.2003
Príspevky: 537
Bydlisko: Slovakia
Zaslal: 2004-04-05 21:10
Návrat hore
Odpovedať s citátom
|
you can jump directly to View mode. it will show only one record with values vertical. tabs can be usefull too.
so page.php?operation=View&rec=1
bevare, View is (so far) language specific. rec is value of your key field.
the link should be identical to the one with text links.
|
mrscripto
Založený: 03.04.2004
Príspevky: 10
Zaslal: 2004-04-05 21:40
Návrat hore
Odpovedať s citátom
|
So the record would only be viewable but not editable?
Regards,
MrS
|
michal
Založený: 17.06.2003
Príspevky: 537
Bydlisko: Slovakia
Zaslal: 2004-04-05 22:37
Návrat hore
Odpovedať s citátom
|
AFAIK there is a 'change' button in view mode (if change enabled).
also you will have to jump to view mode after change. see a forum debate here below (doug started it and the result was
| Kód: |
$this->operation=$this->labels['View'];
$this->rec=$this->get_cgi_vars('rec');
$this->recreate_fdd();
$this->recreate_displayed();
|
in the after trigger
(if i remember well)
or some uglier hack so that users don't jump to list mode.
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|