Changeset 12009 for trunk/www/db_po
- Timestamp:
- 09/07/11 15:47:18 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/db_po/get_values.php
r11989 r12009 84 84 $_GET["fProgram"], $_GET["fKey"], $key1, $key2, $type, $min, $max, $descr); 85 85 } 86 //checkboxes to show/hide part of the table 87 printf("Show:\n"); 88 printf("<input type='checkbox' id='sh_indices1' onclick='ShowHide(\"indices\", \"sh_indices\", 1);'>indices\n"); 89 printf("<input type='checkbox' id='sh_validsince1' onclick='ShowHide(\"validsince\", \"sh_validsince\", 1);'>validsince\n"); 90 printf("<input type='checkbox' id='sh_user1' onclick='ShowHide(\"user\", \"sh_user\", 1);'>user\n"); 86 91 87 92 if ($_GET["fGetValCase"]==1)//show only in edit mode … … 92 97 printf("<table font-size='-1' border='0' cellspacing='5px' width='100%%'><tbody id='valtable%s'>\n", $_GET["fGetValCase"]); 93 98 printf("<tr>"); 94 printf("<th class='indices%d' style='display:%s'>Idx/Orig/Ctr</th>\n",$_GET["fGetValCase"], $generalshowhide); 95 printf("<th class='validsince%d' style='display:%s'>Valid since</th>\n", $_GET["fGetValCase"], $generalshowhide); 99 //printf("<th class='indices%d' style='display:%s'>Idx/Orig/Ctr</th>\n",$_GET["fGetValCase"], $generalshowhide); 100 //printf("<th class='validsince%d' style='display:%s'>Valid since</th>\n", $_GET["fGetValCase"], $generalshowhide); 101 printf("<th class='indices%d' style='display:none'>Idx/Orig/Ctr</th>\n",$_GET["fGetValCase"]); 102 printf("<th class='validsince%d' style='display:none'>Valid since</th>\n", $_GET["fGetValCase"]); 96 103 printf("<th>Program</th>\n"); 97 104 //printf("<th>Key</th>\n"); … … 105 112 if ($_GET["fGetValCase"]==1)//show only in edit mode 106 113 printf("<th>Action</th>\n"); 107 printf("<th class='user%d' style='display:%s'>User</th>\n", $_GET["fGetValCase"], $generalshowhide); 114 //printf("<th class='user%d' style='display:%s'>User</th>\n", $_GET["fGetValCase"], $generalshowhide); 115 printf("<th class='user%d' style='display:none'>User</th>\n", $_GET["fGetValCase"], $generalshowhide); 108 116 printf("</tr>\n"); 109 117 $maxindex=0; … … 121 129 printf("<tr id='%scompare%s' style='display:' bgcolor='white'>\n", $_GET["fGetValCase"], $row0[12]); 122 130 123 printf("<td class='indices%d' style='display:%s'> %s / %s / %s <div id='%dorigindex%s' style='display:none'>%s</div> </td>\n", 124 $_GET["fGetValCase"], $generalshowhide, $row0[0], $row0[12], $row0[6], $_GET["fGetValCase"], $row0[0], $row0[12]); 131 //printf("<td class='indices%d' style='display:%s'> %s / %s / %s <div id='%dorigindex%s' style='display:none'>%s</div> </td>\n", 132 // $_GET["fGetValCase"], $generalshowhide, $row0[0], $row0[12], $row0[6], $_GET["fGetValCase"], $row0[0], $row0[12]); 133 printf("<td class='indices%d' style='display:none'> %s / %s / %s <div id='%dorigindex%s' style='display:none'>%s</div> </td>\n", 134 $_GET["fGetValCase"], $row0[0], $row0[12], $row0[6], $_GET["fGetValCase"], $row0[0], $row0[12]); 125 135 //valid from 136 //if (strcmp('0000-00-00 00:00:00', $row0[1])==0) 137 // printf("<td class='validsince%d' style='display:%s' id='notyetvalid%s'> %s </td>\n", $_GET["fGetValCase"], $generalshowhide, $row0[0], $row0[1]); 138 //else 139 // printf("<td class='validsince%d' style='display:%s'> %s </td>\n", $_GET["fGetValCase"], $generalshowhide, $row0[1]); 126 140 if (strcmp('0000-00-00 00:00:00', $row0[1])==0) 127 printf("<td class='validsince%d' style='display: %s' id='notyetvalid%s'> %s </td>\n", $_GET["fGetValCase"], $generalshowhide, $row0[0], $row0[1]);141 printf("<td class='validsince%d' style='display:none' id='notyetvalid%s'> %s </td>\n", $_GET["fGetValCase"], $row0[0], $row0[1]); 128 142 else 129 printf("<td class='validsince%d' style='display: %s'> %s </td>\n", $_GET["fGetValCase"], $generalshowhide, $row0[1]);143 printf("<td class='validsince%d' style='display:none'> %s </td>\n", $_GET["fGetValCase"], $row0[1]); 130 144 //program 131 145 printf("<td id='prog%s'>%s</td>\n", $row0[0], $row0[2]); … … 161 175 } 162 176 //user 163 printf("<td class='user%d' style='display:%s' id='user%s'>%s</td>\n", $_GET["fGetValCase"], $generalshowhide, $row0[0], $row0[13]); 177 //printf("<td class='user%d' style='display:%s' id='user%s'>%s</td>\n", $_GET["fGetValCase"], $generalshowhide, $row0[0], $row0[13]); 178 printf("<td class='user%d' style='display:none' id='user%s'>%s</td>\n", $_GET["fGetValCase"], $row0[0], $row0[13]); 164 179 printf("</tr>\n"); 165 180 if ($row0[0]>$maxindex)
Note:
See TracChangeset
for help on using the changeset viewer.