<%@ 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>
|