Subversion Repositories DevTools

Rev

Rev 7250 | 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")
'----------------------------------------------
Sub BuildLogOptions%>
    <fieldset class='body_rowg nowrap' style='padding-right:5px'>
        <legend class="body_scol">Filters</legend>
    <fieldset class=body_rowg id=fsReason>
        <legend class="body_scol">Reason</legend>
        <div><input checked value='N' class='triggerRefresh' type=checkbox>New</div>
        <div><input checked value='R' class='triggerRefresh' type=checkbox>Ripple</div>
        <div><input checked value='T' class='triggerRefresh' type=checkbox>Test</div>
        <div><input checked value='P' class='triggerRefresh' type=checkbox>Restored</div>
    </fieldset>
    <fieldset class=body_rowg id=fsResult>
        <legend class="body_scol">Result</legend>
        <div><input checked value='C' class='triggerRefresh' type=checkbox>Complete</div>
        <div><input checked value='E' class='triggerRefresh' type=checkbox>Errors</div>
        <div><input checked value='O' class='triggerRefresh' type=checkbox>Other</div>
    </fieldset>
    </fieldset>
    <span class='body_rowg display-none' id=cbPending>&nbsp;Update Pending</span>
<%End Sub
'
'----------------------------------------------
'
Sub InsertJavaScript%>
        <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 : "POST",
                data : function (o){
<%If parRtagId <> "" Then %>
                    o.rtag_id = "<%=parRtagId%>";
<%End If%>
                    if ($("#fsReason input:checkbox:not(:checked)").length > 0){
                        jQuery.each($('#fsReason input:checked'),function(i,val){
                             o.freason += $(this).val();
                            });
                    }
                    if($("#fsResult input:checkbox:not(:checked)").length > 0){
                        jQuery.each($('#fsResult input:checked'),function(i,val){
                            o.fresult += $(this).val();
                            });
                    }
                }
            },
            dom: "frtiS",
            scrollY: $( document ).height() 
<%If parRtagId <> "" Then %>
            - 35
<%End If%>
            - 200,
            xxscrollCollapse: true,
                        paging: 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,9]},
            ],
            // Refresh display IFF showing the head
            fnInfoCallback: function( oSettings, iStart, iEnd, iMax, iTotal, sPre ) {
                $('#cbPending').hide();
                if (iStart <= 1) {
                    clearTimeout(interval);
                    interval = setTimeout( function () { table.api().ajax.reload(); }, 30000 );
                    sPre += " [AutoRefesh]"
                } else {
                    clearTimeout(interval);
                    interval = null;
                }
                return sPre;
            }
        });

    // Force refresh when check box changes
    // Delay the refesh 1 second so that multiple checkboxes can be ticked
    // Restart the delay if another trigger is invoked.
    var pageTriggerDelay = 0;
        $('.triggerRefresh').change(function() {

            $('#cbPending').show();

            if ( pageTriggerDelay != 0 ) {
                clearTimeout(pageTriggerDelay);
                pageTriggerDelay = 0;
            }


            // Sanity test
            // If no check boxes are check - check all
            //
            if ($('#fsReason input:checked').length <= 0){
                jQuery.each($('#fsReason input'),function(i,val){
                        $(this).prop('checked', true);
                        });
            }

            pageTriggerDelay = setTimeout(function(){
                table.api().ajax.reload();
                }, 1000);
        });
        });
</script>
<%End Sub%>
<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"-->
        <!-- DROPDOWN MENUS -->
        <!--#include file="_menu_def.asp"-->
        <script language="JavaScript1.2" src="images/popup_menu.js?ver=<%=VixVerNum%>"></script>
        <%Call InsertJavaScript%>
    </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="bg_panel" valign="top">
                    <%Call BuildMenuPane%>
                    <%Call BuildLogOptions%>
                </td>
                <td width="100%" rowspan="2" valign="top" align="center"  bgcolor="#EEEFEF">
                    <div class=panel style="min-width:50%">
                        <div class=rounded_box_caption>
                         <%=IIf (parRtagId = "","SYSTEM BUILD LOG", "RELEASE BUILD LOG")%>
                        </div>
                        <div class="rounded_box rounded_box_pad" >
                            <!-- 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>
                                    <th>Logs</th>
                                </thead>
                                <tbody>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </td>
            </tr>
            <tr>
               <td class="bg_panel_btm" height="350">
                   <img src="images/img_gears.png" vspace="20" hspace="30"></td>
            </tr>
        </table>
        <!-- FOOTER -->
        <!--#include file="_footer.asp"-->
    </body>
</html>