mark last record in table uutinfo as blue

This commit is contained in:
r0n1n7an 2023-11-26 14:22:44 +08:00
parent 3f7ac44875
commit ed4c7515a2
3 changed files with 14 additions and 1 deletions

Binary file not shown.

4
APIServer.log Normal file
View File

@ -0,0 +1,4 @@
2023/11/26 13:55:57.704762 [MSG] Starting Service ...
2023/11/26 13:55:57.705863 [MSG] Starting HTTP Server On Port: 9000
2023/11/26 14:18:51.150028 [MSG] Stopping Service ...
2023/11/26 14:18:51.490959 [MSG] Service Stop.

View File

@ -324,7 +324,16 @@ func (e *EWS) GetUutInfo(cfg cnf.Cfg, logger *log.Logger, host string, addr stri
)
if err == nil {
last = fmt.Sprintf(`<tr><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td></tr>`,
last = fmt.Sprintf(`<tr>
<td style="color: blue;">%s</td>
<td style="color: blue;">%s</td>
<td style="color: blue;">%s</td>
<td style="color: blue;">%s</td>
<td style="color: blue;">%s</td>
<td style="color: blue;">%s</td>
<td style="color: blue;">%s</td>
<td style="color: blue;">%s</td>
</tr>`,
ui.USN, ui.MAC, ui.IPAddr, ui.Relay, ui.Item, ui.Status, ui.Message, ui.LastChg)
partNO = ui.PartNO
mfgMO = ui.MfgMO