| | 412 | |
|---|
| | 413 | // ok this should take all the input and post it to addUser, passing in the current user and stuff... i think... |
|---|
| | 414 | function addUserForm() |
|---|
| | 415 | { |
|---|
| | 416 | echo "<div class=\"adduser\">\n"; |
|---|
| | 417 | if ($this->inputError != "") { |
|---|
| | 418 | echo "<p class=\"invalid\">*** " . $this->inputError . " ***</p>\n"; |
|---|
| | 419 | } |
|---|
| | 420 | elseif (isset($_POST['submit'])) { |
|---|
| | 421 | echo "<p>New user added.</p>\n"; |
|---|
| | 422 | } |
|---|
| | 423 | echo "<h2>"._("Add User")."</h2>\n"; |
|---|
| | 424 | echo "<form action=\"".$this->blogPath."adduser\" method=\"post\" id=\"adduserform\">\n"; |
|---|
| | 425 | echo "<p>\n"; |
|---|
| | 426 | echo "<input type=\"text\" name=\"username\" id=\"username\" value=\"" . (($this->inputError != "") ? strip_tags(trim($_POST['username'])) : "") . "\" size=\"22\" maxlength=\"50\" tabindex=\"1\" />\n"; |
|---|
| | 427 | echo "<label for=\"username\">"._("Username")."</label>\n"; |
|---|
| | 428 | } |
|---|