home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 February
/
CHIP_2_98.iso
/
software
/
pelne
/
optionp
/
iis4_03.cab
/
iiamapls.asp
< prev
next >
Wrap
Text File
|
1997-11-12
|
5KB
|
154 lines
<%@ LANGUAGE=VBScript %>
<% Option Explicit %>
<% Response.Expires = 0 %>
<%
Const L_ENTERVALUE_ERRORMESSAGE="Please enter a value."
Const L_LOADED_TEXT = "Loaded"
Const L_UNLOADED_TEXT = "Unloaded"
Const L_DISABLED_TEXT = "Disabled"
Const L_LOW_TEXT = "Low"
Const L_MEDIUM_TEXT = "Medium"
Const L_HIGH_TEXT = "High"
Const L_BROWSE_TEXT = "Browse"
%>
<HTML>
<HEAD>
<TITLE></TITLE>
<SCRIPT LANGUAGE = "JavaScript">
function SetUpdated(){
i = parent.head.listFunc.sel;
parent.head.cachedList[i].ext = document.listform.editMe.value;
parent.head.cachedList[i].exclusions = document.listform.exclusions.value;
parent.head.cachedList[i].path = document.listform.exepath.value;
parent.head.cachedList[i].checkfiles = document.listform.checkfiles.checked;
parent.head.cachedList[i].scripteng = document.listform.scripteng.checked;
parent.head.cachedList[i].displaypath = crop(document.listform.exepath.value,18);
parent.head.cachedList[i].updated = true;
}
function crop(thestring,size){
<% if Session("FONTSIZE") = "LARGE" then %>
size = size-10;
<% end if %>
if (thestring.length > size)
{
thestring = thestring.substring(0,size) + "...";
}
return thestring;
}
function chgStatus(indexnum){
parent.head.listFunc.sel=indexnum
self.location.href = "iiamapls.asp";
}
function chkPath(pathCntrl){
if (pathCntrl.value != ""){
top.connect.location.href = "iichkpath.asp?path=" + escape(pathCntrl.value) + "&ptype=1";
}
}
function displayVal(dispstr, altstr){
if (dispstr == ""){
dispstr = altstr;
}
return dispstr;
}
function writeCol(colspan,w,str){
var writestr = "<TD";
if (colspan != ""){
writestr += " COLSPAN = " + colspan
}
if (w != ""){
writestr += " WIDTH = " + w;
}
<% if Session("IsIE") then %>
writestr += " STYLE = 'font-face: Helv; font-size: 8pt;'";
<% end if %>
writestr += "><FONT SIZE = 1 FACE = 'Helv,ARIAL'>" + str + "</FONT></TD>";
return writestr;
}
</SCRIPT>
</HEAD>
<BODY BGCOLOR="FFFFFF" LEFTMARGIN = 0 TOPMARGIN = 0>
<FORM NAME="listform">
<SCRIPT LANGUAGE="JavaScript">
editOK = false;
sel = eval(parent.head.listFunc.sel);
var writestr = "<TABLE BORDER=0 CELLPADDING = 2 CELLSPACING = 0>"
for (var i = 0; i < parent.head.cachedList.length; i++) {
if (!parent.head.cachedList[i].deleted){
<% if Session("IsAdmin") then %>
if (sel != i) {
<% else %>
if (true){
<% end if %>
writestr += "<TR>"
writestr += writeCol(1,50,"<A HREF='javascript:chgStatus("+i+");'>" + parent.head.cachedList[i].ext +" </A>");
writestr += writeCol(1,125,parent.head.cachedList[i].displaypath);
writestr += writeCol(1,80,parent.head.cachedList[i].exclusions);
if (parent.head.cachedList[i].scripteng){
writestr += writeCol(1,75,"<IMG HSPACE=4 SRC='images/checkon.gif'>");
}
else{
writestr += writeCol(1,75,"<IMG HSPACE=4 SRC='images/checkoff.gif'>");
}
if (parent.head.cachedList[i].checkfiles){
writestr += writeCol(1,125,"<IMG HSPACE=4 SRC='images/checkon.gif'>");
}
else{
writestr += writeCol(1,125,"<IMG HSPACE=4 SRC='images/checkoff.gif'>");
}
writestr += "</TR>";
}
else {
editOK = false;
writestr += "<TR>"
writestr += writeCol(1,50,"<INPUT NAME='editMe' SIZE='2' VALUE='" + parent.head.cachedList[i].ext + "' OnBlur='SetUpdated();'>");
writestr += writeCol(1,125,"<INPUT NAME='exepath' SIZE='15' VALUE='" + parent.head.cachedList[i].path + "' OnBlur='SetUpdated();'>");
writestr += writeCol(1,80,"<INPUT NAME='exclusions' SIZE='8' VALUE='" + parent.head.cachedList[i].exclusions + "' OnBlur='SetUpdated();'>");
if (parent.head.cachedList[i].scripteng){
writestr += writeCol(1,75,"<INPUT TYPE='checkbox' NAME='scripteng' CHECKED ONCLICK='SetUpdated();'>");
}
else{
writestr += writeCol(1,75,"<INPUT TYPE='checkbox' NAME='scripteng' ONCLICK='SetUpdated();'>");
}
if (parent.head.cachedList[i].checkfiles){
writestr += writeCol(1,125,"<INPUT TYPE='checkbox' NAME='checkfiles' CHECKED ONCLICK='SetUpdated();'>");
}
else{
writestr += writeCol(1,125,"<INPUT TYPE='checkbox' NAME='checkfiles' ONCLICK='SetUpdated();'>");
}
writestr += "</TR>";
}
}
}
writestr += "</TABLE>";
document.write(writestr);
</SCRIPT>
</FORM>
<% if Session("IsAdmin") then %>
<SCRIPT LANGUAGE="JavaScript">
if (editOK){
document.listform.editMe.focus();
document.listform.editMe.select();
}
</SCRIPT>
<% end if %>
</BODY>
</HTML>