]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-bank.php
Same color for admin action links
[mailer.git] / inc / extensions / ext-bank.php
index 0d3677a0a7dbf007264b7d3f1367063b57aa2799..9560222266bf46a67b086463d0726e0b93a65557 100644 (file)
@@ -96,23 +96,23 @@ INDEX (day_bookkeeping, day_available)
 ) TYPE={?_TABLE_TYPE?}");
                addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_bank_packages`');
                addExtensionSql("CREATE TABLE `{?_MYSQL_PREFIX?}_bank_packages` (
-id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-title VARCHAR(255) NOT NULL DEFAULT '',
-description TINYTEXT,
-account_fee FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000,
-free_transfers INT(7) UNSIGNED NOT NULL DEFAULT 0,
-transfer_fee FLOAT(20,5) UNSIGNED 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) UNSIGNED NOT NULL DEFAULT 0,
-interest_plus FLOAT(7,5) UNSIGNED NOT NULL DEFAULT 0.00000,
-interest_minus FLOAT(7,5) UNSIGNED NOT NULL DEFAULT 0.00000,
-first_payment FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000,
-free_account_income FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000,
-free_account_stuff TINYTEXT null,
-tan_lock TINYINT(3) UNSIGNED NOT NULL DEFAULT 0,
-PRIMARY KEY (id)
+`id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
+`title` VARCHAR(255) NOT NULL DEFAULT '',
+`description` TINYTEXT,
+`account_fee` FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000,
+`free_transfers` INT(7) UNSIGNED NOT NULL DEFAULT 0,
+`transfer_fee` FLOAT(20,5) UNSIGNED 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) UNSIGNED NOT NULL DEFAULT 0,
+`interest_plus` FLOAT(7,5) UNSIGNED NOT NULL DEFAULT 0.00000,
+`interest_minus` FLOAT(7,5) UNSIGNED NOT NULL DEFAULT 0.00000,
+`first_payment` FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000,
+`free_account_income` FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000,
+`free_account_stuff` TINYTEXT null,
+`tan_lock` TINYINT(3) UNSIGNED NOT NULL DEFAULT 0,
+PRIMARY KEY (`id`)
 ) TYPE={?_TABLE_TYPE?}");
                // free_account_stuff will be a list of columns of the table _bank_packages
                // what the member shall get for the specified income. output_system_mode
@@ -120,13 +120,13 @@ PRIMARY KEY (id)
                // should be fine. More than one entry and not DISABLED ;) are not supported.
                addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_bank_tanlist`');
                addExtensionSql("CREATE TABLE `{?_MYSQL_PREFIX?}_bank_tanlist` (
-id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-idx TINYINT(3) UNSIGNED NOT NULL DEFAULT 0,
-account_id BIGINT(20) UNSIGNED 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)
+`id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
+`idx` TINYINT(3) UNSIGNED NOT NULL DEFAULT 0,
+`account_id` BIGINT(20) UNSIGNED 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={?_TABLE_TYPE?}");
 
                // Admin menu queries
@@ -184,7 +184,7 @@ UNIQUE (account_id, tan)
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes('');
                                break;
-               }
+               } // END - switch
                break;
 
        case 'modify': // When the extension got modified
@@ -199,7 +199,7 @@ UNIQUE (account_id, tan)
        default: // Unknown extension mode
                logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s in extension %s detected.", getExtensionMode(), getCurrentExtensionName()));
                break;
-}
+} // END - switch
 
 // [EOF]
 ?>