Files
TowerOptoSifAndSpectral/html/php/GetIniFile.php

18 lines
550 B
PHP
Raw Permalink Normal View History

2021-12-23 14:09:37 +08:00
<?php
$a=parse_ini_file("/home/data/Setting/DeviceSettings.ini",true);
2022-01-12 14:14:42 +08:00
$numberofsensor=intval($a['DEVICE INFO']['TotalSpectrometer']);
2021-12-23 14:09:37 +08:00
$b=array_values($a);
2022-01-12 14:14:42 +08:00
2021-12-23 14:09:37 +08:00
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>';