28 | 05 | 2017
Content

Department 3 "Monitoring Systems and Data Management"

Count of the Measurements

 Count of the measurements for last day

<?php

$fl = "/webdata/meteo/hymet_tbls/hymet_info_RECORD.dat"; $fh = fopen($fl,"r");

$property_id=23;$unit_id='';

$fh = fopen($fl,"r");

$k = 0; echo '<table align="center" border="0"><tr><B>';

while (!feof($fh)){

  $str = fgets($fh);

  if (strCmp(trim($str), ";") == 0) { echo '</tr><tr>'; $k = 1; }

  else {

    echo '<td width="12px"> </td><td>';

    if ($k == 0) { echo '<B>';

     if(strlen($str)==5){ printf('<a href="http://178.217.169.232/sdss/chart_by_station.php?station_name='.$str.'&property_id='.$property_id.'&unit_id='.$unit_id.'" target="_blank">'); }

}

    echo '&nbsp;&nbsp;&nbsp;';

    printf ("$str");

    if ($k == 0) {

  if(strlen($str)==5){ printf("</a>"); }

   echo '</B>';}

    echo '</td>';

  }

}

echo '</tr></table>'; fclose($fh);

?>

 

Joomla25 Appliance - Powered by TurnKey Linux