home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 February
/
CHIP_2_98.iso
/
software
/
pelne
/
optionp
/
iis4_03.cab
/
iibkupls.asp
< prev
next >
Wrap
Text File
|
1997-11-12
|
3KB
|
117 lines
<%@ LANGUAGE=VBScript %>
<% Option Explicit %>
<% Response.Expires = 0 %>
<%
Const L_BROWSE_TEXT="Browse"
Const L_FILE_TEXT="File"
Const L_URL_TEXT="URL"
Const L_ALLUNASSIGNED_TEXT="All Unassigned"
Const L_NA_TEXT="N/A"
%>
<HTML>
<HEAD>
<TITLE></TITLE>
<SCRIPT LANGUAGE="JavaScript">
function chgStatus(indexnum){
parent.head.listFunc.id =indexnum;
self.location.href="iibkupls.asp"
}
function SetUpdated(){
}
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;
}
function crop(thestring,size){
<% if Session("FONTSIZE") = "LARGE" then %>
size = size-10;
<% end if %>
sLen = thestring.length
if (sLen > size)
{
thestring = thestring.substring(0,size) + "...";
}
else{
for (var i = sLen ; i < size; i++) {
thestring = thestring + " "
}
}
return thestring;
}
</SCRIPT>
</HEAD>
<BODY BGCOLOR="#FFFFFF" LEFTMARGIN=0 TOPMARGIN=0>
<% if Request.Querystring("text") <> "" then %>
<FONT SIZE=1 FACE='Helv,ARIAL'>
<%= Request.Querystring("text") %>
</font>
<% else %>
<FORM NAME="listform">
<SCRIPT LANGUAGE="JavaScript">
var wrtstr = "";
var editOK=false;
var sel=eval(parent.head.listFunc.id );
var writestr = "<TABLE BORDER=0 CELLPADDING = 2 CELLSPACING = 0>"
for (var i=0;i < parent.head.cachedList.length; i++) {
if (sel !=i) {
if (parent.head.cachedList[i].deleted){
}
else{
writestr += "<TR>";
writestr += writeCol(1,175,"<A HREF='javascript:chgStatus("+i+");'>" + crop(parent.head.cachedList[i].blocation,30) +"</A>");
writestr += writeCol(1,8,parent.head.cachedList[i].bversion);
writestr += writeCol(1,120,crop(parent.head.cachedList[i].bdate,20));
writestr += "</TR>";
}
}
else{
writestr += "<TR BGCOLOR='#DDDDDD'>";
writestr += writeCol(1,175,crop(parent.head.cachedList[i].blocation,30));
writestr += writeCol(1,8,parent.head.cachedList[i].bversion);
writestr += writeCol(1,120,crop(parent.head.cachedList[i].bdate,20));
writestr += "</TR>";
}
}
writestr += "</TABLE>";
document.write(writestr);
</SCRIPT>
<P>
<P>
</FORM>
<SCRIPT LANGUAGE="JavaScript">
if (editOK){
document.listform.editMe.focus();
document.listform.editMe.select();
}
</SCRIPT>
<% end if %>
</BODY>
</HTML>