This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var orgeinheitenSortieren = { | |
init: function () { | |
orgeinheitenSortieren.start(); | |
}, | |
start: function () { | |
document.addEventListener('DOMContentLoaded', () => { | |
// Holt das Element für die Auswahl | |
var elementId = orgeinheitenSortieren.getElement(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Border-Style</title> | |
<style> | |
.border { | |
border: 2px solid black; | |
border-radius: 10px; | |
padding: 5px; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Charts { | |
private string $_domId = ""; | |
private string[] $_errorMessages = []; | |
const _x_AJAX_API = "https://www.gstatic.com/charts/loader.js"; | |
const _x_DEFAULT_CHART = 'PieChart'; | |
const _x_DEFAULT_ANIMATION_DURATION = 1000; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* | |
*/ | |
function aktualisiereStatusWennDatumGroesser() { | |
// update, vergleichen, insert | |
$sql = "UPDATE table1 AS t1 | |
JOIN table2 AS t2 | |
ON t1.guid = t2.guid |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* 2-Dimensonales Array miteinander vergleichen. | |
* Vergleicht Werte von Arrays und gibt ein Array zurück, das alle Werte aus | |
* dem ersten Array enthält, die in den anderen Arrays nicht vorhanden sind. | |
* | |
* @param array $array1 | |
* @param array $array2 | |
* @return array - Differenz zwischen beiden Arrays |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @example | |
* $now = '2024-04-17'; | |
* $maximum = '2025-04-17'; // one year from $now | |
* $dates = getDates('2024-04-18', null, 1); // Get dates one year from 2024-04-18 daily till $maximum | |
* $dates = getDates('2024-07-17', null, 2); // Get dates one year from 2024-07-17 weekly till $maximum | |
* $dates = getDates('2024-02-16', '2025-02-16', 3); // Get dates from now to 2025-02-16 monthly | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Klasse zur sicheren Verarbeitung von HTML-Text. | |
* | |
* @php >= v8.0 | |
* | |
* @todo optionale parameter setzen | |
*/ | |
class HTMLSanitizer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Benutzerdefinierte Checkbox</title> | |
<style> | |
.custom-checkbox { | |
position: relative; | |
display: inline-block; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Konfiguration | |
$clientId = 'DEINE_CLIENT_ID'; | |
$clientSecret = 'DEIN_CLIENT_GEHEIMNIS'; | |
$tenantId = 'DEINE_MIETER_ID'; | |
$resource = 'https://graph.microsoft.com/'; | |
$tokenEndpoint = 'https://login.microsoftonline.com/' . $tenantId . '/oauth2/token'; | |
// Zugriffstoken abrufen |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require 'vendor/autoload.php'; // Pfade entsprechend anpassen | |
use PhpOffice\PhpSpreadsheet\IOFactory; | |
class ExcelReader | |
{ | |
private $excelFile; | |
private $worksheets = []; | |