Subversion Repositories DevTools

Rev

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

Rev Author Line No. Line
119 ghuddy 1
<%
2
'=====================================================
127 ghuddy 3
'                MENU DEFINITION
119 ghuddy 4
'=====================================================
5
%>
6
<%
7
'------------ CONSTANTS -----------------------
2365 dpurdie 8
Const MenuHeaderDefined = 1
119 ghuddy 9
Const LMENU_TICK = "<img src=""images/i_boxtick_on.gif"" width=""13"" height=""13"" border=""0"" vspace=""2"" align=""absmiddle"">"
10
Const LMENU_BLANK = "<img src=""images/spacer.gif"" width=""13"" height=""13"" border=""0"" vspace=""2"" align=""absmiddle"">"
11
'------------ Variable Definition -------------
12
Dim TABarray1, TABarray2, TABarray3, TABarray4, TABarray5, TABarray5D, TABarray6, TABarray6D
13
Dim imgDependenciesIcon, imgReleaseNotesIcon, imgPatchesIcon
14
Dim ReleaseMode
6577 dpurdie 15
 
119 ghuddy 16
'-- GLOBAL VARIABLES --------------------------
17
imgDependenciesIcon = "<img src='images/i_dependency.gif' border='0' align='absmiddle' hspace='3'>"
18
imgReleaseNotesIcon = "<img src='images/i_release_note.gif' border='0' align='absmiddle' hspace='3'>"
19
imgPatchesIcon = "<img src='images/i_patch_small.gif' border='0' align='absmiddle' hspace='3'>"
20
ReleaseMode = GetReleaseMode( Request("rtag_id") )
21
 
22
'----------------------------------------------
23
If IsObject(pkgInfoHash) Then
127 ghuddy 24
   If IsNull(pkgInfoHash.Item ("is_patch")) Then
5009 dpurdie 25
      If CInt(pkgInfoHash.Item ("base_view_id")) = enumBASE_VIEW_PRODUCTS  OR CInt(pkgInfoHash.Item ("base_view_id")) = enumAUTOPRODUCTS_BASE_VIEW_ID Then
127 ghuddy 26
         ' Tab for PRODUCTS
5009 dpurdie 27
         TABarray1 = Array ( imgDependenciesIcon &"Dependencies@dependencies.asp?"& Persists_Query_String( Empty ), _
28
                             "Runtime@runtime_dependencies.asp?"& Persists_Query_String( Empty ), _
29
                             "Used by@used_by.asp?"& Persists_Query_String( Empty ), _
30
                             "Processes@process_dependencies.asp?"& Persists_Query_String( Empty ), _
31
                             imgPatchesIcon &"Patches@patches.asp?"& Persists_Query_String( Empty ), _
32
                             imgReleaseNotesIcon &"Release Notes@fixed_issues.asp?"& Persists_Query_String( Empty ), _
127 ghuddy 33
                             "Documentation@documentation.asp?" & Persists_Query_String( Empty ), _
34
                             "Files and Folders@files_and_folders.asp?" & Persists_Query_String( Empty ), _
5009 dpurdie 35
                             "Action Log@action_log.asp?"& Persists_Query_String( Empty ), _
6497 dpurdie 36
                             "Unit Test@unit_test_log.asp?"& Persists_Query_String( Empty ), _
37
                             "Notifications@notifications.asp?"& Persists_Query_String( Empty ) )
127 ghuddy 38
      Else
39
         ' Tabs for other packages
5009 dpurdie 40
         TABarray1 = Array ( imgDependenciesIcon &"Dependencies@dependencies.asp?"& Persists_Query_String( Empty ), _
41
                             "Runtime@runtime_dependencies.asp?"& Persists_Query_String( Empty ), _
42
                             "Used by@used_by.asp?"& Persists_Query_String( Empty ), _
43
                             "Processes@process_dependencies.asp?"& Persists_Query_String( Empty ), _
44
                             imgPatchesIcon &"Patches@patches.asp?"& Persists_Query_String( Empty ), _
45
                             imgReleaseNotesIcon &"Release Notes@fixed_issues.asp?"& Persists_Query_String( Empty ), _
127 ghuddy 46
                             "Documentation@documentation.asp?" & Persists_Query_String( Empty ), _
47
                             "Files and Folders@files_and_folders.asp?" & Persists_Query_String( Empty ), _
5009 dpurdie 48
                             "Action Log@action_log.asp?"& Persists_Query_String( Empty ), _
6497 dpurdie 49
                             "Unit Test@unit_test_log.asp?"& Persists_Query_String( Empty ) , _
50
                             "Notifications@notifications.asp?"& Persists_Query_String( Empty ) )
127 ghuddy 51
      End If
52
   Else
53
      ' Tabs for Patches
54
      TABarray1 = Array ( imgDependenciesIcon &"Dependencies@dependencies.asp?pv_id="& Request("pv_id") &"&rtag_id="& Request("rtag_id"), _
55
                          "Used by@used_by.asp?pv_id="& Request("pv_id") &"&rtag_id="& Request("rtag_id"), _
56
                          imgReleaseNotesIcon &"Release Notes@fixed_issues.asp?pv_id="& Request("pv_id") &"&rtag_id="& Request("rtag_id"), _
57
                          "Files and Folders@files_and_folders.asp?" & Persists_Query_String( Empty ), _
58
                          "Action Log@action_log.asp?pv_id="& Request("pv_id") &"&rtag_id="& Request("rtag_id"))
59
   End If
5293 dpurdie 60
 
61
    ' Add a debug tab to show internal data
6176 dpurdie 62
    If (IsEmpty(Application("LiveSystem"))) OR canActionControl("MSMaintainer") Then
5293 dpurdie 63
        ReDim Preserve TABarray1(UBound(TABarray1) + 1)
64
        TABarray1(UBound(TABarray1)) = "Debug@pvdata.asp?"& Persists_Query_String( Empty )
65
    End If
66
 
127 ghuddy 67
End If
119 ghuddy 68
 
