Edit D:\chineseall_products\chineseall_digitallib\digitallib\digitalLib6\admin\system\deviceManage.jsp
??<%@ page contentType="text/html;charset=utf-8" %> <%@ taglib prefix="s" uri="/struts-tags"%> <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>??????????????</title> <link rel="stylesheet" type="text/css" href="/style/style.css" /> <style> body{font-size:14px;color:#000;background:#fff;} </style> </head> <body> <div class="crumbs tl">?????????????? >> ?????? </div> <div class="mainCon"> <% String operType = request.getParameter("operType"); if(operType!=null) { String cmd = ""; if(operType.equals("1")) { cmd = "shutdown /s /f /t 5"; } else if(operType.equals("2")) { cmd = "shutdown /r /f /t 5"; } else if(operType.equals("3")) { cmd = com.chineseall.core.servlet.InitParameters.ROOT_PATH + "task/digital-restart.bat"; } else if(operType.equals("4")) { cmd = "D:/?????/Start.exe"; } try { Process proc = Runtime.getRuntime().exec("cmd /c \"" + cmd + "\""); int tag = proc.waitFor(); } catch (Exception e) { e.printStackTrace(); } } %> <form id="deviceManageForm" name="deviceManageForm" action="deviceManage.jsp" method="post"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="addTable"> <tr > <td width="15%">??????</td> <td width="85%"> <input type="radio" name="operType" value="1"/>?????? <input type="radio" name="operType" value="2"/>?????? <br/> <input type="radio" name="operType" value="3"/>?????? <input type="radio" name="operType" value="4"/>???????? </td> </tr> <tr > <td> </td> <td align="left"> <input class="searchBtn" type="button" onclick="dosubmit();" value="???" /> </td> </tr> </table> </form> </div> <script type="text/javascript"> function dosubmit() { var objs = document.getElementsByName("operType"); var checkedOper = 0; for(var i=0;i<objs.length;i++) { if(objs[i].checked) { checkedOper = objs[i].value; } } var infoTips = "???????????????"; if(checkedOper==1) { infoTips = "???????????"; } else if(checkedOper==2) { infoTips = "??????????????"; } else if(checkedOper==3) { infoTips = "??????????????"; } if(confirm(infoTips)) { document.getElementById("deviceManageForm").submit(); } } </script> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de