From: Ondrej J. <ne...@po...> - 2002-10-30 11:43:35
|
Maxim, 12:21:26 30. oktober 2002 (streda) Greetings! > On the proposal of Ondrej Jombik, I would like to begin a "brainstorming" > about the setup of a CSS classes generation policy for PHPMyEdit. Yesterday, late night I made long think about the issue and here are my rough notes: 1. Basic CSS configuration will be using $opts['css'] array/hash. 2. We have at least following suboptions: ['prefix'] - default value is "pme_" ['dividor'] - well this should have better name, but it says how many list table rows should have own number before starting counting from 0; value of -1 means every row has its own number ['buttons_pos'] - if the buttons should get their class name according to possition on page name (ie. pme_button_down) ['buttons_type'] - if the buttons should get their class name according to type (ie. pme_button_search) ['buttons_func'] - similary functionality (pme_button_next) If more from buttons_* option is turned on, the result class name will be joined in one string. Example: pme_button_down_change. 3. Similar booleans (they should not be letter flags?) must have other elements, such as <hr>, so ['hr_pos'] = true -> pme_hr_up, pme_hr_down 4. There are two types of screen: table listing and one record display. 5. There are three types of buttons: - table list action buttons: next, prev, add, view, delete, copy, change - record display action buttons: save, more, cancel, delete, [apply] - search buttons: search, hide, cancel, query 6. Every column can have new option ['css'] ($opts['fdd']['col']['css']). 7. Column ['css'] has: ['postfix'] - what to add to all classes that are connected with this column (so its TH class will get this postfix, also its filter input field, also its TDs); this will allow us to have for example one col hightlighted with different color what other cols; rather cool, isn't it? This covers only part of whole problematic. Please feel free to write your notes to described issue and/or some new ideas. They are welcome and appreciated! =Nepto= ____________________________________________________________________________ Ondrej 'Nepto' Jombik, Open Source software developer, http://www.platon.sk/ |