import v2.0.0.0_RC3 | 2012-07-01

https://github.com/lucanos/CommunityID -> http://www.itadmins.net/archives/357
This commit is contained in:
2019-07-17 22:31:04 +02:00
parent 38c146901c
commit 2f397f01f7
2677 changed files with 296182 additions and 45159 deletions

View File

@ -1,10 +0,0 @@
<h3><?php echo $this->translate('Authorizations per day') ?></h3>
<div>
<?php echo $this->translate('Select view') ?>:
<select name="view" onchange="COMMID.stats.loadReport('authorizations', 'statsAuths', 'type=' + this.value)">
<option value="week" <?php echo $this->weekSelected ?>><?php echo $this->translate('Last Week') ?></option>
<option value="year" <?php echo $this->yearSelected ?>><?php echo $this->translate('Last Year') ?></option>
</select>
</div>
<img src="<?php echo $this->base ?>/stats/authorizations/graph?rand=<?php echo $this->rand ?>&type=<?php echo $this->type ?>" />

View File

@ -1,12 +1,12 @@
<script>
var reports = new Array();
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");
for (var i = 0; i < reports.length; i++) {
COMMID.stats.loadReport(reports[i].name, reports[i].location);
}
}
);
});
@ -14,11 +14,19 @@ YAHOO.util.Event.onDOMReady(function () {
<div class="yui-g">
<div class="yui-u first">
<div id="statsRegs"></div>
<div id="statsNumTrustedSites"></div>
<? foreach ($this->pluginsLeft as $plugin): ?>
<div id="stats_<?= $plugin->getIdentifier() ?>"></div>
<script>
reports.push({name: "<?= $plugin->getClassName() ?>", location: "stats_<?= $plugin->getIdentifier() ?>"});
</script>
<? endforeach ?>
</div>
<div class="yui-u">
<div id="statsAuths"></div>
<div id="statsTopTen"></div>
<? foreach ($this->pluginsRight as $plugin): ?>
<div id="stats_<?= $plugin->getIdentifier() ?>"></div>
<script>
reports.push({name: "<?= $plugin->getClassName() ?>", location: "stats_<?= $plugin->getIdentifier() ?>"});
</script>
<? endforeach ?>
</div>
</div>

View File

@ -1,10 +0,0 @@
<h3><?php echo $this->translate('Registrations per day') ?></h3>
<div>
<?php echo $this->translate('Select view') ?>:
<select name="view" onchange="COMMID.stats.loadReport('registrations', 'statsRegs', 'type=' + this.value)">
<option value="week" <?php echo $this->weekSelected ?>><?php echo $this->translate('Last Week') ?></option>
<option value="month" <?php echo $this->monthSelected ?>><?php echo $this->translate('Last Month') ?></option>
<option value="year" <?php echo $this->yearSelected ?>><?php echo $this->translate('Last Year') ?></option>
</select>
</div>
<img src="<?php echo $this->base ?>/stats/registrations/graph?rand=<?php echo $this->rand ?>&type=<?php echo $this->type ?>" />

View File

@ -0,0 +1,2 @@
<h3><?= $this->reportTitle ?></h3>
<?= $this->content ?>

View File

@ -1,9 +0,0 @@
<h3><?php echo $this->translate('Trusted Sites') ?></h3>
<div>
<?php echo $this->translate('Select view') ?>:
<select name="view" onchange="COMMID.stats.loadReport('sites', 'statsNumTrustedSites', 'type=' + this.value)">
<option value="week" <?php echo $this->weekSelected ?>><?php echo $this->translate('Last Week') ?></option>
<option value="year" <?php echo $this->yearSelected ?>><?php echo $this->translate('Last Year') ?></option>
</select>
</div>
<img src="<?php echo $this->base ?>/stats/sites/graph?rand=<?php echo $this->rand ?>&type=<?php echo $this->type ?>" />

View File

@ -1,10 +0,0 @@
<h3><?php echo $this->translate('Top 10 Trusted Sites') ?></h3>
<table id="topTenTable">
<?php foreach ($this->sites as $num => $siteInfo): ?>
<tr>
<td><?php echo $num + 1 ?></td>
<td><?php echo $siteInfo['site'] ?></td>
<td>(<?php echo $this->translate('%s users', $siteInfo['num']) ?>)</td>
</tr>
<?php endforeach ?>
</table>