1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml">
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
6<meta HTTP-EQUIV="Expires" CONTENT="-1">
7<link rel="shortcut icon" href="images/favicon.png">
8<link rel="icon" href="images/favicon.png">
9<title></title>
10<link href="../form_style.css" rel="stylesheet" type="text/css" />
11<link href="../NM_style.css" rel="stylesheet" type="text/css" />
12<style>
13a:link {
14	text-decoration: underline;
15	color: #FFFFFF;
16}
17a:visited {
18	text-decoration: underline;
19	color: #FFFFFF;
20}
21a:hover {
22	text-decoration: underline;
23	color: #FFFFFF;
24}
25a:active {
26	text-decoration: none;
27	color: #FFFFFF;
28}
29</style>
30<script type="text/javascript" src="/state.js"></script>
31<script type="text/javascript" src="/js/jquery.js"></script>
32<script type="text/javascript" src="/switcherplugin/jquery.iphone-switch.js"></script>
33<script>
34if(parent.location.pathname.search("index") === -1) top.location.href = "../index.asp";
35
36var diskOrder = parent.getSelectedDiskOrder();
37
38<% get_AiDisk_status(); %>
39
40var apps_array = <% apps_info("asus"); %>;
41
42function initial(){
43	document.getElementById("t0").className = "tabclick_NW";
44	document.getElementById("t1").className = "tab_NW";
45	flash_button();
46
47	if(!parent.media_support)
48		document.getElementById("mediaserver_hyperlink").style.display = "none";
49	
50	// Hide disk utility temporarily.
51	if(parent.diskUtility_support){
52		document.getElementById("diskTab").style.display = "";
53	}
54
55	showDiskUsage(parent.usbPorts[diskOrder-1]);
56
57	if(sw_mode == "2" || sw_mode == "3" || sw_mode == "4")
58		document.getElementById("aidisk_hyperlink").style.display = "none";
59		
60	if(noaidisk_support)
61		document.getElementById("aidisk_hyperlink").style.display = "none";
62	
63	if((based_modelid == "RT-AC87U" || based_modelid == "RT-AC5300" || based_modelid == "RT-AC88U" || based_modelid == "RT-AC3100") && parent.currentUsbPort == 0){
64		document.getElementById('reduce_usb3_table').style.display = "";
65	}		
66}
67
68var thisForeignDisksIndex;
69function showDiskUsage(device){
70	document.getElementById("disk_model_name").innerHTML = device.deviceName;
71
72	if(device.mountNumber > 0){
73		showtext(document.getElementById("disk_total_size"), simpleNum(device.totalSize) + " GB");		
74		showtext(document.getElementById("disk_avail_size"), simpleNum(device.totalSize - device.totalUsed) +" GB");
75		document.getElementById("mounted_item1").style.display = "";		
76		document.getElementById("unmounted_refresh").style.display = "none";
77	}
78	else{
79		document.getElementById("mounted_item1").style.display = "none";
80		document.getElementById("unmounted_refresh").style.display = "";
81	}
82
83	for(var i = 0; i < apps_array.length; i++){
84		if(apps_array[i][0] == "downloadmaster" && apps_array[i][4] == "yes" && apps_array[i][3] == "yes"){
85			if(device.hasAppDev){
86				document.getElementById("dmLink").style.display = "";
87			}
88			break;
89		}
90	}
91
92	thisForeignDisksIndex = device.node;
93}
94
95function goUPnP(){
96	parent.location.href = "/mediaserver.asp";
97}
98
99function gotoAidisk(){
100	parent.location.href = "/aidisk.asp";
101}
102
103function gotoDM(){
104	var dm_http_port = '<% nvram_get("dm_http_port"); %>';
105	if(dm_http_port == "")
106		dm_http_port = "8081";
107
108	var dm_url = "";
109	if(parent.location.host.split(":").length > 1)
110		dm_url = "http://" + parent.location.host.split(":")[0] + ":" + dm_http_port;
111	else
112		dm_url = "http://" + parent.location.host + ":" + dm_http_port;
113
114	window.open(dm_url);
115}
116
117function remove_disk(){
118	var str = "<#Safelyremovedisk_confirm#>";
119	if(confirm(str)){
120		parent.showLoading();
121		
122		document.diskForm.action = "safely_remove_disk.asp";
123		document.diskForm.disk.value = thisForeignDisksIndex;
124		setTimeout("document.diskForm.submit();", 1);
125	}
126}
127</script>
128</head>
129
130<body class="statusbody" onload="initial();">
131<table>
132	<tr>
133	<td>		
134		<table id="diskTab" width="100px" border="0" align="left" style="margin-left:5px;display:none;" cellpadding="0" cellspacing="0">
135  		<td>
136				<div id="t0" class="tabclick_NW" align="center" style="font-weight: bolder;margin-right:2px;" onclick="">
137					<span id="span1" style="cursor:pointer;font-weight: bolder;"><#diskUtility_information#></span>
138				</div>
139			</td>
140  		<td>
141				<div id="t1" class="tab_NW" align="center" style="font-weight: bolder;margin-right:2px;" onclick="location.href='disk_utility.asp'">
142					<span id="span1" style="cursor:pointer;font-weight: bolder;"><#diskUtility#></span>
143				</div>
144			</td>
145		</table>
146	</td>
147</tr>
148</table>
149<table width="95%" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#6b8fa3" class="table1px" style="margin-top:-3px;">
150	<tr>
151    <td style="padding:5px 10px 0px 15px;">
152    	<p class="formfonttitle_nwm"><#Modelname#>:</p>
153			<p style="padding-left:10px; margin-top:3px; background-color:#444f53; line-height:20px; color:#FFFFFF;" id="disk_model_name"></p>
154      <img style="margin-top:5px;" src="/images/New_ui/networkmap/linetwo2.png">
155    </td>
156  </tr>
157</table>
158
159<table id="mounted_item1" width="95%" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#6b8fa3" class="table1px">
160  <tr>
161    <td style="padding:5px 10px 0px 15px;">
162    	<p class="formfonttitle_nwm"><#Availablespace#>:</p>
163    	<p style="padding-left:10px; margin-top:3px; background-color:#444f53; line-height:20px; color:#FFFFFF;" id="disk_avail_size"></p>
164      <img style="margin-top:5px;" src="/images/New_ui/networkmap/linetwo2.png">
165    </td>
166  </tr>
167
168  <tr>
169    <td style="padding:5px 10px 0px 15px;">
170    	<p class="formfonttitle_nwm"><#Totalspace#>:</p>
171    	<p style="padding-left:10px; margin-top:3px; background-color:#444f53; line-height:20px; color:#FFFFFF;" id="disk_total_size"></p>
172      <img style="margin-top:5px;" src="/images/New_ui/networkmap/linetwo2.png">
173    </td>
174  </tr>
175
176  <tr id="mediaserver_hyperlink">
177    <td style="padding:10px 15px 0px 15px;;">
178    	<p class="formfonttitle_nwm" style="float:left;width:138px;"><#UPnPMediaServer#>:</p>
179      <input type="button" class="button_gen" onclick="goUPnP();" value="<#btn_go#>" >
180    	<img style="margin-top:5px;" src="/images/New_ui/networkmap/linetwo2.png">
181    </td>
182  </tr>
183
184  <tr id="aidisk_hyperlink">
185    <td height="50" style="padding:10px 15px 0px 15px;">
186    	<p class="formfonttitle_nwm" style="float:left;width:138px;"><#AiDiskWizard#>:</p>
187    	<input type="button" class="button_gen" onclick="gotoAidisk();" value="<#btn_go#>" >
188      <img style="margin-top:5px;" src="/images/New_ui/networkmap/linetwo2.png">
189    </td>
190  </tr>
191
192  <tr id="dmLink" style="display:none;">
193    <td height="50" style="padding:10px 15px 0px 15px;">
194    	<p class="formfonttitle_nwm" style="float:left;width:138px;">Download Master</p>
195    	<input type="button" class="button_gen" onclick="gotoDM();" value="<#btn_go#>" >
196      <img style="margin-top:5px;" src="/images/New_ui/networkmap/linetwo2.png">
197    </td>
198  </tr>
199</table>
200
201<table width="95%" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#6b8fa3" class="table1px">
202  <tr>
203    <td height="50" style="padding:10px 15px 0px 15px;">
204    	<p class="formfonttitle_nwm" style="float:left;width:138px; "><#Safelyremovedisk_title#>:</p>
205    	<input id="show_remove_button" class="button_gen" type="button" class="button" onclick="remove_disk();" value="<#btn_remove#>">
206    	<div id="show_removed_string" style="display:none;"><#Safelyremovedisk#></div>
207		 <img style="margin-top:5px;" src="/images/New_ui/networkmap/linetwo2.png">
208    </td>
209  </tr>
210</table>
211
212<table width="95%" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#6b8fa3" class="table1px" id="reduce_usb3_table" style="display:none">
213	<tr>
214		<td height="50" style="padding:10px 15px 0px 15px;">
215			<p class="formfonttitle_nwm" style="float:left;width:138px; " onmouseover="parent.overHint(24);" onmouseout="parent.nd();"><#WLANConfig11b_x_ReduceUSB3#></p>
216			<form method="post" name="form" action="/start_apply.htm" target="hidden_frame">
217				<input type="hidden" name="current_page" value="/index.asp">
218				<input type="hidden" name="next_page" value="/index.asp">
219				<input type="hidden" name="productid" value="<% nvram_get("productid"); %>">
220				<input type="hidden" name="action_mode" value="apply">
221				<input type="hidden" name="action_script" value="reboot">
222				<input type="hidden" name="action_wait" value="<% get_default_reboot_time(); %>">
223				<input type="hidden" name="preferred_lang" id="preferred_lang" value="<% nvram_get("preferred_lang"); %>">
224				<input type="hidden" name="usb_usb3" value="<% nvram_get("usb_usb3"); %>">
225			
226			<div align="center" class="left" style="width:120px; float:left; cursor:pointer;margin-top:-7px;" id="reduce_usb3_enable"></div>
227			<script type="text/javascript">
228				var flag = document.form.usb_usb3.value == 1 ?  0: 1;
229				$('#reduce_usb3_enable').iphoneSwitch( flag,
230					function(){		//ON:0
231						document.form.usb_usb3.value = 0;
232						document.form.submit();
233					},
234					function(){		//OFF:1
235						document.form.usb_usb3.value = 1;
236						document.form.submit();
237					}
238				);
239			</script>
240			</form>
241		</td>
242	</tr>
243</table>
244
245<div id="unmounted_refresh" style="padding:5px 0px 5px 25px; display:none">
246<ul style="font-size:11px; font-family:Arial; padding:0px; margin:0px; list-style:outside; line-height:150%;">
247	<li><#DiskStatus_refresh1#><a href="/" target="_parent"><#DiskStatus_refresh2#></a><#DiskStatus_refresh3#></li>
248</ul>
249</div>
250
251<form method="post" name="diskForm" action="">
252<input type="hidden" name="disk" value="">
253</form>
254</body>
255</html>
256