📄 正在查看:admin/view/default/my_index.htm
大小:5,744 字节 · 修改:2014-01-23 01:42:52 · 行数:137
1{inc:header.htm}
2<div class="m">
3 <div class="p">
4 <div class="cc cf" style="padding-top:0">
5 <div id="homel" class="conthome">
6 <div class="sort">
7 <h1>常用功能</h1>
8 <dl class="sc cf" id="used">
9 {loop:$used_array $v}<dd><a urlKey="{$v[url]}" title="{$v[name]}"><img src="{$C[admin_static]}{$v[imgsrc]}">{$v[name]}</a></dd>{/loop}
10 </dl>
11 </div>
12 <div class="sort">
13 <h1>我的信息</h1>
14 <ul class="sc">
15 <li><b>登录帐号</b>{$_user[username]}({$_group[groupname]})</li>
16 <li><b>内容条数</b>{$_user[contents]}</li>
17 <li><b>评论条数</b>{$_user[comments]}</li>
18 <li><b>登陆次数</b>{$_user[logins]}</li>
19 <li><b>本次登录</b>{$_user[logindate]}({$_user[loginip]})</li>
20 <li><b>上次登录</b>{$_user[lastdate]}({$_user[lastip]})</li>
21 <li><b>注册时间</b>{$_user[regdate]}({$_user[regip]})</li>
22 <li><b>浏览器核</b><span id="browser"></span></li>
23 </ul>
24 </div>
25 <div class="sort">
26 <h1>服务器配置</h1>
27 <ul class="sc">
28 <li><b>操作系统</b>{$info[os]}</li>
29 <li><b>环境软件</b>{$info[software]}</li>
30 <li><b>MySQL</b>{$info[mysql]}</li>
31 <li><b>上传限制</b>{$info[filesize]}</li>
32 <li><b>执行限制</b>{$info[exectime]}秒</li>
33 <li><b>安全模式</b>{$info[safe_mode]}</li>
34 <li><b>远程访问</b>{$info[url_fopen]}</li>
35 <li><b>其它支持</b>{$info[other]}</li>
36 </ul>
37 </div>
38 </div>
39
40 <div id="homer" class="conthome">
41 <div class="sort">
42 <h1>官方动态</h1>
43 <ul class="sc" id="twcms_news"></ul>
44 </div>
45 <div class="sort">
46 <h1>综合统计</h1>
47 <ul class="sc">
48 <li><b>分类总数</b>{$stat[category]}</li>
49 <li><b>文章内容</b>{$stat[article]}</li>
50 <li><b>文章评论</b>{$stat[article_comment]}</li>
51 <li><b>产品内容</b>{$stat[product]}</li>
52 <li><b>产品评论</b>{$stat[product_comment]}</li>
53 <li><b>图集内容</b>{$stat[photo]}</li>
54 <li><b>图集评论</b>{$stat[photo_comment]}</li>
55 <li><b>可用空间</b>{$stat[space]}</li>
56 </ul>
57 </div>
58 <div class="sort">
59 <h1>TWCMS 系统</h1>
60 <ul class="sc">
61 <li><b>程序版本</b>TWCMS {$C[version]} Release {$C[release]}</li>
62 <li><b>授权检测</b>免费版</li>
63 <li><b>程序设计</b><a href="http://blog.520.at" target="_blank">吴兆焕</a></li>
64 <li><b>界面设计</b><a href="http://weibo.com/wuzhaohuan" target="_blank">吴兆焕</a></li>
65 <li><b>用户体验</b><a href="http://weibo.com/lihongqi" target="_blank">李红旗</a></li>
66 <li><b>特别感谢</b><a href="http://www.xiuno.com" target="_blank" title="Xiuno BBS创始人">老黄@xiuno</a> <a href="http://www.baidu.com/s?wd=y35u" target="_blank" title="www.3hack.com 创始人,TWCMS安全顾问">Y35U</a> <a href="http://www.qt06.com/" target="_blank" title="知名盲人,帮助TWCMS改善无障碍支持">杨永全</a> <a href="http://ueditor.baidu.com/" target="_blank" title="TWCMS内置UEditor编辑器">UEditor团队</a></li>
67 <li><b>版权所有</b><a href="http://www.tongwang.cn" target="_blank">通王科技</a></li>
68 <li><b>相关网站</b><a href="http://www.twcms.com" target="_blank">通王CMS</a> <a href="http://www.ufoer.com" target="_blank">王通博客</a> <a href="http://www.seo.net.cn" target="_blank">SEO培训</a> <a href="http://www.tongwang.cn" target="_blank">网络营销</a> <a href="http://www.2010888.com" target="_blank">网络品牌</a> <a href="http://www.9959.com.cn" target="_blank">微博营销</a> <a href="http://www.eczn.com" target="_blank">电子商务</a></li>
69 </ul>
70 </div>
71 </div>
72 </div>
73 </div>
74</div>
75
76<script type="text/javascript">
77$(window).resize(setHomeWidth);
78
79$(function() {
80 $("#used a").click(function(){
81 parent.oneTab($(this).attr("urlKey"));
82 }).attr("href", "javascript:;");
83
84 setHomeWidth();
85 getBrowser();
86
87 setStyle("img:hover", ".2s ease-in-out 0s 3", "a_s", "rotate(0deg)", "rotate(-6deg)", "rotate(0deg)", "rotate(6deg)", "rotate(0deg)");
88
89 $("body").append('{$response_info}');
90});
91
92function setStyle(name, val, func, a, b, c, d, e) {
93 var arr = ["webkit", "ms", "moz", "o"];
94 var s = s2 = "";
95 for(var v in arr) {
96 s += "@-"+arr[v]+"-keyframes "+func+"{";
97 s += "0%{-"+arr[v]+"-transform:"+a+"}";
98 s += "25%{-"+arr[v]+"-transform:"+b+"}";
99 s += "50%{-"+arr[v]+"-transform:"+c+"}";
100 s += "75%{-"+arr[v]+"-transform:"+d+"}";
101 s += "100%{-"+arr[v]+"-transform:"+e+"}";
102 s += "}";
103 s2 += "-"+arr[v]+"-animation:"+func+" "+val+";"
104 }
105 $("head").append('<style type="text/css">'+s+name+'{'+s2+'}</style>');
106}
107
108function setHomeWidth() {
109 $("#homel,#homer").width(($(".cc").width()-8)/2);
110}
111
112function appInfo() {
113 var browser = {
114 msie: false, firefox: false, opera: false, safari: false,
115 chrome: false, netscape: false, appname: '未知', version: ''
116 },
117 userAgent = window.navigator.userAgent.toLowerCase();
118 if (/(msie|firefox|opera|chrome|netscape)\D+(\d[\d.]*)/.test(userAgent)){
119 browser[RegExp.$1] = true;
120 browser.appname = RegExp.$1;
121 browser.version = RegExp.$2;
122 }else if(/version\D+(\d[\d.]*).*safari/.test(userAgent)){
123 browser.safari = true;
124 browser.appname = 'safari';
125 browser.version = RegExp.$2;
126 }
127 return browser;
128}
129
130function getBrowser() {
131 var myos = appInfo();
132 $("#browser").html(myos.appname +" "+myos.version+(myos.msie && myos.version<9 ? ' <strong style="color:red">【您的浏览器不支持圆角效果,建议使用IE9以上版本或chrome】</strong>' : ''));
133}
134</script>
135</body>
136</html>
137