📄 config.zhtml
字号:
<HTML>
<HEAD>
<TITLE>Ethernet-to-Serial Configuration</TITLE>
</HEAD>
<BODY>
<H1>Ethernet-to-Serial Configuration</H1>
<A HREF="/index.zhtml">Reload the page with committed values</A>
<P>
<?z if (error()) { ?>
There is an error in your data! The errors are both listed below and marked
in <FONT COLOR="#ff0000">red</FONT>.
<UL>
<?z for ($A = 0; $A < count($serial_ports, 0); $A++) { ?>
<?z if (error($serial_ports[$A].tcp_port)) { ?>
<LI>Serial Port <?z echo($serial_ports[$A].ser.port) ?> TCP port is
in error (must be greater than 0)
(committed value is <?z echo(@serial_ports[$A].tcp_port) ?>)
<?z } ?>
<?z if (error($serial_ports[$A].ser.baud)) { ?>
<LI>Serial Port <?z echo($serial_ports[$A].ser.port) ?> baud rate is
in error (<?z echo(error($serial_ports[$A].ser.baud)) ?>)
(must be between 300 and 115200 baud)
(committed value is <?z echo(@serial_ports[$A].ser.baud) ?>)
<?z } ?>
<?z } ?>
</UL>
<?z } ?>
<FORM ACTION="/index.zhtml" METHOD="POST">
<?z for ($A = 0; $A < count($serial_ports, 0); $A++) { ?>
<H2> Serial Port <?z echo($serial_ports[$A].ser.port) ?> Setup</H2>
<TABLE>
<TR><TD>
<?z if (error($serial_ports[$A].tcp_port)) { ?>
<FONT COLOR="#ff0000">
<?z } ?>
Local TCP Port
<?z if (error($serial_ports[$A].tcp_port)) { ?>
</FONT>
<?z } ?>
</TD><TD><INPUT TYPE="text" NAME="<?z varname($serial_ports[$A].tcp_port) ?>" SIZE=5 VALUE="<?z echo($serial_ports[$A].tcp_port) ?>"></TD></TR>
<TR><TD>
<?z if (error($serial_ports[$A].ser.baud)) { ?>
<FONT COLOR="#ff0000">
<?z } ?>
Baud Rate
<?z if (error($serial_ports[$A].ser.baud)) { ?>
</FONT>
<?z } ?>
</TD><TD><INPUT TYPE="text" NAME="<?z varname($serial_ports[$A].ser.baud) ?>" SIZE=6 VALUE="<?z echo($serial_ports[$A].ser.baud) ?>"></TD></TR>
<TR><TD>
<?z if (error($serial_ports[$A].ser.databits)) { ?>
<FONT COLOR="#ff0000">
<?z } ?>
Data Bits
<?z if (error($serial_ports[$A].ser.databits)) { ?>
</FONT>
<?z } ?>
</TD><TD><SELECT NAME="<?z varname($serial_ports[$A].ser.databits) ?>">
<?z print_select($serial_ports[$A].ser.databits) ?>
</SELECT></TD></TR>
<TR><TD>
<?z if (error($serial_ports[$A].ser.parity)) { ?>
<FONT COLOR="#ff0000">
<?z } ?>
Parity
<?z if (error($serial_ports[$A].ser.parity)) { ?>
</FONT>
<?z } ?>
</TD><TD><SELECT NAME="<?z varname($serial_ports[$A].ser.parity) ?>">
<?z print_select($serial_ports[$A].ser.parity) ?>
</SELECT></TD></TR>
<TR><TD>
<?z if (error($serial_ports[$A].ser.stopbits)) { ?>
<FONT COLOR="#ff0000">
<?z } ?>
Stop Bits
<?z if (error($serial_ports[$A].ser.stopbits)) { ?>
</FONT>
<?z } ?>
</TD><TD><SELECT NAME="<?z varname($serial_ports[$A].ser.stopbits) ?>">
<?z print_select($serial_ports[$A].ser.stopbits) ?>
</SELECT></TD></TR>
</TABLE>
<?z } ?>
<P>
<INPUT TYPE="submit" VALUE="Submit">
<INPUT TYPE="reset" VALUE="Reset">
</FORM>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -