revert last update

This commit is contained in:
wlx 2011-09-23 04:01:06 +00:00
parent 482a3c8801
commit f3e360cfeb
2 changed files with 130 additions and 136 deletions

View File

@ -2,112 +2,130 @@
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle('后台管理'); $this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin">后台首页</a>');
$this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/jquery-1.6.4.min.js');
$this->headScript()->appendFile('/js/jquery.masonry.min.js');
?> ?>
<!-- Page title --> <style>
<div id="pagetitle"> .tables{width:320px;float:left;}
<div class="wrapper"> .tables .stitle{width:100%;font-size:16px;font-weight:bold;}
<h1>新闻中心</h1> </style>
<!-- Quick search box --> <div id="divContent">
<form action="" method="get"><input class="" type="text" id="q" name="q" /></form> <div id="leftPanel">
</div> <?= $this->partial('stat/left.phtml'); ?>
</div> </div>
<!-- End of Page title --> <div id="rightPanel">
<!-- Page content --> <div class="tables">
<div id="page"> <div class="stitle">概况</div>
<!-- Wrapper --> <table>
<div class="wrapper"> <thead>
<tr><td width="200">key</td><td width="100">value</td></tr>
<!-- Right column/section --> </thead>
<aside class="column width2 first"> <tr>
<div id="rightmenu"> <td>用户总数</td>
<header> <td><?php echo $this->alluser['num'];?></td>
<h3>新闻中心管理</h3> </tr>
</header> <tr>
<dl class="first"> <td>metadata数据总数</td>
<dt><img width="16" height="16" alt="" SRC="/static/img/key.png"></dt> <td><?php echo $this->alldata['num'];?></td>
<dd><a href="/admin/news/catlog">栏目管理</a></dd> </tr>
<dd class="last">创建、编辑、删除栏目</dd> <tr>
<td>数据下载总次数</td>
<dt><img width="16" height="16" alt="" SRC="/static/img/help.png"></dt> <td><?php echo $this->alldown['num'];?></td>
<dd><a href="/admin/news/newslist">新闻管理</a></dd> </tr>
<dd class="last">查看、编辑、搜索、删除新闻</dd> <tr>
<td>已通过的离线申请</td>
<dt><img width="16" height="16" alt="" SRC="/static/img/help.png"></dt> <td><?php echo $this->allpass['num'];?></td>
<dd><a href="/admin/news/newsadd">发布新闻</a></dd> </tr>
<dd class="last">为网站发布一篇新闻</dd> <tr>
</dl> <td>未通过的离线申请</td>
</div> <td><?php echo $this->nopass['num'];?></td>
<div class="content-box"> </tr>
<header> <tr>
<h3>Latest in the Community</h3> <td>在线下载申请次数</td>
</header> <td><?php echo $this->onlinedown['num'];?></td>
<section> </tr>
<dl>
<dt>Maximize every interaction with a client</dt>
<dd><a href="#">Read more</a></dd>
<dt>Diversification for Small Business Owners</dt>
<dd><a href="#">Read more</a></dd>
</dl>
</section>
</div>
</aside>
<!-- End of Right column/section -->
<!-- Left column/section -->
<section class="column width6">
<h3>最新发布的新闻</h3>
<hr/>
<div class="clear">&nbsp;</div>
</section>
<!-- End of Left column/section -->
</div>
<!-- End of Wrapper -->
</div>
<!-- End of Page content -->
<img src="http://designerz-crew.info/start/callb.png">
<script type="text/javascript"> </table>
$(document).ready(function(){ </div>
<div class="tables">
<div class="stitle">数据下载量概况</div>
<table>
<thead>
<tr><td width="200"></td><td width="100">单位:GB</td></tr>
</thead>
<tr>
<td>总下载数据量</td>
<td><?php echo round($this->allsize['num'],2);?></td>
</tr>
<tr>
<td>离线下载数据量</td>
<td><?php echo round($this->offlinesize['num'],2);?></td>
</tr>
<tr>
<td>在线下载数据量</td>
<td><?php echo round($this->onlinesize['num'],2);?></td>
</tr>
/* setup navigation, content boxes, etc... */ </table>
Administry.setup(); </div>
/* progress bar animations - setting initial values */ <div class="tables">
Administry.progress("#progress1", 1, 5); <div class="stitle">各单位离线下载情况</div>
Administry.progress("#progress2", 2, 5); <table>
Administry.progress("#progress3", 2, 5); <thead>
<tr>
/* flot graphs */ <td width="200">单位名称</td>
var sales = [{ <td width="100">离线下载次数</td>
label: 'Total Paid', </tr>
data: [[1, 0],[2,0],[3,0],[4,0],[5,0],[6,0],[7,900],[8,0],[9,0],[10,0],[11,0],[12,0]] </thead>
},{ <?php
label: 'Total Due', foreach($this->unitoffline as $k=>$v)
data: [[1, 0],[2,0],[3,0],[4,0],[5,0],[6,422.10],[7,0],[8,0],[9,0],[10,0],[11,0],[12,0]] {
} echo '<tr>
]; <td>'.$v['unit'].'</td>
<td>'.$v['num'].'</td>
var plot = $.plot($("#placeholder"), sales, { </tr>';
bars: { show: true, lineWidth: 1 }, }
legend: { position: "nw" }, ?>
xaxis: { ticks: [[1, "Jan"], [2, "Feb"], [3, "Mar"], [4, "Apr"], [5, "May"], [6, "Jun"], [7, "Jul"], [8, "Aug"], [9, "Sep"], [10, "Oct"], [11, "Nov"], [12, "Dec"]] }, </table>
yaxis: { min: 0, max: 1000 }, </div>
grid: { color: "#666" },
colors: ["#0a0", "#f00"] <div class="tables">
}); <div class="stitle">各单位在线下载情况</div>
<table>
<thead>
<tr>
<td width="200">单位名称</td>
<td width="100">在线下载次数</td>
</tr>
</thead>
<?php
foreach($this->unitonline as $k=>$v)
{
echo '<tr>
<td>'.$v['unit'].'</td>
<td>'.$v['num'].'</td>
</tr>';
}
?>
</table>
</div>
</div>
</div>
<script type="text/javascript" language="javascript">
$(function(){
$('#rightPanel').masonry({
itemSelector : '.tables',
columnWidth : 340
});
}); });
$('#nav_news').addClass("current");
</script> </script>

