diff --git a/KNU_MUSEUM/src/main/webapp/artifact_edit.jsp b/KNU_MUSEUM/src/main/webapp/artifact_edit.jsp deleted file mode 100644 index f5fcdeb..0000000 --- a/KNU_MUSEUM/src/main/webapp/artifact_edit.jsp +++ /dev/null @@ -1,227 +0,0 @@ -<%@ page language="java" contentType="text/html; charset=UTF-8" - pageEncoding="UTF-8"%> -<%@ page language="java" import="java.text.*, java.sql.*"%> -<%@ page import="common.Person"%> - - - - -KNU_MUSEUM - - - - - - <% - String serverIP = "localhost"; - //String strSID = "xe"; - String strSID = "orcl"; - String portNum = "1521"; - String user = "KNU_MUSEUM"; - String pass = "comp322"; - String url = "jdbc:oracle:thin:@" + serverIP + ":" + portNum + ":" + strSID; - Connection conn = null; - Statement stmt = null; - Class.forName("oracle.jdbc.driver.OracleDriver"); - conn = DriverManager.getConnection(url, user, pass); - - String AdminID = (String) session.getAttribute("AdminID"); - %> - - -
- -
-
- <% - // Get the ArtifactID from the request parameter - String ArtifactID = request.getParameter("ArtifactID"); - - // Declare variables to store retrieved details - String Artname = ""; - String Image = ""; - String Location = ""; - String Class = ""; - String Era = ""; - String MadminID = ""; - - // Check if ArtifactID is not null - if (ArtifactID != null && !ArtifactID.isEmpty()) { - try { - // Prepare SQL statement to retrieve details for the given ArtifactID - String query = "SELECT Artname, Image, Location, Class, Era, MadminID FROM Artifact WHERE ArtifactID = ?"; - PreparedStatement pstmt = conn.prepareStatement(query); - pstmt.setString(1, ArtifactID); - - // Execute the query - ResultSet rs = pstmt.executeQuery(); - - // Check if the result set has a row - if (rs.next()) { - // Retrieve details - Artname = rs.getString(1); - Image = rs.getString(2); - Location = rs.getString(3); - Class = rs.getString(4); - Era = rs.getString(5); - MadminID = rs.getString(6); - } - - // Close resources - rs.close(); - pstmt.close(); - } catch (Exception e) { - // Handle exceptions - e.printStackTrace(); - } - } else { - // Handle the case where ArtifactID is null or empty - out.println("ArtifactID is not specified."); - } - %> -

기존 정보

-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
- -
- -

수정 정보

-
- -
- -
-
-
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- - - - - -
-
- - \ No newline at end of file diff --git a/KNU_MUSEUM/src/main/webapp/searchid.html b/KNU_MUSEUM/src/main/webapp/searchid.html index 126506e..484fac0 100644 --- a/KNU_MUSEUM/src/main/webapp/searchid.html +++ b/KNU_MUSEUM/src/main/webapp/searchid.html @@ -56,7 +56,7 @@

아이디 찾기

+ placeholder="휴대폰 번호를 '-'를 포함하여 입력해주세요." required>
diff --git a/KNU_MUSEUM/src/main/webapp/searchpw.html b/KNU_MUSEUM/src/main/webapp/searchpw.html index 948e5b6..0fff923 100644 --- a/KNU_MUSEUM/src/main/webapp/searchpw.html +++ b/KNU_MUSEUM/src/main/webapp/searchpw.html @@ -62,7 +62,7 @@

비밀번호 찾기

- +