-// Do we have some URLs left?
-if (SQL_NUMROWS($result) > 0) {
- // List all URLs
- $OUT = ""; $SW = 2;
- while ($content = SQL_FETCHARRAY($result)) {
- // "Translate"/add content
- $content['sw'] = $SW;
- $content['userid'] = ADMIN_USER_PROFILE_LINK($content['userid']);
- $content['url'] = FRAMETESTER($content['url']);
- $content['reward'] = TRANSLATE_COMMA($content['reward']);
- $content['costs'] = TRANSLATE_COMMA($content['costs']);
- $content['views_total'] = TRANSLATE_COMMA($content['views_total']);
- $content['status'] = SURFBAR_TRANSLATE_STATUS($content['status']);
- $content['registered'] = MAKE_DATETIME($content['registered'], 2);
- $content['last_locked'] = MAKE_DATETIME($content['last_locked'], 2);
- if (empty($content['lock_reason'])) $content['lock_reason'] = "---";
+// Edit or delete button hit?
+if (isFormSent('edit')) {
+ // Show entries for editing
+ showEntriesByXmlCallback('admin_edit_show_surfbar_urls');