c-innovacion2/apply/cms_for_bcb/process/community/insert.jsp

136 lines
4.7 KiB
Plaintext

<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%request.setCharacterEncoding("utf-8");%>
<%@include file="/include/include.jsp"%>
<%
login_tag = 1;
%>
<%@include file="/include/head.jsp"%>
<%@include file="/cms_for_bcb/show_top.jsp"%>
<%
String para_t = "show_no="+ show_no +"&check_no="+ check_no + "&c_relation=" + c_relation + "&c_relation2=" + c_relation2;
%>
<script>
function go(){
if(document.ss.c_name.value == ""){
alert("Insert Community Name")
document.ss.c_name.focus()
}else if(document.ss.c_target.value == ""){
alert("Insert Community Target")
document.ss.c_target.focus()
}else if(document.ss.c_exp.value == ""){
alert("Insert Community Explain")
document.ss.c_exp.focus()
}else{
document.ss.action = "insert_ok.jsp?<%=para_t%>"
document.ss.method = "post"
document.ss.target = "exec"
document.ss.submit()
}
}
</script>
<select id="language_select" onchange="setLanguage(this.value)">
<option value="en" <%= (request.getLocale().toString().equals("en") ? "selected" : "") %>>English</option>
<option value="es_PE" <%= (request.getLocale().toString().equals("es_PE") ? "selected" : "") %>>Spanish (Peru)</option>
</select>
</p>
<form name="ss">
<input name="c_home" value="<%=c_home%>" type="hidden">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12" style="">
<div style="padding-bottom:10px">
<b id="a1">◎ Make Community</b>
</div>
<div class="col-lg-12 col-md-12 col-sm-12" style="border:1px solid #cdcdcd;padding:10px;padding-left:20px;padding-right:20px">
<table style="width:100%">
<tr><td style="width:20%;text-align:center;height:30px">
<font color=red>*</font><span id="a2">Community </span><b id="a5">Name</b>
</td><td style="width:80%;text-align:left;padding:10px">
<input name="c_name" style="width:80%;height:30px;border:solid 1px #cdcdcd" maxlength="300">
</td></tr>
<tr><td style="text-align:center;height:30px">
<font color=red>*</font><span id="a3">Community </span><b id="a6"> Target</b>
</td><td style="text-align:left;padding:10px">
<input name="c_target" style="width:100%;height:30px;border:solid 1px #cdcdcd" maxlength="300">
</td></tr>
<tr><td style="text-align:center;height:30px;vertical-align:top;padding-top:20px">
<font color=red>*</font><span id="a4">Community </span><b id="a7"> Explain</b>
</td><td style="text-align:left;padding:10px">
<textarea name="c_exp" style="width:100%;height:300px;border:solid 1px #cdcdcd"></textarea>
</td></tr>
</table>
</div>
</div>
<div class="col-lg-12 col-md-12 col-sm-12" style="padding-top:30px">
<table width="100%">
<tr>
<td align="center" style="padding-bottom:10px;padding-top:10px;font-weight:bold;">
<a href="#none" onclick="go()" style="width: 150px; line-height: 26px; text-align: center;display: inline-block; background: #F5E0CB; border: 1px solid #555; border-radius: 5px; color: #000000;"><span id="a8">Make Community</span></a>
&nbsp;&nbsp;&nbsp;
<a href="list.jsp?<%=para_t%>" style="width: 100px; line-height: 26px; text-align: center;display: inline-block; background: #ededed; border: 1px solid #555; border-radius: 5px; color: #000000;"><span id="a9">Cnancel</span></a>
</td>
</tr>
</table>
</div>
</div>
</form>
<iframe name="exec" id="exec" width="0px" height="0px"></iframe>
<script>
// 다국어 처리를 위한 i18n 객체
var i18n = {
en: {
a1: "◎ Make Community",
a2: "Community",
a3: "Community",
a4: "Community",
a5: " Name",
a6: " Target",
a7: " Explain",
a8: "Make Community",
a9: "Cnancel"
},
es_PE: {
a1: "◎ Hacer comunidad",
a2: "Comunidad",
a3: "Comunidad",
a4: "Comunidad",
a5: " Nombre",
a6: " Objetivo",
a7: " Explicar",
a8: "Hacer comunidad",
a9: "Cancelar"
}
};
// 선택된 언어에 따라 다국어 텍스트 설정
function setLanguage(lang) {
var langData = i18n[lang];
document.getElementById("a1").innerText = langData.a1;
document.getElementById("a2").innerText = langData.a2;
document.getElementById("a3").innerText = langData.a3;
document.getElementById("a4").innerText = langData.a4;
document.getElementById("a5").innerText = langData.a5;
document.getElementById("a6").innerText = langData.a6;
document.getElementById("a7").innerText = langData.a7;
document.getElementById("a8").innerText = langData.a8;
document.getElementById("a9").innerText = langData.a9;
}
</script>
<script>
setLanguage('<%= request.getLocale().toString() %>');
</script>
<%@include file="/cms_for_bcb/show_bottom.jsp"%>
<%@include file="/include/bottom.jsp"%>
<%@include file="/include/include_b.jsp"%>
ꀀ