ADMIN_MEMBER_SELECTION_BOX() does now return a select-tag with the member list
authorRoland Häder <roland@mxchange.org>
Thu, 11 Sep 2008 19:21:32 +0000 (19:21 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 11 Sep 2008 19:21:32 +0000 (19:21 +0000)
inc/databases.php
inc/functions.php
inc/modules/admin/admin-inc.php
inc/modules/admin/what-list_surfbar_urls.php

index 8e5da05..55c7c0d 100644 (file)
@@ -114,7 +114,7 @@ define('USAGE_BASE', "usage");
 define('SERVER_URL', "http://www.mxchange.org");
 
 // This current patch level
-define('CURR_SVN_REVISION', "300");
+define('CURR_SVN_REVISION', "301");
 
 // Take a prime number which is long (if you know a longer one please try it out!)
 define('_PRIME', 591623);
index ba28010..c73058b 100644 (file)
@@ -2410,7 +2410,7 @@ function HANDLE_EXTRA_VALUES ($filterFunction, $value, $extraValue) {
                        // If we have an array simply use it and pre-extend it with our value
                        if (is_array($extraValue)) {
                                // Make the new args array
-                               $args = array_merge(array($vaue), $extraValue);
+                               $args = array_merge(array($value), $extraValue);
                        } // END - if
 
                        // Call the multi-parameter call-back
index b68a1e7..0c32844 100644 (file)
@@ -489,7 +489,7 @@ function ADD_ADMIN_MENU($act, $wht,$return=false)
        }
 }
 //
-function ADD_MEMBER_SELECTION_BOX($add_all = false, $return = false, $none = false, $def = "0")
+function ADD_MEMBER_SELECTION_BOX ($def="0", $add_all=false, $return=false, $none=false)
 {
        // Output selection form with all confirmed user accounts listed
        $result = SQL_QUERY("SELECT userid, surname, family FROM "._MYSQL_PREFIX."_user_data ORDER BY userid", __FILE__, __LINE__);
@@ -517,6 +517,9 @@ function ADD_MEMBER_SELECTION_BOX($add_all = false, $return = false, $none = fal
 
                // Load template
                LOAD_TEMPLATE("admin_member_selection_box", false, $GLOBALS['what']);
+       } else {
+               // Return content
+               return "<select name=\"userid\" size=\"1\">\n".$OUT."</select>\n";
        }
 }
 //
index 4351ebc..37f4366 100644 (file)
@@ -50,8 +50,8 @@ if (isset($_POST['edit'])) {
                $_POST['id'],
                "surfbar_urls",
                array("id", "userid", "url", "reward", "costs"),
-               array("bigintval", "", "", "TRANSLATE_COMMA", "TRANSLATE_COMMA"),
-               array("", "", "", "")
+               array("bigintval", "ADD_MEMBER_SELECTION_BOX", "FRAMETESTER", "TRANSLATE_COMMA", "TRANSLATE_COMMA"),
+               array("", array(false, true), "", "", "")
        );
        $show = false;
 } elseif (isset($_POST['do_edit'])) {
@@ -59,7 +59,7 @@ if (isset($_POST['edit'])) {
        ADMIN_EDIT_ENTRIES_CONFIRM($_POST['id'], "surfbar_urls", array(), array(), array(), true);
 } elseif (isset($_POST['delete'])) {
        // Delete entries (with confirmation)
-       ADMIN_DELETE_ENTRIES_CONFIRM($_POST['id'], "surfbar_urls", array("id", "userid", "url", "registered"), array("bigintval", "ADMIN_USER_PROFILE_LINK", "", "MAKE_DATETIME"), array("", "", "", "2"));
+       ADMIN_DELETE_ENTRIES_CONFIRM($_POST['id'], "surfbar_urls", array("id", "userid", "url", "registered"), array("bigintval", "ADMIN_USER_PROFILE_LINK", "FRAMETESTER", "MAKE_DATETIME"), array("", "", "", "2"));
        $show = false;
 } elseif (isset($_POST['remove'])) {
        // Delete entries (with confirmation)