mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-15 09:39:17 +00:00
remove old code, set data-query in div.ajax elements
load an initial user when the page is opened
This commit is contained in:
parent
01449f66e3
commit
23362f8146
|
@ -406,21 +406,6 @@ function showUser(selectObj) {
|
||||||
id = selectObj.options[selectObj.selectedIndex].value;
|
id = selectObj.options[selectObj.selectedIndex].value;
|
||||||
$('div.ajax').trigger('update', {userid: id});
|
$('div.ajax').trigger('update', {userid: id});
|
||||||
}
|
}
|
||||||
|
|
||||||
<?php if(0): ?>
|
|
||||||
obj = -1;
|
|
||||||
function showUser(selectObj) {
|
|
||||||
if (obj != -1)
|
|
||||||
obj.style.display = "none";
|
|
||||||
|
|
||||||
id = selectObj.options[selectObj.selectedIndex].value;
|
|
||||||
if (id == -1)
|
|
||||||
return;
|
|
||||||
|
|
||||||
obj = document.getElementById("keywords" + id);
|
|
||||||
obj.style.display = "";
|
|
||||||
}
|
|
||||||
<?php endif; ?>
|
|
||||||
</script>
|
</script>
|
||||||
<?php
|
<?php
|
||||||
$this->contentHeading(getMLText("user_management"));
|
$this->contentHeading(getMLText("user_management"));
|
||||||
|
@ -444,26 +429,12 @@ function showUser(selectObj) {
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="ajax" data-view="UsrMgr" data-action="info"></div>
|
<div class="ajax" data-view="UsrMgr" data-action="info" <?php echo ($seluser ? "data-query=\"userid=".$seluser->getID()."\"" : "") ?>></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="span8">
|
<div class="span8">
|
||||||
<div class="well">
|
<div class="well">
|
||||||
<div class="ajax" data-view="UsrMgr" data-action="form"></div>
|
<div class="ajax" data-view="UsrMgr" data-action="form" <?php echo ($seluser ? "data-query=\"userid=".$seluser->getID()."\"" : "") ?>></div>
|
||||||
<?php if(0): ?>
|
|
||||||
<div id="keywords0" style="display : none;">
|
|
||||||
<?php $this->showUserForm(false); ?>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
foreach ($users as $currUser) {
|
|
||||||
print "<div id=\"keywords".$currUser->getID()."\" style=\"display : none;\">";
|
|
||||||
$this->showUserForm($currUser);
|
|
||||||
print "</div>\n";
|
|
||||||
}
|
|
||||||
endif;
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user