Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Sobota, 28. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  A few suggestions

phpMyEdit Features     A few suggestions
Odoslať novú tému   Odpovedať na tému    
 
vsinc     Založený: 17.01.2005   Príspevky: 3  
Príspevok Zaslal: 2005-01-17 22:01
Návrat hore  Odpovedať s citátom     

Hello,

I have been playing with phpMyEdit for a couple of days now.

1. The images for view/delete/copy/edit actions are fixed size 15x16 which is not very convinient. 16x16 would be better. Or it should be ok if the dimentions are completely missing.

2. Also I noticed that when the nowrap atribute is set to true the corresponding generated code is

nowrap="nowrap"

Why do I think that the attribute is just "nowrap" and it is not even supposed to get a value.

3. Finally maybe I can contribute to the project. I believe somebody eventually will find the following piece of js usefull. I have to deal with a very long table and different colors for even and odd rows were not enough. On clicking on a cell the record's radio button gets selected and the whole record gets highlighted. It would have been nice if there was a way to have 'rowattrs' but... there is still a way to go thru the cell clicked.

To use add this to every field of the record:
Kód:
'colattrs|LF' => 'onClick="javascript: chngbgclr(this)"'


And this somewhere in the body of the calling page:
Kód:
<script type="text/javascript">
var lastClicked=0;
function chngbgclr(inObj)
{
if (lastClicked) lastClicked.style.background = "white";
theRow = inObj.parentNode;
document.phpMyEdit_form.rec[theRow.rowIndex-2].checked = true;
theRow.style.background = "lightgray";
lastClicked = theRow;
}
<script>


4. And finally is it ok (or should I say is it better) to have this added to every part of the record:
Kód:
'sqlw' => 'if[$val_gas = "", NULL, $val_gas)'



Thank you for the wonderful code you wrote.

Vladi

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov