161 lines
6.1 KiB
Plaintext
161 lines
6.1 KiB
Plaintext
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
|
<%@include file="/include/include.jsp"%>
|
|
<%@include file="/include/head.jsp"%>
|
|
<%@include file="/cms_for_bcb/show_top.jsp"%>
|
|
<%@include file="/cms_for_bcb/process/presentation/inc_presentation.jsp"%>
|
|
<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>
|
|
|
|
|
|
<%
|
|
String sql_pre = " select a.*, b.c_team_name, b.c_no as c_team_no from tbl_presentation_team a " ;
|
|
sql_pre = sql_pre + " inner join tbl_team b on b.c_no = a.c_team_no and b.c_use = 0";
|
|
sql_pre = sql_pre + " where a.c_use = 0 and a.c_no = " + c_p_team + " and a.c_project_no = " + session.getAttribute("member_project_no") ;
|
|
ResultSet rs_pre = stmt2.executeQuery(sql_pre);
|
|
if(rs_pre.next()){
|
|
if(!rs_pre.getString("c_team_no").equals(session.getAttribute("member_team_no")) || !session.getAttribute("member_type").equals("0")){
|
|
%>
|
|
<script>
|
|
alert("Ypu have no permission.")
|
|
location.href="/"
|
|
</script>
|
|
<%
|
|
}else{
|
|
%>
|
|
<div class="col-lg-9 col-md-9" style="background:#fffffff;padding-top:8px;padding-bottom:4px">
|
|
<div class="tab tab-border">
|
|
<div class="col-lg-12 col-md-12" style="background:#ededed;padding-top:14px;padding-bottom:10px">
|
|
<div class="col-lg-10 col-md-10" >
|
|
<img src="/images/setting.png" width="20px" alt=""> <b>Edit <img src="/images/icon/team.png" width="20px" alt=""> <%=rs_pre.getString("c_team_name")%> </b>
|
|
|
|
<img src="/images/icon/pts.png" width="20px" alt=""> <%=c_presentation_name%>
|
|
</div>
|
|
<div class="col-lg-2 col-md-2" style="text-align:right">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<script>
|
|
function go(){
|
|
|
|
document.bcb.method = "post"
|
|
document.bcb.target = "exec"
|
|
document.bcb.action = "edit_ok.jsp?<%=para_t%>"
|
|
document.bcb.submit()
|
|
|
|
}
|
|
|
|
</script>
|
|
<form name="bcb" encType="multipart/form-data">
|
|
<input name="c_presentation_no" value="<%=c_presentation_no%>" type="hidden">
|
|
<input name="c_p_team" value="<%=c_p_team%>" type="hidden">
|
|
<div class="col-lg-12 col-md-12" style="padding:10px" id="span_call3" style="display:none">
|
|
<div class="col-lg-12 col-md-12" >
|
|
<b id="a1">1. Link of Presentation </b>
|
|
</div>
|
|
<div class="col-lg-12 col-md-12" style="padding-top:5px">
|
|
<input name="c_link" value="<%=rs_pre.getString("c_link")%>" style="width:50%;height:30px" type="text" preholder="http://www.youtube.com/txfwsd....">
|
|
<br><span id="a2" style="color: red;">When you insert the link, include 'http://', please.</span>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-12 col-md-12" style="padding:10px" id="span_call3" style="display:none">
|
|
<div class="col-lg-12 col-md-12" >
|
|
<b id="a3">2. Upload Presentation </b>
|
|
</div>
|
|
<div class="col-lg-12 col-md-12" style="padding-top:5px">
|
|
<span id="a4">Now file : </span><%=rs_pre.getString("c_file")%>
|
|
<input name="o_file" value="<%=rs_pre.getString("c_file")%>" style="width:100%;height:30px" type="hidden">
|
|
<input name="c_file" value="" style="width:100%;height:30px" type="file">
|
|
<span id="a5" style="color: red;">Less than 10 MBite.</span>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-12 col-md-12" style="padding:10px" id="span_call3" style="display:none">
|
|
<div class="col-lg-12 col-md-12" >
|
|
<b id="a6">3. Choose a Syllabus </b>
|
|
</div>
|
|
<div class="col-lg-12 col-md-12" style="padding-top:5px">
|
|
<select name="c_theme" style="height:30px">
|
|
<%for(int i = 0; i<10; i++){%>
|
|
<option value="<%=i%>" <%if(rs_pre.getInt("c_theme") == i){%>selected<%}%>><%=c_syl[i]%></option>
|
|
<%}%>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="text-center">
|
|
<a href="#none" onclick="go()" style="width: 150px; line-height: 40px; text-align: center;display: inline-block; background: #5E9ECA; border: 1px solid #ffffff;border-radius: 20px; color: #ffffff;font-weight:400;font-size: 13px;"><span id="a7">Presentation Edit</span></a>
|
|
<a href="view.jsp?<%=para_t%>&c_presentation_no=<%=c_presentation_no%>&c_p_team=<%=c_p_team%>" style="width: 120px; line-height: 40px; text-align: center;display: inline-block; background: #787878; border: 1px solid #ffffff; border-radius: 20px; color: #ffffff;font-weight:400;font-size: 13px;"><span id="a8">Cancel</span></a>
|
|
</div>
|
|
<br />
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<% }
|
|
}else{
|
|
%>
|
|
<script>
|
|
alert("You do not have permission.")
|
|
location.href="/default.jsp"
|
|
</script>
|
|
<%
|
|
}
|
|
rs_pre.close();
|
|
|
|
%>
|
|
<script>
|
|
// 다국어 처리를 위한 i18n 객체
|
|
var i18n = {
|
|
en: {
|
|
a1: "1. Link of Presentation",
|
|
a2: "When you insert the link, include 'http://', please.",
|
|
a3: "2. Upload Presentation",
|
|
a4: "Now file :",
|
|
a5: "Less than 10 MBite.",
|
|
a6: "3. Choose a Syllabus",
|
|
a7: "Presentation Edit",
|
|
a8: "Cancel"
|
|
},
|
|
es_PE: {
|
|
|
|
a1: "1. Enlace de Presentación",
|
|
a2: "Cuando insertes el enlace, incluye 'http://', por favor.",
|
|
a3: "2. Subir presentación",
|
|
a4: "Ahora archivo:",
|
|
a5: "Menos de 10 MBite.",
|
|
a6: "3. Elija un plan de estudios",
|
|
a7: "Edición de presentación",
|
|
a8: "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;
|
|
|
|
|
|
|
|
|
|
}
|
|
</script>
|
|
|
|
<script>
|
|
setLanguage('<%= request.getLocale().toString() %>');
|
|
</script>
|
|
|
|
|
|
<%@include file="/cms_for_bcb/process/presentation/inc_presentation_bottom.jsp"%>
|
|
<%@include file="/cms_for_bcb/show_bottom.jsp"%>
|
|
<%@include file="/include/bottom.jsp"%>
|
|
<%@include file="/include/include_b.jsp"%>
|