 |
您现在所在位置:投诉援助/上海市税务系统涉税业务监督举报地址、电话
<%#
path = ${PATH};
// 取得该栏目的所在的路径
ParentPath = path.substr(0,path.lastIndexOf("/"));
// 取得该栏目的名称
CurrentFolder = path.substr(path.lastIndexOf("/")+1);
// 取得该栏目的URL
Records.RawSource="GET 栏目(name) FROM " + ParentPath + " WHERE name='" + CurrentFolder + "'";
Records.MaxRecords = 1;
Records.MoveNext();
CurUrl = Records.URL;
// 取得栏目的主页的文件名
UrlIndexName = CurUrl.substr(CurUrl.lastIndexOf("/")+1);
UrlCurPath = CurUrl.substr(0,CurUrl.lastIndexOf("/"));
RootPath = "财税局网站";
ForWriteFolderName = "";
CurrentRelPath = "";
PathLevel = 0;
ParentPath = path;
tmpStr = "";
while (CurrentFolder != RootPath ){
ForWriteFolderName = ForWriteFolderName + "/" + CurrentFolder;
CurrentRelPath = "../" + CurrentRelPath;
CurrentFolder = ParentPath.substr(ParentPath.lastIndexOf("/")+1);
ParentPath = ParentPath.substr(0,ParentPath.lastIndexOf("/"));
PathLevel = PathLevel + 1;
}
CurrentRelPath = CurrentRelPath.substr(0,CurrentRelPath.lastIndexOf("/")-2);
while(PathLevel >= 2){
CurrentFolder = ForWriteFolderName.substr(ForWriteFolderName.lastIndexOf("/")+1);
ForWriteFolderName = ForWriteFolderName.substr(0,ForWriteFolderName.lastIndexOf("/"));
CurrentRelPath = CurrentRelPath.substr(0,CurrentRelPath.lastIndexOf("/")-2);
if (PathLevel >=2)
{
Write("/");
}
}
#%>
|
|
|