严智鑫
2025-11-13 945bc394f40d8af1072a53da9a94f24207124e6d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 
<%@ page import="com.northglass.service.device.DeviceService" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
 
<html>
<head>
<script type="text/javascript" src="${ctx}/static/jquery/jquery-3.1.0.min.js"></script>
    <title>开启单机</title>
    <script type="text/javascript">
    $(document).ready(function(){
          var allstatu = $("#allstatu").attr("allstatu");
          var info = $("#info").attr("info");
          $("#infos").html("<img src=\"/gmms2/static/images/danger.jpg\">"+"  "+info);
          if(allstatu == 0){
               $("#allstatus").attr("style","background-color:#f00"); 
          }
    });
    function start(groupss){
        window.location.href="${ctx }/standalonemanage/intopage?id="+groupss;
    }
    function switchLanguage(language) {
        $.ajax({
              url:"${ctx}/shelfmanager/languageSwitch?language="+language,
             async:true,
             type:"GET",
             dataType:"json",
             cache:false, 
             success: function(data){
                 window.location.reload();
             },
             error:function(data){
                 alert("语言切换失败:" + res);
             }
        });
    }
</script>
</head>
<body>
  <div class="content-wrapper">
  
    <!-- 加载对应的资源文件 -->
    <fmt:setBundle basename="<%= DeviceService.language %>" var="mesI18n" />
 
    <!-- 语言切换链接(改为JS触发,而非直接跳转) -->
    <a href="javascript:switchLanguage('messages_zh_CN')">中文</a> | 
    <a href="javascript:switchLanguage('messages_vi_VN')">Tiếng Việt</a>
    
    <section class="content-header">
      <h1>
        <fmt:message key="singleMachinePage" bundle="${mesI18n}"/>
      </h1>
      
    </section>
    <div id = "allstatu" allstatu = "${allstatu}"></div>
           <div id = "info" info = "${info}"></div>
    <!-- Main content -->
     <section class="content container-fluid" style="margin-top:150px;margin-left:150px;">
        <div style="margin-left: 20px; font-size:x-large; ;font-style: italic; color:olive;">
        <fmt:message key="hintContent8" bundle="${mesI18n}"/> !
    </div>
        <div style="background:#EFF7F4; border-width:10px;width: 300px;height: 300px;font-size: 20px; margin-left: 40%;margin-top: 10%;">
            <table align="center">
                <tr>
                    <td align="center" style="padding-top: 120px;">
                        <input type="button" value="<fmt:message key="openSingleMachine6" bundle="${mesI18n}"/>" style="font-size: 20px;" onclick="start(1)"/>
                        <input type="button" value="<fmt:message key="openSingleMachine7" bundle="${mesI18n}"/>" style="font-size: 20px;" onclick="start(2)"/>
                        <input type="button" value="<fmt:message key="openSingleMachine8" bundle="${mesI18n}"/>" style="font-size: 20px;" onclick="start(3)"/>
                        <input type="button" value="<fmt:message key="openSingleMachine9" bundle="${mesI18n}"/>" style="font-size: 20px;" onclick="start(4)"/>
                        <input type="button" value="<fmt:message key="openSingleMachine10" bundle="${mesI18n}"/>" style="font-size: 20px;" onclick="start(5)"/>
                    </td>
                </tr>
            </table>
        </div>
        
    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->
</body>
</html>