|
Poznámky k chybe |
anonymous
2003-03-14 15:35
|
I suggest buttons "first page" and "last page",
Vincent Mayoux - vmayoux@univ-tlse2.fr |
|
|
nepto
2003-03-14 22:12
|
Did you mean these buttons in existing collection, before Prev and after Next buttons? |
|
|
hbernard
2003-04-04 22:35
|
for my part, i would vote.
[ << ] [ < ] [ 22 v] [ > ] [ >> ]
(where [ 22 v ] is a pulldown which also act to display page number)
In addition, sometime the 'pagenumber' is not really a good usuability information.
Displaying (in the combo) list of specified field value of the first record of each page would be a gread improvement.
I will try. |
|
|
nepto
2003-04-06 03:37
|
I plaanning to implementent both: additional buttons and puldown menus. Your described way seems to be a good one.
However this issue is moved for 5.4 release, since 5.3 has now after CSS handling implementation feature freeze, thus only bugs will be fixed before 5.3 goes out. |
|
|
michal
2003-11-15 15:03
|
a very ugly hack is to include
echo '<input class="',$this->getCSSclass('prev', $position);
echo '" type="submit" name="fm" value="',$total_recs-$this->inc,'"> ';
in function display_list_table_buttons($total_recs, $position)
however it works only with Down buttons. the fm variable is defined after the Upper buttons .... |
|
|
phirschybar
2003-11-30 16:56
|
Has anyone tackled this with a solution which works with the current release? A dropdown with the pagenumbers sounds ideal for me. Any idea how to create that hack with the curent release? |
|
|
hbernard
2003-12-27 12:16
|
Uploaded patch : "fastmove.diff" (against 1.103 cvs)
Full patched class : "phpMyEdit.class.fastmove.php"
Please note you have to update your language file, adding a line like this :
'Go to' =>'Go to',
or 'Go to' =>'Aller à' (french name)
or whatever you write "Go to" in your language.
This patch implements feature discussed above.
______________
API addition :
$opts['navigation'] can have now
- 'S' : This is for 'simple' buttons prev/next (this is default && current behavior)
- 'E' : This is for 'enhanced' navigation features
______________
New features :
When 'E' is set, you have new list-buttons right to "operation" buttons :
BUTTONS : [<<] [<] [Go to] [12 v] [>] [>>]
1 2 3 4 5 6
CSSNAMES first/prev-e / goto /gotoselect/next-e/last
FORMNAMES navoperation except (4) whose name is fm(up|down)
1. is first navoperation => You go to first page
2. is like the prev button => You go to the previous page
3. is jump navoperation => You go to selected page (see 4)
4. is a dropdown to select the page you want to go.
If javascript is enabled, then this make a goto when released
If javascript is disabled, then you have to click on the 'Go to' button. (see 3)
5. is like the next button => You go to the next page
6. is last navoperation => You go to the last page
If we already are in the first page, then (1) && (2) are disabled
If we already are in the last page, then (4) && (6) are disabled
If we are doing a listall, all buttons && dropdowns are disabled
Nav buttons are packed without to visualy group them
__________________________________________
Specific internal changes/implementations :
* 'prev' and 'next' class properties and CGI vars are not defined anymore.
all navigation's submit buttons use 'navoperation' name.
I don't think there are a lot but this will break people using 'next'/'prev' CGI vars.
* first page is fm=0
* last page is fm=(int)($totalrecs/$this->inc)*$this->inc
* '<', '>', '<<', '>>' are hardcoded, like the non-graphical filter buttons.
* the dropdowns' names are navfmup and navfmdown. A test is performed against fm to know which one was changed
(if both were changed, then the upper is take into account)
* there is a on-click handler on dropdowns that make a form.submit() when released.
________
Testing:
Tests are OK on IE55/Win2K/SP4 (with or without js)
Tests are OK on latest links && lynx provided by cygwin.org
________________________
What is not implemented :
Sometime the 'pagenumber' is not really a good usuability information.
Displaying (in the combo) list of specified field value of the first record of each page would be a gread improvement.
Another bug report is needed for traking this, and this will perform maybe too much sql querys (one/page)
_________________________
Back to the maintainer ;-)
Maybe there are better names for simple/enhanced API. (Doug ?)
Maybe you want to keep 'prev' && 'next' CGI vars (I hope you won't)
Maybe consider to make 'E' default behavior (to let users know about it)
Maybe replace 'Go to' label by '=>' in order to avoid patching all language files. I didn't find it very usuable.
Maybe you want to make js user-configurable (but I didn't know were to put this API.)
Nepto, this is a "must have" and I hope you didn't freeze upcoming 5.4, because I think there are <<lots of>> people asking for it.
Tell me if you want better user documentation than the above.
Language files need to be updated, maybe a post on the mailing list could help.
phpMyEditSetup.php need a change in comments about 'navigation' option. |
|
|
michal
2003-12-27 13:35
|
congratulations, it is a very nice patch.
tests on konqueror: navigation to next, first,.. is ok
dropdown box: will not auto submit. patch
onChange="return this.form.submit();"
instead of onclick (inspired by phpMyAdmin's select database where it is onChange="this.form.submit();") |
|
|
phirschybar
2003-12-28 21:52
|
Great solution and thankyou for your efforts.
One bug to note:
In IE6/Windows XP/javascript enabled, the dropdown is not functioning properly. When I click the down arrow, it immediately skips to the first page. In other words, it doesn't allow you to make your selection.
CORRECTION: Tried again with Michal's solution above... working just fine!
edited on: 2003-12-28 21:55 |
|
|
hbernard
2003-12-29 07:17
|
Uploaded files : "fastmove2.diff" && "phpMyEdit.class.fastmove2.php"
Tests OK with :
- text only browsers (latest lynx/links) / Windows+Cygwin
- Konqueror
- MSIE55 /Win2K
- MSIE6 / WinXP
- Galeon 1.3.2 / Mandrake 9.1
- Mozilla 1.5 / Win2K
- Opera 7.23 / Win2K
UPDATE : "fastmove3.diff"
There was a bug (when there was exactly $this->inc records on the last page, the last page was an empty one)
Change is replacing (int)($total_recs/$this->inc) with
(int)(($total_recs-1)/$this->inc) for computing the last page value
edited on: 2003-12-29 09:58 |
|
|
hbernard
2004-01-03 11:45
|
Here is a new (my last) version of the patch agains current CVS (v1.112)
Please read bugnote <<hbernard - 2003-12-27 12:16>> for full implementations details
+ I've slightly changed the new htmlSubmit() to meet my needs.
- added a $disabled flag
- added a test on $label to make this work without full patched language file. (maybe you will remove it)
.... but maybe you wanted to make a separate htmlSubmit_list() ?
+ onChange replacing onClick to make this work with all browsers
Tested with :
MSIE55, Mozilla, Opera, lynx, links, Galeon
Reading above comments, this should work with MSIE6, Konqueror.
So it's to nepto to agree or to change design choices. |
|
|
michal
2004-01-06 01:23
|
tests ok also on my side. i hope to see this in CVS as soon as possible |
|
|
phirschybar
2004-01-06 03:50
|
IE5.2 for MAC OSX BUG:
- The 'Goto' button is reduced to a tiny sliver of a button in this browser. Therefore the goto button is not available.
- Not a big deal if Javascript is enabled but possibly difficult to understand the function of the dropdown with the Goto text not showing. |
|
|
hbernard
2004-01-06 06:57
|
phirschybar :
I think this is a CSS issue, so what happen if you change the class name "goto" to something else ("gotofoo", for example) |
|
|
nepto
2004-01-09 18:24
|
Hi ppl,
I tried hbernard's patch at home and it worked well. However I forgot my laptop at home, thus I cannot commit it now. I will do that in Monday.
Just few notes aboutalternations I made: I removed nav_simple() and nav_enhanced() related options. I just added First, Last and Goto buttons into standard button set. I think it is logical, because which buttons has to be displayed and so, can be controlled by "button display order" patch, which will be considered after 5.4 release.
See
http://platon.sk/projects/bug_view_advanced_page.php?f_bug_id=152
for more information.
What do you think about this approach?
Thanks,
Nepto |
|
|
hbernard
2004-01-09 19:30
|
Well, I agree with your approach, but then
1. I suppose (I hope ;-) you change the 'default' button's order to have :
first/previous/goto/next/last together (?)
2. It would be nice if those buttons were hidden (and not only disabled) when user is requering an explicit list-all ($opts['list'] <= 0) |
|
|
nepto
2004-01-12 06:54
|
Fresh uploaded patch is the one commited into CVS.
Language files was modified as well (new keys "First", "Last", "Go to").
IMPORTANT: this feature will NOT work without these new language keys!
Let me know if that desirably works for you, so I can close this bug report.
Concerning to your questions:
1. Yes. ;-)
2. Could be considered... |
|
|
hbernard
2004-01-12 10:34
|
1. Maybe I wouldn't have split first/previous and last/next/goto buttons, but this does not matter very much.
2. Uploaded patch : "hb-fatsmove5.diff", which don't display navop buttons when listall is explicit.
3. Uploaded "PME.lang.FR.inc", french version of the language file, with translated labels for last/first/goto |
|
|
nepto
2004-01-20 11:38
|
1. I like currently used design, where buttons are not together.
2. Commited.
3. Updated. Please beware before empty line at the end of included PHP file. It could cause problems. |
|
|
ohuijgen
2004-01-21 14:36
|
Uploaded "PME.lang.NL.inc", dutch version of the language file, with translated labels for last/first/goto and phpMyEdit-report. |
|
|
nepto
2004-01-21 17:44
|
All uploaded language files were commited into CVS. |
|
|
|
História chýb |
|
Dátum poslednej úpravy |
Používateľské meno |
Pole |
Zmeniť |
|
2003-02-24 16:01 |
nepto |
Nová chyba |
|
|
2003-02-24 16:02 |
nepto |
handler_id |
=> nepto |
|
2003-02-24 16:02 |
nepto |
status |
nový => priradený |
|
2003-03-14 15:35 |
anonymous |
Poznámka k chybe pridaná: 0000071 |
|
|
2003-03-14 22:12 |
nepto |
Poznámka k chybe pridaná: 0000074 |
|
|
2003-04-04 22:35 |
hbernard |
Poznámka k chybe pridaná: 0000111 |
|
|
2003-04-04 22:36 |
hbernard |
Chyba monitorovaná: hbernard |
|
|
2003-04-06 03:37 |
nepto |
Poznámka k chybe pridaná: 0000123 |
|
|
2003-11-15 15:03 |
michal |
Poznámka k chybe pridaná: 0000432 |
|
|
2003-11-24 17:21 |
phirschybar |
Chyba monitorovaná: phirschybar |
|
|
2003-11-30 16:56 |
phirschybar |
Poznámka k chybe pridaná: 0000442 |
|
|
2003-12-27 12:15 |
hbernard |
Pridaný súbor: : fastmove.diff |
|
|
2003-12-27 12:16 |
hbernard |
Pridaný súbor: : phpMyEdit.class.fastmove.php |
|
|
2003-12-27 12:16 |
hbernard |
Poznámka k chybe pridaná: 0000495 |
|
|
2003-12-27 13:35 |
michal |
Poznámka k chybe pridaná: 0000496 |
|
|
2003-12-28 21:52 |
phirschybar |
Poznámka k chybe pridaná: 0000499 |
|
|
2003-12-28 21:55 |
phirschybar |
Poznámka k chybe upravená: 499 |
|
|
2003-12-29 07:14 |
hbernard |
Pridaný súbor: : phpMyEdit.class.fastmove2.php |
|
|
2003-12-29 07:15 |
hbernard |
Pridaný súbor: : fastmove2.diff |
|
|
2003-12-29 07:17 |
hbernard |
Poznámka k chybe pridaná: 0000500 |
|
|
2003-12-29 09:58 |
hbernard |
Poznámka k chybe upravená: 500 |
|
|
2003-12-29 09:58 |
hbernard |
Pridaný súbor: : fastmove3.diff |
|
|
2004-01-03 11:43 |
hbernard |
Pridaný súbor: : hb-fastmove4.diff |
|
|
2004-01-03 11:45 |
hbernard |
Poznámka k chybe pridaná: 0000548 |
|
|
2004-01-06 01:23 |
michal |
Poznámka k chybe pridaná: 0000559 |
|
|
2004-01-06 03:50 |
phirschybar |
Poznámka k chybe pridaná: 0000561 |
|
|
2004-01-06 06:57 |
hbernard |
Poznámka k chybe pridaná: 0000562 |
|
|
2004-01-09 18:24 |
nepto |
Poznámka k chybe pridaná: 0000566 |
|
|
2004-01-09 19:30 |
hbernard |
Poznámka k chybe pridaná: 0000568 |
|
|
2004-01-12 06:54 |
nepto |
Poznámka k chybe pridaná: 0000574 |
|
|
2004-01-12 06:55 |
nepto |
Pridaný súbor: : hb-patch-mod-by-nepto-fastmove4.diff |
|
|
2004-01-12 10:29 |
hbernard |
Pridaný súbor: : PME.lang.FR.inc |
|
|
2004-01-12 10:31 |
hbernard |
Pridaný súbor: : hb-fastmove5.diff |
|
|
2004-01-12 10:34 |
hbernard |
Poznámka k chybe pridaná: 0000578 |
|
|
2004-01-20 11:38 |
nepto |
Poznámka k chybe pridaná: 0000638 |
|
|
2004-01-21 08:58 |
bhammar |
Pridaný súbor: : PME.lang.SE.php |
|
|
2004-01-21 11:02 |
cohen |
Pridaný súbor: : PME.lang.PT-BR.inc |
|
|
2004-01-21 14:35 |
ohuijgen |
Pridaný súbor: : PME.lang.NL.inc |
|
|
2004-01-21 14:36 |
ohuijgen |
Poznámka k chybe pridaná: 0000647 |
|
|
2004-01-21 17:44 |
nepto |
Poznámka k chybe pridaná: 0000651 |
|
|
2004-02-20 13:20 |
nepto |
resolution |
otvorený => vyriešený |
|
2004-02-20 13:20 |
nepto |
status |
priradený => vyriešený |
|
2004-02-20 13:20 |
nepto |
status |
vyriešený => uzavretý |