?? webdoc1.c
字號:
//-----------------------------------------------------------------------------
// Net WEBDOC.C
//
// This module contains web pages and headers
//-----------------------------------------------------------------------------
#include "net.h"
// This is the header for web text pages. LENGTH is the body
// length, needed because in HTTP 1.1 we leave connection open
// Includes control statements to prevent browser from caching page
char code html_header[] = {
"HTTP/1.1 200 OK\n"
"Cache-control: no-cache\n"
"Connection: Keep-Alive\n"
"Content-Length: TAG:LEN1\n"
"Content-Type: text/html\r\n\r\n" };
// This page displays a table with weather data and a switch
// to turn a port pin on and off.
char code web_page[] = {
"<HTML><HEAD><TITLE>點石金智能電子webserver演示程序</TITLE>\n"
"<META http-equiv=\"refresh\" content=\"5\">"
"<meta http-equiv=\"content-type\" content=\"text/html; charset=gb2312\">\r\n"
"</HEAD>\n"
"<BODY>\n"
"<FORM action=/index.html method=post>\n"
"<TABLE border=0 width=\"786\">\n"
"<TBODY>\n"
"<TR>\n"
"<TD width=\"739\">\n"
"<H1> \n"
"<IMG src=\"photo1.jpg\" width=\"200\" height=\"134\"></H1>\n"
"<H1><font size=\"4\">點石金智能電子</font><font size=\"4\">嵌入式網頁演示\n"
"</font></H1>\n"
"<TABLE border=2 width=\"419\">\n"
"<TBODY>\n"
"<TR>\n"
"<TD width=235 height=25>\n"
"<p align=\"center\">計數器1</TD>\n"
"<TD width=166 height=25 align=\"center\">TAG:TMP1</TD></TR>\n"
"<TR>\n"
"<TD>\n"
"<p align=\"center\">計數器2</TD>\n"
"<TD align=\"center\">TAG:TMP2</TD></TR>\n"
"<TR>\n"
"<TD>\n"
"<p align=\"center\">計數器3</TD>\n"
"<TD align=\"center\">TAG:VOL1</TD></TR></TBODY></TABLE><BR><BR> LED
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -