Subversion Repositories DevTools

Rev

Rev 5071 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5071 Rev 5080
Line 1... Line 1...
1
<%
1
<%
2
'=====================================================
2
'=====================================================
-
 
3
'   _environment.asp
3
'               Build Environment
4
'   Build Environment
-
 
5
'   Generate the left-hand panel for pages that show Release Content
4
'=====================================================
6
'=====================================================
5
%>
7
%>
6
<!--#include file="_tabs_definition_env.asp"-->
8
<!--#include file="_tabs_definition_env.asp"-->
7
<!--#include file="common/_form_window_common.asp"-->
9
<!--#include file="common/_form_window_common.asp"-->
8
<%
10
<%
Line 567... Line 569...
567
 
569
 
568
   // Store to cookie
570
   // Store to cookie
569
   document.cookie = '<%=COOKIE_RELMGR_SHOW_VIEW%>' + '=' + us;
571
   document.cookie = '<%=COOKIE_RELMGR_SHOW_VIEW%>' + '=' + us;
570
}
572
}
571
 
573
 
-
 
574
//  Name:   addSdk
-
 
575
//  Desc:   Button Action for adding an SDk to the Release
-
 
576
//          Will display a modal iframe and populate it with content
572
function addSdk()
577
function addSdk()
573
{
578
{
574
    var width = 400
579
    var width = 400
575
    var height = 150
580
    var height = 150
576
    var o1 = MM_findObj('sdkDiv');
581
    var o1 = MM_findObj('sdkDiv');
Line 590... Line 595...
590
 
595
 
591
        o1.addEventListener('click', closeIFrame);
596
        o1.addEventListener('click', closeIFrame);
592
    }
597
    }
593
}
598
}
594
 
599
 
-
 
600
//  Name:   closeIFrame
-
 
601
//  Desc:   To be called from an embedded iFrame to close the 
-
 
602
//          div and optional display a new page
595
function closeIFrame(ref)
603
function closeIFrame(ref)
596
{
604
{
597
    var o1 = MM_findObj('sdkDiv');
605
    var o1 = MM_findObj('sdkDiv');
598
    if (o1 != null ) {
606
    if (o1 != null ) {
599
        o1.style.display = 'none';
607
        o1.style.display = 'none';
600
 
608
 
601
        var o3 = MM_findObj('sdkIframe');
609
        var o3 = MM_findObj('sdkIframe');
602
        o3.src = 'about:blank';
610
        o3.src = 'about:blank';
603
    }
611
    }
604
    if (ref != null) {
612
    if (ref != null) {
-
 
613
        ToggleDisplay('RelSdkProgressBar');
605
        console.log("closeIFrame:" + ref);
614
        console.log("closeIFrame:" + ref);
606
        window.location.href = ref;
615
        window.location.href = ref;
607
    }
616
    }
608
}
617
}
609
 
618
 
Line 654... Line 663...
654
</DIV>
663
</DIV>
655
<br>
664
<br>
656
<%
665
<%
657
End Sub
666
End Sub
658
'------------------------------------------------------------------------------------------------------------------------------------------------
667
'------------------------------------------------------------------------------------------------------------------------------------------------
-
 
668
' Name: Print_View
-
 
669
' Desc: Generate the Grouped Package list
659
Sub Print_View( NNEnvTab, SSviewtype, NNrtag_id, SSshowviews, NNuser_id )
670
Sub Print_View( NNEnvTab, SSviewtype, NNrtag_id, SSshowviews, NNuser_id )
660
   Dim rsView, Query_String
671
   Dim rsView, Query_String
661
   'Dim btn1
672
   'Dim btn1
662
   Dim tmpURL
673
   Dim tmpURL
663
   Dim SSscript
674
   Dim SSscript
Line 799... Line 810...
799
                  disabled = "disabled"
810
                  disabled = "disabled"
800
               End If
811
               End If
801
 
812
 
802
               relContentsSTR = relContentsSTR & " <td width='1%'><input name='pv_id_list' id='pv_id_list' type=checkbox value="&rsView.Fields("pv_id")&" "&checked&" "&disabled&"></td>"& VBNewLine
813
               relContentsSTR = relContentsSTR & " <td width='1%'><input name='pv_id_list' id='pv_id_list' type=checkbox value="&rsView.Fields("pv_id")&" "&checked&" "&disabled&"></td>"& VBNewLine
803
            Else
814
            Else
