﻿window.JsModule=["system/jqframe.js","plugins/menutab/js/menutab.js"];function WebMain2(){$.SendMessage({type:"Session",callback:function(re){if(re!=""&&re[0][0]){var s1='<div style=\"height: 30px;\"><a href="#" onclick="loginout();" style="text-decoration: underline;">安全退出</a><a href="html/yeyinfo/yeyinfo.html" style="text-decoration: underline; margin-left:20px;">进入我的园</a></div>';$("#logindiv").html("<div style=\"height: 30px;\">用户名："+re[0][0]+"</div>");$.SendMessage({type:"Date",callback:function(re){if(re){var arrred=re.Date.split(' ');$("#logindiv").append("<div style=\"height: 30px;\">登录日期："+arrred[0]+" "+arrred[2]+"</div>");$("#logindiv").append(s1)}},id:"date",pm:"<~_28~>"},true)}else $("#logindiv").login({type:0,callback:loginback,arrID:['txtUserName','txtPwd','txtimg','valImg','valImg','btlogin'],strField:'<~_2151~>',isReqval:1})},pm:"<~_28~>"},true);$('#uldd').SendMessage({callback:ulddcallback,type:"DBSelect",id:"uladdlist",pm:"<~_2152~>%16",start:0,total:12})};function loginback(re){window.location.href="html/yeyinfo/yeyinfo.html?yey=1"};function loginout(){$.SendMessage({callback:function(){window.location.href='index.html'},type:"LoginOut",pm:"<~_28~>"},true)};function ulddcallback(re){if(re){var arrhtml=[];for(i=0;i<re.length;i++){arrhtml.push("<li><a  href=\"../news/newsdetail.html?{id:"+re[i][0]+"}\" target=\"_blank\" title=\""+re[i][1]+"\">"+re[i][1]+"</a></li>")}$("#uldd").html(arrhtml.join(""))}};function search(){var aimUrl;var kw=$("#keyword").val();if(kw==""||kw=="请输入搜索关键字")aimUrl="#";else aimUrl="news/newssearch.html?"+encodeURIComponent("{'tj':'"+kw+"'}");window.location=aimUrl};function search_bq(kw){window.location="../news/newssearch.html?"+encodeURIComponent("{'tj':'"+kw+"'}")};