mirror of
http://172.16.0.230/r/SIF/TowerOptoSifAndSpectral.git
synced 2025-10-19 03:49:42 +08:00
html
This commit is contained in:
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>';
|
Reference in New Issue
Block a user