225 lines
6.8 KiB
HTML
225 lines
6.8 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 4.0//EN">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<title>Define URI</title>
|
|
<meta name="Copyright" content="Copyright (c) 2004 by IBM Corporation">
|
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
|
<!-- US Government Users Restricted Rights -->
|
|
<!-- Use, duplication or disclosure restricted by -->
|
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
|
|
|
<!--
|
|
----------------------------------------------------------------------------
|
|
START_DESCRIPTION
|
|
Page Function: Define URI
|
|
|
|
Stored Values:
|
|
[myurl](parent.hidden.clientInfo[clientNum][2])["Any uri" or whatever definition the customer gives the URI, must begin with a slash]
|
|
[myClientName](parent.hidden.clientInfo[clientNum][0])[alpha characters]
|
|
|
|
Next and Back:
|
|
[Next]: rzalladvqos21.htm
|
|
[Back]: rzalladvqos3.htm
|
|
END_DESCRIPTION
|
|
----------------------------------------------------------------------------
|
|
-->
|
|
|
|
<LINK rel="stylesheet" type="text/css" href="../rzahg/ic.css">
|
|
<script language = "Javascript" src = "../rzahg/iccommon.js"></script>
|
|
<script language="Javascript" type="text/javascript">
|
|
|
|
|
|
//START NON-TRANSLATABLE
|
|
var clientName
|
|
var uriValue
|
|
|
|
//END NON-TRANSLATABLE
|
|
var error3 = "You must enter a valid name to represent a URI policy."
|
|
var error13 = "You entered a name of "
|
|
var error14 = ", which has already been used."
|
|
var error5 = "Segment cannot be blank values"
|
|
var error2 = "A URI name must begin with a slash (\/)."
|
|
//START NON-TRANSLATABLE
|
|
clientNum = parent.hidden.retClientNumber()
|
|
var client = true;
|
|
var checkurl = true;
|
|
var goodname = true;
|
|
|
|
|
|
|
|
|
|
function hideIt(){
|
|
MM_showHideLayers('uristatic','','hide');
|
|
}
|
|
function showIt(){
|
|
MM_showHideLayers('uristatic','','show');
|
|
}
|
|
|
|
|
|
|
|
function checkName(clientLength,myClientName){ //looking for a good client name
|
|
|
|
|
|
if (myClientName == "" || myClientName == null){ alert(error3);return false; } //check for blanks.
|
|
|
|
for ( var i=0; i<clientLength; i++) { //checking for duplicate names
|
|
|
|
scanApp = parent.hidden.clientInfo[i][16];
|
|
if ( (scanApp == myClientName) && (clientNum != i)) {
|
|
if (myClientName != ' ' ) {
|
|
alert (error13 + myClientName + error14)
|
|
}
|
|
document.name.clientname.focus()
|
|
return false;
|
|
}
|
|
}
|
|
|
|
parent.hidden.clientInfo[clientNum][16] = myClientName //storing clientName
|
|
return true;
|
|
}
|
|
|
|
function checkRadio(clientLength,myClientName){
|
|
if (document.clients.myradio[0].checked){ //first radio is checked
|
|
parent.hidden.clientInfo[clientNum][2] = "Any URI" //storing any url if specific not checked
|
|
}
|
|
|
|
else{ //second radio checked. need to validate text field then
|
|
|
|
if (isNS && !isNS6) {
|
|
myurl = document.uristatic.document.specific.myurl.value
|
|
}
|
|
|
|
else {
|
|
myurl = document.specific.myurl.value;
|
|
}
|
|
//alert (myurl)
|
|
if (myurl == "" || myurl == null) { //dealing with a blank
|
|
alert(error5);
|
|
document.specific.myurl.focus();
|
|
return false;
|
|
}
|
|
if (myurl.charAt(0) != "/"){
|
|
alert(error2);
|
|
document.specific.myurl.focus();
|
|
return false;
|
|
}
|
|
|
|
|
|
|
|
parent.hidden.clientInfo[clientNum][2] = myurl //storing url value
|
|
}
|
|
|
|
|
|
return true;
|
|
}
|
|
|
|
function onNext(){ //new onNext function rewritten by bjb 7/31
|
|
|
|
clientLength = parent.hidden.retClientLength();
|
|
myClientName = document.name.clientname.value
|
|
|
|
if (checkName(clientLength,myClientName) && checkRadio(clientLength,myClientName)){
|
|
|
|
window.location = "rzalladvqos21.htm"; //sending user to next panel
|
|
|
|
}
|
|
}
|
|
|
|
function onBack() {
|
|
|
|
window.location = "rzalladvqos3.htm";
|
|
|
|
}
|
|
//end function onBack
|
|
|
|
//Obtain name of HTML file in parent frame.
|
|
var parentDir = parent.window.location.href.substring(0,location.href.lastIndexOf('/')+1);
|
|
var parentUrl = parent.window.location.href.substring(parentDir.length,parent.window.location.href.length+1);
|
|
if (parentUrl.indexOf("#") >= 0) { parentUrl = parentUrl.substring(0,parentUrl.indexOf("#"));}
|
|
|
|
function fillin() {
|
|
//Is the hidden frame already loaded with the correct html?
|
|
if (parentUrl != "rzalladvqoswelcome.htm") {
|
|
window.location = "rzalladvqoswelcome.htm"; //load advisor frameset
|
|
return;
|
|
} else {
|
|
//Obtain name of HTML file in hidden frame.
|
|
var hiddenDir = parent.hidden.window.location.href.substring(0,location.href.lastIndexOf('/')+1);
|
|
var hiddenUrl = parent.hidden.window.location.href.substring(hiddenDir.length,parent.hidden.window.location.href.length+1);
|
|
if (hiddenUrl.indexOf("#") >= 0) { hiddenUrl = hiddenUrl.substring(0,hiddenUrl.indexOf("#"));}
|
|
if (hiddenUrl != "rzalladvqoshidden.htm") {
|
|
//Correct HTML not loaded, load it
|
|
parent.hidden.window.location = "rzalladvqoshidden.htm";
|
|
} else { //already loaded
|
|
fillin2();
|
|
}
|
|
}
|
|
}
|
|
|
|
function fillin2() {
|
|
if (parent.hidden.clientInfo[clientNum][2] != "") {
|
|
defineClient = parent.hidden.clientInfo[clientNum][2] + '';
|
|
// alert (defineClient)
|
|
document.name.clientname.value = parent.hidden.clientInfo[clientNum][16];
|
|
if (defineClient == "Any URI") {
|
|
document.clients.myradio[0].checked = true;
|
|
hideIt();
|
|
} else {
|
|
document.clients.myradio[1].checked = true;
|
|
showIt();
|
|
document.specific.myurl.value = defineClient;
|
|
}
|
|
} else {
|
|
document.clients.myradio[0].checked = true;
|
|
hideIt();
|
|
}
|
|
}
|
|
|
|
//END NON-TRANSLATABLE
|
|
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
|
|
<BODY onload="fillin()">
|
|
<h2>QoS planning advisor: Inbound URI </h2>
|
|
<P>In an inbound admission policy, you can define specific URI information to control access to your server (based on what URI is being requested). Later in this advisor, you will define limits to this URI, which will help restrict access to your server. After you define the URI, specify an identifying name to represent this URI. The name might be something that will be easy to remember and representative of your client. For example, <tt>UCD_group_site</tt>. </P>
|
|
<p>Specify the URI to control. </p>
|
|
<form name="clients">
|
|
|
|
<input type="radio" name="myradio" id="radio1" value="anyuri" onClick="hideIt()" checked>
|
|
<b><Label for="radio1">Any URI</LABEL></b><br>
|
|
|
|
|
|
|
|
|
|
<input type="radio" name="myradio" id="radio2" value="uri" onClick="showIt()">
|
|
|
|
<b><Label for="radio2">Specific URI</label></b>
|
|
<p>
|
|
</form>
|
|
|
|
<div id="uristatic" style="position: relative;">
|
|
<form name="specific">
|
|
|
|
<INPUT SIZE=50 type="text" MAXLENGTH=50 NAME="myurl" id="radio2" >
|
|
<br>
|
|
</form>
|
|
</div>
|
|
|
|
|
|
<form name="name">
|
|
<Label for="clientname1">Enter an identifying name for the above URI group, such as <tt>My partner company</tt>.</label><p></p>
|
|
<INPUT SIZE=15 type="text" MAXLENGTH=25 NAME="clientname" id="clientname1"><p></p>
|
|
<center><input name=submit type="button" value=" << Back " onClick="onBack()">
|
|
<input name=submit type="button" value=" Next >>" onClick="onNext(this.form)">
|
|
</center>
|
|
</form>
|
|
</BODY>
|
|
|
|
</html>
|
|
|