File "data_view.php"

Full path: /www/beacon/data_view.php
File size: 2.26 KiB (2310 bytes)
MIME-type: text/html
Charset: utf-8

Download   Open   Back

<!DOCTYPE html>
<html lang="ja">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-cache">
    <title>ビーコンデータ</title>
    <!-- css -->
    <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
    <link href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css" rel="stylesheet" crossorigin="anonymous">
    <link href="https://use.fontawesome.com/releases/v5.0.6/css/all.css" rel="stylesheet">
    <!-- page org style -->
    <link href="./style/basic2.css" rel="stylesheet">
  </head>

  <body>


<?php //print date("H:i:s",time()) ."(テスト表示用)"; ?>
	
    <!-- Main Contents -->
    <main>
      <div class="container-fluid">
        <!-- page header -->
        <div class="row mb-2">
          <div class="col-12">
            <div class="title p-2 border rounded text-center"><FONT SIZE='6'>ビーコンデータ</FONT></div>
          </div>
        </div>

		<?php
		//現在のフォルダ名をIDとして使用
		$path = explode("/" ,getcwd());
		$ct = count($path) -1;
		$id =1;

		$imgFileName = "view_map.php?id=".$id;
		print "<SCRIPT LANGUAGE='JavaScript'>";
		print "function RefreshImg(URL_,id)";
		print "{";
		print "console.log(" .URL_ .");";
		print "uniq = new Date();";
		print "uniq = \"?\"+ \"id=\" + id +\"&\" +uniq.getTime();";
		print "newImage = document.imgToLoad.src;";
		print "index = newImage.indexOf(\"?\", 0);";
		print "		    if (index > 0)";
		print "		        {";
		print "		            newImage = newImage.substr(0, index);";
		print "		        }";
		print "		        document.imgToLoad.src = 'view_map.php'+uniq;";
		print "}";
		print "</SCRIPT>";
		print "</head>";

//		print "<div style='height:710px;  overflow-y:scroll;'>";
		print "<IMG SRC='" .$imgFileName ."' align='top' ALT='LiveCamera' name=imgToLoad onload='setTimeout(\"RefreshImg(0,$id)\", 500)' onerror='setTimeout(\"RefreshImg(0,$id)\", 500)' onabort='setTimeout(\"RefreshImg(0,$id)\", 500)' id=imgToLoad naturalsizeflag=0>";
//		print "</div>";
		?>
    </main>
  </body>
</html>

PHP File Manager