100 lines
4.0 KiB
Plaintext
100 lines
4.0 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"%>
|
|
|
|
|
|
<%
|
|
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("You do not have 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:8px;padding-bottom:4px">
|
|
<div class="col-lg-10 col-md-10" >
|
|
<b>Edit <%=rs_pre.getString("c_team_name")%> </b> < <%=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>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....">
|
|
</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>2. Upload Presentation </b>
|
|
</div>
|
|
<div class="col-lg-12 col-md-12" style="padding-top:5px">
|
|
<input name="c_file" value="<%=rs_pre.getString("c_file")%>" style="width:100%;height:30px" type="file">
|
|
</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>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;">Presentation Edit</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;">Cancel</a>
|
|
</div>
|
|
<br />
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<% }
|
|
}else{
|
|
%>
|
|
<script>
|
|
alert("Wrong connection.")
|
|
location.href="/default.jsp"
|
|
</script>
|
|
<%
|
|
}
|
|
rs_pre.close();
|
|
|
|
%>
|
|
<%@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"%>
|