Subversion Repositories DevTools

Rev

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

Rev Author Line No. Line
5950 dpurdie 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'   DanglingVersions.asp
5
'=====================================================
6
%>
7
<%
8
Option explicit
9
' Good idea to set when using redirect
10
Response.Expires = 0   ' always load the page, dont store
11
%>
12
<!--#include file="common/conf.asp"-->
13
<!--#include file="common/globals.asp"-->
14
<!--#include file="common/formating.asp"-->
15
<!--#include file="common/qstr.asp"-->
16
<!--#include file="common/common_subs.asp"-->
17
<%
18
'------------ ACCESS CONTROL ------------------
19
%>
6181 dpurdie 20
<!--#include file="_access_control_login_optional.asp"-->
5950 dpurdie 21
<!--#include file="_access_control_general.asp"-->
22
<%
23
'------------ Variable Definition -------------
24
Dim userId
25
Dim pkgCount
26
Dim rsQry
27
Dim Query_String
28
Dim divId
29
'------------ Constants Declaration -----------
30
'------------ Variable Init -------------------
31
'----------------------------------------------
32
%>
33
<html>
34
   <head>
35
      <title>Release Manager</title>
36
      <link rel="shortcut icon" href="<%=FavIcon%>"/>
37
      <meta http-equiv="Pragma" content="no-cache">
38
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6579 dpurdie 39
      <link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
40
      <link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
41
      <script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
42
      <script language="JavaScript" src="scripts/remote_scripting.js?ver=<%=VixVerNum%>"></script>
5950 dpurdie 43
      <!--#include file="_jquery_includes.asp"-->
44
      <!-- TIPS -->
6579 dpurdie 45
      <script language="JavaScript" src="images/tipster.js?ver=<%=VixVerNum%>"></script>
46
      <script language="JavaScript" src="images/_help_tips.js?ver=<%=VixVerNum%>"></script>
5950 dpurdie 47
      <!-- DROPDOWN MENUS -->
48
      <!--#include file="_menu_def.asp"-->
6579 dpurdie 49
      <script language="JavaScript1.2" src="images/popup_menu.js?ver=<%=VixVerNum%>"></script>
5950 dpurdie 50
      <script language="JavaScript" type="text/javascript">
51
      <!--
52
        formTips.tips.h_dangling       = stdTip(300, 'Dangling Versions', 'Dangling package versions are versions of a package that have not been released and are not associated with any Release.' +
53
                                                                  '<p>These are commonly caused by "Removing" a WIP instead of "Destroying" it.' + 
54
                                                                  '<p>Please consider destroying these versions.' 
55
                                                                  );
56
        //
57
        //	Load/Hide/Show an Ajax expander
58
        //	BaseId - Base for two IDs.
59
        //			 IMG_BaseId - image to to toggle
60
        //			 BaseId - Div to load data into
61
        //	url - Url used to load subcontrol
62
        function ToggleUsedByControl(baseId, url)
63
        {
64
        	var img, dmode;
65
        	var imgel = MM_findObj("IMG_" + baseId);
66
        	var divel = MM_findObj(baseId);
67
        	var showing = divel.getAttribute("data-show");
68
        	if(showing == 1)
69
        	{
70
        		img = "images/bt_minus.gif";
71
        		dmode = 'block';
72
        		showing = 2
73
        	}
74
        	else if(showing == 2)
75
        	{
76
        		img = "images/bt_plus.gif";
77
        		dmode = 'none';
78
        		showing = 1;
79
        	}
80
        	else
81
        	{
82
        		img = "images/bt_minus.gif";
83
        		dmode = 'block';
84
        		showing = 2;
85
 
86
        		// Set div name for ajax loading
87
        		ajaxdivname = baseId;
88
 
89
        		//Create the xmlHttp object to use in the request
90
        		//stateChangeHandler will fire when the state has changed, i.e. data is received back
91
        		// This is non-blocking (asynchronous)
92
        		xmlHttp = GetXmlHttpObject(stateChangeHandler);
93
 
94
        		//Send the xmlHttp get to the specified url
95
        		xmlHttp_Get(xmlHttp, url);
96
        	}
97
        	// Update image and attributes
98
        	imgel.src = img;
99
        	divel.style.display = dmode;
100
        	divel.setAttribute("data-show", showing);
101
        }
102
      //-->
103
      </script>
104
      <style type="text/css">
105
      <!--
106
      .style1 {
107
         font-family: Arial, Helvetica, sans-serif;
108
         font-size: 12px;
109
      }
