@@ -204,14 +204,14 @@ function display_select($sth,$q){
204204 $ sqldr .=$ headers ;
205205 $ swapper =false ;
206206 while ($ row =mysql_fetch_row ($ sth )){
207- $ sqldr .="<tr class=' " .$ rc [$ swp =!$ swp ]."' onmouseover='tmv(this)' onmouseout='tmo(this)' onclick='tc(this)' > " ;
207+ $ sqldr .="<tr class=' " .$ rc [$ swp =!$ swp ]."'> " ;
208208 for ($ i =0 ;$ i <$ fields_num ;$ i ++){
209209 $ v =$ row [$ i ];$ more ='' ;
210210 if ($ is_sht && $ v ){
211211 if ($ i >0 ) break ;
212212 $ vq ='` ' .$ v .'` ' ;
213213 $ url ='? ' .$ xurl ."&db= $ dbn " ;
214- $ v ="<input type='checkbox' name='cb[]' value= \"$ vq \"></td> "
214+ $ v ="<input type='checkbox' name='cb[]' value= \"$ vq \" onclick='tc(this.parentNode.parentNode)' ></td> "
215215 ."<td><a href= \"$ url&q=select+*+from+ $ vq \"> $ v</a></td> "
216216 ."<td> " .$ row [1 ]."</td> "
217217 ."<td align='right'> " .$ row [4 ]."</td> "
@@ -268,8 +268,9 @@ function print_header(){
268268table.restr{vertical-align:top}
269269tr.e{background-color:#CCC}
270270tr.o{background-color:#EEE}
271+ tr.e:hover, tr.o:hover {background-color:#FF9}
272+ tr.s {background-color:#FF9}
271273tr.h{background-color:#99C}
272- tr.s{background-color:#FF9}
273274.err{color:#F33;font-weight:bold;text-align:center}
274275.frm{width:400px;border:1px solid #999;background-color:#eee;text-align:left}
275276.frm label.l{width:100px;float:left}
@@ -313,16 +314,14 @@ function chksql(){
313314 }
314315 return true;
315316}
316- function tmv(tr){
317- tr.sc=tr.className;
318- tr.className='h';
319- }
320- function tmo(tr){
321- tr.className=tr.sc;
322- }
323317function tc(tr){
324- tr.className='s';
325- tr.sc='s';
318+ if (tr.className=='s')
319+ tr.className=tr.sc;
320+ else
321+ {
322+ tr.sc=tr.className;
323+ tr.className='s';
324+ }
326325}
327326function lschk(skip){
328327 if (!localStorage || !skip && !localStorage[LSKX]) return false;
@@ -377,7 +376,7 @@ function chkall(cab){
377376 var e=document.DF.elements;
378377 if (e!=null){
379378 var cl=e.length;
380- for (i=0;i<cl;i++){var m=e[i];if(m.checked!=null && m.type=="checkbox"){m.checked=cab.checked}}
379+ for (i=0;i<cl;i++){var m=e[i];if(m.checked!=null && m.type=="checkbox"){m.checked=cab.checked; }}
381380 }
382381}
383382function sht(f){
@@ -1122,4 +1121,4 @@ function rw($s){#for debug
11221121 echo $ s ."<br> \n" ;
11231122}
11241123
1125- ?>
1124+ ?>
0 commit comments