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:
2
.gitignore
vendored
2
.gitignore
vendored
@ -7,3 +7,5 @@
|
|||||||
/build_d
|
/build_d
|
||||||
/html/.idea
|
/html/.idea
|
||||||
/out
|
/out
|
||||||
|
/cmake-build-debug/
|
||||||
|
/.idea
|
||||||
|
@ -14,17 +14,19 @@
|
|||||||
<div class="mainframe" >
|
<div class="mainframe" >
|
||||||
<table class="linetb">
|
<table class="linetb">
|
||||||
<tr>
|
<tr>
|
||||||
<td><h2>Control Setting</h2></td>
|
<td><h2>控制设置</h2></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<table class="linetb" >
|
<table class="linetb" >
|
||||||
|
|
||||||
<tr style="width:80%">
|
<tr style="width:80%">
|
||||||
<td style="width:33%">Begin Time
|
|
||||||
|
<td style="width:33%">开始时间
|
||||||
<input type="time" id="BeginTime" name="BeginTime" class="TextInput"></td>
|
<input type="time" id="BeginTime" name="BeginTime" class="TextInput"></td>
|
||||||
<td style="width:33%">Interval Time
|
<td style="width:33%">时间间隔
|
||||||
<input type="number" id="IntervalTime" name="IntervalTime" class="TextInput"></td>
|
<input type="number" id="IntervalTime" name="IntervalTime" class="TextInput"></td>
|
||||||
<td style="width:33%">End Time
|
<td style="width:33%">停止时间
|
||||||
<input type="time" id="EndTime" class="TextInput" name="EndTime"></td>
|
<input type="time" id="EndTime" class="TextInput" name="EndTime"></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@ -32,18 +34,21 @@
|
|||||||
<p></p>
|
<p></p>
|
||||||
<p></p>
|
<p></p>
|
||||||
<div>
|
<div>
|
||||||
<h2>Data Header</h2>
|
<h2>描述信息</h2>
|
||||||
</div>
|
</div>
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<table style="width:100%">
|
<table style="width:100%">
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
|
<td>设备序列号 <input class="TextInput" id="Dev_SN" name="Dev_SN" value="1000000"></td>
|
||||||
<td>地点 <input class="TextInput" name="Location" id="Location"></td>
|
<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>北半球 <input type="checkbox" name="GPS_North" id="GPS_North"> </td>
|
||||||
<td>GPS_Latitude <input type="text" class="TextInput" name="GPS_Latitude" id="GPS_Latitude"> </td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>GPS_Atitude <input type="text" class="TextInput" name="GPS_Atitude" id="GPS_Atitude"> </td>
|
<td>GPS经度 <input type="text" class="TextInput" name="GPS_Longtitude" id="GPS_Longtitude"></td>
|
||||||
<td>Is North Earth <input type="checkbox" name="GPS_North" id="GPS_North"> </td>
|
<td>GPS经度 <input type="text" class="TextInput" name="GPS_Latitude" id="GPS_Latitude"> </td>
|
||||||
|
<td>GPS高程 <input type="text" class="TextInput" name="GPS_Atitude" id="GPS_Atitude"> </td>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<p></p>
|
<p></p>
|
||||||
@ -64,35 +69,8 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div id="devinfo">
|
||||||
<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>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
@ -17,9 +17,24 @@ function getConfigRentrun(reson)
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
function getDevinfoRetrun(retrun)
|
||||||
|
{
|
||||||
|
var div=document.getElementById('devinfo');
|
||||||
|
div.innerHTML=retrun;
|
||||||
|
init()
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var datad;
|
var datad;
|
||||||
function init()
|
function init()
|
||||||
{
|
{
|
||||||
httpget("/php/GetConfig.php",datad,getConfigRentrun)
|
httpget("/php/GetConfig.php",datad,getConfigRentrun)
|
||||||
|
|
||||||
}
|
}
|
||||||
window.onload=init;
|
|
||||||
|
function getinit()
|
||||||
|
{
|
||||||
|
httpget("/php/GetIniFile.php",datad,getDevinfoRetrun)
|
||||||
|
}
|
||||||
|
window.onload=getinit;
|
||||||
|
16
html/php/GetIniFile.php
Normal file
16
html/php/GetIniFile.php
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<?php
|
||||||
|
$a=parse_ini_file("/home/data/Setting/DeviceSettings.ini",true);
|
||||||
|
|
||||||
|
$numberofsensor=intval($a['DEVICE INFO']['TotalSpectrometer']);
|
||||||
|
$b=array_values($a);
|
||||||
|
echo '<h2>设备信息</h2>';
|
||||||
|
echo '设备数量 '.$numberofsensor.'';
|
||||||
|
echo '<table>';
|
||||||
|
for ($i=0;$i<$numberofsensor;$i++)
|
||||||
|
{
|
||||||
|
echo '<tr>';
|
||||||
|
echo '<td>'.$b[$i+1]['Model'].'_定标文件主名称'.'</td>';
|
||||||
|
echo '<td><input type="text" id="'.$b[$i+1]['Model'].'_CaliFileMainName'.'" name="'.$b[$i+1]['Model'].'_CaliFileMainName'.'"></td>';
|
||||||
|
echo '</tr>';
|
||||||
|
}
|
||||||
|
echo '</table>';
|
1
html/php/GetSata.php
Normal file
1
html/php/GetSata.php
Normal file
@ -0,0 +1 @@
|
|||||||
|
<?php
|
@ -1 +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"}
|
{"BeginTime":"17:49","IntervalTime":"24","EndTime":"18:50","Dev_SN":"1000000","Location":"dasdf","GPS_North":"on","GPS_Longtitude":"123","GPS_Latitude":"123","GPS_Atitude":"50","InstallTime":"2021-12-16","ISIFCalibrationTime":"2021-12-16","IS1CalibrationTime":"2021-12-23","NameOfMaintenance":"123","PhoneOfMaintenance":"123123123","DownloadUserID":"123123","DownlaodAddress":"http:\/\/www.iris-rs.cn","OSIFAlpha_CaliFileMainName":"osifalpha","OSIFBeta_CaliFileMainName":"osifbeta"}
|
Reference in New Issue
Block a user