fork download
  1.  
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  3. <html>
  4.  
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  7. <title>Wafer Checks</title>
  8. <script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'></script>
  9. <script type='text/javascript'>
  10. $(document).ready(function() {
  11. $('#chkCheckAll').click(function(){$('.chkDelete').attr('checked',this.checked);});
  12. $('.chkDelete').click(function(){$('#chkCheckAll').attr("checked",!($('.chkDelete:not(:checked)').length));});
  13. });
  14. </script>
  15.  
  16.  
  17. </head>
  18.  
  19.  
  20. <body bgcolor="#e2e2e2">
  21. <center>
  22. <br>
  23. <h1>Bob D Wafer Checks</h1>
  24. <script language="JavaScript">
  25. var selectedchkboxes = new Array();
  26.  
  27.  
  28. function selected_checkbox(id){
  29. if(document.getElementById(id).checked){
  30. selectedchkboxes.push(id);}
  31. }
  32. function jsfunction(){
  33. <html><body><h1>HIIII</h1></body></html>
  34. }
  35.  
  36. /*
  37. redirects to the check webpage based on user selection
  38. */
  39.  
  40. function remove_dups(arrayName){
  41. var newArray = new Array();
  42.  
  43. label:for(var i=0; i<arrayName.length; i++ ){
  44.  
  45. for(var j=0; j<newArray.length;j++ ){
  46. if(newArray[j]==arrayName[i]){
  47. continue label;
  48. }
  49. }
  50.  
  51. newArray[newArray.length] = arrayName[i];
  52.  
  53. }
  54.  
  55. return newArray;
  56. }
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. function win_open() {
  65. /*if(document.getElementById("chkMaskCompare").checked){
  66. window.open("http://feol.btv.ibm.com/chkdev/maskcompare.php?submit=true&ecnum=10000N03402");
  67. }
  68. if(document.getElementById("chkFeatureCompare").checked){
  69. window.open("http://feol.btv.ibm.com/chkdev/eclook.php?submit=true&ecnum=10000N03402");
  70. }
  71. if((!document.getElementById("chkMaskCompare").checked)&&(!document.getElementById("chkFeatureCompare").checked)&&(!document.getElementById("chkPORCompare").checked)){
  72. alert("Atleast 1 check should be selected");
  73. }*/
  74.  
  75. var arr = new Array();
  76. arr = remove_dups(selectedchkboxes);
  77. for (var i = 0; i < arr.length; i++) {
  78. switch(arr[i]){
  79. case "chkMaskCompare":
  80. if(document.getElementById("chkMaskCompare").checked)
  81. window.open("http://feol.btv.ibm.com/chkdev/maskcompare.php?submit=true&ecnum=10000N03402");
  82. break;
  83. case "chkFeatureCompare":
  84. if(document.getElementById("chkFeatureCompare").checked)
  85. window.open("http://feol.btv.ibm.com/chkdev/eclook.php?submit=true&ecnum=10000N03402");
  86. break;
  87. default:
  88. //alert("Invalid id");
  89. }
  90. }
  91. }
  92.  
  93. function change_color(id) {
  94. document.getElementById(id).style.color="red";
  95. }
  96.  
  97. function change_color_back(id) {
  98. document.getElementById(id).style.color="purple";
  99. }
  100.  
  101.  
  102.  
  103. </script>
  104.  
  105. <table id="tab1" border="1" width="838" height="210">
  106. <tbody>
  107. <tr>
  108. <td height="39" width="20"><input type="checkbox"
  109. name="chkCheckAll" id="chkCheckAll" ></td>
  110. <td height="39" width="170"><b><center><font size="4"> Check Name</font></center></b></td>
  111. <td height="39" width="389"><b><center><font size="4"> Status</font></center></b></td>
  112. <td height="39" width="252"><b><center><font size="4"> Preset Groups</font></center></b></td>
  113. </tr>
  114. <tr>
  115. <td width="20" height="48"><input type="checkbox"
  116. name="chkMaskCompare" id="chkMaskCompare" class="chkDelete" onclick="selected_checkbox(this.id);"></td>
  117. <td width="170" height="48"><center><font size="4"> Mask Compare</font></center></td>
  118.  
  119. <td width="389" height="48"><a href="http://www.w3schools.com/" id="det1" title="Displays last Run details" target="_blank" onmouseover="change_color(id)" onmouseout="change_color_back(id)"><font size="4">details</font></a>&nbsp&nbsp<label id="l1" ><font size="4">Run OK since last change</font></label></td>
  120. <td rowspan="3" width="252"><center>
  121. <input type="button" id="btnDefaultChecks" value="Default Checks" style="width:200px;height:27px"
  122. onclick="doPreset(this.id);"><br><br>
  123. <input type="button" id="btnMandFCompare"
  124. value="Mask and Feature Compare" style="width:200px;height:27px" onclick="doPreset(this.id);">
  125. <br><br>
  126. <input type="button" id="btnFandPCompare"
  127. value="Feature and POR Compare" style="width:200px;height:27px" onclick="doPreset(this.id);"><br><br>
  128. <input type="button" id="btnPORCompare" value="POR Compare" style="width:200px;height:27px"
  129. onclick="doPreset(this.id);"></center></td>
  130. </tr>
  131. <tr>
  132. <td width="20" height="56"><input type="checkbox"
  133. name="chkFeatureCompare" id="chkFeatureCompare" class="chkDelete" onclick="selected_checkbox(this.id);"></td>
  134.  
  135. <td width="170" height="56"><center><font size="4"> Feature Compare</font></center></td>
  136. <td width="389" height="56"><a href="http://www.w3schools.com/" id="det2" title="Displays last Run details" target="_blank" onmouseover="change_color(id)" onmouseout="change_color_back(id)"><font size="4">details</font></a>&nbsp&nbsp<label><font size="4">Run OK, but not since last change</font></label></td>
  137. </tr>
  138. <tr>
  139. <td width="20" height="54"><input type="checkbox"
  140. name="chkPORCompare" id="chkPORCompare" class="chkDelete"></td>
  141. <td width="170" height="54"><center><font size="4"> POR Compare</font></center></td>
  142. <td width="389" height="54"><a href="file:///C:/Documents%20and%20Settings/Administrator/My%20Documents/SametimeFileTransfers/output.html" id="det3" title="Displays last Run details" target="_blank" onmouseover="change_color(id)" onmouseout="change_color_back(id)"><font size="4">details</font></a>&nbsp&nbsp<label><font size="4">Run errors</font></label></td>
  143.  
  144. </tr>
  145.  
  146. </tbody>
  147. </table>
  148.  
  149. <br>
  150. <p><input type="submit" name="Submit" value="Submit" readonly
  151. style="position: absolute; left: 655px; top: 350px; width: 59px"
  152. width="59" onclick="win_open()">
  153. <input type="submit" name="Cancel" value="Cancel" readonly
  154. style="position: absolute; left: 739px; top: 350px; width: 62px"
  155. width="59" onclick="window.close()"></p>
  156.  
  157. <br>
  158. <br>
  159. <label><font color="purple">*Select the checks you want to run and click Submit</font></label>
  160. </center>
  161. <script language="JavaScript">
  162.  
  163. /*if(document.getElementById("chkCheckAll").checked){
  164.  
  165. var table = document.getElementById("tab1");
  166. var tableInputTags = table.getElementsByTagName("input");
  167. var checkboxArray = [];
  168.  
  169. for (var i=0; i<tableInputTags.length; i++)
  170. {
  171. if(tableInputTags[i].type=="checkbox")
  172. {
  173. checkboxArray.push(tableInputTags[i].id);
  174. }
  175. }
  176.  
  177. for(var j=0; i<checkboxArray.length; j++)
  178. {
  179. var val = "chk"+checkboxArray[i];
  180. document.getElementById(val).checked = true;
  181. }
  182.  
  183. }*/
  184.  
  185. var table = document.getElementById("tab1");
  186. var tableInputTags = table.getElementsByTagName("input");
  187. var checkboxArray = [];
  188.  
  189. for (var i=0; i<tableInputTags.length; i++)
  190. {
  191. if(tableInputTags[i].type=="checkbox")
  192. {
  193. checkboxArray.push(tableInputTags[i].id);
  194. }
  195. }
  196.  
  197.  
  198. /*
  199. enables the checkboxes based on which preset
  200. group was selected
  201. */
  202.  
  203. function doPreset(thisObj) {
  204. var vChecks = "";
  205. //var compareChecks = ["chkMaskCompare","chkPORCompare","chkFeatureCompare","chkCheckAll"];
  206. var compareChecks = checkboxArray.slice();
  207. if(thisObj == "btnDefaultChecks") {
  208. vChecks = "MaskCompare,PORCompare";
  209. } else if(thisObj == "btnMandFCompare") {
  210. vChecks = "MaskCompare,FeatureCompare";
  211. } else if(thisObj == "btnFandPCompare") {
  212. vChecks = "FeatureCompare,PORCompare";
  213. } else if(thisObj == "btnPORCompare") {
  214. vChecks = "PORCompare";
  215. }
  216.  
  217. var aChecks = new Array();
  218. aChecks = vChecks.split(",");
  219.  
  220.  
  221. for (var i = 0; i < aChecks.length; i++) {
  222.  
  223. var value = "chk"+aChecks[i];
  224. var index = compareChecks.indexOf(value);
  225. compareChecks.splice(index,1);
  226. document.getElementById(value).checked = true;
  227. selected_checkbox(value);
  228. }
  229.  
  230.  
  231. for (var j = 0; j < compareChecks.length; j++){
  232.  
  233. var val = compareChecks[j];
  234. document.getElementById(val).checked = false;
  235. }
  236.  
  237. }
  238.  
  239.  
  240. </script>
  241. </body>
  242. </html>
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout

Standard output is empty