$row['user_id'] = Table::addCell($username, '', '', true); $row['user_ip'] = Table::addCell('<a href="ipblock_add?ip=' . $user_ip . '" target="_blank" class="bstooltip" data-title="Click to block IP">' . $user_ip . '</a>', '', '', true); $row['uri'] = Table::addCell($uri); $row['ns'] = Table::addCell($namespace, '', '', true); $row['event'] = Table::addCell($event); $event_view->addRow($row); } $event_query->free_result(); } $event_view->build(); print $event_view->getTable(); ?> <script type="text/javascript"> <?php $check = new TableCheck(); $check->setType('event')->addRequire('#event_delete_btn')->create(); print $check->getScript(); ?> </script> </div> </div> </div> </div> <?php if ($user->inGroup(1)) { $delete_modal = $page->getPlugin('modalconf', array('delete', 'event', WebApp::action('core', 'event_delete', true), 'post')); $delete_modal->addDefaultConfig()->setDefaultContent()->setDefaultModal()->setRightBtn('warning', 'Delete', 'trash')->build(); print $delete_modal->getModal(); $obliterate = $page->getPlugin('modalconf', array('clear', 'event', WebApp::action('core', 'event_clear', true), 'post')); $obliterate->addForm()->form->build();
} if ($this->accessAdminPage(42)) { $row['edit'] = Table::addCell('<a href="menu_edit/' . $MID . '/"><span class="' . B_ICON . ' ' . B_ICON . '-edit"></span></a>'); } if ($this->accessAdminPage(42)) { $row['delete'] = Table::addCell('<a href="#" onclick="processData(\'/action/core/menu_remove/' . $MID . '\')"><span class="' . B_ICON . ' ' . B_ICON . '-remove-sign"></span></a>'); } $menu->addRow($row); $rown++; } $menu_query->free_result(); $menu->build(); print $menu->getTable(); ?> </div> </div> </div> </div> <script type="text/javascript"> <?php $check = new TableCheck(); $check->setType('block')->addRequireOne('#edit_btn')->addRequireOneBtn('#edit_btn', 'ipblock_edit')->create(); print $check->getScript(); ?> </script> <?php $delete_mod = $page->getPlugin('modalconf', array('delete', 'block', WebApp::action('core', 'ipblock_delete', true), 'post')); $delete_mod->addDefaultConfig(); $delete_mod->setDefaultContent()->setDefaultModal()->setRightBtn('danger', 'Delete', 'trash')->build(); print $delete_mod->getModal();
$row['lastrun'] = Table::addCell($last_run, '', '', true); $row['desc'] = Table::addCell($desc); if ($this->accessAdminPage(52)) { $row['edit'] = Table::addCell('<a href="cron_edit/' . $id . '"><span class="' . B_ICON . ' ' . B_ICON . '-edit"></span></a>'); } if ($this->inGroup(54, true)) { $row['run'] = Table::addCell('<a href="/action/core/cron_run?j=' . $id . '" onclick="processData(this.href);return false;"><span class="' . B_ICON . ' ' . B_ICON . '-play"></span></a>'); } $jobs->addRow($row); } $job_query->free_result(); $jobs->build(); print $jobs->getTable(); ?> </div> </div> </div> </div> <script type="text/javascript"> <?php $check = new TableCheck(); $check->setType('job')->addRequireOne('#edit_btn')->addRequireOneBtn('#edit_btn', 'cron_edit')->create(); print $check->getScript(); ?> </script> <?php $delete_mod = $page->getPlugin('modalconf', array('delete', 'job', WebApp::action('core', 'cron_delete', true), 'post')); $delete_mod->addDefaultConfig(); $delete_mod->setDefaultContent()->SetDefaultModal()->setRightBtn('danger', 'Delete', 'trash')->build(); print $delete_mod->getModal();
$row['username'] = Table::addCell($username); $row['ip'] = Table::addCell($ip); $row['created'] = Table::addCell(date(DATET_SHORT, strtotime($created))); $row['lpr'] = Table::addCell(date(DATET_SHORT, strtotime($lpr))); $row['del'] = Table::addCell('<a href="#" onclick="processData(\'/action/user/session_destroy/' . $session_id . '\')"><span class="' . B_ICON . ' ' . B_ICON . '-remove-sign"</a>'); $row['lock'] = Table::addCell('<a href="#" onclick="processData(\'/action/user/session_lock/' . $session_id . '\')"><span class="' . B_ICON . ' ' . B_ICON . '-lock"</a>'); $session_view->addRow($row); } $session_view->build(); print $session_view->getTable(); ?> </div> </div> </div> </div> <script type="text/javascript"> <?php $check = new TableCheck(); $check->setType('session')->create(); print $check->getScript(); ?> </script> <?php $destroy_mod = $page->getPlugin('modalconf', array('destroy', 'session', WebApp::action('user', 'session_destroy?m=m', true), 'post')); $destroy_mod->addDefaultConfig(); $destroy_mod->setDefaultContent()->setDefaultModal()->setRightBtn('danger', 'Destroy', 'remove-sign')->build(); print $destroy_mod->getModal(); $lock_mod = $page->getPlugin('modalconf', array('lock', 'session', WebApp::action('user', 'session_lock?m=m', true), 'post')); $lock_mod->addDefaultConfig(); $lock_mod->setDefaultContent()->setDefaultModal()->setRightBtn('danger', 'Lock', 'lock')->build(); print $lock_mod->getModal();