|
|
Functions
Installation
Invoke from SSI.
<!--#include virtual="topdisp.cgi?mode=[event|notice|update|admin]" -->
makes it work.
The parameter of mode can be anything as long as it matchs the first column of the data file.
e.g.:mode=event, mode=special
Each line displays with encircled by<li>.
Format of data file
type, attribute, contents, date
Type : Will be set by mode in the CGI parameter.
event : event
notice : notice
update : update notice
admin : admin message
and so on....
attribute : vine
v : Display
i : Do not display
n : Do not display any time(Will not be displayed even in full display mode)
e : End parse(ignored with display=all)
Use this attribute if you want the CGI to terminate file parse at 'e' is present. The CGI does not parse below the 'e'.
If you want to put in the data file, Use "&#44;".
Comment is a #.
Data file example
-------------------------------
# notice
notice,v,No Announcement so far.
notice,e
# Updates
update,v,The mail address has been udpated,7/30/04
update,v,Renewal!,7/3/04
update,e
update,i,Updated the address book,6/20/04
update,i,Updated1,2,3 in the mail address,6/18/04
update,i,A new message board has been installed,6/10/04
# Event
event,v,We have a meeting on 15th.,8/1/04
event,n,No events now.
---------------------------------
Edit mode
Invoked by topdisp.cgi?edit=on.
You can simply edit and press "update".
You can also specify data file name.
Full display mode
topdisp.cgi?mode=<[event|notice|update|admin]>&display=all
Display all contents of the specified mode.
'v' and 'i' in attribute will be ignored. 'n' will not be displayed.
This mode should be used from usual CGI from a browser.
Sample and Source
Revisoin history
|