mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-15 17:49:19 +00:00
load form for user on demand via ajax
This commit is contained in:
parent
69e262cea3
commit
4358eb9a39
|
@ -31,10 +31,15 @@ require_once("class.Bootstrap.php");
|
||||||
*/
|
*/
|
||||||
class SeedDMS_View_UsrMgr extends SeedDMS_Bootstrap_Style {
|
class SeedDMS_View_UsrMgr extends SeedDMS_Bootstrap_Style {
|
||||||
|
|
||||||
|
function form() { /* {{{ */
|
||||||
|
$seluser = $this->params['seluser'];
|
||||||
|
|
||||||
|
$this->showUserForm($seluser);
|
||||||
|
} /* }}} */
|
||||||
|
|
||||||
function showUserForm($currUser) { /* {{{ */
|
function showUserForm($currUser) { /* {{{ */
|
||||||
$dms = $this->params['dms'];
|
$dms = $this->params['dms'];
|
||||||
$user = $this->params['user'];
|
$user = $this->params['user'];
|
||||||
$seluser = $this->params['seluser'];
|
|
||||||
$groups = $this->params['allgroups'];
|
$groups = $this->params['allgroups'];
|
||||||
$passwordstrength = $this->params['passwordstrength'];
|
$passwordstrength = $this->params['passwordstrength'];
|
||||||
$passwordexpiration = $this->params['passwordexpiration'];
|
$passwordexpiration = $this->params['passwordexpiration'];
|
||||||
|
@ -370,7 +375,12 @@ function checkForm(num)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function showUser(selectObj) {
|
||||||
|
id = selectObj.options[selectObj.selectedIndex].value;
|
||||||
|
$('div.ajax').trigger('update', {userid: id});
|
||||||
|
}
|
||||||
|
|
||||||
|
<?php if(0): ?>
|
||||||
obj = -1;
|
obj = -1;
|
||||||
function showUser(selectObj) {
|
function showUser(selectObj) {
|
||||||
if (obj != -1)
|
if (obj != -1)
|
||||||
|
@ -383,6 +393,7 @@ function showUser(selectObj) {
|
||||||
obj = document.getElementById("keywords" + id);
|
obj = document.getElementById("keywords" + id);
|
||||||
obj.style.display = "";
|
obj.style.display = "";
|
||||||
}
|
}
|
||||||
|
<?php endif; ?>
|
||||||
</script>
|
</script>
|
||||||
<?php
|
<?php
|
||||||
$this->contentHeading(getMLText("user_management"));
|
$this->contentHeading(getMLText("user_management"));
|
||||||
|
@ -410,6 +421,8 @@ function showUser(selectObj) {
|
||||||
|
|
||||||
<div class="span8">
|
<div class="span8">
|
||||||
<div class="well">
|
<div class="well">
|
||||||
|
<div class="ajax" data-href="../out/out.UsrMgr.php?action=form<?php if($seluser) echo "&userid=".$seluser->getID();?>"></div>
|
||||||
|
<?php if(0): ?>
|
||||||
<div id="keywords0" style="display : none;">
|
<div id="keywords0" style="display : none;">
|
||||||
<?php $this->showUserForm(false); ?>
|
<?php $this->showUserForm(false); ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -420,6 +433,7 @@ function showUser(selectObj) {
|
||||||
$this->showUserForm($currUser);
|
$this->showUserForm($currUser);
|
||||||
print "</div>\n";
|
print "</div>\n";
|
||||||
}
|
}
|
||||||
|
endif;
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user