110
      .style3 {
111
         font-size: 11px;
112
         font-family: tahoma, sans-serif;
113
      }
114
      -->
115
      </style>
116
   </head>
117
   <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
118
      <!-- HEADER -->
119
      <!--#include file="_header.asp"-->
120
      <!-- BODY ---->
121
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
122
         <tr>
123
            <td width="1%" background="images/bg_home_orange.gif" valign="top">
124
            <!--#include file="_front_explorer.asp"-->
125
            </td>
126
            <td rowspan="2" width="1%" valign="top">
127
               <table width="100%" border="0" cellspacing="0" cellpadding="0">
128
                  <tr>
129
                     <td width="1%">
130
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
131
                           <tr>
132
                              <td colspan="3">
133
                                 <table width="100%" border="0" cellspacing="0" cellpadding="0">
134
                                    <tr>
135
                                       <td background="images/bg_comp_gear.gif"><img src="images/img_comp_gear_left.jpg" width="436" height="88"></td>
136
                                       <td align="right" background="images/bg_comp_gear.gif"><img src="images/img_comp_gear_right.jpg" width="70" height="88"></td>
137
                                    </tr>
138
                                 </table>
139
                              </td>
140
                              <td background="images/bg_action_norm.gif"></td>
141
                           </tr>
142
                           <tr>
143
                              <td width="1%"><img src="images/h_trsp_dot.gif" width="15" height="518"></td>
144
                              <td width="100%" valign="top" class="body_txt">
145
                                 <br>
146
                                 <!-- DANGLING PACKAGES ---------------------------------------------->
147
                                <%
148
                                pkgCount = 0
149
                                Set rsTemp = OraDatabase.DbCreateDynaset( GetQuery("WorkNotInProgressSummary.sql"), cint(0))
150
                                %>
151
                                 <table width="100%" border="0" cellspacing="1" cellpadding="1">
152
                                    <tr>
153
                                       <td colspan="4" class="body_sect">Dangling Package Versions by User
154
                                       <%=Quick_Help("h_dangling")%>
155
                                       </td>
156
                                    </tr>
157
                                    <tr>
158
                                       <td width="40%" nowrap class="body_txt" background="images/bg_form_lightbluedark.gif">&nbsp;User</td>
159
                                       <td width="50%" nowrap class="body_txt" background="images/bg_form_lightbluedark.gif">&nbsp;Package Count</td>
160
                                    </tr>
161
 
162
                                    <%While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
163
                                    userId = rsTemp("user_id")
164
                                    divId = "userId_" & userId
165
                                   pkgCount = rsTemp("counter")
166
                                    %>
167
                                    <tr>
168
                                       <td nowrap class="form_item">
6610 dpurdie 169
                                          <span class="txt_linked" onClick="ToggleUsedByControl('<%=divId%>','RequestUserDangle.asp?user_id=<%=userId%>');">
170
                                                <img id=IMG_<%=divId%> src="images/bt_plus.gif" border="0" align="absmiddle" hspace="3"></span>
171
                                          <span data-email='<%=rsTemp("user_email")%>' class='mailto txt_linked'>
172
                                                <%=enum_imgUserLg%><%=rsTemp("full_name")%>
173
                                          </span>
5950 dpurdie 174
                                       </td>
175
                                       <td nowrap class="body_txt"><%=pkgCount%></td>
176
                                    </tr>
177
                                    <tr>
178
                                        <td nowrap class="body_txt" colspan="3">
179
                                             <div id=<%=divId%> style="display:none;"><%=enumLOADING%></div>
180
                                         </td>
181
                                    </tr>
182
                                    <%rsTemp.MoveNext
183
                                 WEnd
184
                                 rsTemp.Close
185
                                 Set rsTemp = nothing%>
186
                                 </table>
187
                                 <!-- DANGLING PACKAGES END ------------------------------------------>
188
                              </td>
189
                              <td width="1%"><img src="images/h_trsp_dot.gif" width="15" height="10"></td>
190
                           </tr>
191
                        </table>
192
                     </td>
193
                  </tr>
194
               </table>
195
            </td>
196
            <td width="100%">&nbsp;</td>
197
         </tr>
198
         <tr>
199
            <td valign="bottom" align="center" background="images/bg_home_orange.gif"><img src="images/img_gear.gif" width="107" height="107" vspace="20" hspace="30"></td>
200
            <td>&nbsp;</td>
201
         </tr>
202
      </table>
203
      <!-- FOOTER -->
5957 dpurdie 204
      <!--#include file="_footer.asp"-->
5950 dpurdie 205
   </body>
206
</html>