Esempio n. 1
0
             $monsel2 = 12;
         } else {
             $monsel2 = $monsel[1];
         }
         if ($yearsel[1] == "null") {
             $yearsel2 = date("Y") + 1;
         } else {
             $yearsel2 = $yearsel[1];
         }
         $fdate = $yearsel1 . "-" . $monsel1 . "-" . $daysel1 . " 00:00:00";
         $tdate = $yearsel2 . "-" . $monsel2 . "-" . $daysel2 . " 23:59:59";
         $head = "Статистика по сессиям за период " . $daysel1 . "/" . $monsel1 . "/" . $yearsel1 . " - " . $daysel2 . "/" . $monsel2 . "/" . $yearsel2;
         if (isset($user) && $user != "") {
             $accts = $BILL->GetUserSessions($user, $fdate, $tdate);
         } elseif ($groupby == "users") {
             $accts = $BILL->GetUsersSessions($fdate, $tdate);
         } else {
             $accts = $BILL->GetSessions($fdate, $tdate);
         }
     } else {
         $head = "Статистика по сессиям пользователей";
     }
     break;
 case "tarifs":
     if ($mod == "show") {
         if (!isset($tarif)) {
             $tarif = "";
         }
         if ($daysel[0] == "null") {
             $daysel1 = 1;
         } else {