mmapply.htm 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <%#
  2. LuCI - Lua Configuration Interface
  3. Copyright 2015 Mikeqin <Fengling.Qin@gmail.com>
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. $Id$
  9. -%>
  10. <html>
  11. <head>
  12. <title><%:MM Upgrading%></title>
  13. <link rel="stylesheet" type="text/css" media="screen" href="<%=media%>/cascade.css" />
  14. <script type="text/javascript" src="<%=resource%>/xhr.js"></script>
  15. <script type="text/javascript">//<![CDATA[
  16. XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "status", "checkupgrade")%>', null,
  17. function(x, st)
  18. {
  19. if (st.finish)
  20. location.href = '<%=luci.dispatcher.build_url("admin", "status", "mmupgrade")%>?step=3';
  21. })
  22. </script>
  23. </head>
  24. <body>
  25. <div id="maincontainer">
  26. <div id="maincontent">
  27. <h2><a id="content" name="content"><%:MM Upgrading ...%></a></h2>
  28. <fieldset class="cbi-section">
  29. <p>
  30. <% if finish then %>
  31. <%:MM upgrade finish.%><br><br>
  32. <input type="button" value=" Return to Upgrade " onclick="location.href='<%=luci.dispatcher.build_url("admin", "status", "mmupgrade")%>'" href="#"/>
  33. <input type="button" value=" Cgminer Status" onclick="location.href='<%=luci.dispatcher.build_url("admin", "status", "cgminerstatus")%>'" href="#"/>
  34. <% else %>
  35. <img src="<%=resource%>/icons/loading.gif" alt="<%:Loading%>" style="vertical-align:middle" />
  36. <%:Waiting for MM upgrading ...%>
  37. </p>
  38. <% end %>
  39. </fieldset>
  40. </div>
  41. </div>
  42. </body>
  43. </html>