86 lines
3.5 KiB
HTML
86 lines
3.5 KiB
HTML
<HTML>
|
|
<HEAD>
|
|
<TITLE>SGI Embedded Support Partner - ver.1.0</TITLE>
|
|
<SCRIPT LANGUAGE="JavaScript">
|
|
<!--
|
|
function showMap()
|
|
{ var map=window.open('/help_add_event.html', 'help',
|
|
'width=650,height=350,status=yes,scrollbars=yes,resizable=yes');
|
|
map.main=self;
|
|
map.main.name="sss_main";
|
|
map.focus();
|
|
}
|
|
|
|
function clearForm(form)
|
|
{ document.eventadd.custom_class_description.value = "";
|
|
form.custom_type_description.value = "";
|
|
form.ev_class.selectedIndex = -1;
|
|
}
|
|
|
|
|
|
function verifyCustData()
|
|
{ choice = document.eventadd.ev_class.selectedIndex;
|
|
var new_class = "";
|
|
var nclass = "";
|
|
new_class = document.eventadd.custom_class_description.value;
|
|
document.eventadd.custom_class_description.focus();
|
|
if(choice == -1)
|
|
{ if(new_class == "")
|
|
{ alert("You must choose an existing class or specify a new class description.")
|
|
return false;
|
|
}
|
|
}
|
|
else
|
|
{ if(new_class != "")
|
|
{ alert("You can choose either existing class or add a new class.");
|
|
return false;
|
|
}
|
|
nclass = document.eventadd.ev_class.options[choice].text;
|
|
}
|
|
if(new_class != "" && choice == -1)
|
|
nclass = new_class;
|
|
new_desc = document.eventadd.custom_type_description.value;
|
|
document.eventadd.custom_type_description.focus();
|
|
if(new_desc == "")
|
|
{ alert("Missing new event description")
|
|
return false
|
|
}
|
|
msg1 = "You are about to add a new event with the following parameters:\n";
|
|
msg1 += "\nEvent class = " + nclass + "\nEvent = " + new_desc;
|
|
return confirm(msg1);
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
</HEAD>
|
|
<body bgcolor="#ffffcc">
|
|
<form name="eventadd" onSubmit="return verifyCustData()" method=POST action="/$sss/rgs/libsemserver~EVENT_ADD_INFO">
|
|
<a href="/$sss/$nocache"></a>
|
|
<TABLE border=0 cellpadding=0 cellspacing=0 width=100%>
|
|
<TR><TD bgcolor="#cccc99" width=15><FONT FACE=Arial,Helvetica> </TD>
|
|
<TD bgcolor="#cccc99"><FONT FACE=Arial,Helvetica>SETUP > Events > Add</TD></TR>
|
|
<TR><TD colspan=2> </TD></TR>
|
|
<TR><TD align=right colspan=2><FONT FACE=Arial,Helvetica><input TYPE=button onClick="showMap()" Value=" Help "></TD></TR>
|
|
<TR><TD colspan=2> </TD></TR>
|
|
<TR><TD></TD>
|
|
<TD><TABLE border=0 cellspacing=0 cellpadding=0>
|
|
<TR valign=top><TD><FONT FACE=Arial,Helvetica>Either select a class name for the new event:</TD>
|
|
<TD> </TD>
|
|
<TD><FONT FACE=Arial,Helvetica><a href="/$sss/rg/libsemserver~CREATE_CLASS_LIST">CREATE_CLASS_LIST</a></TD></TR>
|
|
<TR><TD colspan=3> </TD></TR>
|
|
<TR valign=top><TD><FONT FACE=Arial,Helvetica>Or create a new class name for the new event:</TD>
|
|
<TD> </TD>
|
|
<TD><FONT FACE=Arial,Helvetica><INPUT TYPE="TEXT" NAME="custom_class_description" size=30></TD></TR>
|
|
<TR><TD colspan=3> </TD></TR>
|
|
<TR valign=top><TD><FONT FACE=Arial,Helvetica>Enter a name for the new event:</TD>
|
|
<TD> </TD>
|
|
<TD><FONT FACE=Arial,Helvetica><INPUT TYPE="TEXT" NAME="custom_type_description" size=30></TD></TR>
|
|
<TR><TD colspan=3> </TD></TR>
|
|
<TR><TD colspan=3><FONT FACE=Arial,Helvetica><INPUT TYPE="SUBMIT" VALUE=" Accept ">
|
|
|
|
<INPUT TYPE="BUTTON" VALUE=" Clear " onClick="clearForm(this.form)">
|
|
<input type="hidden" name="multiselect" value=1>
|
|
<input type="hidden" name="pageselect" value=1>
|
|
<a href="/$sss/rg/libsemserver~GETSYSID">GETSYSID</a></TD></TR></TABLE>
|
|
</TD></TR></TABLE>
|
|
</form></body></html>
|