import v1.0.0-RC4 | 2009-05-20
This commit is contained in:
10
modules/stats/views/scripts/authorizations/index.phtml
Normal file
10
modules/stats/views/scripts/authorizations/index.phtml
Normal file
@ -0,0 +1,10 @@
|
||||
<h3><?= $this->translate('Authorizations per day') ?></h3>
|
||||
<div>
|
||||
<?= $this->translate('Select view') ?>:
|
||||
<select name="view" onchange="COMMID.stats.loadReport('authorizations', 'statsAuths', 'type=' + this.value)">
|
||||
<option value="week" <?= $this->weekSelected ?>><?= $this->translate('Last Week') ?></option>
|
||||
<option value="year" <?= $this->yearSelected ?>><?= $this->translate('Last Year') ?></option>
|
||||
</select>
|
||||
</div>
|
||||
<img src="<?= $this->base ?>/stats/authorizations/graph?rand=<?= $this->rand ?>&type=<?= $this->type ?>" />
|
||||
|
24
modules/stats/views/scripts/index/index.phtml
Normal file
24
modules/stats/views/scripts/index/index.phtml
Normal file
@ -0,0 +1,24 @@
|
||||
<script>
|
||||
YAHOO.util.Event.onDOMReady(function () {
|
||||
COMMID.loader.insert(
|
||||
["connection"],
|
||||
function() {
|
||||
COMMID.stats.loadReport("registrations", "statsRegs");
|
||||
COMMID.stats.loadReport("authorizations", "statsAuths");
|
||||
COMMID.stats.loadReport("sites", "statsNumTrustedSites");
|
||||
COMMID.stats.loadReport("top", "statsTopTen");
|
||||
}
|
||||
);
|
||||
});
|
||||
</script>
|
||||
|
||||
<div class="yui-g">
|
||||
<div class="yui-u first">
|
||||
<div id="statsRegs"></div>
|
||||
<div id="statsNumTrustedSites"></div>
|
||||
</div>
|
||||
<div class="yui-u">
|
||||
<div id="statsAuths"></div>
|
||||
<div id="statsTopTen"></div>
|
||||
</div>
|
||||
</div>
|
10
modules/stats/views/scripts/registrations/index.phtml
Normal file
10
modules/stats/views/scripts/registrations/index.phtml
Normal file
@ -0,0 +1,10 @@
|
||||
<h3><?= $this->translate('Registrations per day') ?></h3>
|
||||
<div>
|
||||
<?= $this->translate('Select view') ?>:
|
||||
<select name="view" onchange="COMMID.stats.loadReport('registrations', 'statsRegs', 'type=' + this.value)">
|
||||
<option value="week" <?= $this->weekSelected ?>><?= $this->translate('Last Week') ?></option>
|
||||
<option value="month" <?= $this->monthSelected ?>><?= $this->translate('Last Month') ?></option>
|
||||
<option value="year" <?= $this->yearSelected ?>><?= $this->translate('Last Year') ?></option>
|
||||
</select>
|
||||
</div>
|
||||
<img src="<?= $this->base ?>/stats/registrations/graph?rand=<?= $this->rand ?>&type=<?= $this->type ?>" />
|
9
modules/stats/views/scripts/sites/index.phtml
Normal file
9
modules/stats/views/scripts/sites/index.phtml
Normal file
@ -0,0 +1,9 @@
|
||||
<h3><?= $this->translate('Trusted Sites') ?></h3>
|
||||
<div>
|
||||
<?= $this->translate('Select view') ?>:
|
||||
<select name="view" onchange="COMMID.stats.loadReport('sites', 'statsNumTrustedSites', 'type=' + this.value)">
|
||||
<option value="week" <?= $this->weekSelected ?>><?= $this->translate('Last Week') ?></option>
|
||||
<option value="year" <?= $this->yearSelected ?>><?= $this->translate('Last Year') ?></option>
|
||||
</select>
|
||||
</div>
|
||||
<img src="<?= $this->base ?>/stats/sites/graph?rand=<?= $this->rand ?>&type=<?= $this->type ?>" />
|
10
modules/stats/views/scripts/top/index.phtml
Normal file
10
modules/stats/views/scripts/top/index.phtml
Normal file
@ -0,0 +1,10 @@
|
||||
<h3><?= $this->translate('Top 10 Trusted Sites') ?></h3>
|
||||
<table id="topTenTable">
|
||||
<? foreach ($this->sites as $num => $siteInfo): ?>
|
||||
<tr>
|
||||
<td><?= $num + 1 ?></td>
|
||||
<td><?= $siteInfo['site'] ?></td>
|
||||
<td>(<?= $this->translate('%s users', $siteInfo['num']) ?>)</td>
|
||||
</tr>
|
||||
<? endforeach ?>
|
||||
</table>
|
Reference in New Issue
Block a user