41 lines
1.4 KiB
PHP
41 lines
1.4 KiB
PHP
<?php
|
|
/**
|
|
* 桌面首页项(快捷入口)
|
|
*/
|
|
defined('HOST') or die ('not access');
|
|
|
|
?>
|
|
<script>
|
|
homeobject.showicons=function(a){
|
|
a.push({name:'<?=lang('刷新统计中')?>...',icons:'refresh',num:'refresh',color:'#888888'});
|
|
this.menuarr = a;
|
|
var o = $('.rowaaaa'),s='',cols='';
|
|
o.html('');
|
|
for(var i=0; i<a.length;i++){
|
|
cols = a[i].color;
|
|
if(homestyle=='2')cols=maincolor;
|
|
s='';
|
|
s+='<div onclick="opentabsshowshwo('+i+')" align="center" style="cursor:pointer;width:135px;float:left;margin:10px 15px;background:'+cols+';border:none;border-radius:5px;" onmouseover="this.style.opacity=0.8" onmouseout="this.style.opacity=1" class="thumbnail">';
|
|
s+=' <div style="position:relative;padding:15px 0px">';
|
|
s+=' <div style="color:white;font-size:36px"><i class="icon-'+a[i].icons+'"></i></div>';
|
|
s+=' <a style="TEXT-DECORATION:none;color:white" id="'+a[i].num+'_text">'+a[i].name+'</a>';
|
|
s+=' <span class="badge" badge="'+a[i].num+'" style="background:red;position:absolute;top:5px;right:5px;display:none"></span>';
|
|
s+=' </div>';
|
|
s+='</div>';
|
|
o.append(s);
|
|
}
|
|
}
|
|
opentabsshowshwo=function(oi,o1){
|
|
var a = homeobject.menuarr[oi];
|
|
if(a.num=='refresh'){
|
|
homeobject.refresh();
|
|
}else{
|
|
var anum = {num:a.num,url:a.url,name:a.name,icons:a.icons,id:a.id};
|
|
addtabs(anum);
|
|
}
|
|
return false;
|
|
}
|
|
</script>
|
|
<div class="rowaaaa" style="display:inline-block" align="left"></div>
|
|
|
|
<div class="blank10"></div>
|