XOOPS
2.6.0
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
index.php
Go to the documentation of this file.
1
<?php
2
/*
3
You may not change or alter any portion of this comment or credits
4
of supporting developers from this source code or any supporting source code
5
which is considered copyrighted (c) material of the original comment or credit authors.
6
7
This program is distributed in the hope that it will be useful,
8
but WITHOUT ANY WARRANTY; without even the implied warranty of
9
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
*/
11
23
include
__DIR__ .
'/header.php'
;
24
25
$xoops
=
Xoops::getInstance
();
26
$xoops
->header();
27
28
$admin_page
= new \Xoops\Module\Admin();
29
$admin_page
->displayNavigation(
'index.php'
);
30
31
$userrank_handler
=
$xoops
->getHandlerRanks();
32
33
$admin_page
->addInfoBox(
_USERRANK_MI_USERRANK
);
34
35
$count_all
=
$userrank_handler
->getCount();
36
$admin_page
->addInfoBoxLine(sprintf(
_AM_USERRANK_NBTOTAL
,
'<span class="red">'
.
$count_all
.
'</span>'
));
37
38
$criteria
=
new
CriteriaCompo
();
39
$criteria
->add(
new
Criteria
(
'rank_special'
, 1));
40
$count_special
=
$userrank_handler
->getCount(
$criteria
);
41
42
$admin_page
->addInfoBoxLine(sprintf(
_AM_USERRANK_NBSPECIAL
,
'<span class="red">'
.
$count_special
.
'</span>'
));
43
44
$admin_page
->displayIndex();
45
46
$xoops
->footer();
$count_special
$count_special
Definition:
index.php:40
Xoops\getInstance
static getInstance()
Definition:
Xoops.php:160
_AM_USERRANK_NBTOTAL
const _AM_USERRANK_NBTOTAL
Definition:
admin.php:42
_USERRANK_MI_USERRANK
const _USERRANK_MI_USERRANK
Definition:
modinfo.php:27
$userrank_handler
$userrank_handler
Definition:
index.php:31
$criteria
$criteria
Definition:
index.php:30
include
_AM_USERRANK_NBSPECIAL
const _AM_USERRANK_NBSPECIAL
Definition:
admin.php:43
$admin_page
$admin_page
Definition:
index.php:56
$count_all
$count_all
Definition:
index.php:35
CriteriaCompo
Definition:
criteria.php:22
Criteria
Definition:
criteria.php:29
$xoops
if(file_exists($mainfile)) elseif(file_exists(__DIR__. '/install/index.php')) $xoops
Definition:
index.php:36
usr64
htdocs
modules
userrank
admin
index.php
Generated on Fri May 22 2015 03:07:01 for XOOPS by
1.8.9.1