diff --git a/admin/user_list.php b/admin/user_list.php index bd83da85..fe064749 100644 --- a/admin/user_list.php +++ b/admin/user_list.php @@ -43,7 +43,6 @@ } user_delete($uid); message_push(happy(i18n('User deleted.'))); - } send_header("User Editor", @@ -73,6 +72,28 @@ function toggleoptions() document.getElementById('optionstext').innerHTML = '+ '; } } + +function togglenew() +{ + if(document.getElementById('new').style.display == 'none') { + document.getElementById('new').style.display = 'block'; + document.getElementById('newtext').innerHTML = ''; + + } else { + document.getElementById('new').style.display = 'none'; + document.getElementById('newtext').innerHTML = ''; + } +} + +function neweditor() +{ + var username = document.forms.newuser.new_email.value; + var usertype = document.forms.newuser.new_type.value; + window.open("user_editor_window.php?type="+usertype+"&username="+username,"User Editor","location=no,menubar=no,directories=no,toolbar=no,width=770,height=500,scrollbars=yes"); + document.forms.newuser.new_email.value = ""; + return false; +} + "; echo ""; echo "
"; - echo ""; + echo ""; echo ""; echo ""; echo ""; + + echo "
".i18n('Add New User').""; + echo ''; + echo "
"; echo "
"; /* Grab a list of users */