More webgui code improvements and some new vessel data

This commit is contained in:
thooge committed 2026-10-11 18:42:25 +02:00
1 parent 72571ede53
commit 3a43f749f5
13 files changed
+398 -306

No files matched your search

+34 -3
View File
@@ -16,9 +16,18 @@ INSERT INTO storage (sid, vid, sname, stype, x, y, z, remarks) VALUES
(0, 1, 'An Bord', 0, 0, 0, 0, 'Alles wo der Ort nicht spezifiziert werden kann');
INSERT INTO dropdown (ddid, ddval, ddtext) VALUES
(1, 1, 'Mono'),
(1, 2, 'Katamaran'),
(1, 3, 'Trimaran');
(1, 1, 'Sloop'),
(1, 2, 'Kutter'),
(1, 3, 'Ketsch'),
(1, 4, 'Yawl'),
(1, 5, 'Schoner'),
(1, 6, 'Katamaran'),
(1, 7, 'Trimaran'),
(1, 8, 'Motorsegler'),
(1, 9, 'Motoryacht'),
(1, 10, 'Pilothouse'),
(1, 11, 'Trawler'),
(1, 12, 'Sonstiges');
INSERT INTO dropdown (ddid, ddval, ddtext, flags) VALUES
(2, 4, 'Dienstleister', NULL), -- Service
@@ -130,6 +139,28 @@ INSERT INTO dropdown (ddid, ddval, ddtext) VALUES
(12, 15, 'Aircell 7'),
(12, 16, 'Ecoflex 10');
INSERT INTO dropdown (ddid, ddval, ddtext) VALUES
(13, 1, 'Leinen'),
(13, 2, 'Pantry'),
(13, 3, 'Werkzeug'),
(13, 4, 'Deck'),
(13, 5, 'Sicherkeit'),
(13, 6, 'Elektrik'),
(13, 7, 'Betriebsstoffe'),
(13, 8, 'Wartung'),
(13, 9, 'Sonstiges');
INSERT INTO dropdown (ddid, ddval, ddtext) VALUES
(15, 1, 'Vermessungsdaten'),
(15, 2, 'Rigg und Segel'),
(15, 3, 'Rumpf und Deck'),
(15, 4, 'Beschläge und Befestigungen'),
(15, 5, 'Abmessungen'),
(15, 6, 'Tanks und Volumen'),
(15, 7, 'Motor und Antrieb'),
(15, 8, 'Elektrik'),
(15, 9, 'Sonstiges');
/* supplier */
INSERT INTO company (comptype, compname, street, zip, city, country, phone, email, web) VALUES
(1, 'Compass24', NULL, NULL, 'Ascheberg', 'Deutschland', NULL, NULL, 'compass24.de'),
+24 -4
View File
@@ -16,9 +16,18 @@ INSERT INTO storage (sid, vid, sname, stype, x, y, z, remarks) VALUES
(0, 1, 'An Bord', 0, 0, 0, 0, 'Alles wo der Ort nicht spezifiziert werden kann');
INSERT INTO dropdown (ddid, ddval, ddtext) VALUES
(1, 1, 'Monohull'),
(1, 2, 'Catamaran'),
(1, 3, 'Trimaran');
(1, 1, 'Sloop'),
(1, 2, 'Cutter'),
(1, 3, 'Ketsch'),
(1, 4, 'Yawl'),
(1, 5, 'Schooner'),
(1, 6, 'Catamaran'),
(1, 7, 'Trimaran'),
(1, 8, 'Motorseailor'),
(1, 9, 'Motoryacht'),
(1, 10, 'Pilothouse'),
(1, 11, 'Trawler'),
(1, 12, 'Other');
INSERT INTO dropdown (ddid, ddval, ddtext, flags) VALUES
(2, 4, 'Service', NULL),
@@ -78,7 +87,7 @@ INSERT INTO dropdown (ddid, ddval, ddtext, ddshort) VALUES
(7, 11, 'Torpedo fuse', 'Torp'),
(7, 12, 'Strip fuse', 'Str');
INSERT INTO dropdown (ddid, ddval, ddtext, ddshort) VALUES
INSERT INTO dropdown (ddid, ddval, ddshort, ddtext) VALUES
(8, 1, 'mm', 'Millimetre'),
(8, 2, 'cm', 'Centimetre'),
(8, 3, 'g', 'Gram'),
@@ -130,6 +139,17 @@ INSERT INTO dropdown (ddid, ddval, ddtext) VALUES
(12, 15, 'Aircell 7'),
(12, 16, 'Ecoflex 10');
INSERT INTO dropdown (ddid, ddval, ddtext) VALUES
(15, 1, 'Measurement Data'),
(15, 2, 'Rigging and Sails'),
(15, 3, 'Hull and Deck'),
(15, 4, 'Fittings and Fastenings'),
(15, 5, 'Dimensions'),
(15, 6, 'Tanks and Volumes'),
(15, 7, 'Engine and Propulsion'),
(15, 8, 'Electrical Systems'),
(15, 9, 'Miscellaneous');
/* supplier */
INSERT INTO company (comptype, compname, street, zip, city, country, phone, email, web) VALUES
(1, 'Compass24', NULL, NULL, 'Ascheberg', 'Deutschland', NULL, NULL, 'compass24.de'),
+8 -1
View File
@@ -93,11 +93,17 @@ CREATE TABLE company (
CREATE TABLE vessel (
vid smallint(6) NOT NULL AUTO_INCREMENT,
vtype enum('mono','cat','tri') NOT NULL DEFAULT 'mono',
vtype tinyint(3) DEFAULT NULL,
htype enum('mono','cat','tri') NOT NULL DEFAULT 'mono',
vesselname varchar(40) NOT NULL,
model varchar(20) DEFAULT NULL,
shipyard smallint(6) DEFAULT NULL,
year_built year DEFAULT NULL,
hull_number varchar(20) DEFAULT NULL,
-- TODO perhaps as properties?
-- reg_number varchar(20) DEFAULT NULL,
-- mmsi varchar(10) DEFAULT NULL,
-- callsign varchar(6) DEFAULT NULL,
loa float(4,2) UNSIGNED DEFAULT NULL,
lwl float(4,2) UNSIGNED DEFAULT NULL,
beam float(4,2) UNSIGNED DEFAULT NULL,
@@ -208,6 +214,7 @@ CREATE TABLE equipment (
x smallint(6) UNSIGNED NOT NULL DEFAULT 0,
y smallint(6) NOT NULL DEFAULT 0,
z smallint(6) NOT NULL DEFAULT 0,
econd enum('unknown','excellent','good','fair','bad','repairable','defect') NOT NULL default 'unknown',
remarks varchar(150) DEFAULT NULL,
flags set('ordered','removed','deleted') DEFAULT NULL,
PRIMARY KEY(eid),
+1 -1
View File
@@ -66,7 +66,7 @@ INSERT INTO settings (userid, sno, valstr) VALUES
/* List of lists is always required */
INSERT INTO dropdown (ddid, ddval, ddtext, flags) VALUES
(0, 0, 'Liste der Listen', NULL),
(0, 1, 'Rumpftypen', NULL),
(0, 1, 'Bootstypen', NULL),
(0, 2, 'Firmentypen', NULL),
(0, 3, 'Stauraumtypen', NULL),
(0, 4, 'Ausrüstungskategorien', NULL),
+1 -1
View File
@@ -65,7 +65,7 @@ INSERT INTO settings (userid, sno, valstr) VALUES
/* List of lists is always required */
INSERT INTO dropdown (ddid, ddval, ddtext, flags) VALUES
(0, 0, 'list of lists', NULL),
(0, 1, 'hull type', NULL),
(0, 1, 'vessel type', NULL),
(0, 2, 'company type', NULL),
(0, 3, 'storage type', NULL),
(0, 4, 'equipment category', NULL),