<%@ page contentType="text/html; charset=Shift_JIS" %>
<%@ page pageEncoding="Windows-31J"%>
<%@ taglib prefix="c" uri="/WEB-INF/tlds/c.tld" %>
<%-- <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> --%>
<%@ page import="jp.co.orangesoft.xgate.util.MobilePhoneAccessKey" %>
<jsp:useBean id="htmltool" class="jp.co.orangesoft.xgate.util.HtmlTool"/>

<%
	String servlet = (String)request.getAttribute("servlet");
	String uid = htmltool.format(request.getAttribute("uid"));
	String del = htmltool.format(request.getAttribute("del"));
	String subject = htmltool.format(request.getAttribute("subject"));
	String term = (String)request.getAttribute("term");
	java.util.Locale lang = (java.util.Locale)request.getAttribute("lang");
	MobilePhoneAccessKey accesskey = new MobilePhoneAccessKey();

	String title = "Delete a message?";
	String msg = "";
	String yes = "Yes";
	String no = "No";
	String charset = "Windows-31J";

	if(lang.equals(java.util.Locale.JAPANESE)){
		if(subject == null || subject.length() == 0) subject = "無題";
		subject = "「"+subject+"」";
		title = "ﾒｯｾｰｼﾞ削除の確認";
		msg = "を削除します。よろしいですか？";
		yes = "はい";
		no = "いいえ";
	}else{
		if(subject == null || subject.length() == 0) subject = "no subject";
		subject = "\""+subject+"\"";
	}
%>

<%-- ==================================================================================== --%>
<c:choose>

<c:when test="${term == 'imode' || term == 'astel' || term == 'wml' || term == 'willcom'}">
	<% response.setContentType("text/html;charset="+charset); %>

	<html>
	<body>
	<%=title%>
	<hr>
	<%=subject%><br>
	<%=msg%>
	<p>

	<a accesskey="1" href="<%= servlet+"?cmd=DM&uid="+uid+"&del="+del %>"><%=yes%></a>
	<br>
	<a accesskey="0" href="<%= servlet+"?cmd=SM&uid="+del %>"><%=no%></a>
	</body>
	</html>
</c:when>

<%-- ==================================================================================== --%>
<c:when test="${term == 'jphone' || term == 'jsky'}">
	<% response.setContentType("text/html;charset="+charset); %>
	
	<html>
	<head>
	<title><%=title%></title>
	</head>
	<body>
	<hr>
	<%=subject%><br>
	<%=msg%><p>
	<a directkey="1" href="<%= servlet+"?cmd=DM&juid="+uid+"&jdel="+del %>"><%=yes%></a>
	<%--<a directkey="1" href="%%servlet%%?cmd=DM%%amp%%subno=%%subno%%%%amp%%juid=%%uid%%"><%=yes%></a>--%>
	<br>
	<a directkey="0" href="<%= servlet+"?cmd=SM&juid="+del %>"><%=no%></a>
	</body>
	</html>
</c:when>

<%-- ==================================================================================== --%>
<c:when test="${term == 'hdml'}">
	<% response.setContentType("text/x-hdml;charset="+charset); %>
	<%-- hdmlはない --%>
</c:when>

<%-- ==================================================================================== --%>
<c:otherwise>
	<% response.setContentType("text/html;charset="+charset); %>
	
	<html>
	<head>
	<title><%=title%></title>
	<meta name="viewport" content="width=device-width">
	</head>
	<body bgcolor="#CCFFFF">
	<%=title%>
	<hr>
	<%=subject%><br>
	<%=msg%>
	<center>
	<a href="<%= servlet+"?cmd=DM&uid="+uid+"&palm=yes&del="+del %>"><%=yes%></a>
	&nbsp;
	<a href="<%= servlet+"?cmd=SM&uid="+del+"&palm=yes" %>"><%=no%></a>
	</center>
	</body>
	</html>
</c:otherwise>

<%-- ==================================================================================== --%>
</c:choose>

<!-- Copyright (c) 2000,2001 Orangesoft Inc. All Rights Reserved. -->
