*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
/**
* \file tools/querschnittsrechner.php
* \ingroup elektroplanung
* \brief Leitungsquerschnitt-Rechner nach DIN VDE 0100-520 und DIN VDE 0298-4
*/
// Load Dolibarr environment
$res = 0;
if (!$res && file_exists("../../main.inc.php")) {
$res = @include "../../main.inc.php";
}
if (!$res && file_exists("../../../main.inc.php")) {
$res = @include "../../../main.inc.php";
}
if (!$res) {
die("Include of main fails");
}
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/class/html.form.class.php';
// Load translation files
$langs->loadLangs(array("elektroplanung@elektroplanung"));
// Security check
if (!isModEnabled('elektroplanung')) {
accessforbidden('Module not enabled');
}
if (!$user->hasRight('elektroplanung', 'tools', 'read')) {
accessforbidden('Permission denied');
}
$form = new Form($db);
// Page header
llxHeader('', $langs->trans("ElektroplanungQuerschnittsrechner"), '', '', 0, 0, array(
'https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js'
), array(
'/elektroplanung/css/elektroplanung.css'
), '', 'mod-elektroplanung page-querschnittsrechner');
// Viewport für Mobile
print '';
print load_fiche_titre($langs->trans("ElektroplanungQuerschnittsrechner"), '', 'fa-bolt');
print '