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:
@ -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>
|
||||
|
Reference in New Issue
Block a user