c-innovacion2/resoft/field_manager_new/process/main/image/insert.jsp

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("잘못 된 접속입니다.")
</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("명칭을 입력해 주세요")
}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>
메인이미지 Images<%=c_image%>. 등록
</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"> 명칭 </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"> 이미지 </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>* 이미지 사이즈는 <%=imge_size%>, 파일명은 영문 으로 제작 올리시기 바랍니다.
</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 새창여부 </td>
<td style="padding-left:10px;padding-top:3px;padding-bottom:3px">
<select name="c_title2" id="">
<option value="_self">현재창</option>
<option value="_blank">새창</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">표출여부 </td>
<td style="padding-left:10px;padding-top:3px;padding-bottom:3px">
<input type="radio" name="c_view" value="0" checked>예
<input type="radio" name="c_view" value="1">아니오
</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;">등록</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;">취소</a>
</td>
</tr>
</table>
</td></tr>
</table>
<%}%>
<%@ include file="/field_manager/include/manager_bottom.jsp"%>