Referal levels for surfbar added (unfinished)
authorRoland Häder <roland@mxchange.org>
Mon, 1 Sep 2008 15:49:37 +0000 (15:49 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 1 Sep 2008 15:49:37 +0000 (15:49 +0000)
12 files changed:
.gitattributes
inc/extensions/ext-surfbar.php
inc/language/de.php
inc/language/sponsor_de.php
inc/language/surfbar_de.php
inc/modules/admin/admin-inc.php
inc/modules/admin/what-list_surfbar_reflvl.php [new file with mode: 0644]
inc/mysql-manager.php
templates/de/html/admin/admin_add_surfbar_reflvl.tpl [new file with mode: 0644]
templates/de/html/admin/admin_list_surfbar_reflvl.tpl [new file with mode: 0644]
templates/de/html/admin/admin_list_surfbar_reflvl_row.tpl [new file with mode: 0644]
templates/de/html/admin/admin_points.tpl

index 9380cae..dadb96d 100644 (file)
@@ -330,6 +330,7 @@ inc/modules/admin/what-list_refs.php -text
 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_reflvl.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
@@ -708,6 +709,7 @@ templates/de/html/admin/admin_add_reflvl.tpl -text
 templates/de/html/admin/admin_add_sponsor.tpl -text
 templates/de/html/admin/admin_add_sponsor_already.tpl -text
 templates/de/html/admin/admin_add_sponsor_paytype.tpl -text
+templates/de/html/admin/admin_add_surfbar_reflvl.tpl -text
 templates/de/html/admin/admin_admin_add.tpl -text
 templates/de/html/admin/admin_admins_add.tpl -text
 templates/de/html/admin/admin_admins_add_acl.tpl -text
@@ -908,6 +910,8 @@ templates/de/html/admin/admin_list_sponsor_pay_edit.tpl -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_reflvl.tpl -text
+templates/de/html/admin/admin_list_surfbar_reflvl_row.tpl -text
 templates/de/html/admin/admin_list_task_rows.tpl -text
 templates/de/html/admin/admin_list_transfer.tpl -text
 templates/de/html/admin/admin_list_transfer_row.tpl -text
index 3684a9e..fccd16b 100644 (file)
@@ -86,6 +86,9 @@ INDEX(`url_id`)
 PRIMARY KEY(`id`)
 ) TYPE=MyISAM COMMENT='Surfbar referal levels'";
 
+       // Add default referal level 0 with 100%
+       $SQLs[] = "INSERT INTO `"._MYSQL_PREFIX."_surfbar_reflevels` (`level`, `percent`) VALUES (0, 100)";
+
        // Config entries
        $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD `surfbar_pay_model` ENUM('STATIC','DYNAMIC') NOT NULL DEFAULT 'STATIC'";
        $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD `surfbar_static_reward` FLOAT(20,5) NOT NULL DEFAULT '0.25000'";
