90 lines
3.0 KiB
Plaintext
90 lines
3.0 KiB
Plaintext
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
|
<%@ include file="/manager_for_cms/include/manager_head.jsp"%>
|
|
<script src="/ckeditor/ckeditor.js"></script>
|
|
<%
|
|
String c_home = r_call(request.getParameter("c_home"));
|
|
String c_maker = r_call(request.getParameter("c_maker"));
|
|
String c_image = r_call(request.getParameter("c_image"));
|
|
if(c_image == null || c_image.equals("")){
|
|
%>
|
|
<script>
|
|
alert("Wrong Connection.")
|
|
</script>
|
|
<%
|
|
}else{
|
|
|
|
int c_main_type = 0;
|
|
String sql_ok2 = "select c_main_type from tbl_field where c_no = " + c_home ;
|
|
ResultSet rss = stmt.executeQuery(sql_ok2);
|
|
if(rss.next()){
|
|
c_main_type= rss.getInt("c_main_type");
|
|
}
|
|
rss.close();
|
|
|
|
String imge_size = "";
|
|
if(c_main_type == 1){
|
|
|
|
imge_size = "1200";
|
|
|
|
}
|
|
if(c_main_type == 2){
|
|
|
|
imge_size = "800";
|
|
|
|
}
|
|
%>
|
|
<script>
|
|
var IMG_FORMAT = "\\.(bmp|gif|jpg|jpeg|png|hwp|doc|docx|xls|xlsx|ppt|pptx|txt|zip|)$";
|
|
function go(){
|
|
|
|
document.kku.action = "insert_ok.jsp";
|
|
document.kku.submit();
|
|
|
|
}
|
|
</script>
|
|
<center>
|
|
<br><br><br>
|
|
<table width="<%=imge_size%>" border="0" cellspacing="0" cellpadding="0" class="tabRsv3">
|
|
<tr><td height=40>
|
|
Main Text Insert
|
|
</td></tr>
|
|
<tr><td>
|
|
|
|
<table width="100%" border="0" cellspacing="1" cellpadding="0" class="tabRsv3" bgcolor="ededed">
|
|
<form name="kku" method="post" encType="multipart/form-data">
|
|
<input name="c_relation" value="<%=c_image%>" type="hidden">
|
|
<input name="c_home" value="<%=c_home%>" type="hidden">
|
|
<input name="c_maker" value="<%=c_maker%>" type="hidden">
|
|
|
|
<tr bgcolor=ffffff>
|
|
<td width="120" bgcolor="#ededed" style="text-align:center;padding-top:3px;padding-bottom:3px">Texr </td>
|
|
<td style="padding-left:10px;padding-top:3px;padding-bottom:3px"> <textarea class="ckeditor" name="c_exp" id="" style="width:100%;height:300px"></textarea></td>
|
|
</tr>
|
|
<tr bgcolor=ffffff>
|
|
<td bgcolor="#ededed" style="text-align:center;padding-top:3px;padding-bottom:3px">Use </td>
|
|
<td style="padding-left:10px;padding-top:3px;padding-bottom:3px">
|
|
<input type="radio" name="c_view" value="0" checked>Yes
|
|
<input type="radio" name="c_view" value="1">No
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</table>
|
|
|
|
</td></tr>
|
|
<tr><td>
|
|
|
|
<table width="100%">
|
|
<tr>
|
|
<td height="35" align="center" style="padding-bottom:10px;padding-top:10px">
|
|
<a href="#none" onclick="go()" style="width: 98px; line-height: 30px; text-align: center;display: inline-block; background: #5e7cc4; border: 1px solid #555; border-radius: 5px; color: #ffffff;">Insert</a>
|
|
<a href="list.jsp?c_home=<%=c_home%>&c_maker=<%=c_maker%>&c_image=<%=c_image%>" style="width: 98px; line-height: 30px; text-align: center;display: inline-block; background: #ededed; border: 1px solid #555; border-radius: 5px; color: #000000;">Cancel</a>
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
</td></tr>
|
|
</table>
|
|
<%}%>
|
|
<%@ include file="/manager_for_cms/include/manager_bottom.jsp"%>
|