mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
fix cv in mobile pandora_enterprise#12196
This commit is contained in:
parent
eb5e56cc78
commit
5c52dd95f7
@ -28,15 +28,9 @@ class Groups
|
|||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
$system = System::getInstance();
|
$system = System::getInstance();
|
||||||
|
|
||||||
if ($system->checkACL($this->acl)) {
|
if ($system->checkACL($this->acl)) {
|
||||||
$this->correct_acl = true;
|
$this->correct_acl = true;
|
||||||
|
|
||||||
$this->groups = $this->getListGroups();
|
$this->groups = $this->getListGroups();
|
||||||
// ~ foreach ($this->groups as $key => $group) {
|
|
||||||
// ~ $this->status[$key] = $group['status'];
|
|
||||||
// ~ unset($this->groups[$key]['status']);
|
|
||||||
// ~ }
|
|
||||||
} else {
|
} else {
|
||||||
$this->correct_acl = false;
|
$this->correct_acl = false;
|
||||||
}
|
}
|
||||||
@ -71,7 +65,6 @@ class Groups
|
|||||||
private function show_group()
|
private function show_group()
|
||||||
{
|
{
|
||||||
$ui = Ui::getInstance();
|
$ui = Ui::getInstance();
|
||||||
|
|
||||||
$ui->createPage();
|
$ui->createPage();
|
||||||
$ui->createDefaultHeader(
|
$ui->createDefaultHeader(
|
||||||
__('Groups'),
|
__('Groups'),
|
||||||
@ -88,10 +81,10 @@ class Groups
|
|||||||
$ui->showFooter(false);
|
$ui->showFooter(false);
|
||||||
$ui->beginContent();
|
$ui->beginContent();
|
||||||
|
|
||||||
$ui->contentAddHtml('<div class="list_groups" data-role="collapsible-set" data-theme="a" data-content-theme="d">');
|
$ui->contentAddHtml('<div class="list_groups" data-role="collapsible-set" data-theme="a" data-content-theme="d">');
|
||||||
$count = 0;
|
$count = 0;
|
||||||
$url_agent = 'index.php?page=agents&group=%s&status=%s';
|
$url_agent = 'index.php?page=agents&group=%s&status=%s';
|
||||||
$url_modules = 'index.php?page=modules&group=%s&status=%s';
|
$url_modules = 'index.php?page=modules&group=%s&status=%s';
|
||||||
|
|
||||||
foreach ($this->groups as $group) {
|
foreach ($this->groups as $group) {
|
||||||
// Calculate entire row color.
|
// Calculate entire row color.
|
||||||
@ -157,7 +150,15 @@ class Groups
|
|||||||
$agents_counter .= ']';
|
$agents_counter .= ']';
|
||||||
|
|
||||||
if ($group['_iconImg_'] !== null) {
|
if ($group['_iconImg_'] !== null) {
|
||||||
$img_group = html_print_image('images/'.$group['_iconImg_'], true, false, false, false, false, true);
|
$img_group = html_print_image(
|
||||||
|
'images/'.groups_get_icon($group['_id_']),
|
||||||
|
true,
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
true
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$group['_iconImg_'] = ($group['_iconImg_'] == '') ? 'world.png' : $group['_iconImg_'];
|
$group['_iconImg_'] = ($group['_iconImg_'] == '') ? 'world.png' : $group['_iconImg_'];
|
||||||
@ -218,15 +219,7 @@ class Groups
|
|||||||
$count++;
|
$count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
$ui->contentAddHtml('</div>');
|
$ui->contentAddHtml('</div>');
|
||||||
|
|
||||||
// $ui->contentAddHtml(ob_get_clean());
|
|
||||||
// ~ $table = new Table();
|
|
||||||
// ~ $table->setId('list_groups');
|
|
||||||
// ~ $table->setClass('group_view');
|
|
||||||
// ~ $table->importFromHash($this->groups);
|
|
||||||
// ~ $table->setRowClass($this->status);
|
|
||||||
// ~ $ui->contentAddHtml($table->getHTML());
|
|
||||||
$ui->endContent();
|
$ui->endContent();
|
||||||
$ui->showPage();
|
$ui->showPage();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user