awips2/edexOsgi/com.raytheon.uf.edex.registry.ebxml/web/RegistryUserMenu.html
Benjamin Phillippe c6ee9830c2 Issue #1931 Implemented REST binding for registry
Change-Id: I604c02dc849e380f70e2d27fa1f2b30dadcf0776

Former-commit-id: 3d2e073dd7 [formerly 9065ebcb65 [formerly daef43d8947f690d15f9314f85b8cf31d30c06ab]]
Former-commit-id: 9065ebcb65
Former-commit-id: 9a7971c872
2013-04-22 13:17:53 -05:00

58 lines
1.9 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<style type="text/css">
a {font-weight:bold;}
table{border:3;}
td {width:200; background-color:deepskyblue}
th {width:200; background-color:aqua; font-size:14pt;}
input{width:200;}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" media="screen, projection" href="dataDelivery.css"/>
<script type="text/javascript" src='/dwr/engine.js'></script>
<script type="text/javascript" src='/dwr/util.js'></script>
<script type='text/javascript' src='/dwr/interface/RegistryWeb.js'></script>
<script type='text/javascript' src='/dataDeliveryUtil.js'></script>
<title>Data Delivery Registry Admin</title>
</head>
<body onload="getUsers()">
<h2>Registry User Management Interface</h2>
<a href="RegistryOrganizationMenu.html">View Organizations</a>
<p>
<table>
<tr>
<td style="width:100; background-color: transparent">First Name</td>
<td style="width:100; background-color: transparent"> <input type="text" id="firstNameText" onkeyup="getUsers()"/></td>
</tr>
<tr>
<td style="width:100; background-color: transparent">Last Name</td>
<td style="width:100; background-color: transparent"><input type="text" id="lastNameText" onkeyup="getUsers()"/></td>
</tr>
</table>
<p>
<p>
<hr width="500" align="left"/>
<p>
<button type="button" id="newUserButton" onclick="location.href='RegistryUserInterface.html?mode=add'">Add New User</button>
<hr width="500" align="left"/>
<p>
<span id="resultsSpan"></span>
</body>
<script language="JavaScript">
function getUsers() {
var firstName= getElementValue("firstNameText");
var lastName=getElementValue("lastNameText");
RegistryWeb.getUser(firstName,lastName,function(output){self.updateResults(output);});
}
function updateResults(result){
document.getElementById("resultsSpan").innerHTML = result;
}
</script>
</html>