inc/modules/admin/what-list_sponsor.php -text
inc/modules/admin/what-list_sponsor_pay.php -text
inc/modules/admin/what-list_sponsor_pays.php -text
+inc/modules/admin/what-list_surfbar_actions.php -text
inc/modules/admin/what-list_surfbar_urls.php -text
inc/modules/admin/what-list_task.php -text
inc/modules/admin/what-list_transfer.php -text
templates/de/html/admin/admin_list_sponsor_pay_edit_row.tpl -text
templates/de/html/admin/admin_list_sponsor_pay_row.tpl -text
templates/de/html/admin/admin_list_sponsor_row.tpl -text
+templates/de/html/admin/admin_list_surfbar_actions.tpl -text
+templates/de/html/admin/admin_list_surfbar_actions_row.tpl -text
templates/de/html/admin/admin_list_surfbar_urls.tpl -text
templates/de/html/admin/admin_list_surfbar_urls_row.tpl -text
templates/de/html/admin/admin_list_task_rows.tpl -text
define('SERVER_URL', "http://www.mxchange.org");
// This current patch level
-define('CURR_SVN_REVISION', "511");
+define('CURR_SVN_REVISION', "512");
// Take a prime number which is long (if you know a longer one please try it out!)
define('_PRIME', 591623);
$SQLs[] = "INSERT INTO `"._MYSQL_PREFIX."_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('surfbar','unlock_surfbar_urls','Wartende URLs freigeben','Geben Sie hier nur direkt in der Surfbar gebuchte URLs frei.',3)";
$SQLs[] = "INSERT INTO `"._MYSQL_PREFIX."_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('surfbar','config_surfbar','Einstellungen','Einstellungen an der Surfbar ändern, wie Festvergütung, prozentuale Ref-Vergütung und vieles mehr.',4)";
$SQLs[] = "INSERT INTO `"._MYSQL_PREFIX."_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('surfbar','surfbar_stats','Statistiken','Detailierte Statistiken zu einer ausgewählten URL anzeigen.',5)";
- $SQLs[] = "INSERT INTO `"._MYSQL_PREFIX."_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('surfbar','surfbar_actions','Mitgliederaktionen','Listet alle Mitgliederaktionen auf.',6)";
+ $SQLs[] = "INSERT INTO `"._MYSQL_PREFIX."_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('surfbar','list_surfbar_actions','Mitgliederaktionen','Listet alle Mitgliederaktionen auf.',6)";
// Load CSS?
$EXT_CSS = "Y";
define('ADMIN_CONFIG_SURFBAR_NOTIFICATION_MODE_INSTANT', "Sofort aussenden");
define('ADMIN_CONFIG_SURFBAR_NOTIFICATION_MODE_RESET', "Beim täglichen Reset");
+// Admin non-config titles
+define('ADMIN_SURFBAR_STATS_TITLE', "Mitglieder-Statistik der Surfbar");
+define('ADMIN_SURFBAR_URL_STATS_TITLE', "URL-bezogene Statistik der Surfbar");
+define('ADMIN_LIST_SURFBAR_ACTIONS_TITLE', "Mitglieder-Aktionen der Surfbar auflisten");
+
// General admin text
define('ADMIN_SURFBAR_NO_REF_LEVELS_FOUND', "Zur Zeit sind keine Referal-Ebenen für die Surfbar eingestellt.<br />\nBitte installieren Sie die Erweiterung <strong>surfbar</strong> neu.");
define('ADMIN_SURFBAR_ADD_NEW_REFDEPTH', "Neue Referal-Ebene zur Surfbar hinzufügen");
define('ADMIN_SURFBAR_URL_ADDED', "URL wurde der Surfbar hinzugefügt.");
define('ADMIN_SURFBAR_URL_NOT_ADDED', "URL wurde wegen Fehler nicht hinzugefügt. Ist die URL bereits vorhanden?");
define('ADMIN_SURFBAR_ADD_URL', "URL hinzufügen");
-define('ADMIN_BUILD_STATUS_HANDLER', "Status-Handler");
define('ADMIN_SURFBAR_NO_STATS', "Keine Surfbar-Statistiken vorhanden!");
-define('ADMIN_SURFBAR_STATS_TITLE', "Mitglieder-Statistik der Surfbar");
define('ADMIN_SURFBAR_VISITED_URLS', "Aufgerufene URLs");
define('ADMIN_SURFBAR_TOTAL_VISITS', "Gesamtbesuche");
define('ADMIN_SURFBAR_TOTALS', "Zusammenfassung");
define('ADMIN_SURFBAR_LAST_ONLINE', "Letzter Aufruf der URL");
-define('ADMIN_SURFBAR_URL_STATS_TITLE', "URL-bezogene Statistik der Surfbar");
define('ADMIN_SURFBAR_NO_URL_STATS', "Keine URL-bezogene Statistik gefunden");
+define('ADMIN_SURFBAR_NO_ACTIONS', "Keine Mitgliederaktionen gefunden. Bitte installieren Sie die Surfbar neu.");
+define('ADMIN_SURFBAR_MEMBER_ACTION', "Mitgliedaktion");
+define('ADMIN_SURFBAR_CURRENT_STATUS', "Aktueller Status");
+define('ADMIN_SURFBAR_NEW_STATUS', "Neuer Status");
+define('ADMIN_SURFBAR_EDIT_ACTIONS', "Mitgliedsaktionen editieren");
+define('ADMIN_LIST_SURFBAR_ACTIONS_NOTE', "<strong>Hinweise:</strong> Sie sollten zur Sicherheit Ihres {!MT_WORD2!} den neuen Status nie auf <u>{--SURFBAR_URL_STATUS_ACTIVE--}</u> z.B. bei der Mitgliedaktion <u>{--MEMBER_SURFBAR_ACTION_UNPAUSE_SUBMIT--}</u> einstellen.");
// Admin titles
define('ADMIN_SURFBAR_LIST_URLS_TITLE', "Surfbar - URLs aufisten");
define('SURFBAR_URL_STATUS_REJECTED', "Abgelehnt");
define('SURFBAR_URL_STATUS_DELETED', "Gelöscht");
define('SURFBAR_URL_STATUS_MIGRATED', "Migriert");
+define('SURFBAR_URL_STATUS_NONE', "Nicht geändert");
// Member actions - submit buttons
define('MEMBER_SURFBAR_ACTION_RETREAT_SUBMIT', "Zurücknehmen");
--- /dev/null
+<?php
+/************************************************************************
+ * MXChange v0.2.1 Start: 10/12/2008 *
+ * ================ Last change: 10/12/2008 *
+ * *
+ * -------------------------------------------------------------------- *
+ * File : what-list_surfbar_actions.php *
+ * -------------------------------------------------------------------- *
+ * Short description : List surfbar member actions *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung : Auflistung von Mitgliederaktionen der Surfbar *
+ * -------------------------------------------------------------------- *
+ * *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2008 by Roland Haeder *
+ * For more information visit: http://www.mxchange.org *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the Free Software *
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
+ * MA 02110-1301 USA *
+ ************************************************************************/
+
+// Some security stuff...
+if ((!defined('__SECURITY')) || (!is_admin())) {
+ $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+ require($INC);
+}
+
+// Add description as navigation point
+ADD_DESCR("admin", __FILE__);
+
+// Load all actions
+$result = SQL_QUERY("SELECT id, status, action, new_status FROM "._MYSQL_PREFIX."_surfbar_actions ORDER BY id ASC", __FILE__, __LINE__);
+
+// Entries found?
+if (SQL_NUMROWS($result) > 0) {
+ // List all entries
+ $OUT = ""; $SW = 2;
+ while ($content = SQL_FETCHARRAY($result)) {
+ // "Translate" some data
+ $content['status'] = constant(sprintf("SURFBAR_URL_STATUS_%s", $content['status']));
+ $content['action'] = constant(sprintf("MEMBER_SURFBAR_ACTION_%s_SUBMIT", $content['action']));
+
+ // New status set?
+ if (!is_null($content['new_status'])) {
+ // Translate it
+ $content['new_status'] = constant(sprintf("SURFBAR_URL_STATUS_%s", $content['new_status']));
+ } else {
+ // "Do nothing" status
+ $content['new_status'] = SURFBAR_URL_STATUS_NONE;
+ }
+
+ // Add color
+ $content['sw'] = $SW;
+
+ // Load row template
+ $OUT .= LOAD_TEMPLATE("admin_list_surfbar_actions_row", true, $content);
+
+ // Switch color
+ $SW = 3 - $SW;
+ } // END - while
+
+ // Load main template
+ LOAD_TEMPLATE("admin_list_surfbar_actions", false, $OUT);
+} else {
+ // No entries found, very bad!
+ LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_SURFBAR_NO_ACTIONS);
+}
+
+// Free result
+SQL_FREERESULT($result);
+
+//
+?>
$content['userid'] = ADMIN_USER_PROFILE_LINK($content['userid']);
$content['total_visits'] = TRANSLATE_COMMA($content['total_visits']);
$content['last_online'] = MAKE_DATETIME($content['last_online'], "2");
+ $content['sw'] = $SW;
// Load row template
$OUT .= LOAD_TEMPLATE("admin_surfbar_url_stats_row", true, $content);
- $cnt++;
+ $cnt++; $SW = 3 - $SW;
} // END - while
// Prepare content
$content['userid'] = ADMIN_USER_PROFILE_LINK($content['userid']);
$content['visited_urls'] = TRANSLATE_COMMA($content['visited_urls']);
$content['total_visits'] = TRANSLATE_COMMA($content['total_visits']);
+ $content['sw'] = $SW;
// Load row template
$OUT .= LOAD_TEMPLATE("admin_surfbar_stats_row", true, $content);
+ $SW = 3 - $SW;
} // END - while
// Prepare content
--- /dev/null
+<form action="{!URL!}/modules.php?module=admin&what=list_surfbar_actions" method="post">
+<table border="0" cellspacing="0" cellpadding="0" class="admin_table dashed" width="600">
+<tr>
+ <td colspan="4" class="admin_header bottom2" height="30" align="center">
+ <strong>{--ADMIN_LIST_SURFBAR_ACTIONS_TITLE--}</strong>
+ </td>
+</tr>
+<tr>
+ <td align="center" class="admin_header bottom2 right2 switch_sw$content[sw]">
+ <strong>{--ID_SELECT--}</strong>
+ </td>
+ <td align="center" class="admin_header bottom2 right2 switch_sw$content[sw]">
+ <strong>{--ADMIN_SURFBAR_MEMBER_ACTION--}</strong>
+ </td>
+ <td align="center" class="admin_header bottom2 right2 switch_sw$content[sw]">
+ <strong>{--ADMIN_SURFBAR_CURRENT_STATUS--}</strong>
+ </td>
+ <td align="center" class="admin_header bottom2 switch_sw$content[sw]">
+ <strong>{--ADMIN_SURFBAR_NEW_STATUS--}</strong>
+ </td>
+</tr>
+$content
+<tr>
+ <td colspan="4" class="admin_footer" height="30" align="center">
+ <input type="reset" class="admin_reset" value="{--ADMIN_UNSELECT_ALL--}" />
+ <input type="submit" name="edit" class="admin_submit" value="{--ADMIN_SURFBAR_EDIT_ACTIONS--}" />
+ </td>
+</tr>
+</table>
+</form>
+
+<div class="admin_note">
+ {--ADMIN_LIST_SURFBAR_ACTIONS_NOTE--}
+</div>
--- /dev/null
+<tr>
+ <td align="center" class="bottom2 right2 switch_sw$content[sw]">
+ <input type="checkbox" name="id[$content[id]]" value="1" class="admin_normal" />
+ </td>
+ <td align="center" class="bottom2 right2 switch_sw$content[sw]">
+ $content[action]
+ </td>
+ <td align="center" class="bottom2 right2 switch_sw$content[sw]">
+ $content[status]
+ </td>
+ <td align="center" class="bottom2 switch_sw$content[sw]">
+ $content[new_status]
+ </td>
+</tr>
<tr>
- <td align="center" class="bottom2 right2">[<strong>$content[userid]</strong>]</td>
- <td align="center" class="bottom2 right2">$content[visited_urls]</td>
- <td align="center" class="bottom2">$content[total_visits]</td>
+ <td align="center" class="switch_$content[sw] bottom2 right2">[<strong>$content[userid]</strong>]</td>
+ <td align="center" class="switch_$content[sw] bottom2 right2">$content[visited_urls]</td>
+ <td align="center" class="switch_$content[sw] bottom2">$content[total_visits]</td>
</tr>
<tr>
- <td align="center" class="bottom2 right2">[<strong>$content[userid]</strong>]</td>
- <td align="center" class="bottom2 right2">$content[total_visits]</td>
- <td align="center" class="bottom2">$content[last_online]</td>
+ <td align="center" class="switch_$content[sw] bottom2 right2">[<strong>$content[userid]</strong>]</td>
+ <td align="center" class="switch_$content[sw] bottom2 right2">$content[total_visits]</td>
+ <td align="center" class="switch_$content[sw] bottom2">$content[last_online]</td>
</tr>