<%
include("language.html")
if _SESSION["logined"] ~= nil then
%>
<%
local domain = _GET["domain"] or _POST["domain"]
%>
<!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>Domain 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;
var domain = "<%=domain%>";

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_domain_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?domain="+domain+"&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_general_setting','<%=LANG["str_gen_setting"]%>',800,550);"><td><img src="images/ico_general.gif"> <%=LANG["str_gen_setting"]%></td><td><%=LANG["str_gen_setting2"]%></td></tr>
		<tr class="listtr01" onclick="do_list_click(this,'admin_domain_database','<%=LANG["str_data_storage"]%>',650,450);"><td><img src="images/ico_storage.gif"> <%=LANG["str_data_storage"]%></td><td><%=LANG["str_data_storage2"]%></td></tr>
		<tr class="listtr01" onclick="do_list_click(this,'admin_ipmask_list','<%=LANG["str_ip_access"]%>',510,340);"><td><img src="images/ico_ipaccess.gif"> <%=LANG["str_ip_access"]%></td><td><%=LANG["str_ip_access2"]%></td></tr>
		<tr class="listtr01" onclick="do_list_click(this,'admin_filemask_list','<%=LANG["str_file_restrict"]%>',540,340);"><td><img src="images/ico_fileaccess.gif"> <%=LANG["str_file_restrict"]%></td><td><%=LANG["str_file_restrict2"]%></td></tr>
		<tr class="listtr01" onclick="do_list_click(this,'admin_sfvdir_list','<%=LANG["str_sfv_directory"]%>',580,480);"><td><img src="images/ico_sfvdir.gif"> <%=LANG["str_sfv_directory"]%></td><td><%=LANG["str_sfv_directory2"]%></td></tr>
		<tr class="listtr01" onclick="do_list_click(this,'admin_transfer_limit','<%=LANG["str_transfer_limit"]%>',570,370);"><td><img src="images/ico_transferlimit.gif"> <%=LANG["str_transfer_limit"]%></td><td><%=LANG["str_transfer_limit2"]%></td></tr>
		<tr class="listtr01" onclick="do_list_click(this,'admin_message_list','<%=LANG["str_ftp_message"]%>',520,390);"><td><img src="images/ico_message.gif"> <%=LANG["str_ftp_message"]%></td><td><%=LANG["str_ftp_message2"]%></td></tr>
		<tr class="listtr01" onclick="do_list_click(this,'admin_domain_listener','<%=LANG["str_domain_listener"]%>',580,412);"><td><img src="images/ico_listeners.gif"> <%=LANG["str_domain_listener"]%></td><td><%=LANG["str_domain_listener2"]%></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>