804
               relContentsSTR = relContentsSTR & " <td width='1%'>"& DefineStateIcon ( rsView("pkg_state"), rsView("dlocked"), NULL, NULL, pkgInfoHash.Item("build_type"), TRUE ) &"</td>"& VBNewLine
815
               relContentsSTR = relContentsSTR & " <td width='1%'>" & DefineStateIcon ( rsView("pkg_state"), rsView("dlocked"), NULL, NULL, pkgInfoHash.Item("build_type"), TRUE ) &"</td>"& VBNewLine
805
            End If
816
            End If
806
         End If
817
         End If
807
 
818
 
808
         relContentsSTR = relContentsSTR & "  <td width='100%' nowrap><a href='"& tmpURL &"' class='body_txt_drk' title="""& HTMLEncode( rsView("pv_description") ) &""">"& rsView.Fields("pkg_name") &"</a></td>" & VBNewLine
819
         relContentsSTR = relContentsSTR & "  <td width='100%' nowrap><a href='"& tmpURL &"' class='body_txt_drk' title="""& HTMLEncode( rsView("pv_description") ) &""">"& rsView.Fields("pkg_name") &"</a></td>" & VBNewLine
809
         relContentsSTR = relContentsSTR & "  <td width='1%' nowrap class='envPkg'>"& rsView.Fields("pkg_version") &"</td>" & VBNewLine
820
         relContentsSTR = relContentsSTR & "  <td width='1%' nowrap class='envPkg'>"& rsView.Fields("pkg_version") &"</td>" & VBNewLine
Line 1113... Line 1124...
1113
                     <input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
1124
                     <input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
1114
 
1125
 
1115
                     <table width="100%" border="0" cellspacing="0" cellpadding="1">
1126
                     <table width="100%" border="0" cellspacing="0" cellpadding="1">
1116
                        <tr>
1127
                        <tr>
1117
                           <td bgcolor="#999999">
1128
                           <td bgcolor="#999999">
1118
 
-
 
1119
                              <table width="100%" border="0" cellspacing="0" cellpadding="1">
1129
                              <table width="100%" border="0" cellspacing="0" cellpadding="1">
1120
                                 <%
1130
                                 <%
1121
                                 OraDatabase.Parameters.Add "RTAG_ID", parRtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
1131
                                 OraDatabase.Parameters.Add "RTAG_ID", parRtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
1122
 
-
 
1123
                                 Set rsEnvQry = OraDatabase.DbCreateDynaset( GetQuery("ReleaseReferences.sql"), 0 )
1132
                                 Set rsEnvQry = OraDatabase.DbCreateDynaset( GetQuery("ReleaseReferences.sql"), 0 )
1124
 
-
 
1125
                                 OraDatabase.Parameters.Remove "RTAG_ID"
1133
                                 OraDatabase.Parameters.Remove "RTAG_ID"
1126
                                 %>
1134
                                 %>
1127
 
-
 
1128
                                 <%If rsEnvQry.RecordCount = 0 Then%>
1135
                                 <%If rsEnvQry.RecordCount = 0 Then%>
1129
                                 <tr>
1136
                                 <tr>
1130
                                    <td colspan="2" bgcolor="#FFFFFF" class="body_txt_gray">
1137
                                    <td colspan="2" bgcolor="#FFFFFF" class="body_txt_gray">
1131
                                       No references used.
1138
                                       No references used.
1132
                                    </td>
1139
                                    </td>
Line 1167... Line 1174...
1167
                           <td bgcolor="#999999">
1174
                           <td bgcolor="#999999">
1168
 
1175
 
1169
                              <table width="100%" border="0" cellspacing="0" cellpadding="1">
1176
                              <table width="100%" border="0" cellspacing="0" cellpadding="1">
1170
                                 <%
1177
                                 <%
1171
                                 OraDatabase.Parameters.Add "RTAG_ID", parRtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
1178
                                 OraDatabase.Parameters.Add "RTAG_ID", parRtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
1172
 
-
 
1173
                                 Set rsEnvQry = OraDatabase.DbCreateDynaset( GetQuery("ReleaseReferencedBy.sql"), 0 )
1179
                                 Set rsEnvQry = OraDatabase.DbCreateDynaset( GetQuery("ReleaseReferencedBy.sql"), 0 )
1174
 
-
 
1175
                                 OraDatabase.Parameters.Remove "RTAG_ID"
1180
                                 OraDatabase.Parameters.Remove "RTAG_ID"
1176
                                 %>
1181
                                 %>
1177
 
-
 
1178
                                 <%If rsEnvQry.RecordCount = 0 Then%>
1182
                                 <%If rsEnvQry.RecordCount = 0 Then%>
1179
                                    <tr>
1183
                                    <tr>
1180
                                       <td colspan="2" bgcolor="#FFFFFF" class="body_txt_gray">
1184
                                       <td colspan="2" bgcolor="#FFFFFF" class="body_txt_gray">
1181
                                          Not referenced anywhere.
1185
                                          Not referenced anywhere.
1182
                                       </td>
1186
                                       </td>
Line 1232... Line 1236...
1232
                     <legend class="body_colb"><img src="images/i_releaseref.gif" border="0" align="absmiddle">&nbsp;Release SDK</legend>
1236
                     <legend class="body_colb"><img src="images/i_releaseref.gif" border="0" align="absmiddle">&nbsp;Release SDK</legend>
1233
                     <DIV id="RelSdkProgressBar" name="RelRefProgressBar" style="display:none;" class="class="body_scol"">
1237
                     <DIV id="RelSdkProgressBar" name="RelRefProgressBar" style="display:none;" class="class="body_scol"">
1234
                        <img src="images/i_processing.gif" width="11" height="17" align="absmiddle" hspace="3">Processing...
1238
                        <img src="images/i_processing.gif" width="11" height="17" align="absmiddle" hspace="3">Processing...
1235
                     </DIV>
1239
                     </DIV>
1236
                     <%If (ReleaseMode = enumDB_RELEASE_IN_OPEN_MODE) Then%>
1240
                     <%If (ReleaseMode = enumDB_RELEASE_IN_OPEN_MODE) Then%>
1237
                        <button <%=controlDisabledInProject("AddReleaseReference")%> onClick="addSdk(); return false;" class="rmbutton">Add ...</button>
1241
                        <button <%=controlDisabledInProject("AddSdk")%> onClick="addSdk(); return false;" class="rmbutton">Add ...</button>
1238
                        &nbsp;<button  <%=controlDisabledInProject("RemoveReleaseReference")%> class="rmbutton">Remove</button><br><br>
1242
                        &nbsp;<button  <%=controlDisabledInProject("RemoveSdk")%> class="rmbutton">Remove</button><br><br>
1239
                     <%End If%>
1243
                     <%End If%>
1240
 
1244
 
1241
                     <input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
1245
                     <input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
1242
 
1246
 
1243
                     <table width="100%" border="0" cellspacing="0" cellpadding="1">
1247
                     <table width="100%" border="0" cellspacing="0" cellpadding="1">
Line 1248... Line 1252...
1248
                                 <%
1252
                                 <%
1249
                                 OraDatabase.Parameters.Add "RTAG_ID", parRtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
1253
                                 OraDatabase.Parameters.Add "RTAG_ID", parRtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
1250
                                 Set rsEnvQry = OraDatabase.DbCreateDynaset( GetQuery("ReleaseSdks.sql"), 0 )
1254
                                 Set rsEnvQry = OraDatabase.DbCreateDynaset( GetQuery("ReleaseSdks.sql"), 0 )
1251
                                 OraDatabase.Parameters.Remove "RTAG_ID"
1255
                                 OraDatabase.Parameters.Remove "RTAG_ID"
1252
                                 %>
1256
                                 %>
1253
 
-
 
1254
                                 <%If rsEnvQry.RecordCount = 0 Then%>
1257
                                 <%If rsEnvQry.RecordCount = 0 Then%>
1255
                                 <tr>
1258
                                 <tr>
1256
                                    <td colspan="2" bgcolor="#FFFFFF" class="body_txt_gray">
1259
                                    <td colspan="2" bgcolor="#FFFFFF" class="body_txt_gray">
1257
                                       No SDKs used.
1260
                                       No SDKs used.
1258
                                    </td>
1261
                                    </td>
1259
                                 </tr>
1262
                                 </tr>
1260
                                 <%End If%>
1263
                                 <%End If%>
1261
 
1264
 
1262
                                 <%While (NOT rsEnvQry.EOF) AND (NOT rsEnvQry.BOF)%>
1265
                                 <%While (NOT rsEnvQry.EOF) AND (NOT rsEnvQry.BOF)%>
1263
                                    <tr>
1266
                                    <tr>
1264
                                       <td bgcolor="#FFFFFF" class="body_txt"><input type="checkbox" name="sdktag_id" value="<%=rsEnvQry("SDKTAG_ID")%>"></td>
1267
                                       <td bgcolor="#FFFFFF" class="body_txt" width="1%"><input type="checkbox" name="sdktag_id" value="<%=rsEnvQry("SDKTAG_ID")%>"></td>
1265
                                       <td bgcolor="#FFFFFF" class="body_txt" nowrap><%=rsEnvQry("SDK_NAME")%> &gt; <%=rsEnvQry("SDKTAG_NAME")%><%=IMG_locked%></td>
1268
                                       <td bgcolor="#FFFFFF" class="body_txt" nowrap><%=rsEnvQry("SDK_NAME")%> &gt; <%=rsEnvQry("SDKTAG_NAME")%><%=IMG_locked%></td>
1266
                                    </tr>
1269
                                    </tr>
1267
                                    <%rsEnvQry.MoveNext()
1270
                                    <%rsEnvQry.MoveNext()
1268
                                 WEnd%>
1271
                                 WEnd%>
1269
                                 <tr>
1272
                                 <tr>
Line 1308... Line 1311...
1308
            <td width="1" bgcolor="#999999"><img src="images/spacer.gif" width="10" height="1"></td>
1311
            <td width="1" bgcolor="#999999"><img src="images/spacer.gif" width="10" height="1"></td>
1309
         </tr>
1312
         </tr>
1310
         <tr>
1313
         <tr>
1311
            <td></td>
1314
            <td></td>
1312
            <td>
1315
            <td>
-
 
1316
               <!-- BULK OPR CONTROLS ++++++++++++++++++++++ -->
1313
                <%Dim cb_selectall_display, cb_disabled
1317
                <%Dim cb_selectall_display, cb_disabled
1314
                  If nEnvTab <> 1 Then cb_selectall_display = " style=display:none"
1318
                  If nEnvTab <> 1 Then cb_selectall_display = " style=display:none"
1315
                  If NOT objAccessControl.UserLogedIn Then cb_disabled = " disabled"%>
1319
                  If NOT objAccessControl.UserLogedIn Then cb_disabled = " disabled"%>
1316
                <input id="cb_selectall" type="checkbox" title="Toggle all checkboxes" onclick="toggletick(this);"<%=cb_selectall_display%><%=cb_disabled%> style="position: relative;left: 5px;float: left;">
1320
                <input id="cb_selectall" type="checkbox" title="Toggle all checkboxes" onclick="toggletick(this);"<%=cb_selectall_display%><%=cb_disabled%> style="position: relative;left: 5px;float: left;">
1317
                <a href="javascript:;" title="Minimise/Restore all populated Views" onclick="toggleAllViews();"><img id="cb_minall" src="images/btn_min.gif" style="float: right;position: relative;left: -4;top: 3;"></a>
1321
                <a href="javascript:;" title="Minimise/Restore all populated Views" onclick="toggleAllViews();"><img id="cb_minall" src="images/btn_min.gif" style="float: right;position: relative;left: -4;top: 3;"></a>
1318
                <a href="javascript:;" title="Close Populated Views" onclick="closeAllViews();"><img src="images/btn_remove.gif" style="float: right;position: relative;left: -4;"></a>
1322
                <a href="javascript:;" title="Close Populated Views" onclick="closeAllViews();"><img src="images/btn_remove.gif" style="float: right;position: relative;left: -4;"></a>
1319
                <a href="javascript:;" title="Open and Populate all Views" onclick="openAllViews();"><img src="images/btn_expand.gif" style="float: right;position: relative;left: -4; top:2;"></a>
1323
                <a href="javascript:;" title="Open and Populate all Views" onclick="openAllViews();"><img src="images/btn_expand.gif" style="float: right;position: relative;left: -4; top:2;"></a>
-
 
1324
               <!-- END BULK OPR CONTROLS ++++++++++++++++++++++ -->
1320
               <%
1325
               <%
1321
               Dim tempTimer
1326
               Dim tempTimer
1322
               tempTimer = Timer
1327
               tempTimer = Timer
1323
               %>
1328
               %>
1324
               <%'Response.write "TOTAL TIME: "&  Timer - tempTimer%>
1329
               <%'Response.write "TOTAL TIME: "&  Timer - tempTimer%>