Subversion Repositories DevTools

Rev

Rev 5962 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5356 dpurdie 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
Option explicit
4
Response.Expires = 0	' always load the page, dont store
5
%>
6
<%
7
'=====================================================
8
'					Unit Test
9
'=====================================================
10
%>
11
<!--#include file="common/config.asp"-->
12
<!--#include file="common/globals.asp"-->
13
<!--#include file="common/formating.asp"-->
14
<!--#include file="common/qstr.asp"-->
15
<!--#include file="common/common_subs.asp"-->
16
<!--#include file="common/common_dbedit.asp"-->
17
 
18
<!--#include file="common/_popup_window_common.asp"-->
19
<%
20
' Set rfile parameter. This is a return page after Login
21
Call objPMod.StoreParameter ( "rfile", "fixed_issues.asp" )
22
'------------ ACCESS CONTROL ------------------
23
%>
24
<!--#include file="_access_control_general.asp"-->
25
<%
26
'------------ Variable Definition -------------
27
Dim parPv_id
28
Dim parTest_Type_id
29
Dim rsQry
30
Dim sPkgName
31
Dim sPkgVersion
32
'------------ Constants Declaration -----------
33
'------------ Variable Init -------------------
34
parPv_id = Request("prod_id")
35
parTest_Type_id = Request("test_type_id")
36
If parTest_Type_id = "" Then parTest_Type_id = enumTEST_TYPE_SANITY
37
'----------------------------------------------
38
%>
39
<%
40
Function SQL_GetTestTypes ( )
41
	SQL_GetTestTypes = _
42
	"   SELECT tt.TEST_TYPE_ID, tt.TEST_TYPE_NAME"&_
43
	"	  FROM TEST_TYPES tt"&_
44
	"	 WHERE NOT tt.DISPLAY_ORDER IS NULL "&_
45
	"	 ORDER BY tt.DISPLAY_ORDER"
46
End Function
47
%>
48
<%
49
'------------ Action Requirements -------------------
50
Call Get_Pkg_Short_Info(  Request("prod_id"), NULL, sPkgName, sPkgVersion, NULL, NULL, NULL )
51
%>
52
<html>
53
<head>
54
<title>Release Manager</title>
55
<link rel="shortcut icon" href="<%=FavIcon%>"/>
56
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
57
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6671 dpurdie 58
<link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
59
<link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
60
<script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
5356 dpurdie 61
 
62
<script language="JavaScript" type="text/javascript">
63
<!--
64
function ShowField()
65
{
66
	if ( MM_findObj("test_type_id").value == 7 ) {
67
		MM_findObj("DIV_REG_TEST").style.display = "none";
68
		MM_findObj("DIV_AUTOBUILD_TEST").style.display = "block";
69
 
70
	} else {
71
 
72
		MM_findObj("DIV_REG_TEST").style.display = "block";
73
		MM_findObj("DIV_AUTOBUILD_TEST").style.display = "none";
74
 
75
		if ( MM_findObj("test_type_id").value == 5 ) {
76
			// Switch on URL attachment
77
			MM_findObj("spanResultsAttachment").style.display = "none";
78
			MM_findObj("spanResultsUrl").style.display = "block";
79
		} else {
80
			// Switch on File attachment
81
			MM_findObj("spanResultsAttachment").style.display = "block";
82
			MM_findObj("spanResultsUrl").style.display = "none";
83
 
84
		}
85
	}
86
}
87
 
88
//-->
89
</script>
90
<!-- TIPS -->
6671 dpurdie 91
<script language="JavaScript" src="images/tipster.js?ver=<%=VixVerNum%>"></script>
92
<script language="JavaScript" src="images/_help_tips.js?ver=<%=VixVerNum%>"></script>
5356 dpurdie 93
</head>
94
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();ShowField();">
95
<!-- TIPS LAYERS -------------------------------------->
96
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
97
<!----------------------------------------------------->
98
<form action="_new_test_document_upload.asp?bom_id=<%=Request("bom_id")%>&os_id=<%=Request("os_id")%>" method="post" enctype="multipart/form-data" name="unittest" onSubmit="MM_validateForm('completion_date','Completion Date','RisDate','test_summary','Test Summary','maxLength:4000');return document.MM_returnValue;">
99
  <table width="100%" border="0" cellspacing="0" cellpadding="2" height="100%">
100
    <tr> 
101
      <td width="1%" background="images/bg_blue.gif"><img src="images/i_unit_test_off.gif" width="18" height="25" hspace="5" border="0"></td>
102
      <td width="1%" background="images/bg_lite_blue.gif" nowrap class="form_field_lg">&nbsp;Test Documents</td>
