mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-01 22:47:19 +00:00
pass selected group to view
This commit is contained in:
parent
22c170f698
commit
ac2ae0957a
|
@ -39,8 +39,14 @@ if (is_bool($allGroups)) {
|
||||||
UI::exitError(getMLText("admin_tools"),getMLText("internal_error"));
|
UI::exitError(getMLText("admin_tools"),getMLText("internal_error"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(isset($_GET['groupid']) && $_GET['groupid']) {
|
||||||
|
$selgroup = $dms->getGroup($_GET['groupid']);
|
||||||
|
} else {
|
||||||
|
$selgroup = null;
|
||||||
|
}
|
||||||
|
|
||||||
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
||||||
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user, 'allgroups'=>$allGroups, 'allusers'=>$allUsers, 'strictformcheck'=>$settings->_strictFormCheck));
|
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user, 'selgroup'=>$selgroup, 'allgroups'=>$allGroups, 'allusers'=>$allUsers, 'strictformcheck'=>$settings->_strictFormCheck));
|
||||||
if($view) {
|
if($view) {
|
||||||
$view->show();
|
$view->show();
|
||||||
exit;
|
exit;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user