Subversion Repositories DevTools

Rev

Rev 6048 | Rev 6181 | 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="class/classActionButtonControl.asp"-->
<%
'------------ ACCESS CONTROL ------------------
%>
<!--#include file="_access_control_login.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" 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>
      <!-- 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">&nbsp;</td>
                <td width="100%" valign="top" align="center"  bgcolor="#EEEFEF">
                    <table width="50%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="1%"></td>
                            <td width="100%">
                                <%If parRtagId = "" Then %>
                                <span nowrap class="form_ttl">SYSTEM BUILD LOG</span>
                                <%Else%>
                                <span nowrap class="form_ttl">RELEASE BUILD LOG</span>
                                <%End If%>
                                <!-- Section Top Border ---->
                                <div class="rounded_box" style="background: white;">
                                    <!-- 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">
                                            <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>
                                </div>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <!-- FOOTER -->
        <!--#include file="_footer.asp"-->
    </body>
</html>