aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/bin/testadmin.htm
diff options
context:
space:
mode:
Diffstat (limited to 'bin/testadmin.htm')
-rw-r--r--bin/testadmin.htm9
1 files changed, 5 insertions, 4 deletions
diff --git a/bin/testadmin.htm b/bin/testadmin.htm
index 1e34cf7..62a860d 100644
--- a/bin/testadmin.htm
+++ b/bin/testadmin.htm
@@ -69,7 +69,7 @@ if (http_request.readyState==4)
69 alert('Cannot create XMLHTTP instance'); 69 alert('Cannot create XMLHTTP instance');
70 return false; 70 return false;
71 } 71 }
72 72
73 http_request.onreadystatechange =state_Change 73 http_request.onreadystatechange =state_Change
74 http_request.open('POST', url, true); 74 http_request.open('POST', url, true);
75 http_request.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 75 http_request.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
@@ -83,14 +83,14 @@ if (http_request.readyState==4)
83 if (http_request.status == 200) { 83 if (http_request.status == 200) {
84 //alert(http_request.responseText); 84 //alert(http_request.responseText);
85 result = http_request.responseText; 85 result = http_request.responseText;
86 document.getElementById('T1').innerHTML = result; 86 document.getElementById('T1').innerHTML = result;
87 } else { 87 } else {
88 alert('There was a problem with the request.'); 88 alert('There was a problem with the request.');
89 } 89 }
90 } 90 }
91 } 91 }
92 92
93 93
94 function get(obj) { 94 function get(obj) {
95 var poststr = "FirstName=" + encodeURI( document.getElementById("FirstName").value ) + 95 var poststr = "FirstName=" + encodeURI( document.getElementById("FirstName").value ) +
96 "&LastName=" + encodeURI( document.getElementById("LastName").value ) 96 "&LastName=" + encodeURI( document.getElementById("LastName").value )
@@ -98,7 +98,7 @@ if (http_request.readyState==4)
98 + "&AdminPass=" + adminpass; 98 + "&AdminPass=" + adminpass;
99 makePOSTRequest('Admin/NewAccount', poststr); 99 makePOSTRequest('Admin/NewAccount', poststr);
100 } 100 }
101 101
102 function setpass(obj) 102 function setpass(obj)
103 { 103 {
104 adminpass = encodeURI( document.getElementById("Adminpss").value ); 104 adminpass = encodeURI( document.getElementById("Adminpss").value );
@@ -115,6 +115,7 @@ if (http_request.readyState==4)
115</div><br /> 115</div><br />
116<button onclick="loadXMLDoc('Admin/Clients')">Clients</button> 116<button onclick="loadXMLDoc('Admin/Clients')">Clients</button>
117<button onclick="loadXMLDoc('Admin/Accounts')">Accounts</button> 117<button onclick="loadXMLDoc('Admin/Accounts')">Accounts</button>
118<button onclick="loadXMLDoc('Admin/Entities')">Entities</button>
118 119
119</body> 120</body>
120 121