home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 February
/
CHIP_2_98.iso
/
software
/
pelne
/
optionp
/
iis4_03.cab
/
iifvdhd.asp
< prev
next >
Wrap
Text File
|
1997-11-12
|
3KB
|
122 lines
<%@ LANGUAGE=VBScript %>
<% Option Explicit %>
<% Response.Expires = 0 %>
<%
Const L_VIRTUALDIRECTORY_TEXT="Directory Properties"
Const L_WHENCONNECTING_TEXT="When connecting to this resource"
Const L_FTP_TEXT="ftp://"
Const L_CONTENTSHOULD_TEXT="the content should come from:"
Const L_DIR_TEXT="a directory located on the server you are configuring."
Const L_NETDIR_TEXT="a share located on another computer."
Const L_REDIR_TEXT="a redirection to a URL."
On Error Resume Next
Dim path, currentobj, keyType, redir, dirtype, quote, dirkeyType
path=Session("dpath")
Session("path")=path
Set currentobj=GetObject(path)
dirkeyType = "IIsFTPDirectory"
%>
<!--#include file="iifixpth.inc"-->
<%
redir=currentobj.HttpRedirect
path=currentobj.path
if redir <> "" then
dirtype="redir"
elseif instr(path,"\\") then
dirtype="net"
else
dirtype="dir"
end if
quote=chr(34)
function writeDirType(thetype)
if thetype=dirtype then
writeDirType="<INPUT TYPE=radio NAME=" & quote & "rdoDirType" & quote & " CHECKED OnClick=" & quote & "SetDirType('" & thetype & "')" & quote & ">"
else
writeDirType="<INPUT TYPE=radio NAME=" & quote & "rdoDirType" & quote & " OnClick=" & quote & "SetDirType('" & thetype & "')" & quote & ">"
end if
end function
%>
<HTML>
<HEAD>
<TITLE></TITLE>
<SCRIPT LANGUAGE="JavaScript">
function SetDirType(theType){
<% if Session("IsIE") then %>
if (theType=="net"){
parent.head.location.href="iifvdnt.asp";
}
if (theType=="redir"){
parent.head.location.href="iifvdrd.asp";
}
if (theType=="dir"){
parent.head.location.href="iifvddir.asp";
}
<% else %>
if (theType=="net"){
parent.frames[1].location.href="iifvdnt.asp";
}
if (theType=="redir"){
parent.frames[1].location.href="iifvdrd.asp";
}
if (theType=="dir"){
parent.frames[1].location.href="iifvddir.asp";
}
<% end if %>
}
</SCRIPT>
</HEAD>
<BODY BGCOLOR="#CCCCCC" TOPMARGIN=5 OnLoad="SetDirType('<%= dirtype %>');" TEXT="#000000" LINK="#FFFFFF" STYLE="font-face: Helv,Arial; font-size:10pt;">
<FONT SIZE=1 FACE="Helv,ARIAL">
<B><%= L_VIRTUALDIRECTORY_TEXT %></B>
<BLOCKQUOTE>
<%= L_WHENCONNECTING_TEXT %> <%= L_CONTENTSHOULD_TEXT %><P>
<BLOCKQUOTE>
<FORM NAME="userform">
<TABLE>
<TR>
<TD ALIGN="left" VALIGN="bottom">
<FONT SIZE=1 FACE="Helv,ARIAL">
<%= writeDirType("dir") %> <%= L_DIR_TEXT %>
</FONT>
</TD>
</TR>
<TR>
<TD ALIGN="left" VALIGN="bottom">
<FONT SIZE=1 FACE="Helv,ARIAL">
<% if Session("vtype") <> "dir" then %>
<%= writeDirType("net") %> <%= L_NETDIR_TEXT %>
<% else %>
<IMG SRC="images/radiooff.gif" WIDTH=12 HEIGHT=12 BORDER=0 ALT="">
<FONT COLOR="Gray">
<%= L_NETDIR_TEXT %>
</FONT>
<% end if %>
</FONT>
</TD>
</TR>
</TABLE>
</BLOCKQUOTE>
</BLOCKQUOTE>
</FORM>
</FONT>
</BODY>
</HTML>