From 108525534c28013cfe1897c30e4565f9893f3766 Mon Sep 17 00:00:00 2001 From: Minteck Date: Mon, 10 Oct 2022 20:51:39 +0200 Subject: Update --- includes/planner.inc | 1025 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 1025 insertions(+) create mode 100644 includes/planner.inc (limited to 'includes/planner.inc') diff --git a/includes/planner.inc b/includes/planner.inc new file mode 100644 index 0000000..da25770 --- /dev/null +++ b/includes/planner.inc @@ -0,0 +1,1025 @@ + $day) { + foreach ($day as $index => $fronter) { + if (is_string($fronter)) { + $cloudburst[$id][$index] = [$fronter]; + } else if (is_array($fronter)) { + if (count($fronter) < 2) { + if (!isset($cloudburst[$id][$index][0])) $cloudburst[$id][$index][0] = null; + $cloudburst[$id][$index][1] = null; + } else if (count($fronter) > 2) { + $array = []; + + if (isset($cloudburst[$id][$index][0])) { + $array[0] = $cloudburst[$id][$index][0]; + } else { + $array[0] = null; + } + + if (isset($cloudburst[$id][$index][1])) { + $array[1] = $cloudburst[$id][$index][1]; + } else { + $array[1] = null; + } + + $cloudburst[$id][$index] = $array; + } + } + } +} + +foreach ($raindrops as $id => $day) { + foreach ($day as $index => $fronter) { + if (is_string($fronter)) { + $raindrops[$id][$index] = [$fronter]; + } else if (is_array($fronter)) { + if (count($fronter) < 2) { + if (!isset($raindrops[$id][$index][0])) $raindrops[$id][$index][0] = null; + $raindrops[$id][$index][1] = null; + } else if (count($fronter) > 2) { + $array = []; + + if (isset($raindrops[$id][$index][0])) { + $array[0] = $raindrops[$id][$index][0]; + } else { + $array[0] = null; + } + + if (isset($raindrops[$id][$index][1])) { + $array[1] = $raindrops[$id][$index][1]; + } else { + $array[1] = null; + } + + $raindrops[$id][$index] = $array; + } + } + } +} + +function day($display, $diff): void { if ($diff < 0) $disabled = true; else $disabled = false; global $cloudburst; global $raindrops; ?> + + style="opacity: .75; pointer-events: none;"> + + + + style="opacity: .75; pointer-events: none;"> + Cloudburst System + Raindrops System + + + style="opacity: .75; pointer-events: none;"> + + + + + colspan="3" colspan="2"> + + + Multiple merged membersMerge + + " style="width:24px;"> + + + + + + + + + + + + + Multiple merged membersMerge + + " style="width:24px;"> + + + + + + + + Add new fronter + + + + + + + + + + + colspan="3" colspan="2"> + + Multiple merged membersMerge + + " style="width:24px;"> + + + + + + + + + + + + + Multiple merged membersMerge + + " style="width:24px;"> + + + + + + + + Add new fronter + + + + + + + + style="opacity: .75; pointer-events: none;"> + + 0 && count($dayRaindrops) > 0): ?> + will sleep with + + Unable to calculate who will sleep with who + + + + + + +

Front planner

+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + \ No newline at end of file -- cgit