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