%@ page language="java" pageEncoding="UTF-8" %>
<%@ page import="java.io.File" %>
<%@ page import="kr.comsquare.soonsu.define.AdminMessage" %>
<% request.setCharacterEncoding("UTF-8"); %>
TrustForm Soonsu
<%
String strLanguage = AdminMessage.LANGUAGE;
String strFontFamily = "Dotum, arial";
if ("jp".equals(strLanguage))
{
strFontFamily = "MS Gothic, arial";
}
else if ("us".equals(strLanguage))
{
strFontFamily = "arial";
}
AdminMessage objAdminMessage = new AdminMessage();
String strLogin = (String)session.getAttribute("login");
if (strLogin == null || !strLogin.equals("Success"))
{
%>
<%
return;
}
String strPathType = request.getParameter("inputFolderPathType");
String strPathNum = request.getParameter("inputFolderPathNum");
String strCurrentPath = request.getParameter("inputFolderValue") == null ? "" : request.getParameter("inputFolderValue");
String strTargetPath = request.getParameter("inputTargetValue") == null ? "" : request.getParameter("inputTargetValue");
String strFileSep = strPathType.equals("inputXrwPath") ? File.separator : "/";
if (strTargetPath.equals(".."))
{
if (strCurrentPath.substring(strCurrentPath.length()-1).equals(strFileSep)) strCurrentPath = strCurrentPath.substring(0, strCurrentPath.length()-1);
if (strCurrentPath.lastIndexOf(strFileSep) < 0)
{
strCurrentPath = "";
}
else
{
strCurrentPath = strCurrentPath.substring(0, strCurrentPath.lastIndexOf(strFileSep)) + strFileSep;
}
}
else
{
if (strCurrentPath.equals(""))
{
if (strPathType.equals("inputHtmlPath")) strCurrentPath = "/";
}
else if (!strCurrentPath.substring(strCurrentPath.length()-1).equals(strFileSep))
{
strCurrentPath += strFileSep;
}
if (!strTargetPath.equals(""))
{
if (strTargetPath.substring(strTargetPath.length()-1).equals(strFileSep)) strTargetPath = strTargetPath.substring(0, strTargetPath.length()-1);
strCurrentPath = strCurrentPath + strTargetPath + strFileSep;
}
}
String strContextPath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath();
String strCurrentRealPath = strPathType.equals("inputXrwPath") ? strCurrentPath : application.getRealPath("") + strCurrentPath;
strCurrentRealPath = strCurrentRealPath.replace("/", File.separator);
%>
onload="adjustHtmlPath();"<% } %>>
|
|
<%
if (strPathType.equals("inputHtmlPath") || (strPathType.equals("inputXrwPath") && objFolderList.exists()))
{
out.println(" ");
}
%>
" alt="<%=objAdminMessage.getTip("modal03")%>"/>
|