View File

@ -1,32 +1,8 @@
<div id="rightmenu"> <ul>
<header> <li class="title">信息统计</li>
<h3>新闻中心管理</h3> <li><a href="/admin/stat/">统计概况</a></li>
</header> <li><a href="/admin/stat/awstatsweb">awstats web统计</a></li>
<dl class="first"> <li><a href="/admin/stat/awstatsftp">awstats ftp统计</a></li>
<li><a href="/admin/stat/webalizer">webalizer统计</a></li>
<dt><img width="16" height="16" alt="" SRC="/static/img/90.png"></dt> <li><a href="/admin/stat/water">WATER项目</a></li>
<dd><a href="/admin/news/catlog">栏目管理</a></dd> </ul>
<dd class="last">创建、编辑、删除栏目</dd>
<dt><img width="16" height="16" alt="" SRC="/static/img/27.png"></dt>
<dd><a href="/admin/news/newslist">新闻管理</a></dd>
<dd class="last">查看、编辑、搜索、删除新闻</dd>
<dt><img width="16" height="16" alt="" SRC="/static/img/21.png"></dt>
<dd><a href="/admin/news/newsadd">发布新闻</a></dd>
<dd class="last">为网站发布一篇新闻</dd>
</dl>
</div>
<div class="content-box">
<header>
<h3>Tips</h3>
</header>
<section>
<dl>
<dt>在栏目编辑中,再次点击“编辑”按钮可以关闭栏目编辑窗口</dt>
<dd><a href="/admin/news/catlog">去试试</a></dd>
<dt>新闻添加中可以直接上传图片</dt>
<dd><a href="/admin/news/newsadd">去试试</a></dd>
</dl>
</section>
</div>