69
' Tabs for Import / Export Dependencies
6682 dpurdie 70
TABarray2 = Array ( "JATS style@form_update_jats_dependencies.asp?pv_id="& Request("pv_id") &"&rtag_id="& Request("rtag_id"), _
71
                    "ANT-using style@form_update_ant_dependencies.asp?pv_id="& Request("pv_id") &"&rtag_id="& Request("rtag_id"))
119 ghuddy 72
 
127 ghuddy 73
TABarray3 = Array ( "JATS style@form_export_jats_dependencies.asp?pv_id="& Request("pv_id") &"&rtag_id="& Request("rtag_id"), _
74
                    "ClearCase style@form_export_clearcase_dependencies.asp?pv_id="& Request("pv_id") &"&rtag_id="& Request("rtag_id"), _
6683 dpurdie 75
                    "ANT-using style@form_export_ant_dependencies.asp?pv_id="& Request("pv_id") &"&rtag_id="& Request("rtag_id"), _
76
                    "Simple List@form_export_simple_dependencies.asp?pv_id="& Request("pv_id") &"&rtag_id="& Request("rtag_id"))
127 ghuddy 77
 
78
TABarray4 = Array ( "Details@_wform_issues_details.asp?iss_db="& Request("iss_db") &"&iss_id="& Request("iss_id") &"&iss_db_name="& Request("iss_db_name") &"&iss_id_num="& Request("iss_id_num") , _
79
                    "Notes@_wform_issues_notes.asp?iss_db="& Request("iss_db") &"&iss_id="& Request("iss_id") &"&iss_db_name="& Request("iss_db_name") &"&iss_id_num="& Request("iss_id_num"), _
80
                    "History@_wform_issues_history.asp?iss_db="& Request("iss_db") &"&iss_id="& Request("iss_id") &"&iss_db_name="& Request("iss_db_name") &"&iss_id_num="& Request("iss_id_num") )
81
 
119 ghuddy 82
' Tabs for History window
83
TABarray5 = Array ( imgDependenciesIcon &"Dependencies@_wform_versions_history_dependencies.asp?"& Persists_Query_String( Empty ), _
127 ghuddy 84
                    "Runtime@_wform_versions_history_runtime.asp?"& Persists_Query_String( Empty ), _
85
                    "Used by@_wform_versions_history_used_by.asp?"& Persists_Query_String( Empty ), _
86
                    "Patches@_wform_versions_history_patches.asp?" & Persists_Query_String( Empty ), _
87
                    imgReleaseNotesIcon &"Release Notes@_wform_versions_history_release_notes.asp?" & Persists_Query_String( Empty ), _
88
                    "Documentation@_wform_versions_history_documentation.asp?"& Persists_Query_String( Empty ), _
3959 dpurdie 89
                    "Files and Folders@_wform_versions_history_files_and_folders.asp?" & Persists_Query_String( Empty ), _
5018 dpurdie 90
                    "Action Log@_wform_versions_history_action_log.asp?"& Persists_Query_String( Empty ) ,_
91
                    "Unit Tests@_wform_versions_history_unit_test_log.asp?"& Persists_Query_String( Empty ) )
127 ghuddy 92
 
119 ghuddy 93
TABarray5D = Array ( imgDependenciesIcon &"Dependencies@#", _
127 ghuddy 94
                     "Runtime@#", _
95
                     "Patches@#", _
96
                     imgReleaseNotesIcon &"Release Notes@#", _
97
                     "Documentation@#", _
5018 dpurdie 98
                     "Action Log@#",_
99
                     "Unit Tests@#" )
119 ghuddy 100
 
101
' Tabs for Unit Test window
127 ghuddy 102
TABarray6 = Array ( "Unit Test Details@_wform_update_unit_test.asp?rtag_id="& Request("rtag_id") &"&pv_id="& Request("pv_id") &"&test_id="& Request("test_id"), _
103
                    "Acceptance@_wform_update_unit_test_acceptance.asp?rtag_id="& Request("rtag_id") &"&pv_id="& Request("pv_id") &"&test_id="& Request("test_id"))
119 ghuddy 104
 
127 ghuddy 105
TABarray6D = Array ( "Unit Test Details@#", _
106
                     "Acceptance@#")
107
 
119 ghuddy 108
'----------------------------------------------
109
%>
110
<script language="JavaScript1.2">
111
 
6566 dpurdie 112
// ---- Popup menu helper functions----
113
function destroyThisRelease()
114
{
115
    vixConfirm('This Release will be permanently destroyed.<p>Are you sure?', {
116
            button : 'Destroy Release', 
117
            title : 'Destroy Release', 
118
            icon : 'images/i_critical.gif',
119
            url :  '_destroy_release.asp?rtag_id_list=<%=parRtag_id%>&proj_id=<%=DB_PROJ_ID%>&rfile=rtree.asp'
120
    });
121
}
122
 
6591 dpurdie 123
// Support function to copy package name into the users clipboard
124
// Would like to have used a <select>, but can't copy to clipboard in onChange under FireFox
6593 dpurdie 125
<%Dim cpm_HavePkg :cpm_HavePkg = false
126
If IsObject(pkgInfoHash) Then
127
    If pkgInfoHash.Item ("pkg_name") <> "" Then cpm_HavePkg = true    
