// "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
-<td align="center" width="%d%%">
+<td align="center" width="$content[width]%%">
<form action="{!URL!}/modules.php?module=login&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>