216 lines
7.8 KiB
Plaintext
216 lines
7.8 KiB
Plaintext
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
|
<%@include file="/include/include.jsp"%>
|
|
|
|
<%
|
|
login_tag = 1;
|
|
%>
|
|
<%@include file="/include/head.jsp"%>
|
|
<%@include file="/cms_for_bcb/show_top.jsp"%>
|
|
<style type="text/css">
|
|
@media (max-width: 800px) {
|
|
|
|
.td11 { display: none; }
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<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>
|
|
<%
|
|
session.setMaxInactiveInterval(60*60) ;
|
|
|
|
String c_edu_no = r_call(request.getParameter("c_edu_no"));
|
|
String c_edu_project_no = r_call(request.getParameter("c_edu_project_no"));
|
|
String c_project_no = r_call(request.getParameter("c_project_no"));
|
|
%>
|
|
<script>
|
|
function reload_go(){
|
|
window.location.reload()
|
|
}
|
|
function go(){
|
|
|
|
document.bcb.method = "post"
|
|
document.bcb.target = "exec"
|
|
document.bcb.action = "insert_ok.jsp?show_no=<%=show_no%>&check_no=<%=check_no%>&c_relation=<%=c_relation%>&c_relation2=<%=c_relation2%>"
|
|
document.bcb.submit()
|
|
|
|
}
|
|
</script>
|
|
<form name="bcb" >
|
|
<input name="c_home" value="<%=c_home%>" type="hidden">
|
|
<input name="c_maker" value="0" type="hidden">
|
|
<input name="c_edu_no" value="<%=c_edu_no%>" type="hidden">
|
|
<input name="c_edu_project_no" value="<%=c_edu_project_no%>" type="hidden">
|
|
<table width="100%" cellSpacing="0" cellPadding="0" border="0" bgcolor=ffffff>
|
|
<tr >
|
|
<td style="font-size:15px;line-height:150%">
|
|
<%
|
|
String c_content = "";
|
|
String sql_sr4 = "select * ";
|
|
sql_sr4 = sql_sr4 + " ,(select c_name from tbl_edu where c_no = " + c_edu_no + " ) as c_edu_name ";
|
|
sql_sr4 = sql_sr4 + " , (select c_now from tbl_edu_target where c_edu_project_no = " + c_edu_project_no + " and c_member_no = "+ session.getAttribute("member_no") +" and c_use = 0) as c_member_now ";
|
|
sql_sr4 = sql_sr4 + " , (select c_no from tbl_edu_target where c_edu_project_no = " + c_edu_project_no + " and c_member_no = "+ session.getAttribute("member_no") +" and c_use = 0) as c_target_no ";
|
|
sql_sr4 = sql_sr4 + " from tbl_edu_project ";
|
|
sql_sr4 = sql_sr4 + " where c_home = " +c_home + " and c_no = " + c_edu_project_no + " and c_edu_no = " + c_edu_no + " and c_use = 0 ";;
|
|
ResultSet rs_sr4 = stmt.executeQuery(sql_sr4);
|
|
if(rs_sr4.next()){
|
|
if(rs_sr4.getString("c_member_now") == null){
|
|
%>
|
|
<script>
|
|
alert("Not eligible to participate.")
|
|
history.back()
|
|
</script>
|
|
<%
|
|
}else{
|
|
|
|
|
|
c_content = rs_sr4.getString("c_content");
|
|
%>
|
|
<span id="a1">Name of the educational project :</span> <%=rs_sr4.getString("c_name") %><br/>
|
|
|
|
<span id="a2">Target Curriculum :</span> <%=rs_sr4.getString("c_edu_name") %>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td height=30px>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td height=1px bgcolor=#cdcdcd>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="padding:20px">
|
|
<%=c_content%>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td height=1px bgcolor=#cdcdcd>
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
<input name="c_target_no" value="<%=rs_sr4.getInt("c_target_no")%>" type="hidden">
|
|
<input name="c_project_no" value="<%=rs_sr4.getInt("c_project_no")%>" type="hidden">
|
|
<table width="100%" cellSpacing="0" cellPadding="0" border="0" >
|
|
<%
|
|
String sql_sr=" SELECT a.* ";
|
|
sql_sr = sql_sr + ",(select max(c_start_date) from tbl_edu_result where c_edu_project_no = "+ c_edu_project_no +" and c_edu_no =a.c_edu_no and c_curi_no = a.c_no and c_member_no = "+ session.getAttribute("member_no") +") as mem_date ";
|
|
sql_sr = sql_sr + ",(select c_team_No from tbl_edu_target where c_edu_project_no = "+ c_edu_project_no +" and c_use = 0 and c_member_no = "+ session.getAttribute("member_no") +") as team_no ";
|
|
sql_sr = sql_sr + " from tbl_edu_curi a where a.c_edu_no = " + c_edu_no + " and a.c_up_no > 0 and a.c_use=0 order by a.c_order asc";
|
|
ResultSet rs_sr = stmt.executeQuery(sql_sr);
|
|
int nop = 0;
|
|
while (rs_sr.next()) {
|
|
nop = nop + 1;
|
|
%>
|
|
<tr >
|
|
<td height="20px" >
|
|
</td>
|
|
</tr>
|
|
<tr >
|
|
<td bgcolor="#efefef" height="40px" align=left style="padding-left:10px;font-size:14px;">
|
|
<%=nop%>. <%=rs_sr.getString("c_title")%>
|
|
</td>
|
|
<td rowspan=2 bgcolor="#efefef" align=center style="width:100px;padding-left:10px;font-size:12px;">
|
|
<%if(rs_sr.getString("mem_date") == null){%>
|
|
<font color=red>Incomplete</font>
|
|
<%}else{%>
|
|
<font color=blue>
|
|
<%=rs_sr.getString("mem_date").substring(0,10)%>
|
|
|
|
</font>
|
|
<%}%>
|
|
</td>
|
|
<td rowspan=2 bgcolor="#efefef" align=center style="padding-left:10px;font-size:12px;">
|
|
<%if(rs_sr.getString("mem_date") == null){%>
|
|
<a href="#none" onclick='window.open("view.jsp?call=0&c_project_no=<%=c_project_no%>&c_edu_no=<%=c_edu_no%>&c_edu_project_no=<%=c_edu_project_no%>&c_team_no=<%=rs_sr.getInt("team_no")%>&c_curi_no=<%=rs_sr.getInt("c_no")%>","movie","left=0,top=0,scrollbars=no,resizable=no,width=1000,height=600");' style="width: 100px; line-height: 26px; text-align: center;display: inline-block; background: #F7E3DF; border: 1px solid #555; border-radius: 5px; color: #000000;"><span id="a5">Get educationn</span></a>
|
|
<%}else{%>
|
|
<a href="#none" onclick='window.open("view.jsp?call=1&c_project_no=<%=c_project_no%>&c_edu_no=<%=c_edu_no%>&c_edu_project_no=<%=c_edu_project_no%>&c_team_no=<%=rs_sr.getInt("team_no")%>&c_curi_no=<%=rs_sr.getInt("c_no")%>","movie","left=0,top=0,scrollbars=no,resizable=no,width=1000,height=600");' style="width: 100px; line-height: 26px; text-align: center;display: inline-block; background: #DEE5F8; border: 1px solid #555; border-radius: 5px; color: #000000;"><span id="a4">Repetition</span></a>
|
|
<%}%>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr >
|
|
|
|
<td bgcolor="#efefef" align=left style="padding-left:10px;font-size:12px;">
|
|
<%=rs_sr.getString("c_exp")%>
|
|
</td>
|
|
|
|
</tr>
|
|
<%
|
|
}
|
|
rs_sr.close();
|
|
%>
|
|
</table>
|
|
<table width="100%">
|
|
<tr>
|
|
<td height="75" align="center" colspan="5" style="padding-bottom:10px;padding-top:10px;font-weight:bold;">
|
|
<a href="list.jsp?show_no=<%=show_no%>&check_no=<%=check_no%>&c_relation=<%=c_relation%>&c_relation2=<%=c_relation2%>" 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="a3">list</span></a>
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
|
|
</form>
|
|
<iframe name="exec" id="exec" src="" width=0 height=0></iframe>
|
|
|
|
<%
|
|
|
|
}
|
|
}else{
|
|
%>
|
|
<script>
|
|
alert("Wrong Connection.")
|
|
location.href="/"
|
|
</script>
|
|
<%
|
|
}
|
|
rs_sr4.close();
|
|
%>
|
|
<script>
|
|
// 다국어 처리를 위한 i18n 객체
|
|
var i18n = {
|
|
en: {
|
|
a1: "Name of the educational project :",
|
|
a2: "Target Curriculum :",
|
|
a3: "list",
|
|
a4: "Repetition",
|
|
a5: "Get educationn"
|
|
},
|
|
es_PE: {
|
|
a1: "Nombre del proyecto educativo:",
|
|
a2: "Plan de estudios objetivo:",
|
|
a3: "lista",
|
|
a4: "Repetición",
|
|
a5: "Obtener educaciónn"
|
|
|
|
}
|
|
};
|
|
|
|
// 선택된 언어에 따라 다국어 텍스트 설정
|
|
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;
|
|
|
|
|
|
|
|
}
|
|
</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"%>
|