Subversion Repositories DevTools

Rev

Rev 5102 | Blame | Last modification | View Log | RSS feed

<%@LANGUAGE="VBSCRIPT"%>
<%
'=====================================================
'|
'|      build_release_log.asp
'|      Display the build long
'|
'=====================================================
%>
<%
Option explicit
' Good idea to set when using redirect
Response.Expires = 0   ' always load the page, dont store
%>
<!--#include file="common/conf.asp"-->
<!--#include file="common/globals.asp"-->
<!--#include file="common/formating.asp"-->
<!--#include file="common/qstr.asp"-->
<!--#include file="common/common_subs.asp"-->
<!--#include file="common/_form_window_common.asp"-->
<!--#include file="_action_buttons.asp"-->

<!--#include file="class/classActionButtonControl.asp"-->
<%
'------------ ACCESS CONTROL ------------------
'Let users view the build configuration without being logged in, but as soon as they try and submit the form, check
'their login status.
%>
<!--#include file="_access_control_general.asp"-->
<%
'------------ Variable Definition -------------
Dim parRtagId
'------------ Constants Declaration -----------
'------------ Variable Init -------------------
parRtagId = Request("rtag_id")
objPMod.PersistInQryString("rtag_id")
'----------------------------------------------
%>
<html>
   <head>
        <title>Release Manager</title>
        <meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        <link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
        <link rel="stylesheet" href="images/navigation.css" type="text/css">
        <script language="JavaScript" src="images/common.js"></script>
        <%bJqueryDataTables = TRUE%>
        <!--#include file="_jquery_includes.asp"-->
        <script type="text/javascript" charset="utf-8">
        var table;
        var interval = null;
        var indefTimer = null;
        $(document).ready(function() {
                /* Init DataTables */
        table = $("#table1").dataTable({
            "processing": true,
            "retrieve":true,
            "serverSide": true,
            "ajaxSource": "build_release_log_json.asp",
<%If parRtagId <> "" Then %>
            "fnServerParams": function ( aoData ) {
                aoData.push( { "name": "rtag_id", "value": "<%=parRtagId%>" } );
            },
<%End If%>
            "bLengthChange":false,
            "sDom": "frtiS",
            "sScrollY": $( document ).height() 
<%If parRtagId <> "" Then %>
            - 35
<%End If%>
            - 200,
            "bDeferRender": true,
            "sScrollX": "100%",
            "bScrollCollapse": true,
            "iScrollLoadGap": 5,
            "oScroller": {
                            "loadingIndicator": true,
                "displayBuffer": 3,
                    },
            "order": [[ 4, "desc" ]],
            "info": true,
            "columnDefs" : [ 
<%If parRtagId <> "" Then %>
                {visible: false, targets : [0,1]},
<%End If%>
                {className : "dt-nowrap", targets: "_all" },
                {orderable : false, targets : [7]},
            ],
            // Refresh display IFF showing the head
            "fnInfoCallback": function( oSettings, iStart, iEnd, iMax, iTotal, sPre ) {
                if (iStart <= 1) {
                    clearTimeout(interval);
                    interval = setTimeout( function () { table.api().ajax.reload(); }, 30000 );
                    sPre += " [AutoRefesh]"
                } else {
                    clearTimeout(interval);
                    interval = null;
                }
                return sPre;
            }
        });

    //  Dynamically maintain an indication of an indefinite pause
    //  Update at startup and every 30 seconds
    function updateIndefPause()
    {
        $.get('_json_daemon.asp', {opr : 'indefPause'},function(data){
            if(data.indefPause > 0){
                $('#indefPause').show();
            }else{
                $('#indefPause').hide();
            }
        },'json');
    }

    updateIndefPause();
    indefTimer = setInterval( updateIndefPause,30000 );
        } );
