Viewing File server/web/report.php of 1.17.2a
|
"; 179: echo " Custom Period"; 180: echo " | ";
181: echo "
| |||||||||||||||||||||
"; 266: echo "Pre-defined "; 267: echo " | ";
268: $now=time();
269: /*
270: // td_day mon yr
271:
272: // mktime h mi s mo d y
273:
274: // last 30 days
275: $fx=mktime(0,0,0,$td_mon,$td_day,$td_yr);
276: $sx=$fx-(60*60*24*30);
277: echo "";
278: echo "Last 30 Days";
279: echo " ";
280:
281: // last 28 days
282: $fx=mktime(0,0,0,$td_mon,$td_day,$td_yr);
283: $sx=$fx-(60*60*24*28);
284: echo "";
285: echo "Last 28 Days";
286: echo " ";
287:
288: // last calendar month
289: $prev_mon=$td_mon-1;
290: $prev_yr=$td_yr;
291: if ($prev_mon<1)
292: {
293: $prev_mon=12;
294: $prev_yr--;
295: }
296: $fx=mktime(0,0,0,$td_mon,1,$td_yr);
297: $sx=mktime(0,0,0,$prev_mon,1,$prev_yr);
298: echo "";
299: echo "Previous Month";
300: echo " ";
301:
302:
303: // this month
304: $sx=mktime(0,0,0,$td_mon,1,$td_yr);
305: $sx=$now;
306: echo "";
307: echo "This Month";
308: echo " ";
309: */
310:
311: echo " Last 30 Days "; 312: echo " Last 28 Days "; 313: echo " Last Calendar Month "; 314: echo " This Month "; 315: 316: echo " |
".$passc." passed out of ".$tested." valid tests"; 601: echo " | "; 602: echo np($tested,$passc); 603: echo " | |
".$notpass." did not pass out of ".$tested." valid tests"; 608: echo " | "; 609: echo np($tested,$notpass); 610: echo " | |
| ||
".$warnc." generated warnings out of ".$tested." valid tests"; 615: echo " | "; 616: echo np($tested,$warnc); 617: echo " | |
".$failc." generated failures out of ".$tested." valid tests"; 620: echo " | "; 621: echo np($tested,$failc); 622: echo " | |
".$warnc." generated warnings out of ".$notpass." unpassed tests"; 625: echo " | "; 626: echo np($notpass,$warnc); 627: echo " | |
".$failc." generated failures out of ".$notpass." unpassed tests"; 630: echo " | "; 631: echo np($notpass,$failc); 632: echo " | |
| ||
the average test value returned by passed tests was | "; 637: echo ""; 638: if ($passc<=0) echo "n/a"; 639: else if ($levelt==0) echo "0"; 640: else echo round($levelt/$passc,4); 641: if ($tunit!="") echo " ".$tunit; 642: echo " | |
| ||
".$untested." tests were untested (of ".$utt.") | "; 648: echo ""; 649: echo np($utt,$untested); 650: echo " | |
of these (".$utt.") ".$npt." did not pass | "; 654: echo ""; 655: echo np($utt,$npt); 656: echo " | |
of these (".$utt.") ".$passc." did pass | "; 659: echo ""; 660: echo np($utt,$passc); 661: echo " | |
| ||
".$testc." records of which ".$tested." returned a valid alert level"; 666: echo " | "; 667: echo np($testc,$tested); 668: echo " | |
| ||
First Test Record"; 681: echo " | "; 682: echo nicedt($firstx); 683: echo " | |
Last Test Record"; 686: echo " | "; 687: echo nicedt($lastx); 688: echo " | |
| ||
Service Availability"; 692: echo " | "; 693: // Service level is tested-failed 694: echo np($tested,$tested-$failc); 695: echo " |