OLD | NEW |
(Empty) | |
| 1 <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
| 2 <%@ page import="java.util.List" %> |
| 3 <%@ page import="java.util.ArrayList" %> |
| 4 <%@ page import="javax.jdo.PersistenceManager" %> |
| 5 <%@ page import="com.google.appengine.api.users.User" %> |
| 6 <%@ page import="com.google.appengine.api.users.UserService" %> |
| 7 <%@ page import="com.google.appengine.api.users.UserServiceFactory" %> |
| 8 <%@ page import="mydemo.BuildInfo" %> |
| 9 <%@ page import="mydemo.TestStatus" %> |
| 10 <%@ page import="mydemo.RegisterFeature" %> |
| 11 <%@ page import="mydemo.PMF" %> |
| 12 |
| 13 <html> |
| 14 <Head> |
| 15 |
| 16 <style type="text/css"> |
| 17 body |
| 18 { |
| 19 background-color:#d0e4fe; |
| 20 } |
| 21 |
| 22 |
| 23 </style> |
| 24 <style> |
| 25 |
| 26 |
| 27 ul#list-nav li { |
| 28 display:inline; |
| 29 } |
| 30 |
| 31 ul#list-nav li a { |
| 32 text-decoration:none; |
| 33 padding:5px 5px 5px 5px; |
| 34 background:9966ff; |
| 35 color:#eee; |
| 36 float:left; |
| 37 text-align:center; |
| 38 border-left:1px solid #fff; |
| 39 } |
| 40 |
| 41 ul#list-nav li a:hover { |
| 42 background:9999ff; |
| 43 color:#000 |
| 44 } |
| 45 |
| 46 |
| 47 </style> |
| 48 <script> |
| 49 |
| 50 var DDSPEED = 10; |
| 51 var DDTIMER = 15; |
| 52 |
| 53 // main function to handle the mouse events // |
| 54 function ddMenu(id,d){ |
| 55 var h = document.getElementById(id + '-ddheader'); |
| 56 var c = document.getElementById(id + '-ddcontent'); |
| 57 clearInterval(c.timer); |
| 58 if(d == 1){ |
| 59 clearTimeout(h.timer); |
| 60 if(c.maxh && c.maxh <= c.offsetHeight){return} |
| 61 else if(!c.maxh){ |
| 62 c.style.display = 'block'; |
| 63 c.style.height = 'auto'; |
| 64 c.maxh = c.offsetHeight; |
| 65 c.style.height = '0px'; |
| 66 } |
| 67 c.timer = setInterval(function(){ddSlide(c,1)},DDTIMER); |
| 68 }else{ |
| 69 h.timer = setTimeout(function(){ddCollapse(c)},50); |
| 70 } |
| 71 } |
| 72 |
| 73 // collapse the menu // |
| 74 function ddCollapse(c){ |
| 75 c.timer = setInterval(function(){ddSlide(c,-1)},DDTIMER); |
| 76 } |
| 77 |
| 78 // cancel the collapse if a user rolls over the dropdown // |
| 79 function cancelHide(id){ |
| 80 var h = document.getElementById(id + '-ddheader'); |
| 81 var c = document.getElementById(id + '-ddcontent'); |
| 82 clearTimeout(h.timer); |
| 83 clearInterval(c.timer); |
| 84 if(c.offsetHeight < c.maxh){ |
| 85 c.timer = setInterval(function(){ddSlide(c,1)},DDTIMER); |
| 86 } |
| 87 } |
| 88 |
| 89 // incrementally expand/contract the dropdown and change the opacity // |
| 90 function ddSlide(c,d){ |
| 91 var currh = c.offsetHeight; |
| 92 var dist; |
| 93 if(d == 1){ |
| 94 dist = (Math.round((c.maxh - currh) / DDSPEED)); |
| 95 }else{ |
| 96 dist = (Math.round(currh / DDSPEED)); |
| 97 } |
| 98 if(dist <= 1 && d == 1){ |
| 99 dist = 1; |
| 100 } |
| 101 c.style.height = currh + (dist * d) + 'px'; |
| 102 c.style.opacity = currh / c.maxh; |
| 103 c.style.filter = 'alpha(opacity=' + (currh * 100 / c.maxh) + ')'; |
| 104 if((currh < 2 && d != 1) || (currh > (c.maxh - 2) && d == 1)){ |
| 105 clearInterval(c.timer); |
| 106 } |
| 107 } |
| 108 |
| 109 </script> |
| 110 |
| 111 <style> |
| 112 .menu{ |
| 113 width:717px; |
| 114 height:65px; |
| 115 |
| 116 } |
| 117 .links div{ |
| 118 float:left;} |
| 119 .dropdown { |
| 120 |
| 121 background:9966ff; |
| 122 color:#eee; |
| 123 border-left:1px solid #fff; |
| 124 font-family:BOOK ANTIQUA; |
| 125 font-size:14px; |
| 126 margin: 0; |
| 127 padding:0px;} |
| 128 |
| 129 .dropdown dt:hover { |
| 130 background:9999ff; |
| 131 } |
| 132 |
| 133 .dropdown dt { |
| 134 |
| 135 cursor:pointer;} |
| 136 .dropdown dd { |
| 137 position:absolute; |
| 138 overflow:hidden; |
| 139 display:none; |
| 140 background:9966ff; |
| 141 z-index:1000; |
| 142 opacity:.5; |
| 143 margin:0 0 0 20px; |
| 144 border-left:2px solid #620000; |
| 145 border-right:2px solid #620000} |
| 146 |
| 147 .dropdown ul { |
| 148 width:100px; |
| 149 list-style:none; |
| 150 margin:0; |
| 151 padding: 0; |
| 152 z-index:900;} |
| 153 .dropdown li { |
| 154 display:block; |
| 155 width: 100px; |
| 156 margin: 0; |
| 157 padding: 5px; |
| 158 border-bottom:2px solid #620000;} |
| 159 .dropdown li a{ |
| 160 float:none; |
| 161 width:auto; |
| 162 padding: 0; |
| 163 width:100px} |
| 164 |
| 165 .dropdown a:hover { |
| 166 color:#FFFF00;} |
| 167 |
| 168 a{ |
| 169 color:blue; |
| 170 font-family:BOOK ANTIQUA; |
| 171 font-size:15px; |
| 172 text-decoration: none; |
| 173 padding-left:23px; |
| 174 padding-right:23px; |
| 175 } |
| 176 a:hover { |
| 177 background:9999ff; |
| 178 color:#000 |
| 179 } |
| 180 </style> |
| 181 |
| 182 <body> |
| 183 <div align=center class="headerMembers"> |
| 184 <!-- menu starts here --> |
| 185 <div class="menu"> |
| 186 <div class="links"> |
| 187 <body> |
| 188 <H2 align=center><font color="background:9900CC"> Chrome Release testing dashboa
rd </font></h2> |
| 189 |
| 190 <div> |
| 191 <dl class="dropdown"> |
| 192 <dt id="one-ddheader" onmouseover="ddMenu('one',1)" onmouseout="ddMenu
('one',-1)"><a>Register new feature</a></dt> |
| 193 <dd id="one-ddcontent" onmouseover="cancelHide('one')" onmouseout="ddM
enu('one',-1)"> |
| 194 <ul> |
| 195 <li><a href="registerfeature.jsp">Chrome</a></li> |
| 196 <li><a href="">Chrome Frame</a></li> |
| 197 </ul> |
| 198 </dd> |
| 199 </dl> |
| 200 </div> |
| 201 |
| 202 |
| 203 <div> |
| 204 <dl class="dropdown"> |
| 205 <dt id="two-ddheader" onmouseover="ddMenu('two',1)" onmouseout="ddMenu
('two',-1)"><a>Submit Status</a></dt> |
| 206 <dd id="two-ddcontent" onmouseover="cancelHide('two')" onmouseout="ddM
enu('two',-1)"> |
| 207 <ul> |
| 208 <li><a href="SubmitStatus-Windows.jsp">Windows</a></li> |
| 209 <li><a href="SubmitStatus-Mac.jsp">Mac</a></li> |
| 210 <li><a href="SubmitStatus-Linux.jsp">Linux</a></li> |
| 211 <li><a href="">Chrome Frame </a></li> |
| 212 </ul> |
| 213 </dd> |
| 214 </dl> |
| 215 </div> |
| 216 |
| 217 <div> |
| 218 <dl class="dropdown"> |
| 219 <dt id="three-ddheader" onmouseover="ddMenu('three',1)" onmouseout="dd
Menu('three',-1)"><a>View Status</a></dt> |
| 220 <dd id="three-ddcontent" onmouseover="cancelHide('three')" onmouseout=
"ddMenu('three',-1)"> |
| 221 <ul> |
| 222 <li><a href="TestingStatus-query.jsp">Windows</a></li> |
| 223 <li><a href="TestingStatus-query-Mac.jsp">Mac</a></li> |
| 224 <li><a href="TestingStatus-query-Linux.jsp">Linux</a></li> |
| 225 <li><a href="">Chrome Frame </a></li> |
| 226 </ul> |
| 227 </dd> |
| 228 </dl> |
| 229 </div> |
| 230 |
| 231 <div> |
| 232 <dl class="dropdown"> |
| 233 <dt id="four-ddheader" onmouseover="ddMenu('four',1)" onmouseout="ddMe
nu('four',-1)"><a>Release Blockers</a></dt> |
| 234 <dd id="four-ddcontent" onmouseover="cancelHide('four')" onmouseout="d
dMenu('four',-1)"> |
| 235 <ul> |
| 236 <li><a href="Release-blockers.jsp?channel=Dev">Dev</a></li> |
| 237 <li><a href="Release-blockers.jsp?channel=Beta">Beta</a></li> |
| 238 <li><a href="Release-blockers.jsp?channel=Stable">Stable</a></
li> |
| 239 <li><a href="">ChromeFrame-Dev</a></li> |
| 240 <li><a href="">ChromeFrame-Beta</a></li> |
| 241 </ul> |
| 242 </dd> |
| 243 </dl> |
| 244 </div> |
| 245 <div style="background:9966ff;border-left:1px solid #fff;"><a href="calendar.jsp
">Calendar</a></div> |
| 246 |
| 247 </body> |
| 248 </div> |
| 249 </div> |
| 250 </div> |
| 251 </html> |
| 252 <BODY style="background:CCCCFF;font-family:BOOK ANTIQUA"> |
| 253 |
| 254 <script language="JavaScript"> |
| 255 var g_rowNo = 0; |
| 256 function addRow(selected_val) { |
| 257 if (selected_val == "New Build") |
| 258 { |
| 259 var div, br |
| 260 br = document.createElement("BR"); |
| 261 div = document.createElement("DIV"); |
| 262 text = document.createTextNode("Enter New Build Number: "); |
| 263 div.appendChild(text); |
| 264 |
| 265 var tbox; |
| 266 tbox=document.createElement('input'); |
| 267 tbox.type = 'text'; |
| 268 tbox.name = 'build_number'; |
| 269 div.appendChild(tbox); |
| 270 document.getElementById('mainForm1').insertBefore(div, document.getEleme
ntById('beforeThisRow')); |
| 271 } else{ |
| 272 var s = "/UpdateStatus-exp-query.jsp?buildn=" + selected_val ; |
| 273 window.location= s; |
| 274 |
| 275 } |
| 276 } |
| 277 |
| 278 function showXP(){ |
| 279 document.getElementById('xp_status').style.display="block"; |
| 280 } |
| 281 </script> |
| 282 <div style="position:relative; width:100%; height:20px"></div> |
| 283 <form id='mainForm1' action="/status" method="post" align=center> |
| 284 <% |
| 285 PersistenceManager pm = PMF.get().getPersistenceManager(); |
| 286 String query = "select from " + RegisterFeature.class.getName() + " where fe
ature_type=='Backend'"; |
| 287 List<RegisterFeature> reg_feature = (List<RegisterFeature>) pm.newQuery(quer
y).execute(); |
| 288 List<String> select = new ArrayList<String>(); |
| 289 |
| 290 if (reg_feature.isEmpty()) { %> |
| 291 <p>No features in the database.</p> |
| 292 <% } |
| 293 |
| 294 else { |
| 295 %> |
| 296 |
| 297 <br> |
| 298 <% |
| 299 PersistenceManager pm1 = PMF.get().getPersistenceManager(); |
| 300 String query1 = "select from " + BuildInfo.class.getName(); |
| 301 List<BuildInfo> build_val = (List<BuildInfo>) pm1.newQuery(query1).execute()
; |
| 302 if (build_val.isEmpty()) { %> |
| 303 <select name="buildn" onChange="addRow(this.options[selectedIndex].text);"> |
| 304 <option value="Pick a build" selected>Pick a build |
| 305 <option value="New Build">New Build |
| 306 </select> |
| 307 |
| 308 <% } |
| 309 else { |
| 310 %> |
| 311 |
| 312 |
| 313 |
| 314 <b>Pick a build:</b> <select name="buildn" onChange="addRow(this.options[selec
tedIndex].text);"> |
| 315 <% if(request.getParameter("update")!=null) { %> |
| 316 <option value=<%= request.getParameter("update") %> selected><%= request.getPara
meter("update") %> |
| 317 <% for (BuildInfo g : build_val) { %> |
| 318 <option value=<%= g.getBuildNumber() %>><%= g.getBuildNumber() %> |
| 319 <% } %> |
| 320 <option value="New Build">New Build |
| 321 </select> |
| 322 <% } else{%> |
| 323 <option value="Pick a build" selected>Pick a build |
| 324 <% for (BuildInfo g : build_val) { %> |
| 325 <option value=<%= g.getBuildNumber() %>><%= g.getBuildNumber() %> |
| 326 <% } %> |
| 327 <option value="New Build">New Build |
| 328 </select> |
| 329 |
| 330 <% |
| 331 } |
| 332 } |
| 333 pm1.close(); |
| 334 %> |
| 335 |
| 336 |
| 337 |
| 338 |
| 339 <div id='beforeThisRow'></div> |
| 340 |
| 341 <table align=center><tr> |
| 342 <td style="width:100px"><B>Pick Configurations: </b></td> |
| 343 <td> |
| 344 <select name="test_type_xp" onChange="showXP();"> |
| 345 <option value="XP">XP |
| 346 <option value="XP-FullPass">FullPass |
| 347 <option value="XP-BAT">BAT |
| 348 </select> |
| 349 </td> |
| 350 <td> |
| 351 <select name="test_type_vista" onChange="showVista();"> |
| 352 <option value="Vista">Vista |
| 353 <option value="Vista-FullPass">FullPass |
| 354 <option value="Vista-BAT">BAT |
| 355 </select> |
| 356 </td> |
| 357 <td> |
| 358 <select name="test_type_win7" onChange="showWin7();"> |
| 359 <option value="Win7">Win7 |
| 360 <option value="Win7-FullPass">FullPass |
| 361 <option value="Win7-BAT">BAT |
| 362 </select> |
| 363 </td> |
| 364 </tr> |
| 365 |
| 366 <tr><td> <b> Tester Name: </b><input type='text' name="user_name"></td></tr> |
| 367 </table> |
| 368 <hr> |
| 369 <br> |
| 370 |
| 371 <% |
| 372 PersistenceManager pm_fe = PMF.get().getPersistenceManager(); |
| 373 String query_fe = "select from " + RegisterFeature.class.getName() + " where
feature_type=='Frontend'"; |
| 374 List<RegisterFeature> reg_feature1 = (List<RegisterFeature>) pm_fe.newQuery(
query_fe).execute(); |
| 375 %> |
| 376 |
| 377 <table align=center > |
| 378 <tr><td><b><H3><br>Frontend Features:</H3></b></td></tr> |
| 379 <tr class="padding"><td><b>Featurename</b></td><td align=center><b>XP</b></td><t
d align=center><b>Vista</b></td><td align=center><b>Win7</b></td><td align=cente
r><b>Comments/Bugs</b></td> |
| 380 <% for (RegisterFeature g : reg_feature1) { |
| 381 if (!(g.getFeatureName().equals(""))) {%> |
| 382 <tr class="padding"> |
| 383 |
| 384 <td> <input type="text" name="feature_name" value='<%= g.getFeatureName() %>'>
</td> |
| 385 |
| 386 |
| 387 <td id="xp_status" ><select name="test_status_xp"> |
| 388 <option value="Not Started" selected>Not Started |
| 389 <option value="InProgress">InProgress |
| 390 <option value="Buggy">Buggy |
| 391 <option value="Finished">Finished |
| 392 </select> |
| 393 </td> |
| 394 |
| 395 |
| 396 |
| 397 <td ><select name="test_status_vista"> |
| 398 <option value="Not Started" selected>Not Started |
| 399 <option value="InProgress">InProgress |
| 400 <option value="Buggy">Buggy |
| 401 <option value="Finished">Finished |
| 402 </select> |
| 403 </td> |
| 404 |
| 405 |
| 406 |
| 407 <td ><select name="test_status_win7"> |
| 408 <option value="Not Started" selected>Not Started |
| 409 <option value="InProgress">InProgress |
| 410 <option value="Buggy">Buggy |
| 411 <option value="Finished">Finished |
| 412 </select> |
| 413 </td> |
| 414 |
| 415 |
| 416 |
| 417 |
| 418 |
| 419 <td><input type='text' name="notes"></td> |
| 420 </tr> |
| 421 |
| 422 <% |
| 423 } |
| 424 } |
| 425 pm_fe.close(); |
| 426 %> |
| 427 </table> |
| 428 |
| 429 <table align=center > |
| 430 <tr><td><b><H3>Backend Features:</H3></b></td></tr> |
| 431 <tr class="padding"><td><b>Featurename</b></td><td align=center><b>XP</b></td><t
d align=center><b>Vista</b></td><td align=center><b>Win7</b></td><td align=cente
r><b>Comments/Bugs</b></td> |
| 432 <% for (RegisterFeature g : reg_feature) { |
| 433 if (!(g.getFeatureName().equals(""))) {%> |
| 434 <tr class="padding"> |
| 435 |
| 436 <td> <input type="text" name="feature_name" value='<%= g.getFeatureName() %>'>
</td> |
| 437 |
| 438 |
| 439 <td id="xp_status" ><select name="test_status_xp"> |
| 440 <option value="Not Started" selected>Not Started |
| 441 <option value="InProgress">InProgress |
| 442 <option value="Buggy">Buggy |
| 443 <option value="Finished">Finished |
| 444 </select> |
| 445 </td> |
| 446 |
| 447 |
| 448 |
| 449 <td ><select name="test_status_vista"> |
| 450 <option value="Not Started" selected>Not Started |
| 451 <option value="InProgress">InProgress |
| 452 <option value="Buggy">Buggy |
| 453 <option value="Finished">Finished |
| 454 </select> |
| 455 </td> |
| 456 |
| 457 |
| 458 |
| 459 <td ><select name="test_status_win7"> |
| 460 <option value="Not Started" selected>Not Started |
| 461 <option value="InProgress">InProgress |
| 462 <option value="Buggy">Buggy |
| 463 <option value="Finished">Finished |
| 464 </select> |
| 465 </td> |
| 466 |
| 467 |
| 468 |
| 469 |
| 470 |
| 471 <td><input type='text' name="notes"></td> |
| 472 </tr> |
| 473 |
| 474 <% |
| 475 } |
| 476 } |
| 477 } |
| 478 pm.close(); |
| 479 %> |
| 480 </table> |
| 481 |
| 482 |
| 483 |
| 484 <% |
| 485 PersistenceManager pm_compat = PMF.get().getPersistenceManager(); |
| 486 String query_compat = "select from " + RegisterFeature.class.getName() + " w
here feature_type=='Compat'"; |
| 487 List<RegisterFeature> reg_feature_compat = (List<RegisterFeature>) pm_compat
.newQuery(query_compat).execute(); |
| 488 %> |
| 489 |
| 490 <table align=center > |
| 491 <tr><td><b><H3><br>Compatibility:</H3></b></td></tr> |
| 492 <tr class="padding"><td><b>Featurename</b></td><td align=center><b>XP</b></td><t
d align=center><b>Vista</b></td><td align=center><b>Win7</b></td><td align=cente
r><b>Comments/Bugs</b></td> |
| 493 <% for (RegisterFeature g : reg_feature_compat) { |
| 494 if (!(g.getFeatureName().equals(""))) {%> |
| 495 <tr class="padding"> |
| 496 |
| 497 <td> <input type="text" name="feature_name" value='<%= g.getFeatureName() %>'>
</td> |
| 498 |
| 499 |
| 500 <td id="xp_status" ><select name="test_status_xp"> |
| 501 <option value="Not Started" selected>Not Started |
| 502 <option value="InProgress">InProgress |
| 503 <option value="Buggy">Buggy |
| 504 <option value="Finished">Finished |
| 505 </select> |
| 506 </td> |
| 507 |
| 508 |
| 509 |
| 510 <td ><select name="test_status_vista"> |
| 511 <option value="Not Started" selected>Not Started |
| 512 <option value="InProgress">InProgress |
| 513 <option value="Buggy">Buggy |
| 514 <option value="Finished">Finished |
| 515 </select> |
| 516 </td> |
| 517 |
| 518 |
| 519 |
| 520 <td ><select name="test_status_win7"> |
| 521 <option value="Not Started" selected>Not Started |
| 522 <option value="InProgress">InProgress |
| 523 <option value="Buggy">Buggy |
| 524 <option value="Finished">Finished |
| 525 </select> |
| 526 </td> |
| 527 |
| 528 |
| 529 |
| 530 |
| 531 |
| 532 <td><input type='text' name="notes"></td> |
| 533 </tr> |
| 534 |
| 535 <% |
| 536 } |
| 537 } |
| 538 pm_compat.close(); |
| 539 |
| 540 %> |
| 541 </table> |
| 542 |
| 543 <br> |
| 544 <div align=center><input type="submit" value="Submit Status" /></div> |
| 545 </form> |
| 546 |
| 547 </body> |
| 548 </html> |
OLD | NEW |