</strong></td> </tr> <?php while ($drData = pg_fetch_array($dsData)) { $tmpIDA = explode(",", $idUsers); $ifNE = true; for ($ch = 0; $ch < sizeof($tmpIDA); $ch++) { if ($drData["userid"] == $tmpIDA[$ch]) { $ifNE = false; break; } } if ($ifNE) { $idUsers .= $drData["userid"] . ","; } $LastDay = DatetimeFormat(addDay(-1), 'd-m-Y'); $dt = DateTimeFormat(nnull($LastDay, "01-01-1900"), "Y-m-d" . " 00:00:00"); $user = dlookup("select fullname from users where id=" . $drData["userid"]); $desc = nnull($drData["description"], "/"); $act = ""; if (nnull($drData["activity"], "/") != "/") { $actarr = explode("/", $drData["activity"]); if (count($actarr) > 1) { $actarr = array_reverse($actarr); for ($i = 0; $i < count($actarr); $i++) { $act .= " -> " . dic_($actarr[$i]); } } else { $act .= " -> " . dic_($drData["activity"]); } }
$YearOfPrevMonth = $CurrentYear; if ($LastMonth == 0) { $LastMonth = 12; $YearOfPrevMonth = $CurrentYear - 1; } $LastDateOfMonth = cal_days_in_month(CAL_GREGORIAN, $LastMonth, $YearOfPrevMonth); //Kolku dena ima prethodniot mesec $Today = DateTimeFormat(now(), 'd-m-Y'); $LastDay = DatetimeFormat(addDay(-1), 'd-m-Y'); $LastWeek = DatetimeFormat(addDay(-7), 'd-m-Y'); $LastWeek1 = DatetimeFormat(addDay("-" . ($TodayDayOfWeek + 6)), 'd-m-Y'); $startLastMonth = "01-" . leadingZero($LastMonth) . "-" . $CurrentYear; $endLastMonth = $LastDateOfMonth . "-" . leadingZero($LastMonth) . "-" . $CurrentYear; $currentWeek = DatetimeFormat(addDay("-" . ($TodayDayOfWeek + 6) + 7), 'd-m-Y'); $startCurrYear = "01-01-" . $CurrentYear; $Last10 = DatetimeFormat(addDay(-10), 'd-m-Y'); ?> <html> <script type="text/javascript"> lang = '<?php echo $cLang; ?> '; </script> <head> <link rel="stylesheet" type="text/css" href="../style.css"> <link rel="stylesheet" type="text/css" href="./gui.css"> <link rel="stylesheet" type="text/css" href="./timeframe.css"> <link rel="stylesheet" type="text/css" href="../css/ui-lightness/jquery-ui-1.8.14.custom.css"> <script type="text/javascript" src="prototype.js"></script> <script type="text/javascript" src="timeframe.js"></script>