index 0fc0173..d2e5cc4 100644 (file)
@@ -1151,6 +1151,7 @@ define('ADMIN_PASSWORD_RESET_DONE', "Ihr Administratorkennwort wurde neu gesetzt
 define('ADMIN_CONTINUE_LOGIN', "Weiter zum Administratorlogin");
 define('ADMIN_RESET_PASS_LINK', "Jetzt Ihr Administratorkennwort zur&uuml;cksetzen (n&ouml;tiger Schritt!)");
 define('ADMIN_SUPPORT_FORUM_LINK', "Direktlink zum Support-Forum (neues Fenster)");
+define('ADMIN_REFERAL_LEVEL_ZERO_NOTICE', "Die Referal-Ebene 0 ist das Mitglied selber und sollte daher auf 100% stehen. Sie sollte auch nicht ge&auml;ndert oder gel&ouml;scht werden! Dann erhalten Ihre Mitglieder keine {!POINTS!} gutgeschrieben.");
 
 //
 ?>
index ae6ed7f..0b905a5 100644 (file)
@@ -40,7 +40,7 @@ if (basename($_SERVER['PHP_SELF']) == basename(__FILE__))
 // Language definitions
 define('SPONSOR_NOT_INITIALIZED', "Sponsorenbereich noch nicht eingerichtet!");
 define('ADMIN_CONFIG_SPONSOR_TITLE', "Allgemeine Einstellungen");
-define('ADMIN_SPONSOR_MIN_POINTS', "Minimum buchbare ".POINTS."");
+define('ADMIN_SPONSOR_MIN_POINTS', "Minimum buchbare {!POINTS!}");
 define('ADMIN_SPONSOR_REF_POINTS', "Einmalige Referral-Gutschrift bei Vermittlung eines neuen Sponsors");
 define('ADMIN_SPONSOR_ENTER_COMPANY_DATA', "Daten zur anzumeldenen Unternehmen eingeben");
 define('SPONSOR_ENTER_COMPANY_TITLE', "Firmenname");
@@ -58,10 +58,10 @@ define('SPONSOR_ENTER_EMAIL', "EMail-Adresse");
 define('SPONSOR_ENTER_URL', "Homepage-URL");
 define('ADMIN_SPONSOR_ENTER_PASSWORDS', "Passw&ouml;rter eingeben");
 define('SPONSOR_ENTER_PASSWORDS', "Passwort mit -best&auml;tigung");
-define('ADMIN_SPONSOR_WARNINGS_POINTS', "Warnungen und ".POINTS."");
+define('ADMIN_SPONSOR_WARNINGS_POINTS', "Warnungen und {!POINTS!}");
 define('SPONSOR_RECEIVE_WARNINGS', "Sponsor erh&auml;lt bei jeder Aktion Mails zugesandt");
 define('SPONSOR_WARNING_INTERVAL', "Sendeinterval des Sponsorenberichtes");
-define('SPONSOR_ENTER_POINTS', "Guthaben an ".POINTS." zum Starten");
+define('SPONSOR_ENTER_POINTS', "Guthaben an {!POINTS!} zum Starten");
 define('ADD_SPONSOR', "Sponsor hinzuf&uuml;gen");
 define('ADMIN_SPONSOR_COMPANY_NOTE', "Wenn Sie eine Privatperson anmelden wollen, lassen Sie bitte die folgenden drei Felder einfach leer!");
 define('SPONSOR_DATA_NOT_SAVED', "Sponsorendaten wurden <U>nicht</U> gespeichert.");
@@ -82,7 +82,7 @@ define('ADMIN_SPONSOR_NONE_REGISTERED', "Kein Sponsor hat sich bei Ihnen angemel
 define('ACCOUNT_PENDING', "Wartend");
 define('ADMIN_LIST_SPONSOR_ACCOUNTS', "Alle Sponsoren auflisten");
 define('SPONSOR_POINTS_LEFT', "Restguthaben");
-define('ADMIN_LIST_SPONSOR_NOTES', "Klicken Sie auf die ID-Nummer, um weitere Details zu sehen und um weitere Aktionen am Sponsorenaccount durchf&uuml;hren zu k&ouml;nnen! Klicken Sie auf das Restguthaben an ".POINTS.", um dem jeweiligen Sponsor mehr ".POINTS." aufzubuchen.");
+define('ADMIN_LIST_SPONSOR_NOTES', "Klicken Sie auf die ID-Nummer, um weitere Details zu sehen und um weitere Aktionen am Sponsorenaccount durchf&uuml;hren zu k&ouml;nnen! Klicken Sie auf das Restguthaben an {!POINTS!}, um dem jeweiligen Sponsor mehr {!POINTS!} aufzubuchen.");
 define('ADMIN_SPONSOR_404_1', "Sponsorenaccount <U>");
 define('ADMIN_SPONSOR_404_2', "</U> nicht gefunden!");
 define('ADMIN_SPONSOR_REFS_404_1', "Der Sponsor <U>");
@@ -105,15 +105,15 @@ define('ADMIN_INVALID_MODE_1', "Ung&uuml;tiger Modus <U>");
 define('ADMIN_INVALID_MODE_2', "</U> angegeben!");
 define('ADMIN_TPL_404_1', "Modus-Template <U>");
 define('ADMIN_TPL_404_2', "</U> nicht gefunden!");
-define('ADMIN_ADD_POINTS_TO_SPONSOR', "".POINTS." gutschreiben");
-define('ADMIN_SUB_POINTS_FROM_SPONSOR', "".POINTS." abziehen");
-define('ADMIN_SUM_SPONSOR_POINTS', "Summe ".POINTS."");
+define('ADMIN_ADD_POINTS_TO_SPONSOR', "{!POINTS!} gutschreiben");
+define('ADMIN_SUB_POINTS_FROM_SPONSOR', "{!POINTS!} abziehen");
+define('ADMIN_SUM_SPONSOR_POINTS', "Summe {!POINTS!}");
 define('ADMIN_SPONSOR_ADD_POINTS', "Jetzt gutschreiben");
 define('ADMIN_SPONSOR_SUB_POINTS', "Jetzt abziehen");
-define('ADMIN_SPONSPOR_NO_POINTS_TO_ADD', "Keine ".POINTS." zum Gutschreiben eingegeben!");
-define('ADMIN_SPONSPOR_NO_POINTS_TO_SUBTRACT', "Keine ".POINTS." zum Abziehen eingegeben!");
-define('ADMIN_SPONSOR_POINTS_ADDED', "".POINTS." wurden gutgeschrieben.");
-define('ADMIN_SPONSOR_POINTS_SUBTRACTED', "".POINTS." wurden abgezogen.");
+define('ADMIN_SPONSPOR_NO_POINTS_TO_ADD', "Keine {!POINTS!} zum Gutschreiben eingegeben!");
+define('ADMIN_SPONSPOR_NO_POINTS_TO_SUBTRACT', "Keine {!POINTS!} zum Abziehen eingegeben!");
+define('ADMIN_SPONSOR_POINTS_ADDED', "{!POINTS!} wurden gutgeschrieben.");
+define('ADMIN_SPONSOR_POINTS_SUBTRACTED', "{!POINTS!} wurden abgezogen.");
 define('ADMIN_SPONSPOR_CANNOT_LOCK_PENDING_UNCINFIRMED_ACCOUNTS', "Sie k&ouml;nnen keine auf Freischaltung wartende oder unbest&auml;tigte Accounts sperren/freigeben!");
 define('ADMIN_HEADER_DEL_SPONSOR_1', "Sponsorenaccount <U>");
 define('ADMIN_HEADER_DEL_SPONSOR_2', "</U> l&ouml;schen");
@@ -123,7 +123,7 @@ define('SPONSOR_DELETED_1', "Sponsorenaccount <U>");
 define('SPONSOR_DELETED_2', "</U> entfernt.");
 define('GUEST_SPONSOR_TITLE', "Anmeldung als Sponsor");
 define('GUEST_SPONSOR_TEASER_1', "Melden Sie sich als Sponsor von <STRONG>".MAIN_TITLE."</STRONG> an! Hier bekommen Sie f&uuml;r Ihr Geld die Zielgruppe, die Sie auch auf Ihren Produktseiten haben wollen!");
-define('GUEST_SPONSOR_TEASER_2', "Alles inklusiv: Ausf&uuml;hrliche Statistiken (auch per Mail im gew&uuml;nschten Zeitabstand) und einfache Verwaltung Ihrer ".POINTS." mit nur wenigen Klicks!");
+define('GUEST_SPONSOR_TEASER_2', "Alles inklusiv: Ausf&uuml;hrliche Statistiken (auch per Mail im gew&uuml;nschten Zeitabstand) und einfache Verwaltung Ihrer {!POINTS!} mit nur wenigen Klicks!");
 define('GUEST_SPONSOR_TEASER_3', "Werden Sie Sponsor und melden Sie sich noch heute an!");
 define('SPONSOR_ENTER_COMPANY_DATA', "Daten zum Unternehmen");
 define('SPONSOR_COMPANY_NOTE', "Sie k&ouml;nnen sich auch als private Person anmelden, lassen Sie dazu die drei folgenden Felder einfach leer!");
@@ -132,7 +132,7 @@ define('SPONSOR_ENTER_CONTACT_DATA', "Kontaktm&ouml;glichkeiten (mindestens EMai
 define('SPONSOR_WARNINGS', "Mailbenachrichtigungen");
 define('SPONSOR_SELECT_PAYMENT', "Buchungspaket ausw&auml;hlen");
 define('REGISTER_SPONSOR', "Jetzt verbindlich anmelden!");
-define('SPONSOR_PAYMENTS', "Bezahlung der ".POINTS."");
+define('SPONSOR_PAYMENTS', "Bezahlung der {!POINTS!}");
 define('SPONSOR_NO_ACTIONS_ACTIVATED', "Derzeit sind keine Aktionen im Sponsorenbereich m&ouml;glich!");
 define('SPONSOR_PAYTYPE', "Buchungspaket(e)");
 define('SPONSOR_PAYTYPE_VALUE', "Bestellwert");
@@ -148,12 +148,12 @@ define('ADMIN_ADD_SPONSOR_PAYTYPE', "Buchungspaket hinzuf&uuml;gen");
 define('SPONSOR_PAYTYPE_NAME', "Bezeichnung");
 define('SPONSOR_PAYTYPE_NAME_HINT', "(max. 255 Zeichen)");
 define('SPONSOR_PAYTYPE_RATE', "Umrechnungsrate");
-define('SPONSOR_PAYTYPE_RATE_HINT', "(z.B. 1 &euro; = x ".POINTS.")");
+define('SPONSOR_PAYTYPE_RATE_HINT', "(z.B. 1 &euro; = x {!POINTS!})");
 define('SPONSOR_PAYTYPE_MIN_COUNT', "Bestellmenge");
 define('SPONSOR_PAYTYPE_CURRENCY', "W&auml;hrung");
 define('SPONSOR_ADD_PAYTYPES_NOTES', "Hinweise zu den Buchungspaketen");
 define('SPONSOR_PAYTYPE_NAME_NOTE', "Geben Sie eine passende Bezeichnung zum Buchungspaket ein (z.B. <B>Spar-Paket</B>)");
-define('SPONSOR_PAYTYPE_RATE_NOTE', "Wie viele ".POINTS." soll der Sponsor f&uuml;r z.B. 1 &euro; bekommen?");
+define('SPONSOR_PAYTYPE_RATE_NOTE', "Wie viele {!POINTS!} soll der Sponsor f&uuml;r z.B. 1 &euro; bekommen?");
 define('SPONSOR_PAYTYPE_MIN_COUNT_NOTE', "Und wie oft soll dieses Buchungspaket <B>mindestens</B> eingekauft werden? (meistens einmal)");
 define('SPONSOR_PAYTYPE_CURRENCY_NOTE', "W&auml;hrung des Geldbetrages, die der Sponsor an Sie &uuml;berweisen soll.");
 define('SPONSOR_ADMIN_PAYTYPE_ALREADY_1', "Buchungspaket <U>");
@@ -196,8 +196,8 @@ define('GUEST_SPONSOR_ACTIONS_HEADER', "Und das bekommen Sie von uns:");
 // Link descriptions
 define('ADMIN_SPONSOR_DETAILS_LINK_TITLE', "Details des Sponsorenaccounts anzeigen");
 define('ADMIN_SPONSOR_EDIT_LINK_TITLE', "Sponsorenaccount &auml;ndern");
-define('ADMIN_SPONSOR_ADD_POINTS_LINK_TITLE', "".POINTS." gutschreiben");
-define('ADMIN_SPONSOR_SUB_POINTS_LINK_TITLE', "".POINTS." abziehen");
+define('ADMIN_SPONSOR_ADD_POINTS_LINK_TITLE', "{!POINTS!} gutschreiben");
+define('ADMIN_SPONSOR_SUB_POINTS_LINK_TITLE', "{!POINTS!} abziehen");
 
 // Performable actions on a sponsor's account
 define('ADMIN_SPONSOR_EDIT', "Sponsor &auml;ndern");
index 2d51ae3..40afc10 100644 (file)
@@ -39,12 +39,14 @@ if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) {
 
 // Language definitions
 define('ADMIN_CONFIG_SURFBAR_TITLE', "Konfiguration der Surfbar");
-define('ADMIN_CONFIG_SURFBAR_STATIC_REWARD', "Statische Verg&uuml;tung in ".POINTS.":");
+define('ADMIN_CONFIG_SURFBAR_STATIC_REWARD', "Statische Verg&uuml;tung in {!POINTS!}:");
 define('ADMIN_CONFIG_SURFBAR_STATIC_TIME', "Statische Verweildauer bis n&auml;chste Seite geladen wird in Sekunden:");
 define('ADMIN_CONFIG_SURFBAR_STATIC_LOCK', "Statische Reload-Sperre (oberes Frame oder ges. Surfbar):");
 define('ADMIN_CONFIG_SURFBAR_PAYMENT_MODEL', "Verg&uuml;tungsmodel ausw&auml;hlen:");
 define('ADMIN_CONFIG_SURFBAR_PAYMENT_MODEL_STATIC', "Statische Werte verwenden.");
 define('ADMIN_CONFIG_SURFBAR_PAYMENT_MODEL_DYNAMIC', "Dynamische Werte errechnen.");
+define('ADMIN_SURFBAR_NO_REF_LEVELS_FOUND', "Zur Zeit sind keine Referal-Ebenen f&uuml;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&uuml;gen");
 
 //
 ?>
index 6c7c241..0a5b93e 100644 (file)
@@ -380,7 +380,7 @@ function ADD_ADMIN_MENU($act, $wht,$return=false)
                                }
                                 else
                                {
-                                       $OUT .= "[&nbsp;<A href=\"".URL."/modules.php?module=admin&amp;action=".$menu."\">";
+                                       $OUT .= "[<A href=\"".URL."/modules.php?module=admin&amp;action=".$menu."\">";
                                }
                                $OUT .= $title;
                                        if (($menu == $act) && (empty($wht)))
@@ -389,7 +389,7 @@ function ADD_ADMIN_MENU($act, $wht,$return=false)
                                }
                                 else
                                {
-                                       $OUT .= "</A>&nbsp;]";
+                                       $OUT .= "</A>]";
                                }
                                $OUT .= "</NOBR></TD>
 </TR>\n";
@@ -433,7 +433,7 @@ function ADD_ADMIN_MENU($act, $wht,$return=false)
                                                                }
                                                                 else
                                                                {
-                                                                       $OUT .= "[&nbsp;<A href=\"".URL."/modules.php?module=admin&amp;what=".$wht_sub."\">";
+                                                                       $OUT .= "[<A href=\"".URL."/modules.php?module=admin&amp;what=".$wht_sub."\">";
                                                                }
                                                        }
                                                         else