</script>

      <!-- DROPDOWN MENUS -->
      <!--#include file="_menu_def.asp"-->
      <script language="JavaScript1.2" src="images/popup_menu.js"></script>
   </head>
   <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
      <!-- MENU LAYERS -------------------------------------->
      <div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off');dynamichide(event)">
      </div>
      <!-- TIPS LAYERS -------------------------------------->
      <div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
      <!----------------------------------------------------->
      <!-- HEADER -->
      <!--#include file="_header.asp"-->
      <!-- BODY ---->
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
         <tr>
            <td width="10%" background="images/bg_home_orange.gif" valign="top"></td>
            <td width="85%" rowspan="2" align="center" valign="top" bgcolor="#EEEFEF">
               <table width="50%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                     <td width="1%"></td>
                     <td width="100%">
                        <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                           <tr>
                              <td nowrap class="body_txt"></td>
                           </tr>
                        </table>
                       <!-- Section Header ---->
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                           <tr>
                              <td nowrap class="form_ttl">
                                  <%If parRtagId = "" Then %>
                                  <td nowrap class="form_ttl">SYSTEM BUILD LOG</td>
                                  <%Else%>
                                  <td nowrap class="form_ttl">RELEASE BUILD LOG</td>
                                  <%End If%>
                              </td>
                              <td align="right" valign="bottom"></td>
                           </tr>
                        </table>
                     </td>
                     <td width="1%"></td>
                  </tr>
                  <!-- Section Top Border ---->
                  <tr>
                     <td align="left" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tl_cnr_b.gif" width="13" height="13"></td>
                     <td background="images/lbox_bg_blue.gif" class="lbox_ttl_w"><img src="images/h_trsp_dot.gif" width="60" height="15"></td>
                     <td align="right" valign="top"  background="images/lbox_bg_blue.gif"><img src="images/lbox_tr_cnr_b.gif" width="13" height="13"></td>
                  </tr>
                    <!-- Indef Pause Warning ---->
                    <td id="indefPause" colspan="3" style="display: none;">
                        <span class="err_alert">
                            <font size="2"><b>WARNING: Indefinite Pause, Build Daemons are all stopped - please contact an administrator</b></font>
                        </span>
                    </td>
                  </tr>
                 <!-- Section Body Header ---->
                  <tr><td colspan="3" class="form_ifilter">
                  <!-- Main Pane -->
                  <table id="table1" width=100%>
                    <thead class="body_col">
                            <tr>
                             <th>Project</th>
                             <th>Release</th>
                             <th>Package</th>
                             <th>Version</th>
                             <th>Time</th>
                             <th>Reason</th>
                             <th>Result</th>
                             <th>Tests</th>
                            </tr>
                    </thead>
                        <tbody>
                    </tbody>
                  </table>
                  </td></tr>
            </td>
         </tr>
         <tr>
            <!-- Section Body Footer ---->
            <td background="images/bg_action_norm.gif" ></td>
            <td align="right" background="images/bg_action_norm.gif" ></td>
            <td background="images/bg_action_norm.gif" ><img src="images/h_trsp_dot.gif" width="5" height="13"></td>
         </tr>
         <tr>
            <td background="images/lbox_bg_blue.gif" valign="bottom"><img src="images/lbox_bl_cnr_b.gif" width="13" height="13"></td>
            <td background="images/lbox_bg_blue.gif"></td>
            <td background="images/lbox_bg_blue.gif" valign="bottom" align="right"><img src="images/lbox_br_cnr_b.gif" width="13" height="13"></td>
         </tr>
      </table>
  </tr>
  <tr>
    <td valign="bottom" align="center" background="images/bg_home_orange.gif"></td>
    <td background="images/bg_lght_gray.gif" valign="top"><img src="images/h_trsp_dot.gif" width="1" height="500"></td>
  </tr>
</table>
<!-- FOOTER -->
<!--#include file="_footer.asp"-->
</body>
</html>
<%
Call Destroy_All_Objects
%>