128
End If%>
6591 dpurdie 129
var copyPackageMenu='';
6593 dpurdie 130
<%If cpm_HavePkg Then %>
6591 dpurdie 131
copyPackageMenu+='<div class="rex_clm" >&nbsp;Copy Text to Clipboard</div>';
6709 dpurdie 132
copyPackageMenu+='<div class="mmItem clipThis"><%=pkgInfoHash.Item ("pkg_name")%></div>';
133
copyPackageMenu+='<div class="mmItem clipThis"><%=pkgInfoHash.Item ("pkg_version")%></div>';
134
copyPackageMenu+='<div class="mmItem clipThis"><%=pkgInfoHash.Item ("pkg_name")%>\ <%=pkgInfoHash.Item ("pkg_version")%></div>';
135
copyPackageMenu+='<div class="mmItem clipThis"><%=pkgInfoHash.Item ("pkg_name")%>/<%=pkgInfoHash.Item ("pkg_version")%></div>';
136
copyPackageMenu+='<div class="mmItem clipThis">LinkPkgArchive (\'<%=pkgInfoHash.Item ("pkg_name")%>\', \'<%=pkgInfoHash.Item ("pkg_version")%>\');</div>';
137
copyPackageMenu+='<div class="mmItem clipThis">BuildPkgArchive (\'<%=pkgInfoHash.Item ("pkg_name")%>\', \'<%=pkgInfoHash.Item ("pkg_version")%>\');</div>';
138
copyPackageMenu+='<div class="mmItem clipThis">BuildName (\'<%=pkgInfoHash.Item ("pkg_name")%>\', \'<%=pkgInfoHash.Item ("pkg_version")%>\');</div>';
6688 dpurdie 139
copyPackageMenu+='<hr>'
6695 dpurdie 140
<%If DB_RTAG_ID <> -1 Then %>
6709 dpurdie 141
copyPackageMenu+='<div class="mmItem clipData" data-clip="<%=siteRootUrl%><%=RELEASE_MANAGER_URL%>/gotoLatestInRelease.asp?rtag_id=<%=DB_RTAG_ID%>&pv_id=<%=DB_PV_ID%>&page=<%=scriptName%>">URL to Latest Version in Release</div>';
142
copyPackageMenu+='<div class="mmItem clipData" data-clip="<%=DB_RTAG_ID%>">RtagId - <%=DB_RTAG_ID%></div>';
6591 dpurdie 143
<%End If%>
6709 dpurdie 144
copyPackageMenu+='<div class="mmItem clipData" data-clip="<%=DB_PV_ID%>">PvId - <%=DB_PV_ID%></div>';
6695 dpurdie 145
<%If DB_PROJ_ID <> -1 Then %>
6709 dpurdie 146
copyPackageMenu+='<div class="mmItem clipData" data-clip="<%=DB_PROJ_ID%>">ProjId - <%=DB_PROJ_ID%></div>';
6695 dpurdie 147
<%End If%>
148
<%End If%>
6591 dpurdie 149
 
6709 dpurdie 150
var copyReleaseMenu=[];
151
copyReleaseMenu[0]='<div class="rex_clm" >&nbsp;Copy Text to Clipboard</div>'
152
 
153
var fullName='';
6593 dpurdie 154
<%If DB_PROJ_NAME <> "" Then %>
6709 dpurdie 155
copyReleaseMenu[3]='<div class="mmItem clipThis"><%=DB_PROJ_NAME%></div>';
156
fullName+='<%=DB_PROJ_NAME%>';
6591 dpurdie 157
<%End If%>
6593 dpurdie 158
<%If DB_RTAG_NAME <> "" Then %>
6709 dpurdie 159
copyReleaseMenu[2]='<div class="mmItem clipThis"><%=DB_PROJ_NAME%> > <%=DB_RTAG_NAME%></div>';
160
copyReleaseMenu[4]='<div class="mmItem clipThis"><%=DB_RTAG_NAME%></div>';
161
fullName+=' > <%=DB_RTAG_NAME%>';
6593 dpurdie 162
<%End If%>
6709 dpurdie 163
<%If cpm_HavePkg Then %>
164
fullName+=' > <%=pkgInfoHash.Item ("pkg_name")%>';
165
fullName+=' > <%=pkgInfoHash.Item ("pkg_version")%>';
166
<%End If%>
167
copyReleaseMenu[1]='<div class="mmItem clipThis">'+fullName+'</div>'
168
if ( copyReleaseMenu[2] == copyReleaseMenu[1] ) {
169
    copyReleaseMenu[2] = '';
170
}
171
if ( copyReleaseMenu[3] == copyReleaseMenu[1] ) {
172
    copyReleaseMenu[3] = '';
173
}
174
copyReleaseMenu = copyReleaseMenu.join('');
6591 dpurdie 175
 
6709 dpurdie 176
 
6566 dpurdie 177
// ---- Popup menu definition ----
119 ghuddy 178
var linkset=new Array()
179
linkset[0]=''
180
<%=Projects_Menu ( 0 )%>
5066 dpurdie 181
 
182
linkset[1] = ''
5357 dpurdie 183
linkset[1]+='<div class="menuitems"><a target="_blank" href="<%=ACCESS_MANAGER_URL%>">Access&nbsp;Manager</a></div>'
184
linkset[1]+='<div class="menuitems"><a target="_blank" href="<%=DEPLOYMENT_MANAGER_URL%>">Deployment&nbsp;Manager</a></div>'
185
//linkset[1]+='<div class="menuitems"><a target="_blank" href="<%=PRODUCTION_MANAGER_URL%>">Production&nbsp;Manager</a></div>'
186
linkset[1]+='<div class="menuitems"><a target="_blank" href="<%=RELEASE_MANAGER_URL%>">Release&nbsp;Manager</a></div>'
5061 dpurdie 187
<%
188
'-------------------------------------------------
189
' Function:     genReleaseMode    
190
' Description:  Generate one line of the Release State dropdown menu
191
Function genReleaseMode(mode, emode, code, name, title)
192
    genReleaseMode = ""
193
    Dim href: href = ""
194
    Dim mclass : mclass = "menuitems"
195
        If mode = emode Then
196
            genReleaseMode = genReleaseMode & LMENU_TICK
197
            mclass="menuitemDisable"
198
        Else
199
            If canActionInProject() Then
5178 dpurdie 200
                If ReleaseModeAccessCheck(mode, emode) Then
