<?php require_once $_SERVER["DOCUMENT_ROOT"] . "/php/init.php"; Security::demand(ADMIN); $smarty = new AdminSmarty(); $forraVeckan_slut = date("Y-m-d H:i:s", strtotime("last sunday 23.59.59")); $forraVeckan_start = date("Y-m-d H:i:s", strtotime($forraVeckan_slut) - 60 * 60 * 24 * 7); $forraVeckan_slut_nice = date("Y-m-d", strtotime("last sunday 23.59.59")); $forraVeckan_start_nice = date("Y-m-d", strtotime($forraVeckan_slut) - 59 * 60 * 24 * 7); $steg = array(); for ($i = 1; $i <= 700; $i++) { $steg[] = $i * 1000; } $smarty->assign('steg', $steg); $antalMedlemmar = Medlem::getAntalMedlemmar(); $antal = array(); for ($i = 1; $i <= $antalMedlemmar; $i++) { $antal[] = $i; } $smarty->assign('antalMedlemmar', $antal); $percent = array(); $percentTimes = array(); for ($i = 0; $i <= 99; $i++) { $percent[] = $i; $percentTimes[] = '0.' . $i; } $percent[] = 100; $percentTimes[] = 1; $smarty->assign('percent', $percent); $smarty->assign('percentTimes', $percentTimes); $dates = array();