From 6315f728e83cf8b35ce4451fe7e0d74cc4f5f7be Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 11 Aug 2008 10:52:20 +0000 Subject: Refs #210 & #211 git-svn-id: https://code.elgg.org/elgg/trunk@1820 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/account/forms/register.php | 34 +++++++++++++++----------------- views/default/account/forms/useradd.php | 33 ++++++++++++------------------- 2 files changed, 29 insertions(+), 38 deletions(-) (limited to 'views/default') diff --git a/views/default/account/forms/register.php b/views/default/account/forms/register.php index 931383aa4..f8c9ffe5b 100644 --- a/views/default/account/forms/register.php +++ b/views/default/account/forms/register.php @@ -13,26 +13,24 @@ $admin_option = false; if (($_SESSION['user']->admin) && ($vars['show_admin'])) - $admin_option = true; + $admin_option = true; + + $form_body = "


"; + + $form_body .= "
"; + $form_body .= "
"; + $form_body .= "
"; + $form_body .= "
"; + + if ($admin_option) + $form_body .= elgg_view('input/checkboxes', array('internalname' => "admin", 'options' => array(elgg_echo('admin_option')))); + + $form_body .= elgg_view('input/hidden', array('internalname' => 'action', 'value' => 'register')); + $form_body .= elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('register'))) . "

"; ?>
-

-
-


-
-
-
-
- -
- -

- -
+

+ "{$vars['url']}action/register", 'body' => $form_body)) ?>
\ No newline at end of file diff --git a/views/default/account/forms/useradd.php b/views/default/account/forms/useradd.php index c170f30f1..28e5d3d30 100644 --- a/views/default/account/forms/useradd.php +++ b/views/default/account/forms/useradd.php @@ -13,29 +13,22 @@ $admin_option = false; if (($_SESSION['user']->admin) && ($vars['show_admin'])) $admin_option = true; + + $form_body = "


"; + + $form_body .= "
"; + $form_body .= "
"; + $form_body .= "
"; + $form_body .= "
"; + + if ($admin_option) + $form_body .= elgg_view('input/checkboxes', array('internalname' => "admin", 'options' => array(elgg_echo('admin_option')))); + + $form_body .= elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('register'))) . "

"; ?>

-
-


-
-
-
-
- -
- -

-
+ "{$vars['url']}action/useradd", 'body' => $form_body)) ?>
\ No newline at end of file -- cgit v1.2.3