fairnet/src/main/webapp/WEB-INF/jsp/com/holiday/holidayInsert.jsp

95 lines
2.7 KiB
Plaintext

<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html>
<html lang="ko">
<head>
<title>공휴일 관리</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<script type="text/javaScript" language="javascript">
function fn_insert(){
if($("#dateName").val() == ''){
alert("공휴일 이름을 입력해 주세요.")
return false;
}
if(!/^\d{8}$/.test($("#locdate").val())){
alert("날짜는 YYYYMMdd 양식으로 작성해 주세요.");
return false;
}
var frm = document.holidayVO;
frm.action = "<c:url value='/uss/holiday/insertHoliday.do'/>";
frm.submit();
}
</script>
</head>
<body>
<form name="holidayVO" action="${pageContext.request.contextPath}/uss/holiday/selectHolidayList.do" method="post">
<!-- cont -->
<div class="cont_wrap">
<div class="box">
<!-- cont_tit -->
<div class="cont_tit">
<h2>공휴일 등록</h2>
<ul class="cont_nav">
<li class="home"><a href="/"><i></i></a></li>
<li>
<p>공휴일관리</p>
</li>
<li>
<p>공휴일관리</p>
</li>
<li><span class="cur_nav">공휴일 등록</span></li>
</ul>
</div>
<!-- //cont_tit -->
<div class="cont">
<!-- list_상세 -->
<div class="tbType02 col-table data-table">
<table>
<colgroup>
<col style="width: 20%">
<col style="width: 80%">
</colgroup>
<tbody>
<tr>
<th><span class="reqArea">공휴일 이름</span></th>
<td class="txaIpt">
<input type="text" name="dateName" id="dateName" maxlength="30" class="txaIpt w100per"/>
</td>
</tr>
<tr>
<th><span class="reqArea">날짜</span></th>
<td>
<input type="text" name="locdate" id="locdate" maxlength="8" placeholder="YYYYMMdd" class="txaIpt w100per"/>
</td>
</tr>
</tbody>
</table>
</div>
<!-- //list_상세 -->
<!-- btn_wrap -->
<div class="btn_wrap">
<div class="area_right">
<button class="btn btn_text btn_46 gray_fill btnType03" onclick="location.href='/uss/holiday/selectHolidayList.do'; return false;">목 록</button>
<button class="btn btn_text btn_46 blue_fill btnType02" onclick="fn_insert(); return false;">등 록</button>
</div>
</div>
<!-- //btn_wrap -->
</div>
</div>
</div>
<!-- //cont -->
</form>
</body>
</html>