#!/bin/sh
#This script is created by ssparser automatically. The parser first created by MaoShouyan
printf "Content-type: text/html
Cache-Control: no-cache

"
echo -n "";
. ../common/common.sh 
myself="/cgi-bin/Maintain/`basename $0`"

echo -n "
<script type=\"text/javascript\" src=\"/img/common.js\"></script>
<script language=\"javascript\">
function onEditEvent(evt)
{
	window.location.href = \"/cgi-bin/Maintain/cfg_evtedit?evtype=\" + evt;
}
	
</script>
<body>
"; 
if [ "${CGI_logfile}" = "" ]; then
	cgi_show_title "ϵͳ澯->Ϣ"
else
	cgi_show_title "ϵͳ澯->ʷϢ"
fi

echo -n "
<br>
<table width=950 border=0 cellspacing=1 cellpadding=1>
<tr id=tblhdr height=22>
	<td width=150 align=center>ʱ</td>
	<td width=* align=center>Ϣ</td>
</tr>
";
[ "${CGI_logfile}" = "" ] && CGI_logfile="alert_`date +%Y.%m.%d`.log"
if [ -f ${DATAPATH}/${CGI_logfile} ]; then
	tblid="row1"
	exec 0<${DATAPATH}/${CGI_logfile}
	while read optime theothers
	do

echo -n "
		<tr id=${tblid}>
		<td align=center>${optime}</td>
		<td align=left>&nbsp;&nbsp;${theothers}</td>
		</tr>
";
	done
	if [ "${tblid}" = "row1" ]; then
		tblid="row2"
	else
		tblid="row1"
	fi
fi

echo -n "
</table>
</body>
</html>
";