<%
include("language.html")
if _SESSION["logined"] ~= nil then
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Administrator Setting</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
<%if _COOKIE["admin_lang"] == "schinese" or _COOKIE["admin_lang"] == "tchinese" or _COOKIE["admin_lang"] == "japanese" then%>
body,td,span {font:12px/20px Verdana, Geneva, Arial, Helvetica, sans-serif;}
<%else%>
body,td,span {font:12px/20px Verdana, Geneva, Arial, Helvetica, sans-serif;}
<%end%>
img {border:0px;}

.listhead
{
		border-top: 1px solid white; border-right: 1px solid #ACA899; border-left: 1px solid white; border-bottom: 2px solid #E1E2E3;
		font: 12px/22px arial; cursor: hand; text-align: center; background-color: #EFEFEF; overflow:hidden; height:22px;
}

.listhead2
{
		border-top: 1px solid white; border-right: 1px solid #ACA899; border-left: 1px solid white; border-bottom: 2px solid #FCC247;
		font: 12px/22px arial; cursor: hand; text-align: center; background-color: #FAF9F4; overflow:hidden; height:22px;
}

.listhead3
{
		border-top: 1px solid white; border-right: 1px solid white; border-left: 1px solid white; border-bottom: 2px solid #E1E2E3;
		font: 12px/22px arial; cursor: hand; text-align: center; background-color: #EFEFEF; overflow:hidden; height:22px;
}

.listhead4
{
		border-top: 1px solid white; border-right: 1px solid white; border-left: 1px solid white; border-bottom: 2px solid #FCC247;
		font: 12px/22px arial; cursor: hand; text-align: center; background-color: #FAF9F4; overflow:hidden; height:22px;
}

.listtr01
{
		background-color: #FFFFFF;
		padding: 3px;
		height: 24px;
}

.listtr02
{
		background-color: #3366CC;
		color: #FFF;
		padding: 3px;
		height: 24px;
}
</style>

<script language="javascript" src="include/common.js"></script>
<script language="javascript">
var selectedRow = null;
var lastObj = null;

function do_list_click(obj,page,title,width,height)
{
	var row_index = obj.rowIndex-1;
	if(selectedRow != $("maintable").rows[row_index])
	{
		if(lastObj != null)
			lastObj.className = "listtr01";

		selectedRow = $("maintable").rows[row_index];
		obj.className = "listtr02";
		lastObj = obj;
	}
	else
	{
		if(page == null) page="admin_admin_listener";
		if(title == null) title="";
		if(width == null) width=420;
		if(height == null) height=300;
		var frametag = new Date().getTime();
		showMessagebox(title,"<iframe src='"+page+".html?seeds=" + Math.random() +"' width="+width+" height="+height+" border=0 frameborder=0 id='modify"+frametag+"' scrolling='no'></iframe>",null,width,height);
	}
	return false;
}

</script>
</head>
<body style="background-color:#E6E6E6;" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">


<div style="background-color:#E6E6E6;">
	<div id="listview_div" style="background-color:#FFF; margin-top:3px; margin-left:5px; border:1px solid #919B9C; width:98%; height:500px; overflow:auto; overflow-x:hidden;">
		<table id="listtable" width="100%" border="0" cellpadding="2" cellspacing="0" style="table-layout:fixed;">
		<thead><tr>
		<td class="listhead" width="30%" onmouseover="className='listhead2';" onmouseout="className='listhead';"><%=LANG["title_name"]%></td>
		<td class="listhead3" width="70%" onmouseover="className='listhead4';" onmouseout="className='listhead3';"><%=LANG["title_description"]%></td>
		</tr></thead>
		<tbody id="maintable">
		<tr class="listtr01" onmouseup="do_list_click(this,'admin_admin_general','<%=LANG["str_general_setting"]%>',540,390);"><td>&nbsp;<img src="images/ico_general.png"> <%=LANG["str_general_setting"]%></td>
		<td><%=LANG["str_general_setting3"]%></td></tr>
		<tr class="listtr01" onmouseup="do_list_click(this,'admin_admin_listener','<%=LANG["str_adminlistener"]%>',540,390);"><td>&nbsp;<img src="images/ico_listeners.png"> <%=LANG["str_adminlistener"]%></td>
		<td><%=LANG["str_adminlistener_tip"]%></td></tr>
		<tr class="listtr01" onmouseup="do_list_click(this,'admin_adminipmask_list','<%=LANG["str_adminipaccess"]%>',520,340);"><td>&nbsp;<img src="images/ico_ipaccess.png"><%=LANG["str_adminipaccess"]%></td><td><%=LANG["str_adminipaccess_tip"]%></td></tr>
		</tbody>
		</table>
	</div>
</div>


</body>
</html>

<% 
else
	print("<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>")
	print("<script>alert('"..LANG["session_expire"].."');top.location='admin_login.html';</script>")
end 
%>

<noscript><center><H2><%=LANG["error_nojavascript"]%></H2></center></noscript>