103
	  <td width="100%" background="images/bg_lite_blue.gif" align="right" nowrap class="form_field_lg"><SPAN id="ProgressBar" name="ProgressBar" style="visibility:hidden;"><img src="images/i_processing.gif" width="11" height="17" align="absmiddle" hspace="3">Uploading... Please Wait!</SPAN>&nbsp;
104
		<input type="submit" name="btn" value="Submit" class="form_btn_comp">
105
		<input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="self.close()">
106
      </td>
107
      <td background="images/bg_lite_blue.gif" align="right" width="1%" nowrap><img src="images/h_trsp_dot.gif" width="5" height="22"></td>
108
    </tr>
109
    <tr> 
110
      <td height="100%" width="1%">&nbsp;</td>
111
      <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif"> 
112
        <table width="100%"  border="0" cellspacing="0" cellpadding="0">
113
          <tr>
114
            <td width="1%" nowrap class="sublbox_hitem"><img src="images/h_trsp_dot.gif" width="10" height="30">
115
                <%If Request("save_stat") <> "" Then%>
116
                Saving complete.
117
                <%End If%></td>
118
            <td width="100%" align="right" valign="bottom">
119
              <!-- TABS ------------------------------------->
120
 
121
            </td>
122
          </tr>
123
          <tr>
124
            <td background="images/bg_lite_blue.gif"></td>
125
            <td background="images/bg_lite_blue.gif">&nbsp;</td>
126
          </tr>
127
        </table>
128
        <table width="100%" border="0" cellspacing="1" cellpadding="2">
129
          <tr> 
130
            <td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Test Type <%=Quick_Help ( "ut_test_type" )%></td>
131
          </tr>
132
          <tr>
133
            <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
134
              <select name="test_type_id" class="form_item" onchange="ShowField();">
135
			  <%
136
			  Set rsQry = OraDatabase.CreateDynaset( SQL_GetTestTypes(), cint(0))
137
			  %>
138
			  	<%
139
				While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
140
				%>
141
                <option value="<%=rsQry("test_type_id")%>" <%If CInt(parTest_Type_id) = CInt(rsQry("test_type_id")) Then%>SELECTED<%End If%>><%=rsQry("test_type_name")%></option>
142
				<%
143
					rsQry.MoveNext
144
				WEnd
145
 
146
				rsQry.Close
147
				Set rsQry = Nothing
148
				%>			
149
              </select></td>
150
          </tr>
151
		</table>
152
 
153
		<br>
154
 
155
		<DIV id="DIV_REG_TEST" style="display:block;">
156
		<table width="100%" border="0" cellspacing="1" cellpadding="2">
157
          <tr> 
158
            <td width="1%">&nbsp;</td>
159
            <td width="1%" nowrap background="images/bg_form_lightbluedark.gif" class="form_field"></td>
160
            <td width="100%" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">
161
			<SPAN name="spanResultsAttachment" id="spanResultsAttachment">
162
			Results File Attachment <br><input name="results_file" type="file" class="form_item" size="65" class="form_txt">
163
			</SPAN>
164
            </td>
165
          </tr>
166
          <tr> 
167
            <td>&nbsp;</td>
168
            <td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Completion 
169
              Date </td>
170
            <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><input name="completion_date" type="text" class="form_item" id="completion_date" value="<%=EuroDate (Date) %>" size="20" maxlength="10"> 
171
            </td>
172
          </tr>
173
          <tr> 
174
            <td width="1%">&nbsp;</td>
175
            <td nowrap width="1%" valign="top" background="images/bg_form_lightbluedark.gif" class="form_field">Test 
176
              Summary <%=Quick_Help ( "ut_summary" )%></td>
177
            <td width="100%" valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><textarea cols="80" rows="20" name="test_summary" class="form_item" id="test_summary"></textarea> 
178
            </td>
179
          </tr>
180
          <tr> 
181
            <td width="1%">&nbsp;</td>
182
            <td width="1%" nowrap class="form_field"><img src="images/h_trsp_dot.gif" width="100" height="10"></td>
183
            <td nowrap width="100%"> <p>&nbsp;</p></td>
184
          </tr>
185
      </table>
186
	  </DIV>
187
 
188
 
189
 
190
 
191
	  </td>
192
    </tr>
193
    <tr>
194
      <td height="1%" width="1%"><img src="images/h_trsp_dot.gif" width="5" height="5"></td>
195
      <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_lite_blue.gif"></td>
196
    </tr>
197
  </table>
198
  <input type="hidden" name="pv_id" value="<%=parPv_id%>">
199
  <input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
200
 
201
</form>
202
</body>
203
</html>
204
<!-- DESTRUCTOR ------->
62 rsolanki 205
<!--#include file="common/globals_destructor.asp"-->