[erlang-questions] Webtool

Roberto Aloi <>
Sat Apr 20 22:36:18 CEST 2013


Hi,

the HTML is contained *inside* the webtool.erl file - belonging to the
webtool application -.
The module, 1207 lines long, alternates beautiful macros such as:

-define(HTML_HEADER,"<HTML>\r\n<HEAD>\r\n<TITLE>WebTool</TITLE>\r\n</HEAD>\r\n<BODY
BGCOLOR=\"#FFFFFF\">\r\n").

To functions returning HTML strings:

show_started_apps(State)->
  "<TABLE HEIGHT=100%  WIDTH=100% BORDER=0>
    <TR HEIGHT=80%><TD ALIGN=\"center\" VALIGN=\"middle\">
      <FORM NAME=\"stop_apps\" ACTION=\"/webtool/webtool/stop_tools\" >
       <TABLE BORDER=1 WIDTH=60%>
 <TR BGCOLOR=\"#8899AA\">
   <TD ALIGN=CENTER COLSPAN=2><FONT SIZE=4>Started Tools<FONT></TD>
 </TR>
  <TR>
   <TD WIDTH=50%>
       <TABLE BORDER=0>
           "++ list_started_apps(State)++"
                   <TR><TD COLSPAN=2> </TD></TR>
                   <TR>
                      <TD COLSPAN=2 ALIGN=\"center\">
                         <INPUT TYPE=submit VALUE=\"Stop\">
                      </TD>
                   </TR>
                </TABLE>
            </TD>
           <TD>
             Stop a Tool:
             <UL>
             <LI>Select the
             checkbox for each tool to
             stop.</LI>
             <LI>Click on the
             button marked <EM>Stop</EM>.</LI></UL>
            </TD>
         </TR>
      </TABLE>
    </FORM>
   </TD></TR>
   <TR><TD> </TD></TR>
   </TABLE>".

Oh, yeah!

Roberto


On Sat, Apr 20, 2013 at 2:45 PM, Carlo Bertoldi
<>wrote:

> Hi, a simple question: where can I find the HTML displayed by webtool?
> For example, relatively to appmon, I looked into otp_src_R16B/lib/appmon
> and lib/webtool/ but I could not find the appmon specific HTML.
> Thanks,
>  Carlo
> ______________________________**_________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/**listinfo/erlang-questions<http://erlang.org/mailman/listinfo/erlang-questions>
>



-- 
Roberto Aloi
---
Website: http://roberto-aloi.com
Twitter: @robertoaloi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130420/ddc9c7d7/attachment.html>


More information about the erlang-questions mailing list