main.htm 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <head>
  4. <link href="./images/login/logonew.ico" rel="shortcut icon" />
  5. <title>智慧养殖云平台</title>
  6. #include("template/huimv-head.vm")
  7. <style type="text/css">
  8. .copyright {
  9. width:980px;
  10. position: static;
  11. bottom: 0;
  12. padding-bottom: 8px;
  13. padding-top: 8px;
  14. word-spacing: 3px;
  15. zoom: 1;
  16. height: 30px;
  17. line-height: 30px;
  18. text-align: center;
  19. font-size: 13px;
  20. color: #999;
  21. font-family: '微软雅黑';
  22. border-top: 2px solid #468dcd;
  23. background: #e0e0e0;
  24. }
  25. .weatLoca{
  26. padding: 0px;
  27. position: fixed;
  28. right:50%;
  29. top: 50px;
  30. margin-left: 0px;
  31. margin-right: 495px;
  32. text-align: center;
  33. }
  34. #weatherInfo {
  35. width:170px;
  36. height:520px;
  37. }
  38. .codemain{
  39. border: 1px solid #999;
  40. padding: 5px;
  41. position: fixed;
  42. left: 50%;
  43. top:50px;
  44. margin-left: 495px;
  45. background: #eee;
  46. text-align: center;
  47. }
  48. /* .templogoka{
  49. border: 1px solid #999;
  50. position: fixed;
  51. left: 50%;
  52. top:255px;
  53. margin-left: 495px;
  54. background: #eee;
  55. text-align: center;
  56. }
  57. .templogohm{
  58. border: 1px solid #999;
  59. position: fixed;
  60. left: 50%;
  61. top:355px;
  62. margin-left: 495px;
  63. background: #eee;
  64. text-align: center;
  65. } */
  66. #codetext{
  67. margin: 1px;
  68. padding: 2px;
  69. color: #717375;
  70. font-size: 14px;
  71. line-height: 20px;
  72. }
  73. </style>
  74. <script type="text/javascript" language="javascript">
  75. $(function() {
  76. loadMainMenuPanel();
  77. loadMainBodyPanel();
  78. loadWeatherInfo();
  79. getYhid();
  80. });
  81. // 加载天气信息页面
  82. function loadWeatherInfo() {
  83. huimv.loadPage("weatherInfo", "loadWeatherInfo.htm");
  84. }
  85. // 加载主页面菜单
  86. function loadMainMenuPanel() {
  87. huimv.loadPage("mainMenuPanel", "mainMenuPanel.htm");
  88. }
  89. // 加载主页面body
  90. function loadMainBodyPanel() {
  91. if ("$!gh" == "ht999") {
  92. huimv.loadPage("mainBodyPanel", "znebIndex.htm");
  93. } else {
  94. if ("$!qyid" == "0") {
  95. huimv.loadPage("mainBodyPanel", "zddtIndex.htm");
  96. } else {
  97. huimv.loadPage("mainBodyPanel", "yzgkIndex.htm");
  98. }
  99. }
  100. }
  101. function mainBeforeUnload() {
  102. window.location.href="logout.htm";
  103. }
  104. var login=window.setTimeout("clock()",1800000);
  105. var flag = false;
  106. function clock() {
  107. if (!flag) {
  108. alert("登录超时!请重新登录");
  109. window.location.href="logout.htm";
  110. } else {
  111. flag = false;
  112. clearTimeout(login);
  113. login = window.setTimeout("clock()",1800000);
  114. }
  115. }
  116. document.onkeydown = clearInterval;
  117. document.onmousedown = clearInterval;
  118. function clearInterval(e) {
  119. flag = true;
  120. /* var key = e.keycode || e.which;
  121. if (key == 13) {
  122. execute('search');
  123. } */
  124. }
  125. function getYhid() {
  126. jQuery.ajax({
  127. url : 'getYhid.htm',
  128. dataType : 'json',
  129. type : 'post',
  130. cache : false,
  131. data : {},
  132. success : function(data) {
  133. huimv.hideProcessModel();
  134. if (data.returnCode > 0) {
  135. modifyPW(data.returnCode);
  136. }
  137. },
  138. error : function(data) {
  139. huimv.showError(data.responseText);
  140. }
  141. });
  142. }
  143. function modifyPW(yhid) {
  144. Dialogs.load('modifyPW.htm', {"yhid" : yhid}, {
  145. // 对话框基本配置选项
  146. draggable: false,//是否拖动
  147. autosize: false,//是否自适应大小
  148. resizable: true,//是否可以改变大小
  149. maximizable: true,//是否显示最大化最小化
  150. autopos: 'fixed',// 窗口是否(自动剧中,fixed)页面 默认’fixed’
  151. title: "密码过于简单,请修改密码!",//窗口标题
  152. lightbox: true,//窗口应用时是否禁用其他操作
  153. width: 400,//窗口宽度
  154. height: 200//窗口高度
  155. });
  156. }
  157. function getTempUrl() {
  158. var username = $("#username").val();
  159. if (username == "") {
  160. alert("用户名不能为空");
  161. return;
  162. }
  163. jQuery.ajax({
  164. url: "getTempCzyhUrl.htm",
  165. dataType: "json",
  166. type: "post",
  167. async: false,
  168. data : {"username" : username},
  169. success: function(data){
  170. Dialogs.alert(data.url, {
  171. title : '提示信息',
  172. width : 250,
  173. height : 80,
  174. top : 150
  175. });
  176. }
  177. });
  178. }
  179. </script>
  180. </head>
  181. <body onbeforeunload="mainBeforeUnload()">
  182. <!--
  183. <div class="weatLoca">
  184. <div id="weatherInfo"></div>
  185. </div>
  186. <div class="weatLoca">
  187. 根据IP自动判断天气地址
  188. <div style="width:132px; height:402px; position:absolute; background-color:transparent; filter:alpha(opacity=0);"></div>
  189. <iframe name="weather_inc" src="http://i.tianqi.com/index.php?c=code&id=4" width="130px" height="400px" style="border:solid 1px #7ec8ea" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" ></iframe>
  190. </div> -->
  191. <div id="container">
  192. <table width="980" align="center" cellpadding="0" cellspacing="0">
  193. <tr>
  194. <td height="70px" colspan="2">
  195. <div id="mainMenuPanel"></div>
  196. </td>
  197. </tr>
  198. <tr>
  199. <td>
  200. <div id="mainBodyPanel"></div>
  201. </td>
  202. </tr>
  203. <tr>
  204. <td>
  205. <div class="copyright" style="margin-left: auto; margin-right: auto;">
  206. <span>Copyright © 2012-2015 杭州慧牧科技有限公司 版权所有 | 浙ICP备14027731号</span>
  207. </div>
  208. </td>
  209. </tr>
  210. </table>
  211. </div>
  212. <div class="codemain">
  213. <a href="http://android.myapp.com/myapp/detail.htm?apkName=com.huimv.aifm" target="_blank"> <img src="http://122.112.219.87/download/HAIFMewm.png" width="120px;" height="120px;"></a>
  214. <p id="codetext"><span>扫一扫</span><br>
  215. <span>下载口袋牧场APP</span></p>
  216. </div>
  217. <div class="codemain" style="margin-top:200px;">
  218. <a href="http://android.myapp.com/myapp/detail.htm?apkName=com.huimv.aifm" target="_blank"> <img src="http://122.112.219.87/download/YZZSewm.png" width="120px;" height="120px;"></a>
  219. <p id="codetext"><span>扫一扫</span><br>
  220. <span>下载养殖助手APP</span></p>
  221. </div>
  222. #if ("$!username" == "admin")
  223. <div class="codemain" style="margin-top:400px;">
  224. <a href="#" onclick="javascript:getTempUrl()">获取临时手机访问链接</a>
  225. <p id="codetext"><input type="text" value="hzhm" id="username" style="width:100px;"/></p>
  226. </div>
  227. #end
  228. <!-- <div class="templogoka">
  229. <img src="./images/temp/kaiang.jpg" width="130px;" height="71px;">
  230. </div> -->
  231. <!-- <div class="templogohm">
  232. <img src="./images/temp/HUIMV.jpg" width="130px;" height="65px;">
  233. </div> -->
  234. </body>
  235. </html>