mirror of
				https://github.com/kenzok8/openwrt-packages.git
				synced 2025-10-30 07:50:37 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			838 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			838 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <%+cbi/valueheader%>
 | |
| <script type="text/javascript">//<![CDATA[
 | |
| 	function admin_info(btn)
 | |
| 	{
 | |
| 		btn.disabled = true;
 | |
| 		btn.value = '<%:Collecting data...%>';
 | |
| 		XHR.get('<%=luci.dispatcher.build_url("admin", "nas", "alist", "admin_info")%>',
 | |
| 			null,
 | |
| 			function(x,rv)
 | |
| 			{
 | |
| 			var tb = document.getElementById('<%=self.option%>-status');
 | |
| 			if (tb)
 | |
| 			{
 | |
| 				tb.innerHTML = "<%:Username:%>" + "<font color='green'>" + rv.username + "</font>";
 | |
| 				tb.innerHTML += "<%:Password:%>" + "<font color='green'>" + rv.password + "</font>";
 | |
| 			}
 | |
| 				btn.disabled = false;
 | |
| 				btn.value = '<%:Reset%>';
 | |
| 			}
 | |
| 		);
 | |
| 		return false;
 | |
| 	}
 | |
| //]]></script>
 | |
| <input type="button" class="btn cbi-button cbi-button-apply" value="<%:Reset%>" onclick="return admin_info(this)" />
 | |
| <span id="<%=self.option%>-status"><em><%=self.value%></em></span>
 | |
| <%+cbi/valuefooter%> | 