5061 dpurdie 201
                    href = "<a href=""_change_release_mode.asp?mode_code=" & code & "&"& objPMod.ComposeURL() &""">"
202
                    genReleaseMode = genReleaseMode & href
203
                Else
204
                    mclass="menuitemDisable"
205
                End If
206
                genReleaseMode = genReleaseMode & LMENU_BLANK
207
            End If
208
        End If
209
        If genReleaseMode <> "" Then
210
            genReleaseMode = genReleaseMode & "<span title=""" & title & """>&nbsp;" & name &"</span>"
211
            If href <> "" Then genReleaseMode = genReleaseMode & "</a>"
212
            genReleaseMode = "<div class="""&mclass&""">" & genReleaseMode & "</div>"
213
        End If
214
    genReleaseMode = "'" & genReleaseMode & "'"
215
End Function
216
%>
119 ghuddy 217
linkset[2]=''
5178 dpurdie 218
linkset[2]+=<%=genReleaseMode(ReleaseMode,enumDB_RELEASE_IN_OPEN_MODE,        1, "Open&nbsp;Mode" , "Packages can be released freely.")%>
5061 dpurdie 219
linkset[2]+=<%=genReleaseMode(ReleaseMode,enumDB_RELEASE_IN_RESTRICTIVE_MODE, 2, "Restrictive&nbsp;Mode" , "Packages can only be released on approval.")%>
5178 dpurdie 220
linkset[2]+=<%=genReleaseMode(ReleaseMode,enumDB_RELEASE_IN_CCB_MODE,         4, "CCB&nbsp;Mode" , "Packages can only be released on CCB approval.")%>
221
linkset[2]+=<%=genReleaseMode(ReleaseMode,enumDB_RELEASE_IN_CLOSED_MODE,      3, "Closed&nbsp;Mode" , "No changes allowed.")%>
222
linkset[2]+=<%=genReleaseMode(ReleaseMode,enumDB_RELEASE_IN_PRESERVE_MODE,    6, "Preserve&nbsp;Mode" , "No change allowed. Archived, but artifacts retained in dpkg_archive")%>
223
linkset[2]+=<%=genReleaseMode(ReleaseMode,enumDB_RELEASE_IN_ARCHIVE_MODE,     5, "Archive&nbsp;Mode" , "No change allowed. Packages may be purged from dpkg_archive.")%>
5061 dpurdie 224
linkset[2]+='<hr>'
119 ghuddy 225
 
6566 dpurdie 226
<%If canActionControlInProject("CreateNewRelease") Then%>
227
   linkset[2]+='<div class="menuitems"><a href="form_add_release.asp?source_rtag_id=<%=parRtag_id%>&proj_id=<%=DB_PROJ_ID%>&branch=Y&<%=objPMod.ComposeURL()%>">Clone&nbsp;Release</a></div>'
228
<%Else%>
229
   linkset[2]+='<div class="menuitemDisable">Clone Release</div>'
230
<%End If%>
231
<%If canActionControlInProject("DestroyRelease") AND releaseIsClosed(ReleaseMode) Then%>
232
   linkset[2]+='<div class="menuitems"><a href="javascript:;" onClick="destroyThisRelease();">Destroy&nbsp;Release</a></div>'
233
<%Else%>
234
   linkset[2]+='<div class="menuitemDisable">Destroy Release</div>'
235
<%End If%>
236
 
237
linkset[2]+='<hr>'
238
 
6750 dpurdie 239
<%If (releaseIsWritable(ReleaseMode)) AND canShowControlInProject ("CloneReleaseContents") Then%>
5590 dpurdie 240
   linkset[2]+='<div class="menuitems"><a href="javascript:;" onClick="MM_openVixIFrame(\'_wform_import_release.asp?ToRtag_id=<%=parRtag_id%>&<%=objPMod.ComposeURL()%>\',\'Import Release Contents\')">Import&nbsp;Release&nbsp;Contents</a></div>'
119 ghuddy 241
<%Else%>
127 ghuddy 242
   linkset[2]+='<div class="menuitemDisable">Import&nbsp;Release&nbsp;Contents</div>'
119 ghuddy 243
<%End If%>
127 ghuddy 244
 
6750 dpurdie 245
<%If (releaseIsWritable(ReleaseMode)) AND canShowControlInProject ("ImportDependencies") Then%>
5590 dpurdie 246
   linkset[2]+='<div class="menuitems"><a href="javascript:;" onClick="MM_openVixIFrame(\'_wform_import_dependency.asp?<%=objPMod.ComposeURL()%>\',\'Import Package Dependencies\')">Import&nbsp;Dependencies</a></div>'
119 ghuddy 247
<%Else%>
127 ghuddy 248
   linkset[2]+='<div class="menuitemDisable">Import&nbsp;Dependencies</div>'
119 ghuddy 249
<%End If%>
127 ghuddy 250
 
6750 dpurdie 251
<%If (releaseIsWritable(ReleaseMode)) AND canShowControlInProject ("ImportDependencies") Then%>
5590 dpurdie 252
   linkset[2]+='<div class="menuitems"><a href="javascript:;" onClick="MM_openVixIFrame(\'_wform_import_daemonconfig.asp?<%=objPMod.ComposeURL()%>\',\'Import Daemon Configuration\')">Import&nbsp;Daemon&nbsp;Config</a></div>'
4307 dpurdie 253
<%Else%>
254
   linkset[2]+='<div class="menuitemDisable">Import&nbsp;Daemon&nbsp;Config</div>'
255
<%End If%>
256
 
5049 dpurdie 257
linkset[2]+='<hr>'
5061 dpurdie 258
linkset[2]+='<div class="menuitems"><a href="form_edit_release.asp?rtag_id=<%=parRtag_id%>">Release&nbsp;Properties</a></div>'
6770 dpurdie 259
linkset[2]+='<div class="menuitems"><a href="form_release_replication.asp?rtag_id=<%=parRtag_id%>">Release&nbsp;Replication</a></div>'
5263 dpurdie 260
linkset[2]+='<div class="menuitems"><a href="diff.asp?rtagA=<%=parRtag_id%>&rtagB=<%=parRtag_id%>" >Merge&nbsp;Manager</a></div>'
127 ghuddy 261
linkset[2]+='<div class="menuitems"><a href="form_view_release_licencing.asp?rtag_id=<%=parRtag_id%>">View Licencing</a></div>'
6181 dpurdie 262
<%If (canActionControlInProject ("EditPackageLicence") OR canActionControl("MSMaintainer")) AND releaseIsWritable(ReleaseMode) Then%>
127 ghuddy 263
linkset[2]+='<div class="menuitems"><a href="form_edit_release_licencing.asp?rtag_id=<%=parRtag_id%>">Edit Licencing</a></div>'
5338 dpurdie 264
<%Else%>
265
linkset[2]+='<div class="menuitemDisable">Edit Licencing</div>'
266
<%End If%>
6122 dpurdie 267
linkset[2]+='<div class="menuitems"><a href="form_view_deployable_state.asp?rtag_id=<%=parRtag_id%>">View Deployable Flags</a></div>'
6624 dpurdie 268
linkset[2]+='<div class="menuitems"><a href="form_view_package_owners.asp?rtag_id=<%=parRtag_id%>">View Package Owners</a></div>'
6181 dpurdie 269
<%If releaseIsWritable(ReleaseMode) Then %>
5590 dpurdie 270
linkset[2]+='<div class="menuitems"><a href="javascript:;" onClick="MM_openVixIFrame(\'wAddDaemonInstruction.asp?ToRtag_id=<%=parRtag_id%>&<%=objPMod.ComposeURL()%>\',\'Add Daemon Instruction\')">Add&nbsp;Daemon&nbsp;Instruction</a></div>'
6181 dpurdie 271
<%Else%>
6566 dpurdie 272
linkset[2]+='<div class="menuitemDisable">Add Daemon Instruction</div>'
6181 dpurdie 273
<%End If %>
5176 dpurdie 274
linkset[2]+='<hr>'
275
linkset[2]+='<div class="menuitems"><a href="build_order.asp?rtag_id=<%=parRtag_id%>">Build&nbsp;Order</a></div>'
5899 dpurdie 276
linkset[2]+='<div class="menuitems"><a href="dependencies.asp?rtag_id=<%=parRtag_id%>&RebuildIcons=1">Rebuild&nbsp;Status&nbsp;Icons</a></div>'
5473 dpurdie 277
linkset[2]+='<div class="menuitems"><a href="unused_packages.asp?rtag_id=<%=parRtag_id%>">Unused&nbsp;Packages</a></div>'
6576 dpurdie 278
linkset[2]+='<div class="menuitems"><a href="release_stats.asp?rtag_id=<%=parRtag_id%>">Release&nbsp;Statistics</a></div>'
119 ghuddy 279
 
5338 dpurdie 280
linkset[6]=''
281
linkset[6]+='<div class="menuitems"><a href="admin_build_test_page.asp">Release&nbsp;Manager&nbsp;Tests</a></div>'
5061 dpurdie 282
<%If canActionControl("MSMaintainer") Then%>
4399 dpurdie 283
   linkset[6]+='<div class="menuitems"><a href="admin_session_details.asp">Session&nbsp;Details</a></div>'
5983 dpurdie 284
<%Else%>
285
   linkset[6]+='<div class="menuitemDisable">Session&nbsp;Details</div>'
4399 dpurdie 286
<%End If%>
5983 dpurdie 287
linkset[6]+='<hr>'
6770 dpurdie 288
linkset[6]+='<div class="menuitems"><a href="admin_blat_machines.asp">Package Replication</a></div>'
5983 dpurdie 289
linkset[6]+='<div class="menuitems"><a href="admin_gbe_machtype.asp">GBE&nbsp;MachType</a></div>'
290
linkset[6]+='<div class="menuitems"><a href="admin_gbe_machclass.asp">GBE&nbsp;MachClass</a></div>'
291
linkset[6]+='<div class="menuitems"><a href="admin_build_machine.asp">Build&nbsp;Machine</a></div>'
292
linkset[6]+='<div class="menuitems"><a href="admin_gbe_buildstandard.asp">Build&nbsp;Standards</a></div>'
5982 dpurdie 293
linkset[6]+='<div class="menuitems"><a href="admin_licences.asp">Licences</a></div>'
294
linkset[6]+='<div class="menuitems"><a href="admin_vcs_types.asp">Version&nbsp;Control&nbsp;Systems</a></div>'
5983 dpurdie 295
linkset[6]+='<hr>'
296
<%If canActionControl("CreateNewProject") Then %>
297
    linkset[6]+='<div class="menuitems"><a href="javascript:;" onClick="MM_openVixIFrame(\'_wform_new_project.asp\',\'Create a New Project\')">New&nbsp;Project</a></div>'
298
<%Else%>
299
    linkset[6]+='<div class="menuitemDisable">New&nbsp;Project</div>'
3959 dpurdie 300
<%End If%>
5983 dpurdie 301
linkset[6]+='<div class="menuitems"><a href="admin_projects.asp">Project&nbsp;Info</a></div>'
302
linkset[6]+='<div class="menuitems"><a href="admin_project_suffix.asp">Project&nbsp;Suffix</a></div>'
5853 dpurdie 303
linkset[6]+='<hr>'
5983 dpurdie 304
linkset[6]+='<div class="menuitems"><a href="admin_package_properties.asp">Package&nbsp;Properties</a></div>'
6584 dpurdie 305
linkset[6]+='<div class="menuitems"><a href="admin_baseviews.asp">Manage&nbsp;Base&nbsp;Views</a></div>'
5983 dpurdie 306
linkset[6]+='<hr>'
5853 dpurdie 307
linkset[6]+='<div class="menuitems"><a href="project_log.asp">Project&nbsp;Log</a></div>'
5950 dpurdie 308
linkset[6]+='<div class="menuitems"><a href="DanglingVersions.asp">Dangling&nbsp;Packages</a></div>'
119 ghuddy 309
 
310
linkset[5]=''
311
<%If Not objAccessControl.UserLogedIn Then%>
4955 dpurdie 312
   linkset[5]+='<div class="menuitems"><a href="Login.asp?rfile=<%=scriptName & QSTR_FullQuery%>">Login</a></div>'
5725 dpurdie 313
   linkset[5]+='<div class="menuitemDisable">Logout</div>'
119 ghuddy 314
<%Else%>
5725 dpurdie 315
   linkset[5]+='<div class="menuitems"><a href="Login.asp?rfile=<%=scriptName & QSTR_FullQuery%>">Login as ...</a></div>'
6240 dpurdie 316
   <%If canActionControl("Masquerade") Then%>
317
        linkset[5]+='<div class="menuitems"><a href="Masquerade.asp?rfile=<%=scriptName & QSTR_FullQuery%>">Masquerade as ...</a></div>'
318
   <%End If%>
4955 dpurdie 319
   linkset[5]+='<div class="menuitems"><a href="_Logout.asp">Logout</a></div>'
119 ghuddy 320
<%End If%>
127 ghuddy 321
 
3959 dpurdie 322
linkset[5]+='<div class="menuitems"><a href="members_pkgs_followed.asp">Notifications</a></div>'
119 ghuddy 323
linkset[5]+='<div class="menuitems"><a href="members_personal_view.asp">Views</a></div>'
324
linkset[5]+='<div class="menuitems"><a href="members_my_details.asp">My&nbsp;Details</a></div>'
325
linkset[5]+='<div class="menuitems"><a href="members_my_roles.asp">My&nbsp;Roles</a></div>'
326
 
327
linkset[7]=''
151 ghuddy 328
linkset[7]+='<div class="menuitems"><a href="release_config.asp?rtag_id=<%=parRtag_id%>">Configuration</a></div>'
119 ghuddy 329
linkset[7]+='<div class="menuitems"><a href="build_status.asp?rtag_id=<%=parRtag_id%>">Status</a></div>'
5623 dpurdie 330
linkset[7]+='<div class="menuitems"><a href="build_plan.asp?rtag_id=<%=parRtag_id%>">Plan</a></div>'
5008 dpurdie 331
linkset[7]+='<div class="menuitems"><a href="build_release_log.asp?rtag_id=<%=parRtag_id%>">Build Log</a></div>'
119 ghuddy 332
 
147 ghuddy 333
linkset[8]=''
5892 dpurdie 334
linkset[8]+='<div class="menuitems"><a href="admin_build_service.asp">Build&nbsp;Service</a></div>'
5097 dpurdie 335
linkset[8]+='<div class="menuitems"><a href="admin_build_status.asp">Daemon&nbsp;Status</a></div>'
5008 dpurdie 336
linkset[8]+='<div class="menuitems"><a href="build_release_log.asp">Daemon&nbsp;Build&nbsp;Log</a></div>'
5097 dpurdie 337
linkset[8]+='<div class="menuitems"><a href="admin_daemon_instructions.asp">Daemon&nbsp;Instructions</a></div>'
6770 dpurdie 338
linkset[8]+='<hr>'
339
linkset[8]+='<div class="menuitems"><a href="build_replication_status.asp">Package&nbsp;Replication</a></div>'
119 ghuddy 340
 
3959 dpurdie 341
linkset[9]=''
342
linkset[9]+='<div class="menuitems"><a href="Wikiasp/wiki.asp" target="_blank">Release&nbsp;Notes</a></div>'
343
<%If (IsEmpty(Application("LiveSystem"))) Then%>
344
linkset[9]+='<div class="menuitems"><a href="Wikiasp/wiki.asp?db=ImplementationNotes" target="_blank">Development&nbsp;Notes</a></div>'
345
<%End If%>
346
linkset[9]+='<div class="menuitems"><a href="help/index.asp" target="_blank">Internal&nbsp;Help(old)</a></div>'
347
linkset[9]+='<div class="menuitems"><a href="_about.asp" target="_blank">About</a></div>'
119 ghuddy 348
 
349
</script>
350
<%
351
Sub Print_TopRight_Menu_ROW1
5102 dpurdie 352
   Response.write "<table bgcolor='#ffffff' border='0' cellpadding='0' cellspacing='0' height='26'>"
6584 dpurdie 353
   Response.write "  <tr class='nowrap'> "
127 ghuddy 354
   If objAccessControl.UserLogedIn Then
6610 dpurdie 355
      Response.write "    <td class='mmEntry'><a class=mmItem href='' onMouseover=""showmenu(event,linkset[5])"" onMouseout=""delayhidemenu()"">" & enum_imgUserLg & objAccessControl.FullName &"</a>&nbsp;&nbsp;</td>"
5071 dpurdie 356
   Else
5725 dpurdie 357
      Response.write "    <td class='mmEntry'><a class=mmItem href='Login.asp?rfile=" & scriptName & QSTR_FullQuery & "' onMouseover=""showmenu(event,linkset[5])"" onMouseout=""delayhidemenu()"">Login</a>&nbsp;&nbsp;</td>"
127 ghuddy 358
   End If
359
   Response.write "   <td align=middle>|</td>"
5360 dpurdie 360
   Response.write "    <td class='mmEntry'><a class=mmItem href='' onMouseover=""showmenu(event,linkset[1])"" onMouseout=""delayhidemenu()"">Suite</a></td>"
5066 dpurdie 361
   Response.write "   <td align=middle>|</td>"
5102 dpurdie 362
   If InStr(1,ScriptName,"sdk_", 1) <> 0 Then
5360 dpurdie 363
   Response.write "    <td class='mmEntry'><a class=mmItem href='index.asp'>Releases</a></td>"
127 ghuddy 364
   Response.write "   <td align=middle>|</td>"
5102 dpurdie 365
   Else
5360 dpurdie 366
   Response.write "    <td class='mmEntry'><a class=mmItem href='sdk_main_page.asp#url=sdk_names_body.asp'>SDK</a></td>"
147 ghuddy 367
   Response.write "   <td align=middle>|</td>"
5102 dpurdie 368
   End If
5360 dpurdie 369
   Response.write "   <td class='mmEntry'><a class=mmItem href='index.asp' onMouseover=""showmenu(event,linkset[0])"" onMouseout=""delayhidemenu()"">Projects</a></td>"
127 ghuddy 370
   Response.write "   <td align=middle>|</td>"
5360 dpurdie 371
   Response.write "    <td class='mmEntry'><a class=mmItem href='reports.asp'>Reports</a></td>"
5102 dpurdie 372
   Response.write "   <td align=middle>|</td>"
5360 dpurdie 373
   Response.write "    <td class='mmEntry'><a class=mmItem href='' onMouseover=""showmenu(event,linkset[8])"" onMouseout=""delayhidemenu()"">Build</a></td>"
5102 dpurdie 374
   Response.write "   <td align=middle>|</td>"
5360 dpurdie 375
   Response.write "    <td class='mmEntry'><a class=mmItem href='' onMouseover=""showmenu(event,linkset[6])"" onMouseout=""delayhidemenu()"">Admin</a></td>"
5102 dpurdie 376
   Response.write "   <td align=middle>|</td>"
5360 dpurdie 377
   Response.write "    <td class='mmEntry'><a class=mmItem href='' onMouseover=""showmenu(event,linkset[9])"" onMouseout=""delayhidemenu()"">Help</a></td>"
127 ghuddy 378
   Response.write "  </tr>"
379
   Response.write "</table>"
119 ghuddy 380
End Sub
381
 
382
 
383
Sub Print_TopRight_Menu_ROW2
127 ghuddy 384
   Response.write "<table bgcolor='#ffffff' border='0' cellpadding='0' cellspacing='0' height='35'>"
385
   Response.write "  <tr> "
386
   If QStrPar("rtag_id") <> "" Then
5328 dpurdie 387
       Dim lxrContent : lxrContent = RenderLxrStateString(releaseInfoHash("rtag_id"),releaseInfoHash("lxr"),releaseInfoHash("lxrserver"), releaseInfoHash("official")," LXR")
5263 dpurdie 388
      If lxrContent <> "" Then
5360 dpurdie 389
        Response.write "   <td class='mmEntry'>"& lxrContent &"</td>"
5207 dpurdie 390
        Response.write "   <td align=middle>|</td>"
391
      End If
5360 dpurdie 392
      Response.write "    <td class='mmEntry'><a class=mmItem href='#' onMouseover=""showmenu(event,linkset[2])"" onMouseout=""delayhidemenu()"">Release</a></td>"
393
      Response.write "    <td align=middle>|</td>"
394
      Response.write "    <td class='mmEntry'><a class=mmItem href='#' onMouseover=""showmenu(event,linkset[7])"" onMouseout=""delayhidemenu()"">Build</a></td>"
127 ghuddy 395
   Else
5360 dpurdie 396
      Response.write "    <td class='mmEntry mmItemDisable'>Release</td>"
397
      Response.write "    <td align=middle>|</td>"
398
      Response.write "    <td class='mmEntry mmItemDisable'>Build</td>"
127 ghuddy 399
   End If
400
   Response.write "  </tr>"
401
   Response.write "</table>"
119 ghuddy 402
End Sub
403
 
404
 
405
Sub Print_TopLeft_Menu
5071 dpurdie 406
   Dim HomeSTR, ProjSTR, RtagSTR,ModeSTR
407
   Dim ActionSTR
127 ghuddy 408
 
409
   HomeSTR = "<a class=mmItem href='index.asp'>HOME</a>"
6577 dpurdie 410
   RtagSTR = ""
411
   ProjSTR = ""
127 ghuddy 412
 
6577 dpurdie 413
   If DB_RTAG_ID > 0 Then RtagSTR = "&nbsp;&gt;&nbsp;<a class=mmItem href='dependencies.asp?rtag_id="& DB_RTAG_ID &"'>"& DB_RTAG_NAME &"</a>"
414
   If DB_PROJ_ID > 0 Then ProjSTR = "&nbsp;&gt;&nbsp;<a class=mmItem href='rtree.asp?proj_id="& DB_PROJ_ID &"'>"& DB_PROJ_NAME &"</a>"
127 ghuddy 415
 
5071 dpurdie 416
   '-- Calculate authorisation state
417
   ActionSTR = ""
418
   If NOT canActionInProject Then
419
    ActionSTR = "&nbsp;[Not Authorised]"
420
    ActionSTR = "<img src='images/i_not_authorised.png' width='10' height='10' border='0' hspace='2' title='Not Authorised to make changes in this project'>" 
421
   End If
127 ghuddy 422
 
5071 dpurdie 423
   '-- Append Mode indication
424
   ModeSTR = ""
127 ghuddy 425
   If ReleaseMode = enumDB_RELEASE_IN_RESTRICTIVE_MODE Then
5071 dpurdie 426
      ModeSTR = "&nbsp;[Restrictive Mode]"
127 ghuddy 427
 
428
   ElseIf ReleaseMode = enumDB_RELEASE_IN_CCB_MODE Then
5071 dpurdie 429
      ModeSTR = "&nbsp;[CCB Mode!]"
127 ghuddy 430
 
431
   ElseIf ReleaseMode = enumDB_RELEASE_IN_CLOSED_MODE Then
5071 dpurdie 432
      ModeSTR = "<img src='images/i_locked.gif' width='7' height='10' border='0' hspace='2' >&nbsp;[Closed Mode]"
127 ghuddy 433
 
5177 dpurdie 434
   ElseIf ReleaseMode = enumDB_RELEASE_IN_CLOSED_MODE Then
435
      ModeSTR = "<img src='images/i_locked.gif' width='7' height='10' border='0' hspace='2' >&nbsp;[Closed Mode]"
436
 
437
   ElseIf ReleaseMode = enumDB_RELEASE_IN_PRESERVE_MODE Then
438
      ModeSTR = "<img src='images/i_locked.gif' width='7' height='10' border='0' hspace='2' >&nbsp;[Preserve Mode]"
439
 
4078 dpurdie 440
   ElseIf ReleaseMode = enumDB_RELEASE_IN_ARCHIVE_MODE Then
5071 dpurdie 441
       ModeSTR = "<img src='images/i_archived.gif' width='7' height='10' border='0' hspace='2' >&nbsp;[Archived Mode]"
4078 dpurdie 442
 
127 ghuddy 443
   End If
444
 
5984 dpurdie 445
    Dim PkgNameSTR, PkgVersionSTR
446
    PkgNameSTR = ""
447
    PkgVersionSTR = ""
448
    If IsObject(pkgInfoHash) Then
6427 dpurdie 449
        If pkgInfoHash.Item("pkg_name") <> "" Then
450
            PkgNameSTR = "&nbsp;&gt;&nbsp;<a class=mmItem href='view_by_version.asp?pkg_id="& pkgInfoHash.Item("pkg_id") &"&listby=1'>"& pkgInfoHash.Item("pkg_name")& "</a>"
6683 dpurdie 451
            PkgVersionSTR = "&nbsp;&gt;&nbsp;<a class=mmItem href='dependencies.asp?rtag_id="& DB_RTAG_ID &"&pv_id=" & DB_PV_ID & "'>"& pkgInfoHash.Item("pkg_version") &"</a>"
6427 dpurdie 452
        End If
5984 dpurdie 453
    End IF
454
 
5071 dpurdie 455
   '-- Render Menu --
456
   Response.write "<table width='100%' border='0' cellspacing='0' cellpadding='0'>"
457
   Response.write "  <tr>"
458
   Response.write "    <td width='1%'><img src='images/h_trsp_dot.gif' width='30' height='35'></td>"
6695 dpurdie 459
   Response.write "    <td nowrap width='100%' class='mmItem pointer' >"& HomeSTR & ProjSTR & ActionSTR &  RtagSTR & ModeSTR & PkgNameSTR & PkgVersionSTR
460
   Response.write "        &nbsp;<span onClick='showmenu(event,copyReleaseMenu)' onmouseout='delayhidemenu()'>" & enum_imgClipBoard10 & "</span>"
6623 dpurdie 461
   Response.write "    </td>"
5071 dpurdie 462
   Response.write "  </tr>"
463
   Response.write "</table>"
119 ghuddy 464
End Sub
465
 
5984 dpurdie 466
'-----------------------------------------------------------
467
' Display package breadcrumbs, when displaying package details 
468
' outside the context of a Release
469
'
119 ghuddy 470
Sub Print_Package_TopLeft_Menu
5984 dpurdie 471
    Dim PkgNameSTR, PkgVersionSTR, PkgLock
472
    If IsObject(pkgInfoHash) Then
473
        PkgNameSTR = "<a class=mmItem href='view_by_version.asp?pkg_id="& pkgInfoHash.Item("pkg_id") &"&listby=1'>"& pkgInfoHash.Item("pkg_name")& "</a>"
474
        PkgVersionSTR = " &gt; <a class=mmItem href='#'>"& pkgInfoHash.Item("pkg_version") &"</a>"
475
        PkgLock = pkgInfoHash.Item("dlocked")
476
    else
477
        Dim SSpkgID, SSpkgName, SSpkgVersion, SSsrc_path, SSpkgDesc, BBdlocked
478
        Call Get_Pkg_Short_Info( Request("pv_id"), SSpkgID, SSpkgName, SSpkgVersion, SSsrc_path, SSpkgDesc, BBdlocked )
127 ghuddy 479
 
5984 dpurdie 480
        PkgNameSTR = "<a class=mmItem href='view_by_version.asp?pkg_id="& SSpkgID &"&listby=1'>"& SSpkgName& "</a>"
481
        PkgVersionSTR = " &gt; <a class=mmItem href='#'>"& SSpkgVersion &"</a>"
482
        PkgLock = BBdlocked
483
    End If
2365 dpurdie 484
 
5984 dpurdie 485
    Response.write "<table width='100%' border='0' cellspacing='0' cellpadding='0'>"
486
    Response.write "  <tr>"
487
    Response.write "    <td width='1%'><img src='images/h_trsp_dot.gif' width='30' height='35'></td>"
488
    Response.write "    <td nowrap width='100%' class=mmItem>"& PkgNameSTR & PkgVersionSTR
489
    If (PkgLock= "Y") OR (PkgLock = "A") Then
6593 dpurdie 490
        Response.write "<img src='images/i_locked.gif' width='7' height='10' border='0' hspace='2' title='Packages locked'>"
5984 dpurdie 491
    End If
492
    Response.write "    </td>"
493
    Response.write "  </tr>"
494
    Response.write "</table>"
119 ghuddy 495
End Sub
496
 
5984 dpurdie 497
'-----------------------------------------------------------
498
'   Generate the list of projects in a menu item
119 ghuddy 499
Function Projects_Menu ( NNarrIndex )
127 ghuddy 500
   Dim rsTemp, Query_String, tempSTR
501
   tempSTR = ""
502
   Query_String = _
6124 dpurdie 503
	"select unique p.* from release_tags rt, projects p where rt.PROJ_ID = p.PROJ_ID and rt.official in ('N','R','C','P') ORDER BY p.proj_name ASC"
504
   '" SELECT * FROM projects ORDER BY proj_name ASC"
127 ghuddy 505
   Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
506
   While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
507
      tempSTR = tempSTR & "linkset["& NNarrIndex &"]+='<div class=""menuitems""><a href=""rtree.asp?proj_id="& rsTemp.Fields("proj_id") &""">"& Replace(rsTemp.Fields("proj_name"), " ", "&nbsp;") &"</a></div>'"& VBNewLine
