remove obsolete xml stuff in pref-users infoboxes
This commit is contained in:
parent
837ec70e3e
commit
977580a41c
|
@ -19,15 +19,8 @@ class Pref_Users extends Handler_Protected {
|
|||
|
||||
function userdetails() {
|
||||
|
||||
header("Content-Type: text/xml");
|
||||
print "<dlg>";
|
||||
|
||||
$uid = sprintf("%d", $_REQUEST["id"]);
|
||||
|
||||
print "<title>".__('User details')."</title>";
|
||||
|
||||
print "<content><![CDATA[";
|
||||
|
||||
$result = db_query($this->link, "SELECT login,
|
||||
".SUBSTRING_FOR_DATE."(last_login,1,16) AS last_login,
|
||||
access_level,
|
||||
|
@ -106,22 +99,13 @@ class Pref_Users extends Handler_Protected {
|
|||
<button onclick=\"closeInfoBox()\">".__("Close this window").
|
||||
"</button></div>";
|
||||
|
||||
print "]]></content></dlg>";
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
function edit() {
|
||||
global $access_level_names;
|
||||
|
||||
header("Content-Type: text/xml");
|
||||
|
||||
$id = db_escape_string($this->link, $_REQUEST["id"]);
|
||||
|
||||
print "<dlg id=\"$method\">";
|
||||
print "<title>".__('User Editor')."</title>";
|
||||
print "<content><![CDATA[";
|
||||
|
||||
print "<form id=\"user_edit_form\" onsubmit='return false'>";
|
||||
|
||||
print "<input type=\"hidden\" name=\"id\" value=\"$id\">";
|
||||
|
@ -193,8 +177,6 @@ class Pref_Users extends Handler_Protected {
|
|||
<button onclick=\"return userEditCancel()\">".
|
||||
__('Cancel')."</button></div>";
|
||||
|
||||
print "]]></content></dlg>";
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -91,7 +91,7 @@ function editUser(id, event) {
|
|||
new Ajax.Request("backend.php", {
|
||||
parameters: query,
|
||||
onComplete: function(transport) {
|
||||
infobox_callback2(transport);
|
||||
infobox_callback2(transport, __("User Editor"));
|
||||
document.forms['user_edit_form'].login.focus();
|
||||
} });
|
||||
|
||||
|
@ -582,7 +582,7 @@ function selectedUserDetails() {
|
|||
new Ajax.Request("backend.php", {
|
||||
parameters: query,
|
||||
onComplete: function(transport) {
|
||||
infobox_callback2(transport);
|
||||
infobox_callback2(transport, __("User details"));
|
||||
} });
|
||||
} catch (e) {
|
||||
exception_error("selectedUserDetails", e);
|
||||
|
|
Loading…
Reference in New Issue