rabbitmq.jsp 2.94 KB
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<link rel="stylesheet" href="<%=basePath %>css/local/rabbit.css"/>

<div id="breadcrumb">
    <a href="#" title="Go to Home" class="tip-bottom"><i
            class="icon-home"></i> Home</a> <a
        href="#" class="current">rabbitmq</a>
</div>

<div class="container-fluid">
    <div class="widget-box">
        <div class="widget-title">

            <h5>rabbitmq详情 <font color="red">(最近2分钟)</font></h5>

        </div>
        <div class="container-fluid" style="margin-top: -20px;">
            <div class="row-fluid">
                <div class="span12">
                    <div class="section section-visible">
                        <h3>Overview</h3>
                        <div class="hider updatable" style="display:block;" id="overviewDiv">
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-fluid" style="margin-top: 20px">
                <div class="span12">
                    <div class="section section-visible">
                        <h3>Nodes</h3>
                        <div class="hider updatable" style="display:block;">
                            <table class="table table-bordered table-striped table-hover" id="clusterViewTable">
                            </table>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-fluid">
                <div class="span12">
                    <div class="section section-visible">
                        <h3>Queues</h3>
                        <div class="input-group" style="float: right; margin-right: 50px;">
                            <input type="text"  id="tx_search_queue" width="50"  style="display: inline" placeholder="队列关键字"/>
                            &ensp; &ensp; &ensp; &ensp;
                            <button type="button" class="btn btn-default" data-dismiss="modal" id="search_button">搜索</button>
                        </div>
                        <div class="hider updatable" style="display:block;">
                            <table class="table table-bordered table-striped table-hover" id="queueViewTable">
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div>

<script>
    $("#search_button").click(function () {
        var key=$("#tx_search_queue").val();
        $("#queueViewTable").table("load",
                {
                    'moId': moId,
                    'queueKey': key
                })
    })

</script>

<script src="<%=basePath %>js/rabbit.js" type="text/javascript"></script>