Title / Description
Code <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="com.dreamsecurity.relaycert.db.*"%> <%@ page import="com.dreamsecurity.relaycert.object.objFAQ" %> <% int idx = Integer.parseInt(request.getParameter("idx")); int pg = Integer.parseInt(request.getParameter("pg")); String fType = request.getParameter("ftype"); //================================================ DB setting - S ================================================ DBProcessManager dbObj = null; String confBaseDir = application.getInitParameter( "relaycert.base.conf.directory" ); if( confBaseDir=="" || confBaseDir==null ) confBaseDir = "./conf"; dbObj = new DBProcessManager( confBaseDir + "/db.properties"); //================================================ DB setting - E ================================================ objFAQ vo = dbObj.viewFAQ(idx); %> <!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> <title>한국도로공사 인증관리센터</title> <meta http-equiv="X-UA-Compatible" content ="IE=Edge"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Cache-Control" content="no-cache" /> <meta http-equiv="Expires" content="0" /> <meta http-equiv="Pragma" content="no-cache" /> <link rel="stylesheet" href="../css/layout.css" /> <link rel="stylesheet" href="../css/sub.css" /> <link rel="stylesheet" type="text/css" href="../css/tab.css" /> <link rel="stylesheet" type="text/css" href="../css/sumoselect.css"/> <script language="javascript" src="../js/GPKICommon_CMP.js"> </script> <script language="javascript" src="../js/var.js" > </script> <script language="javascript" src="../js/spin.js" > </script> <script language="javascript" src="../js/jquery-1.11.3.min.js"> </script> <script language="javascript" src="../js/jquery.sumoselect.js"> </script> <script src="../js/jquery.accordion.js"></script> <script language="javascript" src="../js/Base64.js"> </script> <jsp:include page="common.jsp" flush="false"/> <% String sValue = (String)session.getAttribute("suname"); if( sValue == "" || sValue == null ) { %> <script type='text/javascript'> self.window.alert("로그인을 먼저 수행하세요."); location.href="adminLogin.jsp"; </script> <% } %> <script> //mod by leegy function modifyCheck() { var form = document.modifyform; var slValue = form.faqtype.options[form.faqtype.selectedIndex].value; if( slValue == null || slValue == 00 ) { alert( "FAQ 구분을 선택하세요." ); form.faqtype.focus(); return; } form.ftype.value = slValue; if( !form.opername.value ) { alert( "운영자 이름을 입력하세요." ); form.opername.focus(); return; } if( !form.title.value ) { alert( "FAQ 제목을 입력하세요." ); form.title.focus(); return; } if( !form.memo.value ) { alert( "FAQ 내용을 입력하세요." ); form.memo.focus(); return; } form.submit(); } // add by leegy function limitCharacters(textid, limit) { // 잆력 값 저장 var text = $('#'+textid).val(); // 입력값 길이 저장 var textlength = text.length; stringByteLength = (function(s,b,i,c){ for(b=i=0;c=s.charCodeAt(i++);b+=c>>11?3:c>>7?2:1); return b; })(text); if(stringByteLength > limit){ alert(limit+'자 이상 쓸수 없습니다!'); // 제한 글자 길이만큼 값 재 저장 $('#'+textid).val(text.substr(0,limit)); $('#'+textid).focus(); return false; }else{ return true; } } // add by leegy $(function(){ $('#opername').keyup(function(){ limitCharacters('opername', 16); }) $('#title').keyup(function(){ limitCharacters('title', 1024); }) $('#memo').keyup(function(){ limitCharacters('memo', 4000); }) }); //m_navi function hd(){ $("#nav-mobile ul.expanded").removeClass("expanded").slideUp(250); $(this).removeClass("open"); } $(document).ready(function(){ $("#nav-mobile").html($("#nav-main").html()); $("#nav-trigger span").click(function(){ if (!$("#nav-mobile ul").hasClass("expanded")) { $("#nav-mobile ul").addClass("expanded").slideDown(250); $(this).addClass("open"); } else { $("#nav-mobile ul.expanded").removeClass("expanded").slideUp(250); $(this).removeClass("open"); } }); }); //Document Click var ctrmenu = 0; $(document).mouseup(function(){ if(ctrmenu==0){ $("#nav-mobile ul.expanded").removeClass("expanded").slideUp(250); $("#nv-trigger span").removeClass("open"); } }); /*! Dropdown List*/ $(document).ready(function () { window.asd = $('.SlectBox').SumoSelect({ csvDispCount: 3 }); window.test = $('.testsel').SumoSelect({okCancelInMulti:true }); window.testSelAll = $('.testSelAll').SumoSelect({okCancelInMulti:true, selectAll:true }); window.testSelAll2 = $('.testSelAll2').SumoSelect({selectAll:true }); }); // 저장하기 탭 메뉴 function tab_menu(num){ var f = $('.faq_title_btn').find('li'); for ( var i = 0; i < f.length; i++ ) { if ( i == num) { f.eq(i).addClass('active'); $('.menu_tab0' + i ).show(); } else { f.eq(i).removeClass('active'); $('.menu_tab0' + i ).hide(); } } } //탭메뉴 $(function() { $('.faq_tab').accordion({ multiOpen: false }); }); </script> </head> <body> <iframe id = "MagicCMPNpIframe" style="display:none"></iframe> <div id="wrapper"> <div id="top_gnb"> <div class="contents"> <div class="top_bord"> <h1><a href="./gotoCertMgmt.jsp"><img src="../images/layout/top_logo.gif" alt="한국도로공사" /></a></h1> <!-- mod by leegy --> <div class="top_info"> <span class="top_info1"><a href="./gotoCertMgmt.jsp">홈</a></span> <span class="top_info2"><a href="./adminLogout_ok.jsp"><span class="btn_dkblu">로그아웃</span></a></span> <span class="top_info3">[<%=sValue %>]님이 로그인 중 입니다.</span> </div> </div> </div> </div><!--//top_gnb--> <div class="contents"> <div id="left_lnb"> <a href="./gotoCertMgmt.jsp"><h2>인증관리센터</h2></a> <ul class="lnb"> <li><a href="statisticspage.jsp">페이지별 접속현황</a></li> <li><a href="deptCertStatistic.jsp">부서별 발급현황</a></li> <li><a href="issuedStatus.jsp">사용자별 발급현황</a></li> <li><a href="userRequest.jsp">사용자등록 신청</a></li> <li><a href="exuserRequest.jsp">외부사용자등록 신청</a></li> <li><a href="userRegister.jsp">사용자등록 승인/반려</a></li> <li><a href="approval.jsp">사용자발급 승인/반려</a></li> <li><a href="login_option.jsp">로그인 방법 변경</a></li> <li><a href="adminList.jsp">관리자 등록관리</a></li> <li class="last on"><a href="faqList.jsp">자주 묻는 질문</a></li> </ul> </div><!--//left_lnb--> <div id="right_contents"> <!-- add by leegy --> <div class="con_tit_area"> <div class="con_tit_navi"><img src="../images/icon_home.png" alt="home"/> > 인증관리센터 > FAQ 등록관리 > <b>FAQ 변경</b></div> </div> <h3 class="cont_h3">FAQ 변경</h3> <!-- add by leegy --> <h4 class="cont_h4">등록된 FAQ 내용을 변경합니다.</h4> <!--content--> <div id="content"> <!-- Content : S --> <form name=modifyform method=post action="faqModify_ok.jsp?idx=<%=idx%>&pg=<%=pg%>&ftype=<%=fType%>"> <div class="con_box_area"> <div class="con_box_full"> <!-- del by leegy --> <!-- span class="con_sub_tit"><span class="blu_bullet">+</span> FAQ 정보 변경</span--> <div class="info_tbl_area"> <table class="info_tbl"> <caption>FAQ정보 테이블</caption> <!-- mod by leegy --> <colgroup> <col width="120px"/> <col width="200px"/> <col width="120px"/> <col width="200px"/> </colgroup> <tr> <th>구분</th> <td> <select class="SlectBox" name="faqtype"> <%if( "01".equals(vo.getFaqtype()) ) { %> <option value="01" selected="selected">인증서 발급</option> <option value="02">인증서 로그인</option> <% } else { %> <option value="01">인증서 발급</option> <option value="02" selected="selected">인증서 로그인</option> <% } %> </select> </td> <th>작성자</th> <td><input type="text" name="opername" id="opername" class="input" value="<%=sValue%>" /></td> </tr> <tr> <th>제목</th> <td colspan="3"><input type="text" name="title" ide="title" class="input" value='<%=vo.getTitle()%>'/></td> </tr> </table> </div> </div> <div class="con_box_full"> <div class="info_tbl_area"> <textarea name="memo" id="memo" class="textarea" style="height:300px;"><%=vo.getMemo()%></textarea> </div> </div> </div> <input type="hidden" name="ftype"/> </form> <!-- Content : E --> <div class="con_box_clear"></div> <!-- Searching : S --> <div class="confirm_area"> <div class="con_btn_area_C"> <a href="javascript:modifyCheck();"><span class="btn_blu">수정</span></a> <a href="javascript:history.back(-1);"><span class="btn_nor">취소</span></a> </div> </div> <!-- Searching : S --> </div> <!--//content--> </div><!--//right_contents--> </div><!--//contents--> </div><!--//wrapper--> </body> </html>
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code