Solvline Eddy DK Ver 2.20 Manuel d'utilisateur Page 63

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 75
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 62
Chapter 8. Handling HTML & CGI
Chpater8. Handling HTML & CGI
This chapter describes the HTML documents and CGI modules that are used for configuration. Provided CGI
source and HTML documents are used by Eddy’s default firmware. Take a look at these sources and modify them as
you want.
8.1 WEB Configuration
HTML sources run by Eddy are located at src/Eddy_APPs/web/htdocs.
CGI sources supporting information needed by HTML is located at src/Eddy_APPs/web/cgi.
getagent.c
This reads environment configuration file of /etc/sb_config and transfers configuration value to HTML page to
show configuration information with browser.
setagent.c
This reads configuration value modified by user in HTML page and saves to configuration file of /etc/sb_config.
8.2 Example HTML code
The following example is part of main.html source.
For users cannot program using variables as they would do in C language, HTML processes by using symbols
linked with CGI to receive value as shown below.
Shown in red are symbol link which transfers value from getagent.c.
(network.html source abstract)
<tr /jointfilesconvert/1687330/bgcolor="#FFFFFF">
<td class="content">IP Address</td>
<td class="content"><input type="text" size="16" maxlength="16" name="N_IP" value="[v,n_ip]" >
<tr /jointfilesconvert/1687330/bgcolor="#FFFFFF">
<td class="content">Subnet Mask</td>
<td class="content"><input type="text" size="16" maxlength="16" name="N_MASK" value="[v,n_mask]"
>
<tr /jointfilesconvert/1687330/bgcolor="#FFFFFF">
<td class="content">Gateway</td>
<td class="content"><input type="text" size="16" maxlength="16" name="N_GW" value="[v,n_gw]" >
<tr /jointfilesconvert/1687330/bgcolor="#FFFFFF">
<td class="content">DNS</td>
8-1
Vue de la page 62
1 2 ... 58 59 60 61 62 63 64 65 66 67 68 ... 74 75

Commentaires sur ces manuels

Pas de commentaire