|
Poznámky k chybe |
hbernard
2003-04-04 22:50
|
will post a patch very very soon for that |
|
|
hbernard
2003-04-05 13:00
|
OK, I uploaded the files :
- phpMyEdit.class.php is the patched version
- diff.txt is the diff against cvs version
- notebooktest.sql and .php are a test case.
Notes :
- You may get rid of //<HB and //>HB tags in the code, these are just a convenient for handling the changes I make in the CVS code.
[If you commit, a mention of my copyright in the changelog would be nice for my employer ;-)]
- I added $opts["notebookoptions"]="..." for handling notebook mode
- in the field specifications, the "newpage" value is the name of the new tab, starting with this field.
There are some issues with this patch :
- Tab css properties are hardcoded. Ondrej, I think you may have a look at it in order to make it the "right" way (I mean, yours, for consistency)
- for Hiding/Showing tabs, I use "display" style properties, which is not necessary honored by all brothers (according to CSS2 documentation)
It may be necessary to add a persistent variable which allow user to allow/disallow the notebook mode.
- because display of fields depends of the view (ADD, COPY, etc...) There may be tabs without any fields to show. These should be hidden.
I will post a additionnal patch for that.
- it fixes also the bug #64 (copy validation) which revealed during the tests.
I tested it on
- Internet Explorer 5 on Win2K
- Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030327 Debian/1.3-4
I didn't notice any side effect when disabling notebook, so maybe it could go into cvs (?)
Regards.
Hugues
edited on: 2003/04/05 13:51
edited on: 2003/04/05 14:55
edited on: 2003/04/06 00:43 |
|
|
nepto
2003-04-06 03:56
|
Well, I'm not certain what does this thing do, thus I must apply patch localy and see what happend.
However, this is issue of 5.4 release, since 5.3 will go out early (and I do not want to introduce new features just before new release). |
|
|
hbernard
2003-04-06 11:57
|
that's OK. with 'go into cvs' I meant 'after 5.3 release'.
About what it does, maybe the right english word is 'tabbed interface' IE mutiple tabs containing the fields in order not to have a long and ugly list of fields.
I appended the patched phpMyEdit.class.php, so you dont have to apply localy the diff.
Another issue with it is the way we should handle field'layout options.
Currently, it is just a simple "newpage" => "name of my tab" that tell PME to start a new tab from this field.
Maybe a more generic way for additionnal layout options could be better.
(I think that having potentially more than one field by line would be nice, for example)
edited on: 2003/04/06 19:41 |
|
|
nepto
2003-04-06 21:42
|
This feature does not work in Opera browser. Here is more information about this user agent.
Version information
-------------------
Version 6.01
Build 175
Platform Linux
System i586, 2.4.19-diskless
Java No Java Runtime Environment installed
Browser identification
----------------------
Opera/6.0 (Linux 2.4.19-diskless i586; U) [en] |
|
|
nepto
2003-04-06 21:54
|
Concerning to your previous bugnote, we have to:
1. Find better name for this feature (in my meaning is notebook == laptop ;-) Something with "tab" in name should be good.
2. Fing the good names for configuration options (['notebookoptions'] is not good, ['newpage'] too).
3. Make this working in all major browsers (MSIE, NN>=7, Konqueror, Mozilla, Opera; Lynx and Links are not obligated).
4. Find proper CSS class names for these elements (this is my task).
5. Find proper names for JavaScript variables and function names (again my task).
That's all fols for now. I think this is nice feature, however I'm affraid of situations, when switching to another tab will not work. We have to minimize possibility of this situation.
When 5.3 will go out, I will probably upload here patch for this. Than many users can try this with patch + 5.3 release and give you (us) some feedback. |
|
|
hbernard
2003-04-06 22:33
|
1. 2. OK. I take this ones. Something like 'Tabbed Layout' ? and $layout["tabs"]=... ?
3.
MSIE 5 is OK
Mozilla (unstable branch) is OK
I will test against Konqueror very soon
I have appended a .html people may just open with their preferred browser.
(and test !)
I m currently extending this in order to display several field / row (see the first tab in the sample.html appended) |
|
|
nepto
2003-04-07 02:36
|
Yes I see. This was not possible with your first patch. However try to keep things simple. |
|
|
hbernard
2003-04-08 23:09
|
Here is a APi proposal :
global options :
$opts["display"]["layouts"] = boolean;
(because I think it make sense to :
- make this feature turn on explicit
- allow users to turn off
...considering the 'display' DHTML properties may be not honored by some brother in the near future, and to allow user with lynx, for example to continue to use a layouted page.
$opts["layouts"] = Array ( "fieldname" => "tabname", "fieldname10" => "other tabname"}
if not specified, the tab name will be set to the first field of the tab.
field options :
$opts['fdd']['fieldname']['layout'] = 'T'; -> start a new tab
$opts['fdd']['fieldname']['layout'] = 'C'; -> continue on the same line.
$opts['fdd']['fieldname']['layout'] = 'L'; -> start a new line would be the default (as now) [L for line, i didn't want to use R for row to avoid confusion with otions["R"] flag.
'T' override 'C' (else : non-sense)
What do you think ?
Api names arent specific to tab because
- I can imagine other way for showing multiple level form (drop down, for example)
- it integrates better the multiple fields on the same line |
|
|
nepto
2003-04-09 02:15
|
I uploaded a "notebook" patch, which can be used with official phpMyEdit 5.3 release. Just if users wans give a try.
See file notebook-patch-for-phpMyEdit-5.3.diff (5,590 bytes) above. |
|
|
nepto
2003-04-13 23:59
|
Was you able to update your feature to work also in Opera browser? |
|
|
anonymous
2003-04-15 22:20
|
Opera 6 isn't truely DHTML compiliant, I wasn't able to dynamically do something with the display CSS properties.
Opera 7 is OK and behave just like IE and gecko do. |
|
|
hbernard
2003-04-15 22:31
|
[Sorry, I forgot to log in before posting the previous comment]
Some precisions :
- The test was OK on Opera 7.1.0 Beta 1 / Debian Linux [same code]
- Opera 6 _honor_ display properties on first load of the page but does nothing dynamically with it.
What do you think about API proposal so I can make a patch against 5.3 or fresh CVS ? |
|
|
nepto
2003-05-18 11:07
|
OK, we have to move this thing on as it could appear in 5.4 release.
For the begin just tell me what is meant with "continue on the same line" (L flag). What is its aim? |
|
|
hbernard
2003-06-17 12:40
|
Ooops, sorry It was not easy to connect last month.
the L/C flag aimed at having the ability to have multiple fields on the same line.
But now, I think we should first implement robust tabbed view, and delay multiple fields-per-line implementation
So API proposal is :
$opts["display"]["layouts"] = boolean;
===> Enable/Disable tabbed view
$opts["layouts"] = Array ( "fieldname" => "tabname", "fieldname10" => "other tabname"}
===> Default tab name will be "Tab-x", or you have to specify here which name do you want.
$opts['fdd']['fieldname']['layout'] = 'T';
===> start a new tab from this field. |
|
|
nepto
2003-06-18 12:35
|
OK, looks good. Wolcano was looking into Borland C++ builder how these components should be called. There they are called "TabControl" or "PageControl" and the particular entires are called "tabs".
So I propose this API:
$opts['display']['tabcontrol'] = boolean;\
- or -
$opts['display']['tabs'] = boolean;
I consider as a very important to have "tab" substring in option names, since it is much more understandable what are options doing. Thus here is my proposal for field option:
$opts['fdd']['col_name']['newtab'] = 'Tab name';
- or -
$opts['fdd']['col_name']['tab'] = 'Tab name';
With this approach we can ommit $opts['layouts'] completelly, what it considered from my point of view as very desirable. |
|
|
hbernard
2003-06-18 13:27
|
$opts['display']['tabs'] = boolean;
and
$opts['fdd']['col_name']['newtab'] = 'Tab name';
are fine with me.
From a API point of view, I agree with ommit $opts['laouts'],
I think it was just a way to code easily the tabs drawing in my first draft.
Will check if there in no side effect. |
|
|
nepto
2003-06-18 13:39
|
OK, everything seems to be correctly specified. Let me know if you are going to prepare patch against current CVS version. If not, I will probably implement this feature sometimes during the weekend. I believe that code from the uploaded patches and files could be partially used. |
|
|
hbernard
2003-06-18 15:16
|
I did not have any time to test current CVS version.
If you don't mind to make the patch....
The uploaded patch can be used, majors changes will be in the tabs drawing parts, I think.
I will work on other (tiny ;-) improvement I would like to see in PME |
|
|
nepto
2003-06-21 13:55
|
OK, an initial commit was done. I recognize to remove $opts['display']['tabs'] functionality. Just define
$opts['fdd']['col_name']['tab'] = 'Tab name goes here'
and see the results.
I will appreciate any feedback redarging to this. |
|
|
nepto
2003-06-23 23:26
|
Users reported, that this does not work in MSIE. I mean both, CVS version as well as notebooktest.html. Is there a possibility to fix this? |
|
|
nepto
2003-06-25 14:35
|
Confirmed, that this feature is working with certain version of Opera browser:
Version information
-------------------
Version 7.11
Build 406
Platform Linux
System i586, 2.2.22k5
Qt library 3.0.5
Java No Java Runtime Environment installed
Browser identification
----------------------
Mozilla/4.0 (compatible; MSIE 6.0; Linux 2.2.22k5 i586) Opera 7.11 [en] |
|
|
hbernard
2003-06-27 09:03
|
Which version of MSIE ? Can your correspondants post here more details (version, outputs, ...)
Tests are OK with MSIE 5.x on Windows 2000
(in fact this was the target environnement for the first patch...)
In vacation for a week, I will look at this July, the 5/6th.
CORRECTION:
See bug note below, It doesnt work "as is" with IE5. Can someone confirm it works (or not) with IE6 ?
edited on: 2003/07/09 18:34 |
|
|
hbernard
2003-07-09 18:32
|
Concerning again the bug note :
nepto
2003/06/23 23:26
the trouble seems to come from the line :
+ document.getElementById(current_page+"_tab").style.background = "inherit";
the 'inherit' parameter isnt handled by IE 5
a work-around is to subst "none" in place of "inherit"
I uploaded a sample file named notebooktest-2.html which works on
Windows 2000 Pro SP3+
IE5.00.3503.1000
But I m not sure how it affects css style.
Please tell me what do you think...
edited on: 2003/07/09 18:40 |
|
|
nepto
2003-07-09 21:49
|
Tested with MS IE 6.0.2800.1106.xpsp1.020828-1920 runing on Windows XP on Linux vmWare. notebooktest.html does not work well, however notebooktest-2.html works well.
I also saw on the Opera browser 7.11, that the TAB background color is not restored properly. But the TAB switching works properly.
After performing mentioned change, I think we have TAB switching properly working on Opera, Mozilla and MS IE. I will appreciate any tests with recent CVS version. |
|
|
nepto
2003-07-24 14:46
|
CSS classification was finally implemented for TABs feature.
Now all what it is needed to do is to write manual section regarding this feature. |
|
|
nepto
2003-07-28 10:05
|
TABs feature was added into documentation into its own separate section. Now it waits for Doug's corrections of english grammar.
So now we have basic TABs functionality implemented with proper CSS classifications. If this feature needed to be extended, please create new bug-tracking entry instead of reopening this bug. |
|
|
|
História chýb |
|
Dátum poslednej úpravy |
Používateľské meno |
Pole |
Zmeniť |
|
2003-04-04 22:48 |
hbernard |
Nová chyba |
|
|
2003-04-04 22:49 |
hbernard |
Chyba monitorovaná: hbernard |
|
|
2003-04-04 22:50 |
hbernard |
Poznámka k chybe pridaná: 0000112 |
|
|
2003-04-05 12:48 |
hbernard |
Pridaný súbor: : diff.txt |
|
|
2003-04-05 12:50 |
hbernard |
Pridaný súbor: : phpMyEdit.class.php |
|
|
2003-04-05 12:51 |
hbernard |
Pridaný súbor: : notebooktest.php |
|
|
2003-04-05 12:52 |
hbernard |
Pridaný súbor: : notebooktest.sql |
|
|
2003-04-05 13:00 |
hbernard |
Poznámka k chybe pridaná: 0000113 |
|
|
2003-04-05 13:51 |
hbernard |
Poznámka k chybe upravená: 113 |
|
|
2003-04-05 14:55 |
hbernard |
Poznámka k chybe upravená: 113 |
|
|
2003-04-06 00:43 |
hbernard |
Poznámka k chybe upravená: 113 |
|
|
2003-04-06 03:56 |
nepto |
Poznámka k chybe pridaná: 0000127 |
|
|
2003-04-06 11:57 |
hbernard |
Poznámka k chybe pridaná: 0000129 |
|
|
2003-04-06 19:41 |
hbernard |
Poznámka k chybe upravená: 129 |
|
|
2003-04-06 21:42 |
nepto |
status |
nový => reakcia |
|
2003-04-06 21:42 |
nepto |
Poznámka k chybe pridaná: 0000132 |
|
|
2003-04-06 21:54 |
nepto |
Poznámka k chybe pridaná: 0000135 |
|
|
2003-04-06 22:33 |
hbernard |
Poznámka k chybe pridaná: 0000138 |
|
|
2003-04-06 22:34 |
hbernard |
Pridaný súbor: : notebooktest.html |
|
|
2003-04-07 02:36 |
nepto |
Poznámka k chybe pridaná: 0000140 |
|
|
2003-04-07 17:12 |
anonymous |
Chyba monitorovaná: anonymous |
|
|
2003-04-08 23:09 |
hbernard |
Poznámka k chybe pridaná: 0000158 |
|
|
2003-04-09 01:56 |
nepto |
Pridaný súbor: : notebook-patch-for-phpMyEdit-5.3.diff |
|
|
2003-04-09 02:15 |
nepto |
Poznámka k chybe pridaná: 0000159 |
|
|
2003-04-13 23:59 |
nepto |
Poznámka k chybe pridaná: 0000188 |
|
|
2003-04-15 22:20 |
anonymous |
Poznámka k chybe pridaná: 0000189 |
|
|
2003-04-15 22:31 |
hbernard |
Poznámka k chybe pridaná: 0000190 |
|
|
2003-05-18 11:07 |
nepto |
Poznámka k chybe pridaná: 0000279 |
|
|
2003-06-17 12:40 |
hbernard |
Poznámka k chybe pridaná: 0000292 |
|
|
2003-06-18 12:35 |
nepto |
Poznámka k chybe pridaná: 0000295 |
|
|
2003-06-18 13:27 |
hbernard |
Poznámka k chybe pridaná: 0000299 |
|
|
2003-06-18 13:39 |
nepto |
Poznámka k chybe pridaná: 0000300 |
|
|
2003-06-18 15:16 |
hbernard |
Poznámka k chybe pridaná: 0000301 |
|
|
2003-06-21 13:55 |
nepto |
Poznámka k chybe pridaná: 0000304 |
|
|
2003-06-23 23:26 |
nepto |
Poznámka k chybe pridaná: 0000305 |
|
|
2003-06-25 14:35 |
nepto |
Poznámka k chybe pridaná: 0000306 |
|
|
2003-06-27 09:03 |
hbernard |
Poznámka k chybe pridaná: 0000307 |
|
|
2003-07-09 18:32 |
hbernard |
Poznámka k chybe pridaná: 0000311 |
|
|
2003-07-09 18:34 |
hbernard |
Poznámka k chybe upravená: 307 |
|
|
2003-07-09 18:38 |
hbernard |
Pridaný súbor: : notebooktest-2.html |
|
|
2003-07-09 18:40 |
hbernard |
Poznámka k chybe upravená: 311 |
|
|
2003-07-09 21:49 |
nepto |
Poznámka k chybe pridaná: 0000312 |
|
|
2003-07-24 14:46 |
nepto |
Poznámka k chybe pridaná: 0000326 |
|
|
2003-07-28 10:05 |
nepto |
status |
reakcia => vyriešený |
|
2003-07-28 10:05 |
nepto |
Poznámka k chybe pridaná: 0000335 |
|
|
2003-07-28 10:05 |
nepto |
handler_id |
=> nepto |
|
2003-07-28 10:05 |
nepto |
resolution |
otvorený => vyriešený |
|
2003-10-29 12:58 |
anonymous |
Ukončiť monitorovanie chyby: anonymous |
|
|
2004-02-20 13:15 |
nepto |
status |
vyriešený => uzavretý |