<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<head>  
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<meta http-equiv="x-ua-compatible" content="ie=7" /> 
<title></title> 
<link href="templates/images/ourphp_login.css" rel="stylesheet" type="text/css"> 
<script type="text/javascript" src="../../function/plugs/jquery/1.8.3/jquery-1.8.3.min.js"></script> 
<script src="../../function/plugs/layer/layer.min.js"></script>
<style type="text/css">
.pluslist {padding:2%;}
.pluslist li {width:70px; height:110px; float:left; margin-right:3%; text-align:center; overflow: hidden;  white-space: nowrap;  text-overflow: ellipsis;}
.pluslist li p.plogo {width:70px; height:70px; line-height:70px; font-size:50px; color:#fff; border-radius:6px;}
</style>
[.cprt type="加载highcharts图表插件" webupdate=$webupdate.]
<script>
$(function () {
    $('#container').highcharts({
        title: {
            text: '',
            x: -20
        },
        subtitle: {
            text: '',
            x: -20
        },
		credits: {
    		 enabled: false
		} ,
        xAxis: {
            categories: ['1月', '2月', '3月', '4月', '5月', '6月','7月', '8月', '9月', '10月', '11月', '12月']
        },
        yAxis: {
            title: {
                text: '[.$ourphp_rdate.]年度数据报告'
            },
            plotLines: [{
                value: 0,
                width: 1,
                color: '#808080'
            }]
        },
        tooltip: {
            valueSuffix: ''
        },
        legend: {
            layout: 'vertical',
            align: 'right',
            verticalAlign: 'middle',
            borderWidth: 0
        },
        series: [{
            name: '订单量',
            data: [[.ourphp_tongji type="buy" datey=$ourphp_rdate datem="01".], [.ourphp_tongji type="buy" datey=$ourphp_rdate datem="02".], [.ourphp_tongji type="buy" datey=$ourphp_rdate datem="03".], [.ourphp_tongji type="buy" datey=$ourphp_rdate datem="04".], [.ourphp_tongji type="buy" datey=$ourphp_rdate datem="05".], [.ourphp_tongji type="buy" datey=$ourphp_rdate datem="06".], [.ourphp_tongji type="buy" datey=$ourphp_rdate datem="07".], [.ourphp_tongji type="buy" datey=$ourphp_rdate datem="08".], [.ourphp_tongji type="buy" datey=$ourphp_rdate datem="09".], [.ourphp_tongji type="buy" datey=$ourphp_rdate datem="10".], [.ourphp_tongji type="buy" datey=$ourphp_rdate datem="11".], [.ourphp_tongji type="buy" datey=$ourphp_rdate datem="12".]]
        }, {
            name: '发货量',
            data: [[.ourphp_tongji type="send" datey=$ourphp_rdate datem="01".], [.ourphp_tongji type="send" datey=$ourphp_rdate datem="02".], [.ourphp_tongji type="send" datey=$ourphp_rdate datem="03".], [.ourphp_tongji type="send" datey=$ourphp_rdate datem="04".], [.ourphp_tongji type="send" datey=$ourphp_rdate datem="05".], [.ourphp_tongji type="send" datey=$ourphp_rdate datem="06".], [.ourphp_tongji type="send" datey=$ourphp_rdate datem="07".], [.ourphp_tongji type="send" datey=$ourphp_rdate datem="08".], [.ourphp_tongji type="send" datey=$ourphp_rdate datem="09".], [.ourphp_tongji type="send" datey=$ourphp_rdate datem="10".], [.ourphp_tongji type="send" datey=$ourphp_rdate datem="11".], [.ourphp_tongji type="send" datey=$ourphp_rdate datem="12".]]
        }, {
            name: '成交量',
            data: [[.ourphp_tongji type="pay" datey=$ourphp_rdate datem="01".], [.ourphp_tongji type="pay" datey=$ourphp_rdate datem="02".], [.ourphp_tongji type="pay" datey=$ourphp_rdate datem="03".], [.ourphp_tongji type="pay" datey=$ourphp_rdate datem="04".], [.ourphp_tongji type="pay" datey=$ourphp_rdate datem="05".], [.ourphp_tongji type="pay" datey=$ourphp_rdate datem="06".], [.ourphp_tongji type="pay" datey=$ourphp_rdate datem="07".], [.ourphp_tongji type="pay" datey=$ourphp_rdate datem="08".], [.ourphp_tongji type="pay" datey=$ourphp_rdate datem="09".], [.ourphp_tongji type="pay" datey=$ourphp_rdate datem="10".], [.ourphp_tongji type="pay" datey=$ourphp_rdate datem="11".], [.ourphp_tongji type="pay" datey=$ourphp_rdate datem="12".]]
        }]
    });
	
	
	$('#container2').highcharts({
			chart: {
					plotBackgroundColor: null,
					plotBorderWidth: null,
					plotShadow: false,
					type: 'pie'
			},
			title: {
					text: '系统内部数据统计'
			},
			credits: {
    		 enabled: false
			} ,
			tooltip: {
					pointFormat: '{series.name}: <b>{point.y}</b>'
			},
			plotOptions: {
					pie: {
							allowPointSelect: true,
							cursor: 'pointer',
							dataLabels: {
									enabled: true,
									format: '<b>{point.name}</b>: {point.y}',
									style: {
											color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
									}
							}
					}
			},
			series: [{
					name: '数量',
					colorByPoint: true,
					data: [{
							name: '文章',
							y: [.$shuju[0].]
					}, {
							name: '商品',
							y: [.$shuju[1].]
					}, {
							name: '图集',
							y: [.$shuju[2].]
					}, {
							name: '视频',
							y: [.$shuju[3].]
					}, {
							name: '下载',
							y: [.$shuju[4].]
					}, {
							name: '招聘',
							y: [.$shuju[5].]
					}, {
							name: '留言',
							y: [.$shuju[6].]
					}, {
							name: '友链',
							y: [.$shuju[7].]
					}]
			}]
	});
	
	
	$('#container3').highcharts({
		chart: {
			type: 'column'
		},
		credits: {
    		 enabled: false
		} ,
		title: {
			text: '[.$ourphp_rdate.]年度会员增长数据'
		},
		xAxis: {
			type: 'category',
			labels: {
				rotation: -45  /*设置轴标签旋转角度*/
			}
		},
		yAxis: {
			min: 0,
			title: {
				text: '人数(位)'
			}
		},
		legend: {
			enabled: false
		},
		tooltip: {
			pointFormat: '人数总量: <b>{point.y} 位</b>'
		},
		series: [{
			name: '总人数',
			data: [
				['一月', [.ourphp_tongji type="user" datey=$ourphp_rdate datem="01".]],
				['二月', [.ourphp_tongji type="user" datey=$ourphp_rdate datem="02".]],
				['三月', [.ourphp_tongji type="user" datey=$ourphp_rdate datem="03".]],
				['四月', [.ourphp_tongji type="user" datey=$ourphp_rdate datem="04".]],
				['五月', [.ourphp_tongji type="user" datey=$ourphp_rdate datem="05".]],
				['六月', [.ourphp_tongji type="user" datey=$ourphp_rdate datem="06".]],
				['七月', [.ourphp_tongji type="user" datey=$ourphp_rdate datem="07".]],
				['八月', [.ourphp_tongji type="user" datey=$ourphp_rdate datem="08".]],
				['九月', [.ourphp_tongji type="user" datey=$ourphp_rdate datem="09".]],
				['十月', [.ourphp_tongji type="user" datey=$ourphp_rdate datem="10".]],
				['十一月', [.ourphp_tongji type="user" datey=$ourphp_rdate datem="11".]],
				['十二月', [.ourphp_tongji type="user" datey=$ourphp_rdate datem="12".]]
			],
			dataLabels: {
				enabled: true,
				rotation: -90,
				color: '#FFFFFF',
				align: 'right',
				format: '{point.y}', /* :.1f 为保留 1 位小数*/
				y: 10
			}
		}]
	});
});
</script>
</head>
<body>
<div id="loading" style=" width:500px; height:60px; padding-top:30px; background:#FFFFFF; border:1px #6699FF solid; text-align:center; z-index:9999; position:absolute; top:200px; left:200px;">
<p><img src="../../skin/ajax_loader.gif" border="0"></p>
<p style="margin-top:20px;">系统初始化，请稍等为您加载中... ...</p>
</div>
	<div style="width:94%; height:auto; padding:20px;">
			<div class="ourphp_data" style="width:29%;float:left;">
				<h1>快捷访问应用</h1>
				<div style="clear:both;"></div>
				<ul class="pluslist">
					<li>
						<a href="ourphp_finance.php?opcms=ourphp"><p class="plogo" style='background:#2b99d9'>财</p><p>财务报告</p></a>
					</li>
					<li>
						<a href="ourphp_statistics.php"><p class="plogo" style='background:#3eb7b3'>量</p><p>网站流量报告</p></a>
					</li>
					[.sql mysql="select * from ourphp_plus order by id desc limit 10" font="" name="sql".]
						[.if $sql.OP_Pluspath != 'index.htm'.]
						<li>
							<a href="../plus/[.$sql.OP_Pluspath.]"><p class="plogo" style='background:[.cycle values="#d676f6,#5ace83,#c1d444,#977437,#2b99d9,#3eb7b3".]'>[.$sql.OP_Name|truncate:1:"".]</p><p>[.$sql.OP_Name.]</p></a>
						</li>
						[./if.]
					[./sql.]
				</ul>
			</div>
			<div class="ourphp_data" style="width:70%;float:right;">
				<h1>[.$ourphp_rdate.]&nbsp;网站数据报告</h1>
				<div style="clear:both;"></div>
				<div id="container" style="height:360px;"></div>
			</div>
			<div style="clear:both; height:10px;"></div>
			<div class="ourphp_data2">
				<table width="100%" border="0">
					<tr>
						<td width="70%" valign="top">
							<h1>建站备忘录</h1>
							<div style="clear:both;height:10px;"></div>
							[.if $content == ''.]
								<div style="padding:10px;">暂无记录</div>
							[.else.]
								<div style="padding:10px;">[.$content.]</div>
							[./if.]
							<div style="clear:both; height:50px;"></div>
							<h1>内部统计</h1>
							<div style="clear:both;"></div>
							<div class="tongji">
								<div id="container2" style="width:50%;height:400px;float:left;"></div>
								<div id="container3" style="width:50%;height:400px;float:left;"></div>
							</div>
						</td>
						<td width="30%" style="border-left:1px #CCC solid">
							<div class="banben">
								<p>当前系统版本：[.$version.]([.$versiondate.])</p>
								<p>查看最新版本：<a id="version" href="javascript:test()">检测版本</a><span id="urlcom"></span></p>
							</div>
							[.*   
							
							
							
							
							
							
								未购买授权版，禁止删除OURPHP版权信息，
								一但我们自动检测到您删除了OURPHP版权信息,
								必将追究法律责任！ 切记！！！
							  
							  
							  
							  
							
							
							*.][.$OP_Empowerright.]
						</td>
					</tr>
				</table>
			</div>
	</div>
	
<script>
/*
	获取最新版本
	不要删,要不然无法修复漏洞
*/
function test(){
    $.ajax({
    url: 'https://www.ourphp.net/opcms/key.php',
    type: 'GET',
    async: false,
    data:{version:"[.$versiondate.]",diytype:"[.$diytype.]"},
    dataType: 'jsonp',
    jsonp: 'callback',
    success: function(result) {
			document.getElementById('version').innerHTML=result.version;
			document.getElementById('urlcom').innerHTML='<a href="'+result.url+'" target="_blank">'+result.title+'</a>';
        }
    });
};

/*
	版权证书,获取授权后可删除
*/
function dialog(){
	$.layer({
		type: 1,
		title: '专利证书',
		shade: [0],
		border: [5, 0.3, '#000'],
		area: ['448px', '535px'],
		page: {html: '<img src="../../skin/zhengshu.png" width="448" height="500" border="0">'}
	});
};

function fadeOut(){
   document.getElementById("loading").style.display="none";
}
</script>
<script language='javascript'>fadeOut()</script>
<link rel="stylesheet" type="text/css" href="../../function/plugs/context/context.standalone.css">
<script src="../../function/plugs/context/context.js"></script>
<script src="../../function/plugs/context/demo.js"></script>
</body>
</html>