186 lines
6.7 KiB
PHP
186 lines
6.7 KiB
PHP
|
<!-- $Id: start.htm 17216 2011-01-19 06:03:12Z liubo $ -->
|
||
|
<?php echo $this->fetch('pageheader.htm'); ?>
|
||
|
<!-- directory install start -->
|
||
|
<ul id="lilist" style="padding:0; margin: 0; list-style-type:none; color: #CC0000;">
|
||
|
<?php $_from = $this->_var['warning_arr']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'warning');if (count($_from)):
|
||
|
foreach ($_from AS $this->_var['warning']):
|
||
|
?>
|
||
|
<li class="Start315"><?php echo $this->_var['warning']; ?></li>
|
||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
|
||
|
</ul>
|
||
|
<ul style="padding:0; margin: 0; list-style-type:none; color: #CC0000;">
|
||
|
<!-- <script type="text/javascript" src="http://bbs.ecshop.com/notice.php?v=1&n=8&f=ul"></script>-->
|
||
|
</ul>
|
||
|
<!-- directory install end -->
|
||
|
<!-- start personal message -->
|
||
|
<div class="list-div" style="border: 1px solid #CC0000">
|
||
|
<table cellspacing='1' cellpadding='3'>
|
||
|
<tr>
|
||
|
<th>客戶名稱</th>
|
||
|
<th>入口</th>
|
||
|
<th>廣告區</th>
|
||
|
<th>到期日</th>
|
||
|
</tr>
|
||
|
<?php $_from = $this->_var['expire_ad']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'ad');if (count($_from)):
|
||
|
foreach ($_from AS $this->_var['ad']):
|
||
|
?>
|
||
|
<tr align="center">
|
||
|
<td align="left"><?php echo $this->_var['ad']['uname']; ?></td>
|
||
|
<td><?php echo $this->_var['ad']['pname']; ?></td>
|
||
|
<td><?php echo $this->_var['ad']['block']; ?></td>
|
||
|
<td><?php echo $this->_var['ad']['dstamp']; ?></td>
|
||
|
</tr>
|
||
|
<?php endforeach; else: ?>
|
||
|
<tr >
|
||
|
<td colspan=4 align="center">暫無資料</td>
|
||
|
</tr>
|
||
|
<?php endif; unset($_from); ?><?php $this->pop_vars();; ?>
|
||
|
</table>
|
||
|
</div>
|
||
|
<br />
|
||
|
<!-- end personal message -->
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<!-- start system information -->
|
||
|
<div class="list-div">
|
||
|
<table cellspacing='1' cellpadding='3'>
|
||
|
<tr>
|
||
|
<th colspan="4" class="group-title"><?php echo $this->_var['lang']['system_info']; ?></th>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="20%"><?php echo $this->_var['lang']['os']; ?></td>
|
||
|
<td width="30%"><?php echo $this->_var['sys_info']['os']; ?> (<?php echo $this->_var['sys_info']['ip']; ?>)</td>
|
||
|
<td width="20%"><?php echo $this->_var['lang']['web_server']; ?></td>
|
||
|
<td width="30%"><?php echo $this->_var['sys_info']['web_server']; ?></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td><?php echo $this->_var['lang']['php_version']; ?></td>
|
||
|
<td><?php echo $this->_var['sys_info']['php_ver']; ?></td>
|
||
|
<td><?php echo $this->_var['lang']['mysql_version']; ?></td>
|
||
|
<td><?php echo $this->_var['sys_info']['mysql_ver']; ?></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td><?php echo $this->_var['lang']['safe_mode']; ?></td>
|
||
|
<td><?php echo $this->_var['sys_info']['safe_mode']; ?></td>
|
||
|
<td><?php echo $this->_var['lang']['safe_mode_gid']; ?></td>
|
||
|
<td><?php echo $this->_var['sys_info']['safe_mode_gid']; ?></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td><?php echo $this->_var['lang']['socket']; ?></td>
|
||
|
<td><?php echo $this->_var['sys_info']['socket']; ?></td>
|
||
|
<td><?php echo $this->_var['lang']['timezone']; ?></td>
|
||
|
<td><?php echo $this->_var['sys_info']['timezone']; ?></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td><?php echo $this->_var['lang']['gd_version']; ?></td>
|
||
|
<td><?php echo $this->_var['sys_info']['gd']; ?></td>
|
||
|
<td><?php echo $this->_var['lang']['zlib']; ?></td>
|
||
|
<td><?php echo $this->_var['sys_info']['zlib']; ?></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td><?php echo $this->_var['lang']['ec_charset']; ?></td>
|
||
|
<td><?php echo $this->_var['ecs_charset']; ?></td>
|
||
|
<td><?php echo $this->_var['lang']['max_filesize']; ?></td>
|
||
|
<td><?php echo $this->_var['sys_info']['max_filesize']; ?></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
|
||
|
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/echarts-all.js')); ?>
|
||
|
<script type="Text/Javascript" language="JavaScript">
|
||
|
var reg_chart = echarts.init(document.getElementById('reg_chart_div'));
|
||
|
reg_chart.setOption(<?php echo $this->_var['reg_option']; ?>);
|
||
|
var order_chart = echarts.init(document.getElementById('order_chart_div'));
|
||
|
order_chart.setOption(<?php echo $this->_var['orders_option']; ?>);
|
||
|
var sales_chart = echarts.init(document.getElementById('sales_chart_div'));
|
||
|
sales_chart.setOption(<?php echo $this->_var['sales_option']; ?>);
|
||
|
// var froms_chart = echarts.init(document.getElementById('froms_chart_div'));
|
||
|
// froms_chart.setOption(<?php echo $this->_var['froms_option']; ?>);
|
||
|
|
||
|
</script>
|
||
|
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js')); ?>
|
||
|
<script type="Text/Javascript" language="JavaScript">
|
||
|
<!--
|
||
|
onload = function()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
function startStat()
|
||
|
{
|
||
|
Ajax.call('index.php?is_ajax=1&act=start_stat','', start_stat_Response, 'GET', 'JSON');
|
||
|
}
|
||
|
|
||
|
function start_stat_Response(result)
|
||
|
{
|
||
|
document.getElementById("today_deposit").innerHTML=result.today_deposit;
|
||
|
document.getElementById("today_repay").innerHTML=result.today_repay;
|
||
|
document.getElementById("today_user").innerHTML=result.today_user;
|
||
|
document.getElementById("today_visit").innerHTML=result.today_visit;
|
||
|
}
|
||
|
|
||
|
//Ajax.call('index.php?is_ajax=1&act=main_api','', start_api, 'GET', 'TEXT','FLASE');
|
||
|
//Ajax.call('cloud.php?is_ajax=1&act=cloud_remind','', cloud_api, 'GET', 'JSON');
|
||
|
function start_api(result)
|
||
|
{
|
||
|
apilist = document.getElementById("lilist").innerHTML;
|
||
|
document.getElementById("lilist").innerHTML =result+apilist;
|
||
|
if(document.getElementById("Marquee") != null)
|
||
|
{
|
||
|
var Mar = document.getElementById("Marquee");
|
||
|
lis = Mar.getElementsByTagName('div');
|
||
|
//alert(lis.length); //显示li元素的个数
|
||
|
if(lis.length>1)
|
||
|
{
|
||
|
api_styel();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function api_styel()
|
||
|
{
|
||
|
if(document.getElementById("Marquee") != null)
|
||
|
{
|
||
|
var Mar = document.getElementById("Marquee");
|
||
|
if (Browser.isIE)
|
||
|
{
|
||
|
Mar.style.height = "52px";
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
Mar.style.height = "36px";
|
||
|
}
|
||
|
|
||
|
var child_div=Mar.getElementsByTagName("div");
|
||
|
|
||
|
var picH = 16;//移动高度
|
||
|
var scrollstep=2;//移动步幅,越大越快
|
||
|
var scrolltime=30;//移动频度(毫秒)越大越慢
|
||
|
var stoptime=4000;//间断时间(毫秒)
|
||
|
var tmpH = 0;
|
||
|
|
||
|
function start()
|
||
|
{
|
||
|
if(tmpH < picH)
|
||
|
{
|
||
|
tmpH += scrollstep;
|
||
|
if(tmpH > picH )tmpH = picH ;
|
||
|
Mar.scrollTop = tmpH;
|
||
|
setTimeout(start,scrolltime);
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
tmpH = 0;
|
||
|
Mar.appendChild(child_div[0]);
|
||
|
Mar.scrollTop = 0;
|
||
|
setTimeout(start,stoptime);
|
||
|
}
|
||
|
}
|
||
|
setTimeout(start,stoptime);
|
||
|
}
|
||
|
}
|
||
|
//-->
|
||
|
</script>
|
||
|
|
||
|
<?php echo $this->fetch('pagefooter.htm'); ?>
|