Editing of bank packages added (updating records not finished!)
authorRoland Häder <roland@mxchange.org>
Fri, 29 Aug 2008 22:50:49 +0000 (22:50 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 29 Aug 2008 22:50:49 +0000 (22:50 +0000)
14 files changed:
.gitattributes
inc/db/lib-mysql3.php
inc/extensions/ext-bank.php
inc/functions.php
inc/language/bank_de.php
inc/language/de.php
inc/modules/admin/admin-inc.php
inc/modules/admin/what-list_bank_package.php
inc/modules/admin/what-updates.php
inc/mysql-manager.php
templates/de/html/admin/admin_del_bank_packages.tpl
templates/de/html/admin/admin_del_bank_packages_row.tpl
templates/de/html/admin/admin_edit_bank_packages.tpl [new file with mode: 0644]
templates/de/html/admin/admin_edit_bank_packages_row.tpl [new file with mode: 0644]

index 0641101..7872698 100644 (file)
@@ -807,6 +807,8 @@ templates/de/html/admin/admin_del_transfer_row.tpl -text
 templates/de/html/admin/admin_del_user.tpl -text
 templates/de/html/admin/admin_edit_admins.tpl -text
 templates/de/html/admin/admin_edit_admins_row.tpl -text
+templates/de/html/admin/admin_edit_bank_packages.tpl -text
+templates/de/html/admin/admin_edit_bank_packages_row.tpl -text
 templates/de/html/admin/admin_edit_cats.tpl -text
 templates/de/html/admin/admin_edit_cats_row.tpl -text
 templates/de/html/admin/admin_edit_email.tpl -text
index 6bb648c..c35c234 100644 (file)
@@ -61,7 +61,7 @@ function SQL_QUERY($sql_string, $F, $L) {
                //
                // Debugging stuff...
                //
-               $fp = @fopen(PATH."debug.log", 'a') or mxchange_die("Cannot write debug.log!");
+               $fp = @fopen(PATH."inc/cache/debug.log", 'a') or mxchange_die("Cannot write debug.log!");
                if (!isset($OK)) {
                        // Write first entry
                        fwrite($fp, "Module=".$GLOBALS['module']."\n");
index 6eed145..982a00e 100644 (file)
@@ -53,24 +53,24 @@ case "register": // Do stuff when installtion is running (modules.php?module=adm
        // SQL commands to run
        $SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_bank_accounts";
        $SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_bank_accounts (
-id bigint(20) not null auto_increment,
-uid bigint(20) not null default '0',
-account_created bigint(20) not null default '0',
-account_locked bigint(20) not null default '0',
-locked_reason tinytext,
-status enum('NEW', 'ACTIVE', 'LOCKED') not null default 'NEW',
-account_balance double(20,5) not null default '0.00000',
-output_mode enum('LOGIN', 'EMAIL', 'DISABLED'),
-pin varchar(50) not null default '',
-tan_mode enum('NORMAL', 'INDEXED'),
-tan_list_status enum('PENDING', 'ACTIVE', 'INVALID', 'LOCKED') not null default 'PENDING',
-tan_key varchar(50) not null default '',
-month_transfered bigint(20) not null default '0',
-last_tan varchar(5) not null default '00000',
-last_tan_stamp bigint(20) not null default '0',
-last_tan_purpose tinytext,
-account_type enum('CHECK', 'SAVING') not null default 'CHECK',
-overdraft_credit double(20,5) not null default '0.00000',
+id BIGINT(20) NOT NULL AUTO_INCREMENT,
+uid BIGINT(20) NOT NULL DEFAULT '0',
+account_created BIGINT(20) NOT NULL DEFAULT '0',
+account_locked BIGINT(20) NOT NULL DEFAULT '0',
+locked_reason TINYTEXT,
+status ENUM('NEW', 'ACTIVE', 'LOCKED') NOT NULL DEFAULT 'NEW',
+account_balance DOUBLE(20,5) NOT NULL DEFAULT '0.00000',
+output_mode ENUM('LOGIN', 'EMAIL', 'DISABLED'),
+pin VARCHAR(50) NOT NULL DEFAULT '',
+tan_mode ENUM('NORMAL', 'INDEXED'),
+tan_list_status ENUM('PENDING', 'ACTIVE', 'INVALID', 'LOCKED') NOT NULL DEFAULT 'PENDING',
+tan_key VARCHAR(50) NOT NULL DEFAULT '',
+month_transfered BIGINT(20) NOT NULL DEFAULT '0',
+last_tan VARCHAR(5) NOT NULL DEFAULT '00000',
+last_tan_stamp BIGINT(20) NOT NULL DEFAULT '0',
+last_tan_purpose TINYTEXT,
+account_type ENUM('CHECK', 'SAVING') NOT NULL DEFAULT 'CHECK',
+overdraft_credit DOUBLE(20,5) NOT NULL DEFAULT '0.00000',
 PRIMARY KEY (id),
 UNIQUE KEY (pin),
 INDEX `uid_type` (uid, account_type),
@@ -80,35 +80,35 @@ INDEX (last_tan_stamp)
 ) TYPE=MyISAM";
        $SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_bank_transfers";
        $SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_bank_transfers (
-id bigint(20) not null auto_increment,
-to_account_id bigint(20) not null default '0',
-from_account_id bigint(20) not null default '0',
-points_amount double(20,5) not null default '0.00000',
-day_bookkeeping char(4) not null default '0000',
-day_available char(4) not null default '0000',
-transfer_purpose tinytext,
+id BIGINT(20) NOT NULL AUTO_INCREMENT,
+to_account_id BIGINT(20) NOT NULL DEFAULT '0',
+from_account_id BIGINT(20) NOT NULL DEFAULT '0',
+points_amount DOUBLE(20,5) NOT NULL DEFAULT '0.00000',
+day_bookkeeping char(4) NOT NULL DEFAULT '0000',
+day_available char(4) NOT NULL DEFAULT '0000',
+transfer_purpose TINYTEXT,
 PRIMARY KEY (id),
 INDEX (to_account_id, from_account_id),
 INDEX (day_bookkeeping, day_available)
 ) TYPE=MyISAM";
        $SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_bank_packages";
        $SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_bank_packages (
-id bigint(20) not null auto_increment,
-title varchar(255) not null default '',
-description tinytext,
-account_fee double(20,5) not null default '0.00000',
-free_transfers int(7) not null default '0',
-transfer_fee double(20,5) not null default '0.00000',
-available varchar(8) not null default '19700101',
-output_system_mode enum('LOGIN', 'EMAIL', 'DISABLED'),
-package_active enum('Y', 'N') not null default 'N',
-free_months_no_fee tinyint(3) not null default '0',
-interest_plus float(7,5) not null default '0.00000',
-interest_minus float(7,5) not null default '0.00000',
-first_payment double(20,5) not null default '0.00000',
-free_account_income double(20,5) not null default '0.00000',
-free_account_stuff tinytext null,
-tan_lock tinyint(3) not null default '0',
+id BIGINT(20) NOT NULL AUTO_INCREMENT,
+title VARCHAR(255) NOT NULL DEFAULT '',
+description TINYTEXT,
+account_fee DOUBLE(20,5) NOT NULL DEFAULT '0.00000',
+free_transfers int(7) NOT NULL DEFAULT '0',
+transfer_fee DOUBLE(20,5) NOT NULL DEFAULT '0.00000',
+available TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
+output_system_mode ENUM('LOGIN', 'EMAIL', 'DISABLED'),
+package_active ENUM('Y', 'N') NOT NULL DEFAULT 'N',
+free_months_no_fee TINYINT(3) NOT NULL DEFAULT '0',
+interest_plus float(7,5) NOT NULL DEFAULT '0.00000',
+interest_minus float(7,5) NOT NULL DEFAULT '0.00000',
+first_payment DOUBLE(20,5) NOT NULL DEFAULT '0.00000',
+free_account_income DOUBLE(20,5) NOT NULL DEFAULT '0.00000',
+free_account_stuff TINYTEXT null,
+tan_lock TINYINT(3) NOT NULL DEFAULT '0',
 PRIMARY KEY (id)
 ) TYPE=MyISAM";
        // free_account_stuff will be a list of columns of the table _bank_packages
@@ -117,11 +117,11 @@ PRIMARY KEY (id)
        // should be fine. More than one entry and not DISABLED ;) are not supported.
        $SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_bank_tanlist";
        $SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_bank_tanlist (
-id bigint(20) not null auto_increment,
-idx tinyint(3) not null default '0',
-account_id bigint(20) not null default '0',
-tan varchar(50) not null default '',
-used enum('Y', 'N') not null default 'N',
+id BIGINT(20) NOT NULL AUTO_INCREMENT,
+idx TINYINT(3) NOT NULL DEFAULT '0',
+account_id BIGINT(20) NOT NULL DEFAULT '0',
+tan VARCHAR(50) NOT NULL DEFAULT '',
+used ENUM('Y', 'N') NOT NULL DEFAULT 'N',
 PRIMARY KEY (id),
 UNIQUE (account_id, tan)
 ) TYPE=MyISAM";
index 25ae3c7..38b4f58 100644 (file)
@@ -1797,7 +1797,7 @@ function MXCHANGE_OPEN ($script) {
        } // END - if
 
        // Was the request successfull?
-       if ((!ereg("200 OK", $response[0])) || (empty($response[0]))) {
+       if ((!eregi("200 OK", $response[0])) || (empty($response[0]))) {
                // Not found / access forbidden
                $response = array("", "", "");
        } // END - if
index f21123b..281ae6d 100644 (file)
@@ -50,8 +50,11 @@ define('ADMIN_BANK_PACKAGE_INTEREST_MINUS', "Zinssatz f&uuml;r Soll");
 define('ADMIN_BANK_PACKAGE_FIRST_PAYMENT', "H&ouml;he der ersten Einzahlung");
 define('ADMIN_BANK_PACKAGE_FREE_ACCOUNT_INCOME', "H&ouml;he der monatlichen Einnahmen, um Konto kostenlos zu erhalten");
 define('ADMIN_BANK_PACKAGE_FREE_ACCOUNT_STUFF', "Freitext f&uuml;r Dinge, die kostenlos sein werden.");
-define('ADMIN_BANK_PACKAGE_TAN_LOCK', "Anzahl Versuche richtige TAN einzugeben, bis TAN-Liste gesperrt wird.");
+define('ADMIN_BANK_PACKAGE_TAN_LOCK', "Anzahl Versuche richtige (i)TAN einzugeben, bis (i)TAN-Liste gesperrt wird.");
 define('ADMIN_BANK_PACKAGE_ACTIVE', "Ist dieses Angebotspaket vom Mitglied einsehbar, also aktiviert?");
+define('ADMIN_BANK_PACKAGE_TRANSFER_FEE', "Geb&uuml;hr f&uuml;r &Uuml;berweisung");
+define('ADMIN_BANK_PACKAGE_EDIT_TAN_LOCK', "Anzahl Versuche bis (i)TAN-Liste gesperrt ist.");
+define('ADMIN_BANK_PACKAGE_EDIT_ACTIVE', "Aktiviert/Erwerbbar");
 define('ADMIN_ADD_BANK_PACKAGE', "Angebotspaket einstellen");
 define('ADMIN_BANK_FOOTER_NOTE', "Bitte beachten Sie, dass keine Mail zu den Mitgliedern unterwegs ist. Seien Sie bei Titel, Beschreibung und Freitext kreativ und schreiben Sie aussagekr&auml;ftige Texte!");
 define('ADMIN_BANK_NO_PACKAGES_FOUND', "Keine Angebotspakete zum Auflisten gefunden!");
@@ -67,6 +70,8 @@ define('ADMIN_STATUS_CHANGED_2', "</U> von <U>");
 define('ADMIN_STATUS_CHANGED_3', "</U> Eintr&auml;gen ge&auml;ndert.");
 define('ADMIN_DELETE_BANK_PACKAGES', "Angebotspakete entg&uuml;ltig entfernen");
 define('ADMIN_DELETE_BANK_PACKAGES_NOTES', "<STRONG>Hinweis:</STRONG> Wenn Sie die aufgelisteten Angebotspakete entg&uuml;ltig l&ouml;schen, kann eventuell Ihre Bank nicht korrekt funktionieren, da eventuell einige Mitglieder dieses Paket ausgew&auml;hlt haben. Bitte schauen Sie unter <EM>Konten auflisten</EM> vorher nach!");
+define('ADMIN_EDIT_BANK_PACKAGES', "Angebotspakete &auml;ndern");
+define('ADMIN_EDIT_BANK_PACKAGES_NOTES', "<STRONG>Hinweis:</STRONG> Derzeit keine Tipps f&uuml;r diese Aktion.");
 
 // Output modes
 define('BANK_OUTPUT_MODE_LOGIN', "Nur im Mitgliedsbereich");
index ad0650a..e8e314d 100644 (file)
@@ -1117,6 +1117,7 @@ define('ADMIN_CONFIG_PROXY_HOST', "Hostname oder IP-Nummer:");
 define('ADMIN_CONFIG_PROXY_PORT', "Port-Nummer (z.B. 8085):");
 define('ADMIN_CONFIG_PROXY_USERNAME', "Benuztername (falls vorhanden):");
 define('ADMIN_CONFIG_PROXY_PASSWORD', "Passwort (falls vorhanden):");
+define('EDIT_ENTRIES', "Eintr&auml;ge &auml;ndern");
 
 //
 ?>
index a56c7a1..f147c1a 100644 (file)
@@ -793,9 +793,10 @@ function ADMIN_DELETE_ENTRIES_CONFIRM ($IDs, $table, $row, $columns = array(), $
                // "Walk" through all entries and count them
                if ($deleteNow) {
                        // Delete them
+                       die("DELETE!");
                } else {
                        // List for confirmation
-                       foreach ($IDs as $id=>$selected) {
+                       foreach ($IDs as $id => $selected) {
                                // Secure ID number
                                $id = bigintval($id);
 
@@ -837,6 +838,59 @@ function ADMIN_DELETE_ENTRIES_CONFIRM ($IDs, $table, $row, $columns = array(), $
                }
        }
 }
+// Edit rows by given ID numbers
+function ADMIN_EDIT_ENTRIES_CONFIRM ($IDs, $table, $row, $columns = array(), $filterFunctions = array(), $editNow=false, $idRow="id") {
+       global $_CONFIG;
+       $OUT = ""; $SW = 2;
+       if ((is_array($IDs)) && (count($IDs) > 0)) {
+               // "Walk" through all entries and count them
+               if ($editNow) {
+                       // Delete them
+                       die("EDIT!");
+               } else {
+                       // List for confirmation
+                       foreach ($IDs as $id => $selected) {
+                               // Secure ID number
+                               $id = bigintval($id);
+
+                               // Will always be 1 ;-)
+                               if ($selected == 1) {
+                                       // Get result from a given column array and table name
+                                       $result = SQL_RESULT_FROM_ARRAY($table, $columns, $idRow, $id);
+
+                                       // Is there one entry?
+                                       if (SQL_NUMROWS($result) == 1) {
+                                               // Load all data
+                                               $content = SQL_FETCHARRAY($result);
+
+                                               // Filter all data
+                                               foreach ($content as $key=>$value) {
+                                                       // Is a filter function set?
+                                                       $idx = array_search($key, $columns, true);
+                                                       if (!empty($filterFunctions[$idx])) {
+                                                               // Then call it!
+                                                               $content[$key] = call_user_func($filterFunctions[$idx], $value);
+                                                       }
+                                               }
+
+                                               // Add color switching
+                                               $content['sw'] = $SW;
+
+                                               // Then list it again...
+                                               $OUT .= LOAD_TEMPLATE("admin_edit_".$table."_row", true, $content);
+                                               $SW = 3 - $SW;
+                                       }
+
+                                       // Free the result
+                                       SQL_FREERESULT($result);
+                               }
+                       }
+
+                       // Load master template
+                       LOAD_TEMPLATE("admin_edit_".$table."", false, $OUT);
+               }
+       }
+}
 // Checks proxy settins by fetching check-updates2.php from www.mxchange.org
 function ADMIN_TEST_PROXY_SETTINGS ($settingsArray) {
        global $_CONFIG;
@@ -850,7 +904,7 @@ function ADMIN_TEST_PROXY_SETTINGS ($settingsArray) {
        $content = MXCHANGE_OPEN("check-updates2.php");
 
        // Is the first line with "200 OK"?
-       $valid = ereg("200 OK", $content[0]);
+       $valid = eregi("200 OK", $content[0]);
 
        // Return result
        return $valid;
index c4105ef..4f8ce1d 100644 (file)
@@ -35,7 +35,7 @@
 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__));
@@ -47,6 +47,19 @@ if ((isset($_POST['id'])) && (is_array($_POST['id'])) && (count($_POST['id']) >
        if (isset($_POST['change'])) {
                // Change permissions
                ADMIN_CHANGE_ACTIVATION_STATUS($_POST['id'], "bank_packages", "package_active");
+       } elseif (isset($_POST['edit'])) {
+               // Delete entries (with confirmation)
+               ADMIN_EDIT_ENTRIES_CONFIRM(
+                       $_POST['id'],
+                       "bank_packages",
+                       "package_active",
+                       array("id", "title", "description", "account_fee", "free_transfers", "transfer_fee", "output_system_mode", "package_active", "free_months_no_fee", "interest_plus", "interest_minus", "first_payment", "free_account_income", "free_account_stuff", "tan_lock"),
+                       array("bigintval", "", "", "TRANSLATE_COMMA", "bigintval", "TRANSLATE_COMMA", "", "", "bigintval", "TRANSLATE_COMMA", "TRANSLATE_COMMA", "TRANSLATE_COMMA", "TRANSLATE_COMMA", "", "bigintval")
+               );
+               $show = false;
+       } elseif (isset($_POST['do_edit'])) {
+               // Delete entries (with confirmation)
+               ADMIN_EDIT_ENTRIES_CONFIRM($_POST['id'], "bank_packages", "package_active", array(), array(), true);
        } elseif (isset($_POST['delete'])) {
                // Delete entries (with confirmation)
                ADMIN_DELETE_ENTRIES_CONFIRM($_POST['id'], "bank_packages", "package_active", array("id", "title", "description", "account_fee"), array("bigintval", "", "", "TRANSLATE_COMMA"));
@@ -55,7 +68,7 @@ if ((isset($_POST['id'])) && (is_array($_POST['id'])) && (count($_POST['id']) >
                // Delete entries (with confirmation)
                ADMIN_DELETE_ENTRIES_CONFIRM($_POST['id'], "bank_packages", "package_active", array(), array(), true);
        }
-}
+} // END - if
 
 // Skip showing old entries?
 if (!$show) return;
@@ -80,7 +93,7 @@ if (SQL_NUMROWS($result) > 0) {
                // Load row template
                $OUT .= LOAD_TEMPLATE("admin_list_bank_package_row", true, $content);
                $SW = 3 - $SW;
-       }
+       } // END - while
 
        // Prepare row(s) for output to template
        define('__BANK_PACKAGE_ROWS', $OUT);
index a2d5dbc..c273061 100644 (file)
@@ -51,7 +51,7 @@ if (empty($response[0]) && empty($response[1]) && empty($response[2])) {
        $response = array("", "", "");
 } else {
        // Analyse header for response code
-       if (ereg("200 OK", $response[0])) {
+       if (eregi("200 OK", $response[0])) {
                // Found, kill header
                $pos = 0;
                foreach($response as $k => $v) {
index 757c19a..b13ac02 100644 (file)
@@ -1295,23 +1295,18 @@ function GET_ADMIN_HASH($login)
        return $ret;
 }
 //
-function GET_ADMIN_LOGIN($aid)
-{
+function GET_ADMIN_LOGIN($aid) {
        global $cacheArray;
        $ret = "***";
-       if (!empty($cacheArray['admins']['login']['aid']))
-       {
+       if (!empty($cacheArray['admins']['login']['aid'])) {
                // Check cache
                if (!empty($cacheArray['admins']['login'][$aid]))       $ret = $cacheArray['admins']['login'][$aid];
                if (empty($ret)) $ret = "***";
-       }
-        else
-       {
+       } else {
                // Load from database
                $result = SQL_QUERY_ESC("SELECT login FROM "._MYSQL_PREFIX."_admins WHERE id=%d LIMIT 1",
                 array(bigintval($aid)), __FILE__, __LINE__);
-               if (SQL_NUMROWS($result) == 1)
-               {
+               if (SQL_NUMROWS($result) == 1) {
                        // Fetch data
                        list($ret) = SQL_FETCHROW($result);
                }
@@ -1322,25 +1317,19 @@ function GET_ADMIN_LOGIN($aid)
        return $ret;
 }
 //
-function ADD_OPTION_LINES($table, $id, $name, $default="",$special="",$where="")
-{
+function ADD_OPTION_LINES($table, $id, $name, $default="",$special="",$where="") {
        $ret = "";
-       if ($table == "/ARRAY/")
-       {
+       if ($table == "/ARRAY/") {
                // Selection from array
-               if (is_array($id) && is_array($name) && sizeof($id) == sizeof($name))
-               {
+               if (is_array($id) && is_array($name) && sizeof($id) == sizeof($name)) {
                        // Both are arrays
-                       foreach ($id as $idx=>$value)
-                       {
+                       foreach ($id as $idx=>$value) {
                                $ret .= "<OPTION value=\"".$value."\"";
                                if ($default == $value) $ret .= " selected checked";
                                $ret .= ">".$name[$idx]."</OPTION>\n";
                        }
                }
-       }
-        else
-       {
+       } else {
                // Data from database
                $SPEC = ", ".$id;
                if (!empty($special)) $SPEC = ", ".$special;
@@ -1348,11 +1337,9 @@ function ADD_OPTION_LINES($table, $id, $name, $default="",$special="",$where="")
                if ($table == "country") $ORDER = $special;
                $result = SQL_QUERY_ESC("SELECT %s, %s".$SPEC." FROM "._MYSQL_PREFIX."_%s ".$where." ORDER BY %s",
                 array($id, $ORDER, $table, $name), __FILE__, __LINE__);
-               if (SQL_NUMROWS($result) > 0)
-               {
+               if (SQL_NUMROWS($result) > 0) {
                        // Found data so add them as OPTION lines: $id is the value and $name is the "name" of the option
-                       while (list($value, $title, $add) = SQL_FETCHROW($result))
-                       {
+                       while (list($value, $title, $add) = SQL_FETCHROW($result)) {
                                if (empty($special)) $add = "";
                                $ret .= "<OPTION value=\"".$value."\"";
                                if ($default == $value) $ret .= " selected checked";
@@ -1362,13 +1349,12 @@ function ADD_OPTION_LINES($table, $id, $name, $default="",$special="",$where="")
 
                        // Free memory
                        SQL_FREERESULT($result);
-               }
-                else
-               {
+               } else {
                        // No data found
                        $ret = "<OPTION value=\"x\">".SELECT_NONE."</OPTION>\n";
                }
        }
+
        // Return - hopefully - the requested data
        return $ret;
 }
index 824ac5c..300c80a 100644 (file)
@@ -1,24 +1,20 @@
-<FORM
-       action="{!URL!}/modules.php?module=admin&amp;what=list_bank_package"
-       method="POST">
-<TABLE border="0" cellspacing="0" cellpadding="0" width="620"
-       class="admin_table dashed" align="center">
+<FORM action="{!URL!}/modules.php?module=admin&amp;what=list_bank_package" method="POST">
+<TABLE border="0" cellspacing="0" cellpadding="0" width="620" class="admin_table dashed" align="center">
        <TR>
                <TD colspan="5" align="center" class="admin_title" height="30"><STRONG>{--ADMIN_DELETE_BANK_PACKAGES--}:</STRONG>
                </TD>
        </TR>
        <TR>
-               <TD width="20" colspan="2" align="center"
-                       class="admin_title bottom2 right2"><STRONG>{--ID_SELECT--}</STRONG></TD>
+               <TD width="20" colspan="2" align="center" class="admin_title bottom2 right2"><STRONG>{--ID_SELECT--}</STRONG></TD>
                <TD width="120" align="center" class="admin_title bottom2 right2"><STRONG>{--ADMIN_LIST_BANK_PACKAGES_TITLE--}:</STRONG></TD>
                <TD width="360" align="center" class="admin_title bottom2 right2"><STRONG>{--ADMIN_LIST_BANK_PACKAGES_DESCR--}:</STRONG></TD>
                <TD width="120" align="center" class="admin_title bottom2"><STRONG>{--ADMIN_LIST_BANK_PACKAGES_ACCOUNT_FEE--}</STRONG></TD>
        </TR>
        $content
        <TR>
-               <TD colspan="5" align="center" class="admin_footer"><INPUT
-                       type="submit" name="remove" class="admin_delete"
-                       value="{--DEL_ENTRIES--}"></TD>
+               <TD colspan="5" align="center" class="admin_footer">
+                       <INPUT type="submit" name="remove" class="admin_delete" value="{--DEL_ENTRIES--}">
+               </TD>
        </TR>
 </TABLE>
 </FORM>
index 0563b3a..46ff45d 100644 (file)
@@ -1,13 +1,17 @@
 <TR>
-       <TD align="center" class="switch_sw$content[sw] bottom2"><INPUT
-               type="checkbox" name="id[$content[id]]" value="1" checked="checked" />
+       <TD align="center" class="switch_sw$content[sw] bottom2">
+               <INPUT type="checkbox" name="id[$content[id]]" value="1" checked="checked" />
        </TD>
-       <TD align="center" class="switch_sw$content[sw] bottom2 right2"><STRONG>$content[id]</STRONG>
+       <TD align="center" class="switch_sw$content[sw] bottom2 right2">
+               <STRONG>$content[id]</STRONG>
        </TD>
        <TD align="center" class="switch_sw$content[sw] bottom2 right2">
-       $content[title]</TD>
+               $content[title]
+       </TD>
        <TD align="center" class="switch_sw$content[sw] bottom2 right2">
-       $content[description]</TD>
+               $content[description]
+       </TD>
        <TD align="center" class="switch_sw$content[sw] bottom2">
-       $content[account_fee] {!POINTS!}</TD>
+               $content[account_fee] {!POINTS!}
+       </TD>
 </TR>
diff --git a/templates/de/html/admin/admin_edit_bank_packages.tpl b/templates/de/html/admin/admin_edit_bank_packages.tpl
new file mode 100644 (file)
index 0000000..1400485
--- /dev/null
@@ -0,0 +1,18 @@
+<FORM action="{!URL!}/modules.php?module=admin&amp;what=list_bank_package" method="POST">
+<TABLE border="0" cellspacing="0" cellpadding="0" width="90%" class="admin_table dashed" align="center">
+       <TR>
+               <TD colspan="4" align="center" class="admin_title bottom2" height="30">
+                       <STRONG>{--ADMIN_EDIT_BANK_PACKAGES--}:</STRONG>
+               </TD>
+       </TR>
+       $content
+       <TR>
+               <TD colspan="4" align="center" class="admin_footer">
+                       <INPUT type="reset" class="admin_reset" value="{--CLEAR_FORM--}">&nbsp;*
+                       <INPUT type="submit" name="do_edit" class="admin_edit" value="{--EDIT_ENTRIES--}">
+               </TD>
+       </TR>
+</TABLE>
+</FORM>
+
+<DIV class="admin_note">{--ADMIN_EDIT_BANK_PACKAGES_NOTES--}</DIV>
diff --git a/templates/de/html/admin/admin_edit_bank_packages_row.tpl b/templates/de/html/admin/admin_edit_bank_packages_row.tpl
new file mode 100644 (file)
index 0000000..f57a4e4
--- /dev/null
@@ -0,0 +1,69 @@
+<TR>
+       <TD width="33%" align="center" valign="top" style="padding:2px"class="switch_sw$content[sw] bottom2 right2">
+               {--ADMIN_BANK_PACKAGE_TITLE--}:<br />
+               <INPUT type="text" name="title[$content[id]]" size="20" maxlength="255" value="$content[title]" />
+       </TD>
+       <TD width="34%" align="center" valign="top" style="padding:2px"class="switch_sw$content[sw] bottom2 right2">
+               {--ADMIN_BANK_PACKAGE_DESCRIPTION--}:<br />
+               <TEXTAREA name="description[$content[id]]" rows="3" cols="30">$content[description]</TEXTAREA>
+       </TD>
+       <TD width="33%" align="center" valign="top" style="padding:2px"class="switch_sw$content[sw] bottom2">
+               {--ADMIN_BANK_PACKAGE_ACCOUNT_FEE--}:<br />
+               <INPUT type="text" name="account_fee[$content[id]]" size="5" maxlength="10" value="$content[account_fee]" /> {!POINTS!}
+       </TD>
+</TR>
+<TR>
+       <TD align="center" valign="top" style="padding:2px"class="switch_sw$content[sw] bottom2 right2">
+               {--ADMIN_BANK_PACKAGE_FREE_TRANSFERS--}:<br />
+               <INPUT type="text" name="free_transfers[$content[id]]" size="5" maxlength="10" value="$content[free_transfers]" />
+       </TD>
+       <TD align="center" valign="top" style="padding:2px"class="switch_sw$content[sw] bottom2 right2">
+               {--ADMIN_BANK_PACKAGE_TRANSFER_FEE--}:<br />
+               <INPUT type="text" name="transfer_fee[$content[id]]" size="5" maxlength="10" value="$content[transfer_fee]" /> {!POINTS!}
+       </TD>
+       <TD align="center" valign="top" style="padding:2px"class="switch_sw$content[sw] bottom2">
+               {--ADMIN_BANK_PACKAGE_OUTPUT_MODE--}:<br />
+[output_system_mode] => EMAIL
+       </TD>
+</TR>
+<TR>
+       <TD align="center" valign="top" style="padding:2px"class="switch_sw$content[sw] bottom2 right2">
+               {--ADMIN_BANK_PACKAGE_EDIT_ACTIVE--}:<br />
+[package_active] => Y
+       </TD>
+       <TD align="center" valign="top" style="padding:2px"class="switch_sw$content[sw] bottom2 right2">
+               {--ADMIN_BANK_PACKAGE_FREE_TRANSFERS--}:<br />
+               <INPUT type="text" name="free_months_no_fee[$content[id]]" size="5" maxlength="10" value="$content[free_months_no_fee]" />
+       </TD>
+       <TD align="center" valign="top" style="padding:2px"class="switch_sw$content[sw] bottom2">
+               {--ADMIN_BANK_PACKAGE_INTEREST_PLUS--}:<br />
+               <INPUT type="text" name="interest_plus[$content[id]]" size="5" maxlength="10" value="$content[interest_plus]" /> %
+       </TD>
+</TR>
+<TR>
+       <TD align="center" valign="top" style="padding:2px"class="switch_sw$content[sw] bottom2 right2">
+               {--ADMIN_BANK_PACKAGE_INTEREST_MINUS--}:<br />
+               <INPUT type="text" name="interest_minus[$content[id]]" size="5" maxlength="10" value="$content[interest_minus]" /> %
+       </TD>
+       <TD align="center" valign="top" style="padding:2px"class="switch_sw$content[sw] bottom2 right2">
+               {--ADMIN_BANK_PACKAGE_FIRST_PAYMENT--}:<br />
+               <INPUT type="text" name="first_payment[$content[id]]" size="5" maxlength="10" value="$content[first_payment]" />
+       </TD>
+       <TD align="center" valign="top" style="padding:2px"class="switch_sw$content[sw] bottom2">
+               {--ADMIN_BANK_PACKAGE_FREE_ACCOUNT_INCOME--}:<br />
+               <INPUT type="text" name="free_account_income[$content[id]]" size="10" maxlength="20" value="$content[free_account_income]" /> {!POINTS!}
+       </TD>
+</TR>
+<TR>
+       <TD align="center" valign="top" style="padding:2px"class="switch_sw$content[sw] bottom2 right2">
+               {--ADMIN_BANK_PACKAGE_FREE_ACCOUNT_STUFF--}:<br />
+               <TEXTAREA name="free_account_stuff[$content[id]]" rows="3" cols="30">$content[free_account_stuff]</TEXTAREA>
+       </TD>
+       <TD align="center" valign="top" style="padding:2px" class="switch_sw$content[sw] bottom2 right2">
+               {--ADMIN_BANK_PACKAGE_EDIT_TAN_LOCK--}:<br />
+               <INPUT type="text" name="tan_lock[$content[id]]" size="5" maxlength="10" value="$content[tan_lock]" />
+       </TD>
+       <TD class="switch_sw$content[sw] seperator bottom2">
+               <INPUT type="hidden" name="id[]" value="$content[id]" />
+       </TD>
+</TR>