Index: chrome_release_test_status/war/SubmitStatus.jsp |
=================================================================== |
--- chrome_release_test_status/war/SubmitStatus.jsp (revision 0) |
+++ chrome_release_test_status/war/SubmitStatus.jsp (revision 0) |
@@ -0,0 +1,167 @@ |
+<%@ page contentType="text/html;charset=UTF-8" language="java" %> |
+<%@ page import="java.util.List" %> |
+<%@ page import="java.util.ArrayList" %> |
+<%@ page import="javax.jdo.PersistenceManager" %> |
+<%@ page import="com.google.appengine.api.users.User" %> |
+<%@ page import="com.google.appengine.api.users.UserService" %> |
+<%@ page import="com.google.appengine.api.users.UserServiceFactory" %> |
+<%@ page import="mydemo.BuildInfo" %> |
+<%@ page import="mydemo.TestStatus" %> |
+<%@ page import="mydemo.RegisterFeature" %> |
+<%@ page import="mydemo.PMF" %> |
+ |
+<html> |
+<Head> |
+<script> |
+var g_rowNo = 0; |
+function addnewconf() { |
+ window.alert("fgdfg"); |
+ var td = document.getElementById('check_win'); |
+ var tbox; |
+ div = document.createElement("DIV"); |
+ tbox=document.createElement('input'); |
+ tbox.type = 'checkbox'; |
+ tbox.name = 'platform'; |
+ tbox.value = 'Win-vista'; |
+ |
+ td.appendChild(tbox); |
+ document.getElementById('mainForm1').insertBefore(td, document.getElementById('beforeThisRow1')); |
+} |
+</script> |
+ |
+<style type="text/css"> |
+body |
+{ |
+background-color:#d0e4fe; |
+} |
+ |
+tr.padding |
+{ |
+padding-top:25px; |
+padding-bottom:25px; |
+padding-right:50px; |
+padding-left:50px; |
+} |
+</style> |
+</head> |
+<body> |
+<script language="JavaScript"> |
+var g_rowNo = 0; |
+function addRow(selected_val) { |
+ |
+if (selected_val == "New Build") |
+ { |
+ window.alert("Place Your message here... \n Click OK \" to contine." + selected_val); |
+ var div, br |
+ br = document.createElement("BR"); |
+ div = document.createElement("DIV"); |
+ text = document.createTextNode("Enter New Build Number: "); |
+ div.appendChild(text); |
+ |
+ var tbox; |
+ tbox=document.createElement('input'); |
+ tbox.type = 'text'; |
+ tbox.name = 'build_number'; |
+ div.appendChild(tbox); |
+ |
+document.getElementById('mainForm1').insertBefore(div, document.getElementById('beforeThisRow')); |
+ |
+} |
+ |
+} |
+ |
+ |
+</script> |
+<% |
+ PersistenceManager pm = PMF.get().getPersistenceManager(); |
+ String query = "select from " + RegisterFeature.class.getName(); |
+ List<RegisterFeature> reg_feature = (List<RegisterFeature>) pm.newQuery(query).execute(); |
+ List<String> select = new ArrayList<String>(); |
+ |
+ if (reg_feature.isEmpty()) { %> |
+<p>The guestbook has no messages.</p> |
+<% } |
+ |
+else { |
+ %> |
+ <form id='mainForm1' action="/status" method="post"> |
+<% |
+ PersistenceManager pm1 = PMF.get().getPersistenceManager(); |
+ String query1 = "select from " + BuildInfo.class.getName(); |
+ List<BuildInfo> build_val = (List<BuildInfo>) pm1.newQuery(query1).execute(); |
+ if (build_val.isEmpty()) { %> |
+ <select name="buildn" onChange="addRow(this.options[selectedIndex].text);"> |
+<option value="Pick a build" selected>Pick a build |
+ <option value="New Build">New Build |
+ </select> |
+ |
+ <% } |
+else { |
+ %> |
+ |
+ |
+ |
+ <div>Pick a build: <select name="buildn" onChange="addRow(this.options[selectedIndex].text);"> |
+ <option value="Pick a build" selected>Pick a build |
+ <% for (BuildInfo g : build_val) { %> |
+ <option value=<%= g.getBuildNumber() %>><%= g.getBuildNumber() %> |
+ <% } %> |
+ <option value="New Build">New Build |
+ </select> |
+ |
+<% |
+ } |
+ pm1.close(); |
+%> |
+</div> |
+ <div id='beforeThisRow'></div> |
+ |
+ |
+ |
+ |
+ |
+<table > <tr class="padding"><td><b>Featurename</b></td><td><b>Status</b></td><td><b>Test type </b></td><td><b>Windows</b></td><td><b>Mac</b></td><td><b>Linux</b></td><td><b>ChromeOS</b></td><td><b>Comments/Bugs</b></td> |
+ <% for (RegisterFeature g : reg_feature) { |
+ if (!(g.getFeatureName().equals(""))) {%> |
+ <tr class="padding"> |
+ |
+ <td> <input type="text" name="feature_name" value=<%= g.getFeatureName() %>></td> |
+ |
+ |
+<td><select name="test_status"> |
+<option value="Status" selected>Status |
+<option value="InProgress">InProgress |
+<option value="Buggy">Buggy |
+<option value="Finished">Finished |
+</select> |
+</td> |
+ |
+<td><select name="test_type"> |
+<option value="TestType">TestType |
+<option value="FullPass">FullPass |
+<option value="BAT">BAT |
+</select> |
+</td> |
+ |
+<td align=center><input TYPE=checkbox name=platform VALUE=Windows></td> |
+<td> <input TYPE=checkbox name=platform VALUE=Mac></td> |
+<td> <input TYPE=checkbox name=platform VALUE=Linux></td> |
+<td> <input TYPE=checkbox name=platform VALUE=ChromeOS></td> |
+ |
+<td><input type='text' name="notes"></td> |
+</tr> |
+ |
+<% |
+ } |
+ } |
+ } |
+ pm.close(); |
+%> |
+</table> |
+ |
+<br> |
+<div><input type="submit" value="Submit Status" /></div> |
+</form> |
+ |
+</body> |
+</html> |