#!/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 "
"; 
if [ "${REQUEST_METHOD}" = "POST" ]; then
	errmsg=`${FLOWEYE} appobj config force_tos=${CGI_tos}`
	if [ "$?" != "0" ]; then
		afm_dialog_msg "ִ: ${errmsg}"
	else
		afm_dialog_msg "ɹ!"
	fi
fi
for nameval in `${FLOWEYE} appobj stat`
do
	eval "${nameval}"
done
CGI_tos="${force_tos}"

echo -n "
<body>
"; cgi_show_title "-->TOS" 
echo -n "
<br>
<form method=post action=\"/cgi-bin/Setup/tos_config\">
<table width=500 border=0 cellspacing=0 cellpadding=3 bgcolor=\"#ffffff\">
<tr id=row1>
	<td width=40></td>
	<td width=120 align=left>TOS</td>
	<td width=120 align=left>
		<select name=tos value=${CGI_tos} style=\"width:100%\">
		";
			if [ ${CGI_tos} -eq 0 ]; then
				echo "<option value=1>TOS</option>"
				echo "<option value=0 selected>TOS</option>" 
			else 
				echo "<option value=1 selected>TOS</option>"
				echo "<option value=0>TOS</option>"
			fi
		
echo -n "
		</select>
	</td>
	<td width=* align=right><input type=submit style=\"width:100\" value=\"ύ\"></input>&nbsp;&nbsp;</td>
</tr>
</table>
</form>
</body>
</html>
";