@@ -449,7 +449,7 @@ function ADD_ADMIN_MENU($act, $wht,$return=false)
                                                                }
                                                                 else
                                                                {
-                                                                       $OUT .= "</A>&nbsp;]";
+                                                                       $OUT .= "</A>]";
                                                                }
                                                        }
                                                         else
diff --git a/inc/modules/admin/what-list_surfbar_reflvl.php b/inc/modules/admin/what-list_surfbar_reflvl.php
new file mode 100644 (file)
index 0000000..0ec2e77
--- /dev/null
@@ -0,0 +1,89 @@
+<?php
+/************************************************************************
+ * MXChange v0.2.1                                    Start: 09/01/2008 *
+ * ================                             Last change: 09/01/2008 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : what-list_surfbar_reflvl.php                     *
+ * -------------------------------------------------------------------- *
+ * Short description : List referal levels for surfbar                  *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Referalebenen der Surfbar auflisten              *
+ * -------------------------------------------------------------------- *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003, 2004, 2005, 2006, 2007 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 ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin())) {
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+       require($INC);
+} // END - if
+
+// Add description as navigation point
+ADD_DESCR("admin", basename(__FILE__));
+
+// Add a level?
+if ((isset($_POST['add'])) && (!empty($_POST['lvl'])) && (!empty($_POST['perc']))) {
+       // Rewrite percentage and level
+       $percent = (float) str_replace(",", ".", $_POST['perc']);
+       $level   = bigintval($_POST['lvl']);
+
+       // Add the referal level
+       ADMIN_SPONSOR_ADD_REFERAL_LEVEL($levl, $percent);
+} // END - if
+
+// Load all referal levels
+$result = SQL_QUERY("SELECT id, level, percent FROM "._MYSQL_PREFIX."_surfbar_reflevels ORDER BY level ASC", __FILE__, __LINE__);
+
+// Some levels found?
+if (SQL_NUMROWS($result) > 0) {
+       // List all levels
+       $OUT = ""; $SW = 2;
+       while ($content = SQL_FETCHARRAY($result)) {
+               // Prepare content
+               $content['percent'] = TRANSLATE_COMMA($content['percent']);
+               $content['sw'] = $SW;
+
+               // Load row template
+               $OUT .= LOAD_TEMPLATE("admin_list_surfbar_reflvl_row", true, $content);
+
+               // Switch color
+               $SW = 3 - $SW;
+       } // END - while
+
+       // Load main template
+       LOAD_TEMPLATE("admin_list_surfbar_reflvl", false, $OUT);
+} else {
+       // No level setup so far
+       LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_SURFBAR_NO_REF_LEVELS_FOUND);
+}
+
+// Free result
+SQL_FREERESULT($result);
+
+// Add space
+OUTPUT_HTML("<br />");
+
+// Output form for adding new level
+LOAD_TEMPLATE("admin_add_surfbar_reflvl");
+
+//
+?>
index 50ca9f7..88c5f62 100644 (file)
@@ -1039,7 +1039,7 @@ function GET_TOTAL_DATA($search, $tableName, $lookFor, $whereStatement="userid",
  * uid         = Referral ID wich should receive...
  * points      = ... xxx points
  * send_notify = shall I send the referral an email or not?
- * refid       = inc/modules/guest/what-confirm.php need this
+ * rid         = inc/modules/guest/what-confirm.php need this
  * locked      = Shall I pay it to normal (false) or locked (true) points ammount?
  * add_mode    = Add points only to $uid or also refs? (WARNING! Changing "ref" to "direct"
  *               will cause no referral will get points ever!!!)
diff --git a/templates/de/html/admin/admin_add_surfbar_reflvl.tpl b/templates/de/html/admin/admin_add_surfbar_reflvl.tpl
new file mode 100644 (file)
index 0000000..6d13d3e
--- /dev/null
@@ -0,0 +1,42 @@
+<FORM action="{!URL!}/modules.php?module=admin&amp;what=list_surfbar_reflvl" method="POST" style="margin-bottom: 0px">
+<TABLE border="0" cellspacing="0" cellpadding="0" align="center" class="admin_table dashed">
+       <TR>
+               <TD class="admin_title bottom2" width="10" height="30">&nbsp;</TD>
+               <TD class="admin_title bottom2" colspan="3" align="center">
+                       <STRONG>{--ADMIN_SURFBAR_ADD_NEW_REFDEPTH--}</STRONG>
+               </TD>
+               <TD class="admin_title bottom2" width="10">&nbsp;</TD>
+       </TR>
+       <TR>
+               <TD class="seperator" colspan="5" height="7">&nbsp;</TD>
+       </TR>
+       <TR>
+               <TD class="seperator" width="10">&nbsp;</TD>
+               <TD align="right" width="200">{--ENTER_REF_LVL--}:</TD>
+               <TD class="seperator" width="10">&nbsp;</TD>
+               <TD><INPUT type="text" name="lvl" class="admin_normal" size="3" maxlength="3" /></TD>
+               <TD class="seperator" width="10">&nbsp;</TD>
+       </TR>
+       <TR>
+               <TD class="seperator" colspan="5" height="7">&nbsp;</TD>
+       </TR>
+       <TR>
+               <TD class="seperator" width="10">&nbsp;</TD>
+               <TD align="right" width="200">{--ENTER_REF_PERCENTS--}:</TD>
+               <TD class="seperator" width="10">&nbsp;</TD>
+               <TD><INPUT type="text" name="perc" class="admin_normal" size="3" maxlength="3" />%</TD>
+               <TD class="seperator" width="10">&nbsp;</TD>
+       </TR>
+       <TR>
+               <TD class="seperator bottom2" colspan="5" height="7">&nbsp;</TD>
+       </TR>
+       <TR>
+               <TD class="admin_footer seperator" width="10">&nbsp;</TD>
+               <TD class="admin_footer" colspan="3" align="center">
+                       <INPUT type="reset" class="admin_reset" value="{--CLEAR_FORM--}" />&nbsp;*
+                       <INPUT type="submit" name="add" class="admin_submit" value="{--ADD_DEPTH--}">
+               </TD>
+               <TD class="admin_footer seperator" width="10">&nbsp;</TD>
+       </TR>
+</TABLE>
+</FORM>
\ No newline at end of file
diff --git a/templates/de/html/admin/admin_list_surfbar_reflvl.tpl b/templates/de/html/admin/admin_list_surfbar_reflvl.tpl
new file mode 100644 (file)
index 0000000..ba2fb76
--- /dev/null
@@ -0,0 +1,25 @@
+<FORM action="{!URL!}/modules.php?module=admin&amp;what=list_surfbar_reflvl" method="POST">
+<TABLE border="0" cellspacing="0" cellpadding="0" class="admin_table dashed" width="600">
+       <TR>
+               <TD align="center" colspan="3" class="admin_title" height="30"><STRONG>{--EDIT_DEL_REFDEPTH--}</STRONG>
+               </TD>
+       </TR>
+       <TR>
+               <TD class="admin_title bottom2 right2" width="30" align="center"><STRONG>{--ID_SELECT--}</STRONG></TD>
+               <TD class="admin_title bottom2 right2" width="275" align="center"><STRONG>{--REF_LEVEL--}:</STRONG></TD>
+               <TD class="admin_title bottom2" width="275" align="center"><STRONG>{--REF_PERCENT--}:</STRONG></TD>
+       </TR>
+       $content
+       <TR>
+               <TD class="admin_footer" align="center" colspan="3">
+                       <INPUT type="reset" class="admin_reset" value="{--UNDO_SELECTIONS--}">&nbsp;*
+                       <INPUT type="submit" name="edit" class="admin_submit" value="{--EDIT_LVL--}">&nbsp;*
+                       <INPUT type="submit" name="del" class="admin_delete" value="{--DEL_LVL--}">
+               </TD>
+       </TR>
+</TABLE>
+</FORM>
+
+<DIV class="admin_note">
+       {--ADMIN_REFERAL_LEVEL_ZERO_NOTICE--}
+</DIV>
diff --git a/templates/de/html/admin/admin_list_surfbar_reflvl_row.tpl b/templates/de/html/admin/admin_list_surfbar_reflvl_row.tpl
new file mode 100644 (file)
index 0000000..7a5b96d
--- /dev/null
@@ -0,0 +1,11 @@
+<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[level]
+       </TD>
+       <TD align="center" class="bottom2 switch_sw$content[sw]">
+               $content[percent]%
+       </TD>
+</TR>
index 5532554..2b9db38 100644 (file)
@@ -1,10 +1,8 @@
-<FORM
-       action="{!URL!}/modules.php?module=admin&amp;what=config_points&sub=ref"
-       method="POST">
-<TABLE border="0" cellspacing="0" cellpadding="0"
-       class="admin_table dashed" width="600">
+<FORM action="{!URL!}/modules.php?module=admin&amp;what=config_points&sub=ref" method="POST">
+<TABLE border="0" cellspacing="0" cellpadding="0" class="admin_table dashed" width="600">
        <TR>
-               <TD align="center" colspan="3" class="admin_title" height="30"><STRONG>{--EDIT_DEL_REFDEPTH--}</STRONG>
+               <TD align="center" colspan="3" class="admin_title" height="30">
+                       <STRONG>{--EDIT_DEL_REFDEPTH--}</STRONG>
                </TD>
        </TR>
        <TR>
        </TR>
        {--__LEVEL_ROWS--}
        <TR>
-               <TD class="admin_footer" align="center" colspan="3"><INPUT
-                       type="reset" class="admin_reset" value="{--UNDO_SELECTIONS--}">&nbsp;*
-               <INPUT type="submit" name="edit" class="admin_submit"
-                       value="{--EDIT_LVL--}">&nbsp;* <INPUT type="submit"
-                       name="del" class="admin_delete" value="{--DEL_LVL--}"></TD>
+               <TD class="admin_footer" align="center" colspan="3">
+                       <INPUT type="reset" class="admin_reset" value="{--UNDO_SELECTIONS--}">&nbsp;*
+                       <INPUT type="submit" name="edit" class="admin_submit" value="{--EDIT_LVL--}">&nbsp;*
+                       <INPUT type="submit" name="del" class="admin_delete" value="{--DEL_LVL--}">
+               </TD>
        </TR>
 </TABLE>
 </FORM>
+
+<DIV class="admin_note">
+       {--ADMIN_REFERAL_LEVEL_ZERO_NOTICE--}
+</DIV>