From: Ondrej J. <ne...@po...> - 2002-10-30 11:43:34
|
Maxim, 08:15:55 30. oktober 2002 (streda) Greetings! > My table is too wide though and I would like to be able to display the > headings vertically showing one record at a time. From reading the setup > file I know how to show one record at a time and I know how to set the > Database so that it only allows the user to view the data. What I do not > know is what coding changes are necessary change the layout from > horizontal to vertical. Well, till this morning I suppose, that it is impossible to do something like this. But than I made up my mind, and found the way how to do it. Basic principle is simple. You can force phpMyEdit to show only view page with "Change" button enabled. Another operation that will be possible is "Change". After record save, record view page will be displayed again. We should now only somelike to solve page navigiation on record view page to display prev/next record (because as you know there are only "Change" and "Cancel" buttons). It will be really strange to hardcode this particular and specific functionality into core phpMyEdit class, so I'm coming with such new phpMyEdit usability idea - extension. Extension is phpMyEdit_<something> class, which extends core phpMyEdit class, but it also adds some new functionality. Functionality described in paragraph before, will be for example in class called phpMyEdit_slide (file phpMyEdit-slide.class.php). I will add some extensions into CVS under extensions/ subdirectory. There will be at least three: mentioned phpMyEdit_slide, phpMyEdit_report for powerful table records reporting (already used) and phpMyEdit_tree for tree data structure displaying (well, I use this in one CMS to handle article messages, but it must be improved anyway). Although phpMyEdit extensions will in CVS repository, they will not became official part of distribution earlier than 6.0 release. So anyone interested in this should checkout phpMyEdit_slide extension from CVS repository (instructions are at http://www.platon.sk/ website) and test it. =Nepto= ____________________________________________________________________________ Ondrej 'Nepto' Jombik, http://www.nepto.sk/ ne...@at... |