508
      rsTemp.MoveNext
509
   WEnd
510
   Projects_Menu = tempSTR
511
   rsTemp.Close
512
   Set rsTemp = nothing
119 ghuddy 513
End Function
514
 
515
'Function Get_Proj ( NNrtag_id, NNvtree_id )
127 ghuddy 516
'   Dim rsTemp, Query_String, tempRtag_id
517
'   If NNvtree_id = "" Then
518
'      If NNrtag_id = "" Then
519
'         tempRtag_id = -1
520
'      Else
521
'         tempRtag_id = NNrtag_id
522
'      End If
523
'      Query_String = _
524
'      " SELECT vt.vtree_id, vt.proj_id"&_
525
'        "   FROM release_tags rel, vtrees vt"&_
526
'       "   WHERE vt.vtree_id = rel.vtree_id AND rel.rtag_id = "& tempRtag_id
527
'   Else
528
'      Query_String = _
529
'      " SELECT vt.vtree_id, vt.proj_id"&_
530
'        "   FROM vtrees vt"&_
531
'       "   WHERE vt.vtree_id = "& NNvtree_id
532
'   End If
533
'
534
'   Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
535
'
536
'   If ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF)) Then
537
'      Get_Proj = (rsTemp.Fields("proj_id"))
538
'      NNvtree_id = (rsTemp.Fields("vtree_id"))
539
'   Else
540
'      Get_Proj = -1
541
'      NNvtree_id = -1
542
'   End If
543
'
544
'   rsTemp.Close
545
'   Set rsTemp = nothing
119 ghuddy 546
'End Function
547
 
548
 
549
 
127 ghuddy 550
%>