parent
c4c991c441
commit
256cf0e5fd
@ -0,0 +1,8 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="CompilerConfiguration">
|
||||
<annotationProcessing>
|
||||
<profile name="Maven default annotation processors profile" enabled="true">
|
||||
<sourceOutputDir name="target/generated-sources/annotations" />
|
||||
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
|
||||
<outputRelativeToContentRoot value="true" />
|
||||
<module name="bf" />
|
||||
</profile>
|
||||
</annotationProcessing>
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Encoding" defaultCharsetForPropertiesFiles="UTF-8">
|
||||
<file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/src/main/resources" charset="UTF-8" />
|
||||
<file url="PROJECT" charset="UTF-8" />
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="RemoteRepositoriesConfiguration">
|
||||
<remote-repository>
|
||||
<option name="id" value="central" />
|
||||
<option name="name" value="Central Repository" />
|
||||
<option name="url" value="https://repo.maven.apache.org/maven2" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="maven2" />
|
||||
<option name="name" value="maven2" />
|
||||
<option name="url" value="http://repo1.maven.org/maven2" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="mvnrepository" />
|
||||
<option name="name" value="mvnrepository" />
|
||||
<option name="url" value="https://mvnrepository.com" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="egovframe" />
|
||||
<option name="name" value="egovframe" />
|
||||
<option name="url" value="https://maven.egovframe.go.kr/maven/" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="central" />
|
||||
<option name="name" value="Maven Central repository" />
|
||||
<option name="url" value="https://repo1.maven.org/maven2" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="jboss.community" />
|
||||
<option name="name" value="JBoss Community repository" />
|
||||
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="egovframe" />
|
||||
<option name="name" value="egovframe" />
|
||||
<option name="url" value="http://maven.egovframe.kr:8080/maven/" />
|
||||
</remote-repository>
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,3 @@
|
||||
Manifest-Version: 1.0
|
||||
Class-Path:
|
||||
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Context path="/">
|
||||
<Resources>
|
||||
<PostResources base="d:\bf\music" className="org.apache.catalina.webresources.DirResourceSet" webAppMount="/upload"/>
|
||||
</Resources>
|
||||
</Context>
|
@ -0,0 +1,98 @@
|
||||
<#include "/m/include/index_top.ftl">
|
||||
|
||||
<body><!--grey_bg / blue_w_bg /blue_g_bg-->
|
||||
<div class="wrap">
|
||||
<header class="header_wrapper">
|
||||
<a href="javascript:back.return_url()" class="side_Lbtn hidden pre_btn">이전으로</a>
|
||||
<h1 class="header_title">음악 설정</h1>
|
||||
<a href="#" class="side_Rbtn hidden"></a>
|
||||
</header>
|
||||
<main class="m_set_lighting_time">
|
||||
<header>
|
||||
<h2>
|
||||
음악 설정
|
||||
</h2>
|
||||
</header>
|
||||
<div class="cont">
|
||||
<form id="frmUpdate" name="frmUpdate" method="post">
|
||||
<div class="set_list_wrap">
|
||||
<#list model['music_list'] as item>
|
||||
<div class="list_item">
|
||||
<input type="text" class="word_list" name="word_list" readonly value="${item['music_file_path']!}">
|
||||
<input type="button" onclick="fncModify(this)" value="수정">
|
||||
<input type="button" onclick="fncRemove(this)" value="삭제">
|
||||
</div>
|
||||
</#list>
|
||||
</div>
|
||||
<input type="button" value="추가" onclick="fncAddItem()">
|
||||
<button type="submit" id="" name="" class="btns blue_btn">저장</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<#include "/m/include/index_bottom_info.ftl">
|
||||
</main>
|
||||
</div>
|
||||
<script>
|
||||
var env = {
|
||||
|
||||
is_loading: false,
|
||||
|
||||
init: function(){
|
||||
$('#frmUpdate').on('submit',function(e){
|
||||
if(this.is_loading) {
|
||||
e.preventDefault()
|
||||
return;
|
||||
}
|
||||
|
||||
var data = $('#frmUpdate').serialize()
|
||||
$.ajax({
|
||||
url:'${URL_ROOT}/m/member_env/ajax_update_favorite_word.do',
|
||||
type: 'post',
|
||||
data: data,
|
||||
dataType: 'json',
|
||||
error:function(request,status,error){
|
||||
this.is_loading = false
|
||||
Swal.fire({text: '오류가 발생했습니다'})
|
||||
e.preventDefault()
|
||||
return;
|
||||
}.bind('this'),
|
||||
success:function(result){
|
||||
// console.log(result)
|
||||
this.is_loading = false
|
||||
var RESULT = result.RESULT
|
||||
|
||||
if(RESULT == "1") {
|
||||
Swal.fire({text: '정상적으로 수정되었습니다.'});
|
||||
}
|
||||
}.bind('this'),
|
||||
})
|
||||
|
||||
e.preventDefault()
|
||||
return;
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
$(function(){
|
||||
env.init()
|
||||
})
|
||||
|
||||
function fncAddItem() {
|
||||
$(".set_list_wrap").append("<div class='list_item'>" +
|
||||
"<input class='word_list' type='text' name='word_list' value=''>" +
|
||||
"<input type='button' onclick='fncRemove(this)' value='삭제'></div>")
|
||||
}
|
||||
|
||||
function fncModify(e) {
|
||||
$(e).parent().find(".word_list").prop("readonly", false);
|
||||
}
|
||||
|
||||
function fncRemove(e) {
|
||||
$(e).parent().remove();
|
||||
}
|
||||
</script>
|
||||
|
||||
<#include "/m/member_env/include_return_url.ftl">
|
||||
|
||||
</body>
|
||||
<#include "/m/include/index_bottom.ftl">
|
Loading…
Reference in new issue