125 lines
4.6 KiB
Plaintext
125 lines
4.6 KiB
Plaintext
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
|
<%@ include file="/field_manager/include/manager_head.jsp"%>
|
|
<%
|
|
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){
|
|
if(c_image.equals("1")){
|
|
imge_size = "1000*200";
|
|
}
|
|
if(c_image.equals("2")){
|
|
imge_size = "6000*300";
|
|
}
|
|
if(c_image.equals("3")){
|
|
imge_size = "1000*100";
|
|
}
|
|
}
|
|
if(c_main_type == 2){
|
|
if(c_image.equals("1")){
|
|
imge_size = "1000*200";
|
|
}
|
|
if(c_image.equals("2")){
|
|
imge_size = "6000*300";
|
|
}
|
|
if(c_image.equals("3")){
|
|
imge_size = "1000*100";
|
|
}
|
|
}
|
|
%>
|
|
<script>
|
|
var IMG_FORMAT = "\\.(bmp|gif|jpg|jpeg|png|hwp|doc|docx|xls|xlsx|ppt|pptx|txt|zip|)$";
|
|
function go(){
|
|
if(document.kku.c_name.value==""){
|
|
alert("Please enter your name")
|
|
}else{
|
|
document.kku.action = "insert_ok.jsp";
|
|
document.kku.submit();
|
|
}
|
|
}
|
|
</script>
|
|
<center>
|
|
<br><br><br>
|
|
<table width="800" border="0" cellspacing="0" cellpadding="0" class="tabRsv3">
|
|
<tr><td height=40>
|
|
Main Images<%=c_image%>. 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=15% bgcolor="#ededed" style="text-align:center;padding-top:3px;padding-bottom-3px"> Name </td>
|
|
<td width=85% style="padding-left:10px;padding-top:3px;padding-bottom:3px"> <input type="text" name="c_name" id="" style="width:258px" /> </td>
|
|
</tr>
|
|
<tr bgcolor=ffffff>
|
|
<td bgcolor="#ededed" style="text-align:center;padding-top:3px;padding-bottom:3px"> Image </td>
|
|
<td style="padding-left:10px;padding-top:3px;padding-bottom:3px"> <input name="c_file" type="file" id="" style="width:400px;height:30px" />
|
|
<br>* Please upload the image size in <%=imge_size%> and the file name in English.
|
|
</td>
|
|
</tr>
|
|
<tr bgcolor=ffffff>
|
|
<td bgcolor="#ededed" style="text-align:center;padding-top:3px;padding-bottom:3px"> Link </td>
|
|
<td style="padding-left:10px;padding-top:3px;padding-bottom:3px"> <input type="text" name="c_title1" id="" style="width:500px" /> </td>
|
|
</tr>
|
|
<tr bgcolor=ffffff>
|
|
<td bgcolor="#ededed" style="text-align:center;padding-top:3px;padding-bottom:3px">Link New window or not </td>
|
|
<td style="padding-left:10px;padding-top:3px;padding-bottom:3px">
|
|
<select name="c_title2" id="">
|
|
<option value="_self">Current window</option>
|
|
<option value="_blank">New window</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<!--<tr bgcolor=ffffff>
|
|
<td bgcolor="#ededed" style="text-align:center;padding-top:3px;padding-bottom:3px">설명 </td>
|
|
<td style="padding-left:10px;padding-top:3px;padding-bottom:3px"> <textarea name="c_exp" id="" style="width:500px;height:300px"></textarea></td>
|
|
</tr>-->
|
|
<tr bgcolor=ffffff>
|
|
<td bgcolor="#ededed" style="text-align:center;padding-top:3px;padding-bottom:3px">Whether to be displayed </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="/field_manager/include/manager_bottom.jsp"%>
|