Fixed bug in surfbar member list
authorRoland Häder <roland@mxchange.org>
Wed, 29 Jul 2009 18:02:13 +0000 (18:02 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 29 Jul 2009 18:02:13 +0000 (18:02 +0000)
inc/libs/surfbar_functions.php
templates/de/html/member/member_surfbar_list_form.tpl

index 2ea4f2d5bd2a12d4c7536520cd82bdde55850ec2..f04a3b7a91a02029d66ab4a4b7addc73290e7321 100644 (file)
@@ -198,13 +198,13 @@ function SURFBAR_MEMBER_ACTIONS ($urlId, $status) {
        // "Walk" through all actions and create forms
        foreach ($actionArray as $actionId => $action) {
                // Add form for this action
        // "Walk" through all actions and create forms
        foreach ($actionArray as $actionId => $action) {
                // Add form for this action
-               $OUT .= sprintf(LOAD_TEMPLATE('member_surfbar_list_form', true),
-               $width,
-               bigintval($urlId),
-               strtolower($action),
-               strtoupper($action),
-               strtoupper($action)
-               );
+               $OUT .= LOAD_TEMPLATE('member_surfbar_list_form', true, array(
+                       'width'    => $width,
+                       'id'       => bigintval($urlId),
+                       'action'   => strtolower($action),
+                       'title'    => '{--MEMBER_SURFBAR_ACTION_' . strtoupper($action) . '_TITLE--}',
+                       'submit'   => '{--MEMBER_SURFBAR_ACTION_' . strtoupper($action) . '_SUBMIT--}',
+               ));
        } // END - foreach
 
        // Close table
        } // END - foreach
 
        // Close table
index e6ff250b9f926d56d355e71a639677d456e668d0..3aca5b4dc91800681aea3efd032442ef549aa403 100644 (file)
@@ -1,7 +1,7 @@
-<td align="center" width="%d%%">
+<td align="center" width="$content[width]%%">
        <form action="{!URL!}/modules.php?module=login&amp;what=surfbar_list" method="post" style="padding-bottom:0px">
        <form action="{!URL!}/modules.php?module=login&amp;what=surfbar_list" method="post" style="padding-bottom:0px">
-               <input type="hidden" name="id" value="%s" />
-               <input type="hidden" name="action" value="%s" />
-               <input type="submit" class="member_submit" name="ok" title="{--MEMBER_SURFBAR_ACTION_%s_TITLE--}" value="{--MEMBER_SURFBAR_ACTION_%s_SUBMIT--}" />
+               <input type="hidden" name="id" value="$content[id]" />
+               <input type="hidden" name="action" value="$content[action]" />
+               <input type="submit" class="member_submit" name="ok" title="$content[title]" value="$content[submit]" />
        </form>
 </td>
        </form>
 </td>