Re: How do I alter web page template

Troy S <[email protected]> Tue, 17 Nov 2009 12:47:43 -0500
Newsgroups gmane.comp.web.analog.general
Message-ID <[email protected]>
I figured it I was going to have to 'post-process' the reports.  But I
was just hoping that there was some command that I missed in the
documentation.

Thanks everyone for the help.

Sincerely,

On Tue, Nov 17, 2009 at 11:44 AM, Roger <roger-GJGk2I+t4HdQBPPSbDAOU9Bc4/[email protected]> wrot=
e:
> Troy S wrote:
>>
>> I need to included a summary attributed to all html table tags?
>> Is there a template that I can modify so that the summary attribute is
>> set automatically and I don't have to edit the reports after
>> generating them?
>
> From what everyone else has said, it seems you need to 'post-process' (=
i.e.
> change the report after Analog has written it).
>
> If you know a programming language that can read and write files, the t=
ask
> here isn't very difficult. =A0If you don't, ignore the rest of this! =A0=
<grin>
>
> Judging from my Analog reports, the significant bits in the report seem=
 to
> be:
>
> <a name=3D"daysum" id=3D"daysum">Daily Summary</a>
> <a name=3D"hoursum" id=3D"hoursum">Hourly Summary</a>
> and so on for the other parts of the report.
>
> 'a name=3D' can be recognised and the bit between '>' and '<' describes=
 the
> following table, so can be used in your summary attribute.
>
> Crudely the program code needs to:
> -----------------------------------
> open the original file to read and a new one to write the new version
>
> loop while not end of input file
>
> =A0loop
>
> =A0 =A0read a line from the old file and
>
> =A0 =A0write it to the new one
>
> =A0until the line includes 'a name=3D' OR end of file
>
> =A0if not end of file
>
> =A0 =A0Store the bit between '>' and '<' =A0(the summary name you want)
>
> =A0 =A0read a line from the old file
>
> =A0 =A0loop
>
> =A0 =A0 =A0write line to the new file
>
> =A0 =A0 read a line from the old file
>
> =A0 =A0until the line includes '<table>'
>
> =A0 =A0insert your summary attribute within the table tag in this line
>
> =A0 =A0write the changed line to the new file
>
> =A0end if
>
> end while loop
>
> close both files
>
> stop
> -----------------------------------
>
> If you don't know a suitable language, maybe you know someone who does.=
..
> =A0<grin>
>
> All the best,
>
> Roger
>
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
> +----------------------------------------------------------------------=
--
> | =A0TO UNSUBSCRIBE from this list:
> | =A0 =A0http://lists.meer.net/mailman/listinfo/analog-help
> |
> | =A0Analog Documentation: http://analog.cx/docs/Readme.html
> | =A0List archives: =A0http://www.analog.cx/docs/mailing.html#listarchi=
ves
> | =A0Usenet version: news://news.gmane.org/gmane.comp.web.analog.genera=
l
> +----------------------------------------------------------------------=
--
>



--=20
Troy

+------------------------------------------------------------------------
|  TO UNSUBSCRIBE from this list:
|    http://lists.meer.net/mailman/listinfo/analog-help
|
|  Analog Documentation: http://analog.cx/docs/Readme.html
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
+------------------------------------------------------------------------