geoinfo_admin/src/main/webapp/WEB-INF/views/admins/board/11-modify.jsp

1 line
3.3 KiB
Plaintext
Raw Normal View History

2024-03-14 02:46:01 +00:00
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script src="${pageContext.request.contextPath}/js/jquery/jquery-1.10.2.min.js"></script> <link rel="stylesheet" href="${pageContext.request.contextPath}/css/admins/style.css" type="text/css"> <script src="${pageContext.request.contextPath}/js/admins/board.js"></script> <script> var context = "${pageContext.request.contextPath}"; function check() { var idx = $("#idx").val(); var subject = $("#subject").val(); var content = $("#content").val(); $.ajax({ type : "POST", url : context + "/admins/board/11-modify-post.json", data : { idx : idx, subject : subject, content : content }, dataType :"json", success : function( json ){ if(json.success) { alert("정상적으로 수정 되었습니다."); location.href = context + "/admins/board/11.do"; } else { alert("수정 중에 오류가 발생하였습니다. 다시 시도해주세요"); } }, error : function(response){ alert("수정 중에 오류가 발생하였습니다. 다시 시도해주세요"); } }); } </script> </head> <body> <form name="writeForm" method="post"> <input type="hidden" id="idx" name="idx" value="${result.idx}"> <table id="Table_Main" width="100%" border="0" cellpadding="0" cellspacing="0"> <tr><td colspan=2><img src="${pageContext.request.contextPath}/images/admins/board/5_toptit_04.gif"></td></tr> <tr height=20><td colspan=2>&nbsp;</td></tr> <tr height=25> <td>&nbsp;</td> <td align="right"> <a href="#" onClick="javascript:check()"><img src="${pageContext.request.contextPath}/images/admins/cus_bnt_save.gif" border="0" alt="저장"></a> <a href="#" onClick="javascript:history.go(-1)"><img src="${pageContext.request.contextPath}/images/admins/cus_bnt_cancel.gif"></a> </td> </tr> <tr height=12><td colspan=2><img src="${pageContext.request.contextPath}/images/admins/spacer.gif" width="1" height="12"></td></tr> <tr> <td colspan=2> <table id="Table_List" width="100%" border="0" cellpadding="8" cellspacing="1" bgcolor="#CACACA"> <!-- START : 질문 -----------------------------------------------------------------------------> <tr height=28 bgcolor="#E3F4FE" class="faq_q"> <td>질문내용</td> </tr> <tr bgcolor="#FFFFFF"> <td class="faq_a" valign="top"> <textarea cols=90 maxlength="100" id="subject" name="subject"><c:out value="${result.subject}" /></textarea> </td> </tr> <!-- END : 질문 -----------------------------------------------------------------------------> <!-- START : 답변 -----------------------------------------------------------------------------> <tr height=28 bgcolor="#E3F4FE" class="faq_q"> <td>답변내용</td> </tr> <tr height=150 bgcolor="#FFFFFF"> <td class="faq_a" valign="top"> <textarea cols=90 rows="10" id="content" name="content"><c:out value="${result.content}" /></textarea> </td> </tr> <!-- END : 답변 -----------------------------------------------------------------------------> </table> </td> </tr> </table> </form> </body> </html>