| Index
» Projekty
» phpMyEdit
» Fórum
» Making a searchable list |
 |
houghi
Založený: 18.04.2008
Príspevky: 11
Zaslal: 2008-04-22 22:08
Návrat hore
Odpovedať s citátom
|
This is not a question, but just a comment on how I do things.
Sometimes you do not want the buttons visible. For me this is because I want to have a list that is searchable.
What I have done is the following change in phpMyEdit.class.php
| Kód: |
// Comenting out the follwoing lines disables the default view of the
// if (! $this->nav_up() && ! $this->nav_down()) {
// $this->navigation .= 'D'; // down position is default
// } |
Then in the table created by PME, I only have the Filter option for the user:
| Kód: |
| $opts['options'] = 'F' |
This is more a security then anything else. That way people can not do something I wuld not expect them to do.
Also I do not select any button position:
| Kód: |
$opts['navigation'] = 'G';
|
If I so desire, I can still enable the buttons on other pages. Understand that you will NOT see next and previous page. I am just looking how to get the search mode as dedault.
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|