Changeset 9159 for trunk/MagicSoft/Mars/datacenter/db
- Timestamp:
- 11/12/08 16:24:29 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/datacenter/db
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/db/include.php
r8467 r9159 471 471 printf("<form method='POST'>"); 472 472 if (empty($_GET["fPrintTable"])) 473 printf("<p>%s<P>\n", $menu); 474 printf("<table BORDER='0'>\n"); 473 printf("%s\n", $menu); 474 printf("<table BORDER='0' style='margin-top:1ex'>\n"); 475 $counter=0; 475 476 while ($row0 = mysql_fetch_assoc($result0)) 476 477 { 477 478 if ($first) 478 479 { 479 printf(" <tr BGCOLOR='#C0C0C0'>\n ");480 printf(" <tr BGCOLOR='#C0C0C0'>\n<td BGCOLOR='#F0F0F0'><img src='../plus.png' alt='+' onClick='showalllines(%d)'></td>\n", mysql_num_rows($result0)); 480 481 $first = FALSE; 481 482 if ($form) … … 503 504 } 504 505 506 $counter++; 505 507 if (!$col) 506 printf(" <tr BGCOLOR='#E0E0E0'>\n");508 printf(" <tr id='line%s' BGCOLOR='#E0E0E0'>\n<td BGCOLOR='#F0F0F0'>\n<img id='line%sbutton' src='../minus.png' alt='-' onClick='showhide(\"line%s\")'>\n</td>\n", $counter, $counter, $counter); 507 509 else 508 printf(" <tr BGCOLOR='#D0D0D0'>\n");510 printf(" <tr id='line%s' BGCOLOR='#D0D0D0'>\n<td BGCOLOR='#F0F0F0'>\n<img id='line%sbutton' src='../minus.png' alt='-' onClick='showhide(\"line%s\")'>\n</td>\n", $counter, $counter, $counter); 509 511 $col = !$col; 510 512 -
trunk/MagicSoft/Mars/datacenter/db/menu.js
r8476 r9159 61 61 var img = document.getElementById(id+"button"); 62 62 //query current status and change it accordingly 63 if (el.style.display == 'block')63 if (el.style.display != 'none') 64 64 hide(el,img); 65 65 else … … 106 106 var fShowHide = document.getElementById("sh"); 107 107 fShowHide.value = setdisplays(); 108 } 109 110 //show all lines on db website 111 function showalllines(num) 112 { 113 for (var i = 1 ; i < num+1 ; i++) 114 { 115 var el = document.getElementById("line"+i); 116 var img = document.getElementById("line"+i+"button"); 117 if (el.style.display == 'none') 118 { 119 el.style.display=''; 120 if (img) 121 { 122 img.src='minus.png'; 123 img.alt='-'; 124 } 125 } 126 } 108 127 } 109 128
Note:
See TracChangeset
for help on using the changeset viewer.