From: Kilian Saffran Date: Fri, 14 Feb 2020 15:44:25 +0000 (+0100) Subject: v20200214 X-Git-Url: http://cloud.dks.lu/git/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=dksnas.git v20200214 --- diff --git a/CGI/index.cgi b/CGI/index.cgi index 29e92d9..6108560 100755 --- a/CGI/index.cgi +++ b/CGI/index.cgi @@ -12,7 +12,7 @@ use File::Basename qw/dirname basename/; use Template; # use Template::Constants qw( :debug ); use CGI; -#use CGI::Carp qw(fatalsToBrowser); +use CGI::Carp qw(fatalsToBrowser); use CGI::Cookie; use Data::Dumper; use JSON::PP; diff --git a/CGI/tmpl/app/hourtrax/appbutton.tt b/CGI/tmpl/app/hourtrax/appbutton.tt new file mode 100644 index 0000000..266dd03 --- /dev/null +++ b/CGI/tmpl/app/hourtrax/appbutton.tt @@ -0,0 +1 @@ +
HourTrax \ No newline at end of file diff --git a/CGI/tmpl/app/hourtrax/index.tt b/CGI/tmpl/app/hourtrax/index.tt new file mode 100644 index 0000000..d15d27e --- /dev/null +++ b/CGI/tmpl/app/hourtrax/index.tt @@ -0,0 +1,89 @@ + + + + + + + + + + + + + Creorga + + + + + + + + + +
+ + + +
+ + + + + + + + + + + diff --git a/CGI/tmpl/app/invoicejournal/index.tt b/CGI/tmpl/app/invoicejournal/index.tt index d33ccdf..d3ad840 100644 --- a/CGI/tmpl/app/invoicejournal/index.tt +++ b/CGI/tmpl/app/invoicejournal/index.tt @@ -32,7 +32,7 @@ Journal Buchungen - Addressen + Addressen Bankkonto Angebote diff --git a/CGI/tmpl/app/invoicejournal/module/accounts/accounts.js b/CGI/tmpl/app/invoicejournal/module/accounts/accounts.js index c983eed..8bbf8eb 100644 --- a/CGI/tmpl/app/invoicejournal/module/accounts/accounts.js +++ b/CGI/tmpl/app/invoicejournal/module/accounts/accounts.js @@ -7,28 +7,32 @@ var accounts ={ inittable: function(){ accounts.tbl = new Tabulator("#tbl_" + accounts.name, { headerFilterPlaceholder:"filter...", - height: "100vh", + height: "92vh", layout:"fitDataFill", selectable:1, - responsiveLayout:"collapse", columns:[ {title:"K.Nr", field:"ident",headerFilter:"input"}, - {title:"Name", field:"company",headerFilter:"input"}, + {title:"Name", field:"receipient",headerFilter:"input"}, {title:"E-Mail", field:"email",headerFilter:"input"}, {title:"Tel", field:"phone",headerFilter:"input"}, - {title:"Addresse", field:"address",headerFilter:"input"}, + {title:"Addresse", field:"address",formatter:"textarea",headerFilter:"input"}, + {title:"Typ", field:"types",formatter:"textarea",headerFilter:"input"}, ], }); accounts.gettbldata(); }, gettbldata: function(){ - req.reqdata("POST","db.cgi",{"db":mpref.cfg.db,"type":"array","sql":"SELECT id, company, prename,surname, address, zip, city, country, email, phone, mobile, ident FROM accounts;"},accounts.loadtbldata); + req.reqdata("POST","db.cgi",{"db":parent.app + "/" + mpref.cfg.db,"get":"accountslist",},accounts.loadtbldata); }, loadtbldata: function(data){ if (data && data.sqldata){ accounts.tbl.setData(data.sqldata); } }, + viewtable: function(){ + accounts.gettbldata(); + module.viewpanel('tbl_accounts'); + }, add: function(){ }, diff --git a/CGI/tmpl/app/invoicejournal/module/accounts/index.js b/CGI/tmpl/app/invoicejournal/module/accounts/index.js index f70412f..b6f9ec4 100644 --- a/CGI/tmpl/app/invoicejournal/module/accounts/index.js +++ b/CGI/tmpl/app/invoicejournal/module/accounts/index.js @@ -1,21 +1,12 @@ -var tbl = null; -function initpage(){ +function initpage() { + console.log(mpref.cfg); + console.log("APP:" + parent.app); mpref.loadconfig(); - console.log(mpref); - loadtable(); + accounts.inittable(); + return false; } -function loadtable(){ - -} - -function gettbldata(){ - -} -function filltbldata(data){ - -} diff --git a/CGI/tmpl/app/invoicejournal/module/accounts/index.tt b/CGI/tmpl/app/invoicejournal/module/accounts/index.tt index 001ff9c..2950ea5 100644 --- a/CGI/tmpl/app/invoicejournal/module/accounts/index.tt +++ b/CGI/tmpl/app/invoicejournal/module/accounts/index.tt @@ -1,6 +1,20 @@ - -
- -
- +[% PROCESS macro/fields.tt %] +
+
+
+ + + + + +
+
+
+
+
+
+[% INCLUDE "block/dlgdataload.tt" %] +[% INCLUDE "block/dlgdeleterow.tt" %] +[% INCLUDE "block/dlgmessage.tt" %] + diff --git a/CGI/tmpl/app/invoicejournal/module/invoicejournal/index.tt b/CGI/tmpl/app/invoicejournal/module/invoicejournal/index.tt index 05789de..eda149b 100644 --- a/CGI/tmpl/app/invoicejournal/module/invoicejournal/index.tt +++ b/CGI/tmpl/app/invoicejournal/module/invoicejournal/index.tt @@ -4,15 +4,15 @@
- - - + + +
@@ -20,9 +20,7 @@