File "ri_data_send.php"

Full path: /www/ri/csv/ri_data_send.php
File size: 3.7 KiB (3790 bytes)
MIME-type: text/x-php
Charset: utf-8

Download   Open   Back

<?php
//===============================================
//	CommonUtilities
//	備考		:	
//	更新		:	2012/11/29 KMK-Teraoka
//===============================================
$SCRIPT_TITLE = "RIデータ送信";
$PENTA_OCEAN = "五洋建設株式会社";
$TAIL_PENTA_OCEAN = "penta-ocean";
$imgFileName = "view_map.php";

//===============================================
//	HTML-HEAD-
//	備考		:	
//	更新		:	2012/10/18 KMK-Teraoka
//===============================================
print "<html>";
print "<head>";
print "<meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\">";
//print "<meta http-equiv=\"Refresh\" content=\"6000\">";
print "<title>". $SCRIPT_TITLE. "</title>";
print "<style type=\"text/css\">";
print "html {font-size: 80%; font-family:\"MS ゴシック\"; overflow-y:scroll;}";
print "table {font-size: 100%; font-family:\"MS ゴシック\"; text-align:center;}";
print "input {font-size: 100%; font-family:\"MS ゴシック\";}";
print "select {font-size: 100%; font-family:\"MS ゴシック\";}";
print "pre {font-size: 100%; font-family:\"MS ゴシック\";}";
print "</style>";

print "<SCRIPT LANGUAGE='JavaScript'>";
print "function RefreshImg()";
print "{";
print "uniq = new Date();";
print "uniq = \"?\"+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>";

//===============================================
//	HTML-BODY部開始-
//	備考		:	
//	更新		:	2012/10/18 KMK-Teraoka
//===============================================
print "<body>";

EXTRACT($_GET);

if($_GET['f'])
{
	$fp_sf = fopen("sendflag.txt","w");
	fwrite($fp_sf,1);
	fclose($fp_sf);
//	print "送信ON";
}



//print "<table border=\"1\" cellspacing=\"0\" cellpadding=\"3\">";
//print "<tr bgcolor=\"#FFFFFF\">";
//print "<td >";
print "<div align='center'>";
print "<IMG SRC='" .$imgFileName ."' usemap='#map_1' ALT='LiveCamera' name=imgToLoad onload='setTimeout(\"RefreshImg()\", 1000)' onerror='setTimeout(\"RefreshImg()\", 5000)' onabort='setTimeout(\"RefreshImg()\", 10000)' id=imgToLoad naturalsizeflag=0  \">";
//print "<IMG SRC='" .$imgFileName ."' ALT='LiveCamera' name=imgToLoad onload='setTimeout(\"RefreshImg()\", 3000)' onerror='setTimeout(\"RefreshImg()\", 5000)' onabort='setTimeout(\"RefreshImg()\", 10000)' id=imgToLoad naturalsizeflag=0>";
//	print "<IMG SRC='" .$imgFileName ."?t=" .time() ."' ALT='LiveCamera' name=imgToLoad onload='setTimeout(\"RefreshImg()\", 3000)' onerror='setTimeout(\"RefreshImg()\", 5000)' onabort='setTimeout(\"RefreshImg()\", 10000)' id=imgToLoad naturalsizeflag=0  width=\"755\" height=\"455\">";
//print "</td>";
//print "</tr>";
//print "</table>";
print "</div>";


//$sendflag = file_get_contents("sendflag.txt");
$send_url = "http://penta-02.ptgw.net/ri/ri_data_send.php?f=1";
//$send_url = "http://i-pentacol.com/i-pentacol/ri/data/ri_data_send.php?f=1";


print "<map name='map_1'>";
print "<area shape='rect'";
print "coords='0,300,500,850'";
print "href='" .$send_url ."' alt='データ送信'>";

/*
print "<area shape='circle'";
print "coords='130,50,30'";
print "href='link_circle.html' alt='円形' target='_blank'>";
print "<area shape='poly'";
print "coords='210,20,180,80,240,80'";
print "href='link_poly1.html' alt='三角形' target='_blank'>";
print "<area shape='poly'";
print "coords='260,35,260,65,300,65,300,80,330,50,300,20,300,35'";
print "href='link_poly2.html' alt='矢印' target='_blank'>";
*/
print "</map>";
print "</div>";

print "</body>";
print "</html>";

?>

PHP File Manager