tpl_stats.php
来自「一款文件上传程序」· PHP 代码 · 共 40 行
PHP
40 行
<!-- tpl_stats.php -->
<h1>Uploader Statistics</h1>
<table id="stats_tbl" cellspacing="1" cellpadding="7" border="0" style="width:100%; margin-top:10px; color:#606060;">
<tr skip_alternate="skip_alternate" style="background-color:#eaeaea;color:black;">
<td colspan="2">Users</td>
</tr>
<tr>
<td style="width: 200px;">Registered users</td>
<td>
<?=$stats['users_count']?> users.
<?php if ( $stats['users_count'] ) : ?>The newest user is <a href="<?=$stats['newest_user_url']?>"><?=$stats['newest_user_name']?></a><?php endif; ?>
</td>
</tr>
</table>
<table id="stats_tbl2" cellspacing="1" cellpadding="7" border="0" style="width:100%; margin-top:10px; color:#606060;">
<tr skip_alternate="skip_alternate" style="background-color:#eaeaea;color:black;">
<td colspan="2">Files and bandwidth</td>
</tr>
<tr>
<td style="width: 200px;">Users bandwidth usage</td>
<td>
<?=$stats['total_bandwidth_used']?> total. Highest usage by <a href="<?=$stats['highest_bw_userinfo']?>"><?=$stats['highest_bw_username']?></a> with <?=$stats['highest_bw_value']?>.
</td>
</tr>
<tr>
<td>Userfiles folder</td>
<td>
<?=$stats['userfiles_stats']['file_count']?> files,
<?=$stats['userfiles_stats']['folder_count']?> folders,
<?=$stats['userfiles_stats']['file_size']?> total.
</td>
</tr>
</table>
<script type="text/javascript">
alternateRowColor(getObj('stats_tbl'),'tr','#fafafa','#f5f5f5');
alternateRowColor(getObj('stats_tbl2'),'tr','#fafafa','#f5f5f5');
</script>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?