Subversion Repositories DevTools

Rev

Rev 6579 | Rev 6876 | Go to most recent revision | Blame | Compare with Previous | 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="common/common_daemon.asp"-->
<!--#include file="class/classActionButtonControl.asp"-->
<%
'------------ ACCESS CONTROL ------------------
%>
<!--#include file="_access_control_login_optional.asp"-->
<!--#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>
        <link rel="shortcut icon" href="<%=FavIcon%>"/>
        <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?ver=<%=VixVerNum%>" type="text/css">
        <link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
        <script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></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({
            serverSide: true,
            deferRender : true,
            ajax : {
                url : "build_release_log_json.asp",
                type : "GET",
                data : function (o){
<%If parRtagId <> "" Then %>
                    o.rtag_id = "<%=parRtagId%>";
<%End If%>
                }
            },
            dom: "frtiS",
            scrollY: $( document ).height() 
<%If parRtagId <> "" Then %>
            - 35
<%End If%>
            - 200,
            scrollCollapse: true,
            scroller: {
                            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 : [8]},
            ],
            // 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?ver=<%=VixVerNum%>"></script>
   </head>
   <body>
      <!-- HEADER -->
      <!--#include file="_header.asp"-->
      <!-- BODY ---->
        <table width="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout: fixed;">
            <tr>
                <td width="146px" class="panel_bg" valign="top"><%Call BuildMenuPane%></td>
                <td width="100%" rowspan="2" valign="top" align="center"  bgcolor="#EEEFEF">
                    <div class=panel style="width:50%">
                        <div class=rounded_box_caption>
                         <%=IIf (parRtagId = "","SYSTEM BUILD LOG", "RELEASE BUILD LOG")%>
                        </div>
                        <div class="rounded_box rounded_box_pad" >
                                <!-- Indef Pause Warning ---->
                                <div id="indefPause" style="display: none;" class="err_alert" style="font-size: small;">
                                    <b>WARNING: Indefinite Pause, Build Daemons are all stopped - please contact an administrator</b>
                                </div>
                                <!-- Section Body Header ---->
                                <!-- Main Pane -->
                                <table id="table1" width=100% class="stripe">
                                    <thead class="body_col">
                                        <th>Project</th>
                                        <th>Release</th>
                                        <th>Package</th>
                                        <th>Version</th>
                                        <th>Time</th>
                                        <th>Reason</th>
                                        <th>Duration</th>
                                        <th>Result</th>
                                        <th>Tests</th>
                                    </thead>
                                    <tbody>
                                    </tbody>
                                </table>
                        </div>
                    </div>
                </td>
            </tr>
            <tr>
               <td class="panel_bg" valign="bottom" align="center" height="350">
                   <img src="images/img_gears.png" vspace="20" hspace="30"></td>
            </tr>
        </table>
        <!-- FOOTER -->
        <!--#include file="_footer.asp"-->
    </body>
</html>