<%
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>System 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: 3px solid #CBC7B8;
		font: 12px/22px arial; cursor: hand; text-align: center; background-color: #EBEADB; overflow:hidden; height:22px;
}

.listhead2
{
		border-top: 1px solid white; border-right: 1px solid #ACA899; border-left: 1px solid white; border-bottom: 3px 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: 3px solid #CBC7B8;
		font: 12px/22px arial; cursor: hand; text-align: center; background-color: #EBEADB; overflow:hidden; height:22px;
}

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

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

.listtr02
{
		background-color: #3366CC;
		color: #FFF;
		padding: 3px;
}
</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_system_general";
		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:#E7E6DA;" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">


<div style="background-color:#E7E6DA;">
	<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" onclick="do_list_click(this,'admin_system_general','<%=LANG["str_general_setting"]%>',720,535);"><td><img src="images/ico_general.gif"> <%=LANG["str_general_setting"]%></td><td><%=LANG["str_general_setting2"]%></td></tr>
		<tr class="listtr01" onclick="do_list_click(this,'admin_ssllist','<%=LANG["str_sslcert_manager"]%>',560,480);"><td><img src="images/ico_sslcert.gif"> <%=LANG["str_sslcert_manager"]%></td><td><%=LANG["str_sslcert_manager2"]%></td></tr>
		<tr class="listtr01" onclick="do_list_click(this,'admin_sshlist','<%=LANG["str_sshkey_manager"]%>',560,480);"><td><img src="images/ico_sshkey.gif"> <%=LANG["str_sshkey_manager"]%></td><td><%=LANG["str_sshkey_manager2"]%></td></tr>
		<tr class="listtr01" onclick="do_list_click(this,'admin_smtplist','<%=LANG["str_smtp_manager"]%>',560,480);"><td><img src="images/ico_smtpconfig.gif"> <%=LANG["str_smtp_manager"]%></td><td><%=LANG["str_smtp_manager2"]%></td></tr>
		<tr class="listtr01" onclick="do_list_click(this,'admin_gatewaylist','<%=LANG["str_gateway_manager"]%>',560,480);"><td><img src="images/ico_gateway.gif"> <%=LANG["str_gateway_manager"]%></td><td><%=LANG["str_gateway_description"]%></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>