rock_index.php 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. <?php
  2. /**
  3. * 桌面首页显示
  4. */
  5. defined('HOST') or die ('not access');
  6. ?>
  7. <script>
  8. var todocontent = '',homeobject={},homenums=<?=json_encode($homearrs)?>;
  9. </script>
  10. <div style="padding:10px">
  11. <?php
  12. if(in_array('kjrko',$homearrs)){
  13. $paths = ''.ROOT_PATH.'/'.P.'/home/desktop/items_kjrko.php';
  14. if(file_exists($paths))include_once($paths);
  15. }
  16. ?>
  17. <div align="left">
  18. <table style="background:none" border="0" width="100%" cellspacing="0" cellpadding="0">
  19. <tr valign="top">
  20. <?php
  21. $bili = 100 / count($homeitems);
  22. echo '<td width="'.$bili.'%">';
  23. if(isset($homeitems[0]))foreach($homeitems[0] as $hi=>$hrs){
  24. $itemnowname = $hrs['name'];
  25. $paths = ''.ROOT_PATH.'/'.P.'/home/desktop/items_'.$hrs['num'].'.php';
  26. if(file_exists($paths))include_once($paths);
  27. }
  28. echo '</td>';
  29. for($i=1;$i<=3;$i++)if(isset($homeitems[$i])){
  30. echo '<td width="'.$bili.'%" style="padding-left:20px;">';
  31. foreach($homeitems[$i] as $hi=>$hrs){
  32. $itemnowname = $hrs['name'];
  33. $paths = ''.ROOT_PATH.'/'.P.'/home/desktop/items_'.$hrs['num'].'.php';
  34. if(file_exists($paths))include_once($paths);
  35. }
  36. echo '</td>';
  37. }
  38. ?>
  39. </tr>
  40. </table>
  41. </div>
  42. <?php
  43. $paths = ''.ROOT_PATH.'/'.P.'/home/desktop/footer.php';
  44. if(file_exists($paths))include_once($paths);
  45. ?>
  46. </div>
  47. <script>
  48. $(document).ready(function(){
  49. var optdt = '',loadci=0, taskarr={}, miao=200,reimtitle='REIM',chaoshi=0;
  50. var c= {
  51. kshit:0,
  52. itot:function(rlx){
  53. clearTimeout(this.tims);
  54. var nums = '',i;
  55. for(i=0;i<homenums.length;i++){
  56. nums+=','+homenums[i]+'';
  57. }
  58. if(!rlx)rlx='';
  59. var url = js.getajaxurl('gettotal','index','home', {atype:rlx,loadci:loadci,optdt:optdt,nums:nums.substr(1)});
  60. $('#refresh_text').html(this.bd2('5Yi35paw57uf6K6h5LitLi4u'));
  61. js.ajaxbool =false;
  62. js.ajax(url,{},function(da){
  63. c.itots(js.decode(da));
  64. },'get');
  65. homeobject.refresh=function(){c.refresh();};
  66. },
  67. init:function(){
  68. this.itot();
  69. var i,nust;
  70. for(i=0;i<homenums.length;i++){
  71. nust = homenums[i];
  72. if(homeobject[''+nust+'_init'])homeobject[''+nust+'_init']();
  73. }
  74. $('body').mouseover(function(){c.kshit=0});
  75. },
  76. refresh:function(){
  77. this.itot();
  78. },
  79. bd2:function(s){
  80. return jm.base64decode(s);
  81. },
  82. shumiao:function(oi){
  83. clearTimeout(this.tims);
  84. if(oi<=0){
  85. this.itot();
  86. }else{
  87. $('#refresh_text').html(this.bd2('ezB956eS5ZCO5Yi35pawJmd0OyZndDs:').replace('{0}', oi));
  88. this.tims = setTimeout(function(){c.shumiao(oi-1)},1000);
  89. }
  90. if(homeobject.showtime)homeobject.showtime();
  91. this.kshit++;
  92. if(chaoshi>0 && this.kshit>=chaoshi)this.showchaoshi();
  93. },
  94. showchaoshi:function(){
  95. chaoshi = 0;
  96. clearTimeout(this.tims);
  97. js.alert(this.bd2('55m75b2V5bey6LaF5pe277yM6K!36YeN5paw55m75b2V'),'', function(){
  98. var url1 = '?m=login&a=exit';
  99. js.location(url1);
  100. });
  101. },
  102. auther:function(a){
  103. if(HOST==this.bd2('MTI3LjAuMC4x') || HOST==this.bd2('bG9jYWxob3N0'))return;
  104. if(a.authmsg)return a.authmsg;
  105. var akey = a.authkey,usedt = a.usedt;
  106. if(!usedt)return '5peg5pWI6K6.6Zeu';
  107. if(usedt>=js.now())return;
  108. if(!akey)return '6K!35YWI562!5o6I57O757uf5Zyo5L2.55So77yMPGEgaHJlZj0iaHR0cDovL3d3dy5yb2Nrb2EuY29tL3ZpZXdfYXV0aGVyLmh0bWwiIHRhcmdldD0iX2JsYW5rIj7luK7liqk8L2E!';
  109. },
  110. itots:function(a){
  111. miao = a.miaoshu;
  112. if(a.tanwidth)js.winiframewidth=a.tanwidth;
  113. this.shumiao(miao);
  114. if(a.htimeout)chaoshi = a.htimeout * 60;
  115. loadci++;
  116. optdt = a.optdt;
  117. if(loadci==1){
  118. jm.setJmstr(jm.base64decode(a.showkey));
  119. admintoken = a.token;
  120. if(homeobject.showicons)homeobject.showicons(a.menuarr);
  121. var mts = this.auther(a);
  122. if(mts)js.alert(this.bd2(mts));
  123. }
  124. var oi,i,nust;
  125. for(i=0;i<homenums.length;i++){
  126. nust = homenums[i];
  127. if(a[''+nust+'arr']){
  128. if(homeobject['show'+nust+'list'])homeobject['show'+nust+'list'](a[''+nust+'arr']);
  129. if(homeobject['show_'+nust+'_list'])homeobject['show_'+nust+'_list'](a[''+nust+'arr']);
  130. }
  131. }
  132. if(a.reimstotal=='0')a.reimstotal='';
  133. $('#reim_stotal').html(a.reimstotal+'');
  134. try{resizewh();}catch(e){}
  135. if(a.reimstotal!='' && a.notodo!='1'){
  136. notifyobj.show({
  137. icon:'images/todo.png',title:''+reimtitle+'提醒',rand:'reimto',
  138. body:'未读'+reimtitle+'消息('+a.reimstotal+')条',
  139. click:function(){
  140. openreim();
  141. }
  142. });
  143. }
  144. menubadge = a.total;
  145. showmenubadge();
  146. var s=a.msgar[0],s1=a.msgar[1];
  147. if(s!=''){
  148. todocontent = s;
  149. var tx = this.opennewtx(1);
  150. if(tx=='0' && a.notodo!='1'){
  151. $('#tishidivshow').fadeIn();
  152. $('#tishicontent').html(s);
  153. notifyobj.showpopup(s1,{icon:'images/todo.png',rand:'systodo',title:this.bd2('57O757uf5o!Q6YaS'),click:function(b){
  154. opentixiangs();
  155. return true;
  156. }});
  157. }
  158. }
  159. if(a.editpass==0)this.showp();
  160. }
  161. }
  162. c.opennewtx=function(lx){
  163. return '0';
  164. }
  165. c.showp = function(){
  166. loadmenu = clickmenu=function(){
  167. js.msgerror(this.bd2('6K!35YWI5L!u5pS55a!G56CB5ZCO5Zyo5L2.55So'));
  168. }
  169. this.shumiao=function(){};
  170. js.alert(this.bd2('57O757uf5byA5ZCv5by65Yi25L!u5pS55a!G56CB77yM6K!35YWI5L!u5pS55ZCO5Zyo5L2.55So'),this.bd2('5L!u5pS55a!G56CB5o!Q56S6'), function(){
  171. addtabs({num:'grcog',url:'system,geren,cog,stype=pass',hideclose:true,name:c.bd2('5L!u5pS55a!G56CB'),icons:'lock'});
  172. });
  173. }
  174. js.initbtn(c);
  175. c.init();
  176. opentixiangs=function(){
  177. opentixiang();
  178. hideTishi();
  179. return false;
  180. }
  181. hideTishi=function(){
  182. $('#tishidivshow').fadeOut();
  183. return false;
  184. }
  185. openmobile=function(){
  186. js.tanbody('loginmobile','登录手机版', 300,200,{
  187. html:'<div style="height:160px;padding:5px" align="center"><div><img id="logeweerew" src="images/logo.png" width="130" height="130"></div><div>5分钟内直接扫一扫即可登录</div></div>'
  188. });
  189. var surl = js.getajaxurl('getqrcode','index','home'),surls = js.getajaxurl('getqrcores','index','home');
  190. $.get(surls,function(ass){
  191. if(ass!='ok'){
  192. $('#logeweerew').parent().html('<div style="padding:10px 20px;text-align:left">未开启gd库,不能生成二维码,<br>可手机浏览器输入地址:<br>'+ass+'</div>');
  193. }else{
  194. get('logeweerew').src=surl;
  195. }
  196. });
  197. }
  198. homereload=function(rlx){
  199. c.itot(rlx);
  200. }
  201. openreim=function(o1){
  202. $('#reim_stotal').html('');
  203. var str = reimtitle;
  204. if(o1)str=strreplace($(o1).text());
  205. var ops = js.openrun('reim','winfocus');
  206. if(!ops){
  207. js.cliendsend('focus',{},false,function(){
  208. js.confirm('可能没有使用'+str+'的PC客户端,是否打开网页版的?',function(jg){
  209. if(jg=='yes'){
  210. js.open('?d=reim',260,530,'reim');
  211. }
  212. });
  213. return true;
  214. });
  215. }else{
  216. js.open('?d=reim',260,530,'reim');
  217. }
  218. }
  219. notifyobj=new notifyClass({
  220. title:'系统提醒',
  221. sound:'web/res/sound/email.mp3',
  222. sounderr:'',
  223. soundbo:true,
  224. showbool:true
  225. });
  226. });
  227. </script>
粤ICP备19079148号