EMP_SHOW_PIC.jsp 941 Bytes
Newer Older
Thitichaipun Wutthisak committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
<%@page contentType="text/html; charset=UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
<%
			
		 	String imgpath="";
      		int linkpage = Integer.parseInt(request.getParameter("page"));
			switch(linkpage){
				case 1:
				       imgpath = "HondaPic/Calendar.jpg";
				break;
					case 2:
				       imgpath = "HondaPic/Layout.jpg";
				break;
					case 3:
				       imgpath = "HondaPic/Welfare.jpg";
				break;
					case 4:
				       imgpath = "HondaPic/Pricecar.jpg";
				break;
					case 5:
				       imgpath = "HondaPic/Enginecar.jpg";
				break;
					case 6:
				       imgpath = "HondaPic/Vacation.jpg";
				break;
			}
%>
</head>

<body>
<div>
<img src="<% out.print(imgpath);%>"  />
</div>

</body>
</html>