123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248 |
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <link href="./images/login/logonew.ico" rel="shortcut icon" />
- <title>智慧养殖云平台</title>
- #include("template/huimv-head.vm")
- <style type="text/css">
- .copyright {
- width:980px;
- position: static;
- bottom: 0;
- padding-bottom: 8px;
- padding-top: 8px;
- word-spacing: 3px;
- zoom: 1;
- height: 30px;
- line-height: 30px;
- text-align: center;
- font-size: 13px;
- color: #999;
- font-family: '微软雅黑';
- border-top: 2px solid #468dcd;
- background: #e0e0e0;
- }
- .weatLoca{
- padding: 0px;
- position: fixed;
- right:50%;
- top: 50px;
- margin-left: 0px;
- margin-right: 495px;
- text-align: center;
- }
- #weatherInfo {
- width:170px;
- height:520px;
- }
- .codemain{
- border: 1px solid #999;
- padding: 5px;
- position: fixed;
- left: 50%;
- top:50px;
- margin-left: 495px;
- background: #eee;
- text-align: center;
- }
- /* .templogoka{
- border: 1px solid #999;
- position: fixed;
- left: 50%;
- top:255px;
- margin-left: 495px;
- background: #eee;
- text-align: center;
- }
- .templogohm{
- border: 1px solid #999;
- position: fixed;
- left: 50%;
- top:355px;
- margin-left: 495px;
- background: #eee;
- text-align: center;
- } */
- #codetext{
- margin: 1px;
- padding: 2px;
- color: #717375;
- font-size: 14px;
- line-height: 20px;
- }
- </style>
- <script type="text/javascript" language="javascript">
- $(function() {
- loadMainMenuPanel();
- loadMainBodyPanel();
- loadWeatherInfo();
- getYhid();
- });
-
- // 加载天气信息页面
- function loadWeatherInfo() {
- huimv.loadPage("weatherInfo", "loadWeatherInfo.htm");
- }
-
- // 加载主页面菜单
- function loadMainMenuPanel() {
- huimv.loadPage("mainMenuPanel", "mainMenuPanel.htm");
- }
-
- // 加载主页面body
- function loadMainBodyPanel() {
- if ("$!gh" == "ht999") {
- huimv.loadPage("mainBodyPanel", "znebIndex.htm");
- } else {
- if ("$!qyid" == "0") {
- huimv.loadPage("mainBodyPanel", "zddtIndex.htm");
- } else {
- huimv.loadPage("mainBodyPanel", "yzgkIndex.htm");
- }
- }
- }
-
- function mainBeforeUnload() {
- window.location.href="logout.htm";
- }
-
- var login=window.setTimeout("clock()",1800000);
- var flag = false;
- function clock() {
- if (!flag) {
- alert("登录超时!请重新登录");
- window.location.href="logout.htm";
- } else {
- flag = false;
- clearTimeout(login);
- login = window.setTimeout("clock()",1800000);
- }
- }
-
- document.onkeydown = clearInterval;
- document.onmousedown = clearInterval;
- function clearInterval(e) {
- flag = true;
- /* var key = e.keycode || e.which;
- if (key == 13) {
- execute('search');
- } */
- }
-
- function getYhid() {
- jQuery.ajax({
- url : 'getYhid.htm',
- dataType : 'json',
- type : 'post',
- cache : false,
- data : {},
- success : function(data) {
- huimv.hideProcessModel();
- if (data.returnCode > 0) {
- modifyPW(data.returnCode);
- }
- },
- error : function(data) {
- huimv.showError(data.responseText);
- }
- });
- }
-
- function modifyPW(yhid) {
- Dialogs.load('modifyPW.htm', {"yhid" : yhid}, {
- // 对话框基本配置选项
- draggable: false,//是否拖动
- autosize: false,//是否自适应大小
- resizable: true,//是否可以改变大小
- maximizable: true,//是否显示最大化最小化
- autopos: 'fixed',// 窗口是否(自动剧中,fixed)页面 默认’fixed’
- title: "密码过于简单,请修改密码!",//窗口标题
- lightbox: true,//窗口应用时是否禁用其他操作
- width: 400,//窗口宽度
- height: 200//窗口高度
- });
- }
-
- function getTempUrl() {
- var username = $("#username").val();
- if (username == "") {
- alert("用户名不能为空");
- return;
- }
- jQuery.ajax({
- url: "getTempCzyhUrl.htm",
- dataType: "json",
- type: "post",
- async: false,
- data : {"username" : username},
- success: function(data){
- Dialogs.alert(data.url, {
- title : '提示信息',
- width : 250,
- height : 80,
- top : 150
- });
- }
- });
- }
- </script>
- </head>
- <body onbeforeunload="mainBeforeUnload()">
- <!--
- <div class="weatLoca">
- <div id="weatherInfo"></div>
- </div>
- <div class="weatLoca">
- 根据IP自动判断天气地址
- <div style="width:132px; height:402px; position:absolute; background-color:transparent; filter:alpha(opacity=0);"></div>
- <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>
- </div> -->
- <div id="container">
- <table width="980" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td height="70px" colspan="2">
- <div id="mainMenuPanel"></div>
- </td>
- </tr>
- <tr>
- <td>
- <div id="mainBodyPanel"></div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="copyright" style="margin-left: auto; margin-right: auto;">
- <span>Copyright © 2012-2015 杭州慧牧科技有限公司 版权所有 | 浙ICP备14027731号</span>
- </div>
- </td>
- </tr>
- </table>
- </div>
- <div class="codemain">
- <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>
- <p id="codetext"><span>扫一扫</span><br>
- <span>下载口袋牧场APP</span></p>
- </div>
- <div class="codemain" style="margin-top:200px;">
- <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>
- <p id="codetext"><span>扫一扫</span><br>
- <span>下载养殖助手APP</span></p>
- </div>
- #if ("$!username" == "admin")
- <div class="codemain" style="margin-top:400px;">
- <a href="#" onclick="javascript:getTempUrl()">获取临时手机访问链接</a>
- <p id="codetext"><input type="text" value="hzhm" id="username" style="width:100px;"/></p>
- </div>
- #end
- <!-- <div class="templogoka">
- <img src="./images/temp/kaiang.jpg" width="130px;" height="71px;">
- </div> -->
- <!-- <div class="templogohm">
- <img src="./images/temp/HUIMV.jpg" width="130px;" height="65px;">
- </div> -->
- </body>
- </html>
|