You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
199 lines
8.8 KiB
199 lines
8.8 KiB
<!-- $Id: start.htm 17216 2011-01-19 06:03:12Z wayne $ -->
|
|
<?php echo $this->fetch('pageheader.htm'); ?>
|
|
<!-- directory install start -->
|
|
<ul id="cloud_list" style="padding:0; margin: 0; list-style-type:none; color: #CC0000;">
|
|
|
|
</ul>
|
|
<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;">
|
|
</ul>
|
|
<!-- directory install end -->
|
|
<!-- start personal message -->
|
|
<?php if ($this->_var['admin_msg']): ?>
|
|
<div class="list-div" style="border: 1px solid #CC0000">
|
|
<table class="table table-bordered"> <tr>
|
|
<th><?php echo $this->_var['lang']['pm_title']; ?></th>
|
|
<th><?php echo $this->_var['lang']['pm_username']; ?></th>
|
|
<th><?php echo $this->_var['lang']['pm_time']; ?></th>
|
|
</tr>
|
|
<?php $_from = $this->_var['admin_msg']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'msg');if (count($_from)):
|
|
foreach ($_from AS $this->_var['msg']):
|
|
?>
|
|
<tr align="center">
|
|
<td align="left"><a href="message.php?act=view&id=<?php echo $this->_var['msg']['message_id']; ?>"><?php echo sub_str($this->_var['msg']['title'],60); ?></a></td>
|
|
<td><?php echo $this->_var['msg']['user_name']; ?></td>
|
|
<td><?php echo $this->_var['msg']['send_date']; ?></td>
|
|
</tr>
|
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
|
|
</table>
|
|
</div>
|
|
<br />
|
|
<?php endif; ?>
|
|
<!-- end personal message -->
|
|
|
|
<div class="list-div">
|
|
<div class="important">
|
|
<ul>
|
|
<li class="item01">
|
|
<div class="con_box">
|
|
<img src="images/icon01.png" />
|
|
<h2>今日銷售總額</h2>
|
|
<p><!--<?php if ($this->_var['today']['formatted_money']): ?>--><?php echo $this->_var['today']['formatted_money']; ?><!--<?php else: ?>-->0.00<!--<?php endif; ?>--></p>
|
|
</div>
|
|
</li>
|
|
<li class="item02">
|
|
<div class="con_box">
|
|
<img src="images/icon02.png" />
|
|
<h2>今日訂單總數</h2>
|
|
<p><?php echo $this->_var['today']['order']; ?></p>
|
|
</div>
|
|
</li>
|
|
<li class="item03">
|
|
<div class="con_box">
|
|
<img src="images/icon03.png" />
|
|
<h2>今日註冊會員</h2>
|
|
<p><?php echo $this->_var['today']['user']; ?></p>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="console_detaile">
|
|
<ul>
|
|
<li class="item01">
|
|
<div class="con_box clearfix">
|
|
<div class="img"><img src="images/iconfont-weiqueren.png" width="30" height="30" /></div>
|
|
<div class="text"><h2><?php echo $this->_var['lang']['unconfirmed']; ?></h2><p><a href="order.html#/list?composite_status=<?php echo $this->_var['status']['unconfirmed']; ?>"><?php echo $this->_var['order']['unconfirmed']; ?></a></p></div>
|
|
</div>
|
|
</li><li class="item02">
|
|
<div class="con_box clearfix">
|
|
<div class="img"><img src="images/iconfont-daizhifu.png" width="30" height="30" /></div>
|
|
<div class="text"><h2><?php echo $this->_var['lang']['await_pay']; ?></h2><p><a href="order.html#/list?composite_status=<?php echo $this->_var['status']['await_pay']; ?>"><?php echo $this->_var['order']['await_pay']; ?></a></p></div>
|
|
</div>
|
|
</li><li class="item03">
|
|
<div class="con_box clearfix">
|
|
<div class="img"><img src="images/iconfont-daifahuo.png" width="30" height="30" /></div>
|
|
<div class="text"><h2><?php echo $this->_var['lang']['await_ship']; ?></h2><p><a href="order.html#/list?composite_status=<?php echo $this->_var['status']['await_ship']; ?>"><?php echo $this->_var['order']['await_ship']; ?></a></p></div>
|
|
</div>
|
|
</li><li class="item04">
|
|
<div class="con_box clearfix">
|
|
<div class="img"><img src="images/iconfont-iconsvggyiwancheng18.png" width="30" height="30" /></div>
|
|
<div class="text"><h2><?php echo $this->_var['lang']['finished']; ?></h2><p><a href="order.html#/list?composite_status=<?php echo $this->_var['status']['finished']; ?>"><?php echo $this->_var['order']['finished']; ?></a></p></div>
|
|
</div>
|
|
</li><li class="item05">
|
|
<div class="con_box clearfix">
|
|
<div class="img"><img src="images/iconfont-dengji.png" width="30" height="30" /></div>
|
|
<div class="text clearfix"><h2><?php echo $this->_var['lang']['new_booking']; ?></h2><p><a href="goods_booking.php?act=list_all"><?php echo $this->_var['booking_goods']; ?></a></p></div>
|
|
</div>
|
|
</li><li class="item07">
|
|
<div class="con_box clearfix">
|
|
<div class="img"><img src="images/iconfont-iconfeature.png" width="30" height="30" /></div>
|
|
<div class="text"><h2><?php echo $this->_var['lang']['new_reimburse']; ?></h2><p><a href="back.php?act=back_list"><?php echo $this->_var['new_repay']; ?></a></p></div>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="list-div">
|
|
<div class="order_count">
|
|
<p style="position:absolute; margin:-1px 0 0 0;"><span class="tab_front" style="font-size:20px;"><strong><?php echo $this->_var['thismonth']; ?>月訂單統計</strong></span></p>
|
|
<div style='height:400px;' id='order_chart_div'></div>
|
|
</div>
|
|
</div>
|
|
<br />
|
|
<div class="list-div">
|
|
<div class="order_count">
|
|
<p style="position:absolute; margin:-1px 0 0 0;"><span class="tab_front" style="font-size:20px;"><strong><?php echo $this->_var['thismonth']; ?>月銷售額統計</strong></span></p>
|
|
<div style='height:400px;' id='sales_chart_div'></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<br />
|
|
<!-- start system information -->
|
|
|
|
<?php echo $this->smarty_insert_scripts(array('files'=>'echarts-all.js')); ?>
|
|
<script type="Text/Javascript" language="JavaScript">
|
|
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']; ?>);
|
|
</script>
|
|
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js')); ?>
|
|
<script type="Text/Javascript" language="JavaScript">
|
|
<!--
|
|
onload = function()
|
|
{
|
|
/* 檢查訂單 */
|
|
startCheckOrder();
|
|
}
|
|
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'); ?>
|