mirror of
http://172.16.0.230/r/SIF/TowerOptoSifAndSpectral.git
synced 2025-10-18 19:39:43 +08:00
添加了html
This commit is contained in:
108
html/config.html
Normal file
108
html/config.html
Normal file
@ -0,0 +1,108 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Title</title>
|
||||
<link rel="stylesheet" type="text/css" href="/css/config.css">
|
||||
</head>
|
||||
<body class="body" >
|
||||
<form action="/php/config.php" method="POST" >
|
||||
<div style="margin-left:auto;margin-right:auto;width:80%;" >
|
||||
<div>
|
||||
<h1 class="title1">Sif And Spectral</h1>
|
||||
</div>
|
||||
<div class="mainframe" >
|
||||
<table class="linetb">
|
||||
<tr>
|
||||
<td><h2>Control Setting</h2></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div align="center">
|
||||
<table class="linetb" >
|
||||
<tr style="width:80%">
|
||||
<td style="width:33%">Begin Time
|
||||
<input type="time" id="BeginTime" name="BeginTime" class="TextInput"></td>
|
||||
<td style="width:33%">Interval Time
|
||||
<input type="number" id="IntervalTime" name="IntervalTime" class="TextInput"></td>
|
||||
<td style="width:33%">End Time
|
||||
<input type="time" id="EndTime" class="TextInput" name="EndTime"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<p></p>
|
||||
<p></p>
|
||||
<div>
|
||||
<h2>Data Header</h2>
|
||||
</div>
|
||||
<div align="center">
|
||||
<table style="width:100%">
|
||||
<tr>
|
||||
<td>地点 <input class="TextInput" name="Location" id="Location"></td>
|
||||
<td>GPS_Longtitude <input type="text" class="TextInput" name="GPS_Longtitude" id="GPS_Longtitude"></td>
|
||||
<td>GPS_Latitude <input type="text" class="TextInput" name="GPS_Latitude" id="GPS_Latitude"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>GPS_Atitude <input type="text" class="TextInput" name="GPS_Atitude" id="GPS_Atitude"> </td>
|
||||
<td>Is North Earth <input type="checkbox" name="GPS_North" id="GPS_North"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<p></p>
|
||||
<table style="width:100%">
|
||||
<tr>
|
||||
<td>安装时间 <input type="date" name="InstallTime" id="InstallTime"></td>
|
||||
<td>ISIF定标时间 <input type="date" name="ISIFCalibrationTime" id="ISIFCalibrationTime"> </td>
|
||||
<td>IS1定标时间 <input type="date" name="IS1CalibrationTime" id="IS1CalibrationTime"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>设备维护人员 <input type="text" class="TextInput" name="NameOfMaintenance" id="NameOfMaintenance"></td>
|
||||
<td>维护人员电话 <input type="number" name="PhoneOfMaintenance" id="PhoneOfMaintenance" style="width: 100px" ></td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td>远程资源用户ID <input type="text" name="DownloadUserID" class="TextInput" id="DownloadUserID"></td>
|
||||
<td>定标文件下载路径<input type="text" name="DownlaodAddress" id="DownlaodAddress"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div>
|
||||
<h2>ISIF设备信息</h2>
|
||||
<table style="width:100%">
|
||||
<tr>
|
||||
<td>向上定标文件名 <input type="text" id="SIFupCaliFile" name="SIFupCaliFile"></td>
|
||||
|
||||
<td>向下定标文件名1 <input type="text" id="SIFdownCaliFile1" name="SIFdownCaliFile1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>向下定标文件名2 <input type="text" id="SIFdownCaliFile2" name="SIFdownCaliFile2"></td>
|
||||
<td>向下定标文件名3 <input type="text" id="SIFdownCaliFile3" name="SIFdownCaliFile3"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
<div>
|
||||
<h2>IS1设备信息</h2>
|
||||
<table style="width:100%">
|
||||
<tr>
|
||||
<td>向上定标文件名 <input type="text" id="IS1upCaliFile" name="IS1upCaliFile"></td>
|
||||
|
||||
<td>向下定标文件名1 <input type="text" id="IS1downCaliFile1" name="IS1downCaliFile1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>向下定标文件名2 <input type="text" id="IS1downCaliFile2" name="IS1downCaliFile2"></td>
|
||||
<td>向下定标文件名3 <input type="text" id="IS1downCaliFile3" name="IS1downCaliFile3"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h2></h2>
|
||||
<input type="submit" value="提交" >
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<script type="text/javascript" src="/javascript/comment.js"></script>
|
||||
<script type="text/javascript" src="/javascript/config.js"></script>
|
||||
</body>
|
||||
</html>
|
32
html/css/config.css
Normal file
32
html/css/config.css
Normal file
@ -0,0 +1,32 @@
|
||||
.title1 {
|
||||
align-content: center;
|
||||
font-style: normal;
|
||||
font-weight: 900;
|
||||
}
|
||||
h2 {
|
||||
width: 100%;
|
||||
border-bottom: 1px dashed rgba(0, 0, 0, 1.00);
|
||||
}
|
||||
.linetb {
|
||||
width: 100%;
|
||||
}
|
||||
.TextInput{
|
||||
width: 80px;
|
||||
}
|
||||
body{
|
||||
text-align:center;
|
||||
margin-left:auto;
|
||||
margin-right:auto;
|
||||
}
|
||||
h2 {
|
||||
text-align: left;
|
||||
margin-left: 0px;
|
||||
margin-top: 5px;
|
||||
margin-right: 0px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
.mainframe {
|
||||
border: 1px ridge rgba(0, 0, 0, 1.00);
|
||||
|
||||
|
||||
}
|
69
html/javascript/comment.js
Normal file
69
html/javascript/comment.js
Normal file
@ -0,0 +1,69 @@
|
||||
function ajaxObject() {
|
||||
var xmlHttp;
|
||||
try {
|
||||
// Firefox, Opera 8.0+, Safari
|
||||
xmlHttp = new XMLHttpRequest();
|
||||
}
|
||||
catch (e) {
|
||||
// Internet Explorer
|
||||
try {
|
||||
xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
|
||||
} catch (e) {
|
||||
try {
|
||||
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
|
||||
} catch (e) {
|
||||
alert("您的浏览器不支持AJAX!");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return xmlHttp;
|
||||
}
|
||||
function httppost ( url , data , fnSucceed ){// fnFail , fnLoading ) {
|
||||
var ajax = ajaxObject();
|
||||
ajax.open( "post" , url , true );
|
||||
// ajax.setRequestHeader( "Content-Type" , "application/octet-binary" );
|
||||
ajax.onreadystatechange = function () {
|
||||
if( ajax.readyState == 4 ) {
|
||||
if( ajax.status == 200 ) {
|
||||
|
||||
fnSucceed( ajax.response);
|
||||
|
||||
//ajax.response.size();
|
||||
}
|
||||
else {
|
||||
// fnFail( "HTTP请求错误!错误码:"+ajax.status );
|
||||
}
|
||||
}
|
||||
else {
|
||||
//fnLoading();
|
||||
}
|
||||
}
|
||||
// ajax.responseType="arraybuffer";
|
||||
ajax.send( data );
|
||||
|
||||
}
|
||||
function httpget ( url , data , fnSucceed ){// fnFail , fnLoading ) {
|
||||
var ajax = ajaxObject();
|
||||
ajax.open( "get" , url , true );
|
||||
// ajax.setRequestHeader( "Content-Type" , "application/octet-binary" );
|
||||
ajax.onreadystatechange = function () {
|
||||
if( ajax.readyState == 4 ) {
|
||||
if( ajax.status == 200 ) {
|
||||
|
||||
fnSucceed( ajax.response);
|
||||
|
||||
//ajax.response.size();
|
||||
}
|
||||
else {
|
||||
// fnFail( "HTTP请求错误!错误码:"+ajax.status );
|
||||
}
|
||||
}
|
||||
else {
|
||||
//fnLoading();
|
||||
}
|
||||
}
|
||||
// ajax.responseType="arraybuffer";
|
||||
ajax.send( data );
|
||||
|
||||
}
|
25
html/javascript/config.js
Normal file
25
html/javascript/config.js
Normal file
@ -0,0 +1,25 @@
|
||||
function getConfigRentrun(reson)
|
||||
{
|
||||
var aa=JSON.parse(reson);
|
||||
for (var obj in aa)
|
||||
{
|
||||
var temmp=document.getElementById(obj);
|
||||
temmp.value=aa[obj];
|
||||
if (obj=="GPS_North")
|
||||
{
|
||||
if (aa[obj]=="on")
|
||||
{
|
||||
temmp.checked=true;
|
||||
}else {
|
||||
temmp.checked=false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
var datad;
|
||||
function init()
|
||||
{
|
||||
httpget("/php/GetConfig.php",datad,getConfigRentrun)
|
||||
}
|
||||
window.onload=init;
|
4
html/php/GetConfig.php
Normal file
4
html/php/GetConfig.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
header("Content-type:application/json");
|
||||
$a=file_get_contents("config.json");
|
||||
echo $a;
|
1
html/php/config.json
Normal file
1
html/php/config.json
Normal file
@ -0,0 +1 @@
|
||||
{"BeginTime":"16:43","IntervalTime":"500","EndTime":"16:45","Location":"beijing","GPS_Longtitude":"117","GPS_Latitude":"118","GPS_Atitude":"50","GPS_North":"on","InstallTime":"2021-11-18","ISIFCalibrationTime":"2021-11-26","IS1CalibrationTime":"2021-11-19","NameOfMaintenance":"renlixin","PhoneOfMaintenance":"110110110","DownloadUserID":"newuser","DownlaodAddress":"http:\/\/www.iris-rs.cn","SIFupCaliFile":"dat1","SIFdownCaliFile1":"dat2","SIFdownCaliFile2":"dat2","SIFdownCaliFile3":"dat3","IS1upCaliFile":"dat1","IS1downCaliFile1":"sdaf","IS1downCaliFile2":"dat2","IS1downCaliFile3":"asdf"}
|
5
html/php/config.php
Normal file
5
html/php/config.php
Normal file
@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
|
||||
file_put_contents("config.json",json_encode($_POST));
|
||||
echo "提交成功";
|
Reference in New Issue
Block a user