页面上做判断

监测预警管理系统
 <tr>
        <td style="width: 100%;height: 85%;">
            <div id="main" style="width:100%;height:100%;background: #ffffff;overflow:auto;text-align: center;">
                <table cellspacing="1" width="100%" class="tablesorter" id="listTable">
                    <thead>
                    <tr>
                        <th>ID</th>
                        <th>监测站点</th>
                        <th>监测项目</th>
                        <th>预警内容</th>
                        <th>预警时间</th>
                        <th>预警值</th>
                         <th>预警类别</th>
                        <th>预警级别</th>
                        
                        <th>预警方式</th>
                        <th>短信号码</th>
                        <th style="display:none;">预案</th>
                        <th width="150px">操作</th>
                          <th width="70px">查看预案</th>
                    </tr>
                    </thead>
                 
                    <tbody>
                    <c:forEach items="${pageInfo.result}" var="item">
                        <tr  >
                           <td id="t_${item.id}" onMouseOver="javascript:show(this,'mydiv_${item.id}');" onMouseOut="hide(this,'mydiv_${item.id}')">${item.id}</td>
                            <%--  <td id="t_${item.id}" onMouseOver="javascript:show(this,'mydiv_${item.id}');" onMouseOut="hide(this,'mydiv_${item.id}')">${item.stcd}</td>  --%>
                               <c:choose>
                            <c:when test="${item.stcd=='ZQ001'}">
                            <td>ZQ001(龙田警务室)</td>
                            </c:when>
                            <c:when test="${item.stcd=='RR002'}">
                            <td>RR002(次坳水库)</td>
                            </c:when>
                             <c:when test="${item.stcd=='RR003'}">
                            <td>RR003(赤坳水库)</td>
                            </c:when>
                             <c:when test="${item.stcd=='RR004'}">
                            <td>RR004(红花岭上库)</td>
                            </c:when>
                             <c:when test="${item.stcd=='RR005'}">
                            <td>RR005(红花岭下库)</td>
                            </c:when>
                             <c:when test="${item.stcd=='RR006'}">
                            <td>RR006(上洞坳水库)</td>
                            </c:when>
                             <c:when test="${item.stcd=='RR007'}">
                            <td>RR007(矿山水库)</td>
                            </c:when>
                             <c:when test="${item.stcd=='RR008'}">
                            <td>RR008(上下肚水库)</td>
                            </c:when>
                              <c:when test="${item.stcd=='ZZ001'}">
                            <td>ZZ001(锦龙大道)</td>
                            </c:when>
                              <c:when test="${item.stcd=='ZZ002'}">
                            <td>ZZ002(坪山二小)</td>
                            </c:when>
                              <c:when test="${item.stcd=='ZZ003'}">
                            <td>ZZ003(大水湾村)</td>
                            </c:when>
                              <c:when test="${item.stcd=='ZZ004'}">
                            <td>ZZ004(秀新桥头)</td>
                            </c:when>
                              <c:when test="${item.stcd=='ZZ005'}">
                            <td>ZZ005(深圳监狱)</td>
                            </c:when>
                            <c:otherwise >
                            <td>${item.stcd}(测试站点)</td>
                            </c:otherwise>
                            </c:choose>

                            <td id="t_${item.id}" onMouseOver="javascript:show(this,'mydiv_${item.id}');" onMouseOut="hide(this,'mydiv_${item.id}')">${item.sttp}</td>
                            <td id="t_${item.id}" onMouseOver="javascript:show(this,'mydiv_${item.id}');" onMouseOut="hide(this,'mydiv_${item.id}')">${item.alert_doc}</td>
                            <td id="t_${item.id}" onMouseOver="javascript:show(this,'mydiv_${item.id}');" onMouseOut="hide(this,'mydiv_${item.id}')">${item.alert_tm}</td>
                            <td id="t_${item.id}" onMouseOver="javascript:show(this,'mydiv_${item.id}');" onMouseOut="hide(this,'mydiv_${item.id}')">${item.alert_value}</td>
                            <td id="t_${item.id}" onMouseOver="javascript:show(this,'mydiv_${item.id}');" onMouseOut="hide(this,'mydiv_${item.id}')">${item.alert_type}</td>
                            <td id="t_${item.id}" onMouseOver="javascript:show(this,'mydiv_${item.id}');" onMouseOut="hide(this,'mydiv_${item.id}')">${item.alert_grade}</td>
                            <td id="t_${item.id}" onMouseOver="javascript:show(this,'mydiv_${item.id}');" onMouseOut="hide(this,'mydiv_${item.id}')">${item.alert_way}</td>
                            <td id="t_${item.id}" onMouseOver="javascript:show(this,'mydiv_${item.id}');" onMouseOut="hide(this,'mydiv_${item.id}')">${item.sms_no}</td>
                         <td id="t_${item.id}" onMouseOver="javascript:show(this,'mydiv_${item.id}');" onMouseOut="hide(this,'mydiv_${item.id}')" style="display:none;">${item.alert_action}</td>
                            <td align="center">
                                <div style="width: 120px;">
                                    <c:forEach items="${operate}" var="oper">
                                        <c:if test="${oper.operateType=='EDIT'}">
                                            <div class="btn edit_btn" style="float: left;" model="edit" title="修改"></div>
                                        </c:if>
                                        <c:if test="${oper.operateType=='DELETE'}">
                                            <div class="btn del_btn" style="float: right" model="delete" title="删除"></div>
                                        </c:if>
                                      
                                    </c:forEach>
                                    
                                </div>
                             
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值