diff --git a/.gitmodules b/.gitmodules
index 8220a5c..661fcf4 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,3 +1,6 @@
[submodule "lib/system"]
path = lib/system
url = git@mojotrollz.eu:system.git
+[submodule "danube/sai/saimod_webcraft_billing_satelite"]
+ path = danube/sai/saimod_webcraft_billing_satelite
+ url = git@mojotrollz.eu:webcraft/saimod_webcraft_billing_satelite.git
diff --git a/danube/sai/autoload.inc b/danube/sai/autoload.inc
index 434c402..b4ee766 100644
--- a/danube/sai/autoload.inc
+++ b/danube/sai/autoload.inc
@@ -1,3 +1,2 @@
'');
- if($project['status']){
- foreach($project['result'] as $row){
- $row['customer_company'] = $row['customer_company'] == "" ? $row['customer_company'] = "" : $row['customer_company'] .= " - ";
- $vars['content_project'] .= \SYSTEM\PAGE\replace::replaceFile(\SYSTEM\SERVERPATH(new PSAI(),'saimod_webcraft_billing_satelite/saimod_webcraft_billing_satelite_content_project.tpl'), $row);}
- }
-
- $vars['content_billing'] = '';
- if($billing['status']){
- foreach($billing['result'] as $row){
- $row['pdf_link'] = './sai.php?sai_mod=saimod_webcraft_billing_satelite&action=getpdf&billid='.$row['ID'];
- $row['state'] = $row['payed_date'] == "0000-00-00 00:00:00" ? "important" : "success";
- $vars['content_billing'] .= \SYSTEM\PAGE\replace::replaceFile(\SYSTEM\SERVERPATH(new PSAI(),'saimod_webcraft_billing_satelite/saimod_webcraft_billing_satelite_content_billing.tpl'), $row);}
- }
-
- if($customer['status']){
- $vars = array_merge($vars,$customer['result']);}
- return \SYSTEM\PAGE\replace::replaceFile(\SYSTEM\SERVERPATH(new PSAI(),'saimod_webcraft_billing_satelite/saimod_webcraft_billing_satelite.tpl'), $vars);}
-
- public static function sai_mod_saimod_webcraft_billing_satelite_action_getpdf($billid){
- $token = \SYSTEM\CONFIG\config::get(config_ids::WEBCRAFT_BILLING_TOKEN);
- header("Content-type: application/pdf");
- return file_get_contents('http://mojotrollz.eu/web/webcraft/api.php?call=billing&action=bill&token='.$token.'&ID='.$billid);}
-
- public static function html_li_menu(){return '
Rechnungen';}
- public static function right_public(){return false;}
- public static function right_right(){return \SYSTEM\SECURITY\Security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI);}
- public static function sai_mod_saimod_webcraft_billing_satelite_flag_js(){
- return \SYSTEM\LOG\JsonResult::toString(
- array( \SYSTEM\WEBPATH(new PSAI(),'saimod_webcraft_billing_satelite/saimod_webcraft_billing_satelite.js')));}
- public static function sai_mod_saimod_webcraft_billing_satelite_flag_css(){
- return \SYSTEM\LOG\JsonResult::toString(
- array( \SYSTEM\WEBPATH(new PSAI(),'saimod_webcraft_billing_satelite/saimod_webcraft_billing_satelite.css')));}
-
-}
diff --git a/danube/sai/saimod_webcraft_billing_satelite/saimod_webcraft_billing_satelite.tpl b/danube/sai/saimod_webcraft_billing_satelite/saimod_webcraft_billing_satelite.tpl
deleted file mode 100644
index 19c9124..0000000
--- a/danube/sai/saimod_webcraft_billing_satelite/saimod_webcraft_billing_satelite.tpl
+++ /dev/null
@@ -1,66 +0,0 @@
-Verwaltung
-
-
-
-
-
-
-
- | Rechnungsnummer |
- Projekt |
- Datum |
- PDF |
- Betrag |
- Bezahlt am |
-
- ${content_billing}
-
-
-
-
-
- | ID |
- Nutzer |
- Firma |
- seit |
- URL |
- Serverpfad |
- token |
-
- ${content_project}
-
-
-
-
-
- | Nutzer ID |
- ${ID} |
-
-
- | Firma |
- ${company} |
-
-
- | Vorname |
- ${name} |
-
-
- | Nachname |
- ${name_last} |
-
-
- | Addresse |
- ${address} |
-
-
- | Beigetreten |
- ${join} |
-
-
-
-
-
diff --git a/danube/sai/saimod_webcraft_billing_satelite/saimod_webcraft_billing_satelite_content_billing.tpl b/danube/sai/saimod_webcraft_billing_satelite/saimod_webcraft_billing_satelite_content_billing.tpl
deleted file mode 100644
index db4cc28..0000000
--- a/danube/sai/saimod_webcraft_billing_satelite/saimod_webcraft_billing_satelite_content_billing.tpl
+++ /dev/null
@@ -1,8 +0,0 @@
-
- | ${ID} |
- ${project_name} |
- ${date} |
- PDF |
- ${balance} € |
- ${payed_date} |
-
\ No newline at end of file
diff --git a/danube/sai/saimod_webcraft_billing_satelite/saimod_webcraft_billing_satelite_content_project.tpl b/danube/sai/saimod_webcraft_billing_satelite/saimod_webcraft_billing_satelite_content_project.tpl
deleted file mode 100644
index e05372f..0000000
--- a/danube/sai/saimod_webcraft_billing_satelite/saimod_webcraft_billing_satelite_content_project.tpl
+++ /dev/null
@@ -1,9 +0,0 @@
-
- | ${ID} |
- ${customer_company}${customer_name} ${customer_name_last} |
- ${name} |
- ${date} |
- ${url} |
- ${path} |
- ${token} |
-
\ No newline at end of file
diff --git a/danube/sai/saimod_webcraft_billing_satelite/sql/webcraft_billing_satelite_api.sql b/danube/sai/saimod_webcraft_billing_satelite/sql/webcraft_billing_satelite_api.sql
deleted file mode 100644
index 464c8f6..0000000
--- a/danube/sai/saimod_webcraft_billing_satelite/sql/webcraft_billing_satelite_api.sql
+++ /dev/null
@@ -1,2 +0,0 @@
-INSERT INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (5100, 42, 0, 0, 'saimod_webcraft_billing_satelite', 'action', NULL);
-INSERT INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (5101, 42, 2, 5100, 'getpdf', 'billid', 'UINT');
\ No newline at end of file