#!/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 
echo -n "
<body>
"; 
cgi_show_title "->IPʶ->ļ" 
exportfile="${PGPATH}/admin/tmp/ipname.txt"
[ -f ${exportfile} ] && rm -f ${exportfile}
touch ${exportfile}
${FLOWEYE} ipobj listgrpname | while read grpid grpname theothers
do
	echo "ipgrpname grpid=${grpid} name=${grpname}" >> ${exportfile}
done
${FLOWEYE} ipobj listname | while read grpid grpname ip name theothers
do
	echo "ipname ip=${ip} name=${name} grpid=${grpid}" >> ${exportfile}
done

echo -n " 
<br>
<table width=\"700\" border=0 cellspacing=1 cellpadding=3>
<tr>
    <td width=20></td>
    <td style=\"font:13px bold\" width=*><a href=\"/tmp/ipname.txt\">ڴ˴<b style=\"font-size:14px;color:#ff0000;\">Ҽѡ\"Ϊ...\"</b>˵ǰļ</a></td>
</tr>
</table>
<br>
</body>
</html>
";