Subversion Repositories DevTools

Rev

Rev 5590 | Rev 6371 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5357 dpurdie 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
Option explicit
4
Response.Expires = 0	' always load the page, dont store
5
%>
6
<%
7
'=====================================================
8
'					New Public View
9
'=====================================================
10
%>
11
<!--#include file="common/conf.asp"-->
12
<!--#include file="common/globals.asp"-->
13
<!--#include file="common/qstr.asp"-->
14
<!--#include file="common/common_subs.asp"-->
15
<!--#include file="common/common_dbedit.asp"-->
16
<!--#include file="common/_popup_window_common.asp"-->
17
<%
18
'------------ ACCESS CONTROL ------------------
19
%>
20
<!--#include file="_access_control_login.asp"-->
21
<!--#include file="_access_control_general.asp"-->
22
<%
23
'------------ Variable Definition -------------
24
Dim rsTemp
25
'------------ Constants Declaration -----------
26
'------------ Variable Init -------------------
27
'----------------------------------------------
28
%>
29
<%
30
Function Get_All_Pkg_Names
5590 dpurdie 31
	Get_All_Pkg_Names = " SELECT * FROM packages WHERE pkg_id > 0 ORDER BY UPPER(pkg_name) ASC"
5357 dpurdie 32
End Function
33
%>
34
<%
35
'Process submition
36
If CBool(QStrPar("action"))  Then
5590 dpurdie 37
	Call OpenInParentWindow("_add_new_public_view.asp?FRviewname=" & QStrPar("FRviewname") & "&FRpkginc=" & Request("FRpkginc"))
5957 dpurdie 38
    Call Destroy_All_Objects
5590 dpurdie 39
    Response.End
5357 dpurdie 40
End If
41
%>
42
<html>
43
<head>
44
<title>Release Manager</title>
45
<link rel="shortcut icon" href="<%=FavIcon%>"/>
46
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
47
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
48
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
49
<link rel="stylesheet" href="images/navigation.css" type="text/css">
50
<script language="JavaScript" src="images/common.js"></script>
51
<!-- TIPS -->
52
<script language="JavaScript" src="images/tipster.js"></script>
53
<script language="JavaScript" src="images/_help_tips.js"></script>
54
</head>
55
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="document.newview.FRviewname.focus()">
56
<!-- TIPS LAYERS -------------------------------------->
57
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
58
<!----------------------------------------------------->
5590 dpurdie 59
<form class="form_tight" name="newview" method="post" action="<%=scriptName%>?done=done<%=QSTR_FullQuery%>" onSubmit="return check();">
60
  <table width="100%" border="0" cellspacing="0" cellpadding="2">
5357 dpurdie 61
    <tr>
62
      <td valign="top" nowrap colspan="3" class="wform_ttl">
63
        <table width="100%" border="0" cellspacing="1" cellpadding="2">
64
          <tr>
65
            <td width="1%" nowrap class="form_group" valign="bottom"></td>
66
            <td nowrap width="100%" align="right" class="form_step">&nbsp;</td>
67
          </tr>
68
          <tr>
69
            <td colspan="2" width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">
70
              View Name</td>
71
          </tr>
72
          <tr>
73
            <td colspan="2" width="1%" nowrap background="images/bg_form_lightgray.gif">
74
              <input type="text" name="FRviewname" maxlength="30" class="form_item">
5590 dpurdie 75
            </td>
5357 dpurdie 76
          </tr>
77
          <tr>
78
            <td width="1%" nowrap class="form_group" valign="bottom"></td>
79
            <td nowrap width="100%" align="right" class="form_step"></td>
80
          </tr>
81
          <tr>
82
            <td colspan="2" width="1%" nowrap class="form_field">
5590 dpurdie 83
              <div style="min-height:300px;max-height:500px;overflow:auto;">
5357 dpurdie 84
              <table width="100%" border="0" cellspacing="1" cellpadding="2">
85
                <tr>
86
                  <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field">&nbsp;</td>
87
                  <td background="images/bg_form_lightbluedark.gif" nowrap width="100%" class="form_field">Package Name</td>
88
                </tr>
89
                <%Set rsTemp = OraDatabase.DbCreateDynaset( Get_All_Pkg_Names, cint(0))
90
				While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))%>
91
                <tr>
92
                  <td background="images/bg_form_lightgray.gif" nowrap class="form_item">
93
                    <input type="checkbox" name="FRpkginc" value="<%=rsTemp.Fields("pkg_id")%>">
94
                  </td>
95
                  <td background="images/bg_form_lightgray.gif" class="form_item"><%=rsTemp.Fields("pkg_name")%></td>
96
                </tr>
97
                <%rsTemp.MoveNext
98
			  	WEnd%>
99
				<%If rsTemp.RecordCount < 1 Then%>
100
				<tr>
101
                  <td background="images/bg_form_lightgray.gif" nowrap class="form_item"></td>
102
                  <td background="images/bg_form_lightgray.gif" class="err_alert">NO PACKAGES FOUND!</td>
103
                </tr>
104
				<%End If%>
105
              </table>
5590 dpurdie 106
              </div>
5357 dpurdie 107
            </td>
108
          </tr>
109
        </table>
110
      </td>
111
    </tr>
112
    <tr>
113
    </tr>
5590 dpurdie 114
    <tr>
115
      <td align="right">
116
	  	<input type="hidden" name="action" value="true">
117
        <input type="submit" name="btn" value="Create" class="form_btn_comp" onClick="clickedButton=true;MM_validateForm('FRviewname','View Name','R');return document.MM_returnValue">
118
        <input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="parent.closeIFrame()">
119
      </td>
120
    </tr>
5357 dpurdie 121
  </table>
122
</form>
123
</body>
124
</html>
125
<%
126
Call Destroy_All_Objects
127
%>