From 38effb78eeb289c3ccbc1950852a8ba4487a7ece Mon Sep 17 00:00:00 2001 From: dave Date: Sun, 12 Apr 2009 02:40:32 +0000 Subject: [PATCH] - Add a basic, but funcitonal, new user option for any type of user. --- admin/user_list.php | 48 +++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 46 insertions(+), 2 deletions(-) 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 */