119 lines
5.0 KiB
Plaintext
119 lines
5.0 KiB
Plaintext
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
|
<%@include file="/manager_for_cms/include/manager_head.jsp"%>
|
|
<%
|
|
String c_no = r_call(request.getParameter("c_no"));
|
|
if(c_no.equals("")){
|
|
%>
|
|
<script>
|
|
alert("잘못 된 접속입니다.");
|
|
location.href="list.jsp"
|
|
</script>
|
|
<%
|
|
}else{
|
|
%>
|
|
<script>
|
|
function go(){
|
|
if(document.bcb.c_name.value == ""){
|
|
alert("관리자명을 입력해 주세요.");
|
|
document.bcb.c_name.focus();
|
|
}else if(document.bcb.c_pass.value != "" && document.bcb.c_pass2.value == ""){
|
|
alert("Pasword 확인을 입력해 주세요.");
|
|
document.bcb.c_pass2.focus();
|
|
}else if(document.bcb.c_pass.value != "" && document.bcb.c_pass.value != document.bcb.c_pass2.value){
|
|
alert("Pasword 확인이 잘못 되었습니다.");
|
|
document.bcb.c_pass2.focus();
|
|
}else{
|
|
|
|
document.bcb.action = "edit_ok.jsp";
|
|
document.bcb.target = "exec";
|
|
document.bcb.method = "post";
|
|
document.bcb.submit();
|
|
}
|
|
}
|
|
</script>
|
|
<center>
|
|
<table width="800" cellSpacing="0" cellPadding="0" border="0">
|
|
<tr >
|
|
<td >
|
|
<table width="100%" cellSpacing="0" cellPadding="0" border="0" bgcolor=ffffff>
|
|
<tr >
|
|
<td height="60" style="font-weight:bold;">
|
|
메인필드 관리자 수정
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<!---------------------------------------------------------------------------------------->
|
|
<table width="100%" cellSpacing="0" cellPadding="0" border="0" bgcolor=ffffff>
|
|
<tr >
|
|
<td align=right style="line-height:120%">
|
|
<font color=red>
|
|
* 표시가 있는 항목은 반드시 입력해 주세요.
|
|
</font>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<%
|
|
String sql1=" SELECT * from tbl_manager where c_no = " + c_no + " ";
|
|
ResultSet rst = stmt.executeQuery(sql1);
|
|
if(rst.next()) {
|
|
%>
|
|
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor=eeeeee >
|
|
<form name="bcb" method="post" >
|
|
<input name="c_no" value="<%=c_no%>" type="hidden">
|
|
<tr height=30 bgcolor=ffffff>
|
|
<td width="15%" align=center style="font-weight:bold;"> <font color=red>*</font>관리자명 </td>
|
|
<td width="85%" style="padding:5px"> <input type="text" name="c_name" value="<%=rst.getString("c_name")%>" id="" style="width:60px" maxlength="10"/> </td>
|
|
</tr>
|
|
<tr height=30 bgcolor=ffffff>
|
|
<td width="15%" align=center style="font-weight:bold;"> ID </td>
|
|
<td width="85%" style="padding:5px"> <%=rst.getString("c_id")%> <font color=red>* ID는 변경이 불가능합니다..</font></td>
|
|
</tr>
|
|
<tr height=30 bgcolor=ffffff>
|
|
<td width="15%" align=center style="font-weight:bold;"> Password </td>
|
|
<td width="85%" style="padding:5px"> <input type="password" name="c_pass" id="" style="width:100px" maxlength="20"/> <font color=red><b>* 변경시에만 입력하세요.</b></font></td>
|
|
</tr>
|
|
<tr height=30 bgcolor=ffffff>
|
|
<td width="15%" align=center style="font-weight:bold;"> Password 확인</td>
|
|
<td width="85%" style="padding:5px"> <input type="password" name="c_pass2" id="" style="width:100px" maxlength="20"/> <font color=red>* 같은 Password를 한번 더 입력하세요.</font></td>
|
|
</tr>
|
|
<tr bgcolor=ffffff>
|
|
<td width="15%" align=center style="font-weight:bold;"> 부서 </td>
|
|
<td width="85%" style="padding:5px"> <input type="text" name="c_part" value="<%=rst.getString("c_part")%>" id="" style="width:150px" /> </td>
|
|
</tr>
|
|
<tr bgcolor=ffffff>
|
|
<td width="15%" align=center style="font-weight:bold;"> 직급 </td>
|
|
<td width="85%" style="padding:5px"> <input type="text" name="c_position" value="<%=rst.getString("c_position")%>" id="" style="width:120px" maxlength="20"/> </td>
|
|
</tr>
|
|
<tr bgcolor=ffffff>
|
|
<td width="15%" align=center style="font-weight:bold;"> 연락처 </td>
|
|
<td width="85%" style="padding:5px"> <input type="text" name="c_phone" value="<%=rst.getString("c_phone")%>" id="" style="width:100px" maxlength="20"/> </td>
|
|
</tr>
|
|
<tr bgcolor=ffffff>
|
|
<td width="15%" align=center style="font-weight:bold;"> 이메일 </td>
|
|
<td width="85%" style="padding:5px"> <input type="text" name="c_email" value="<%=rst.getString("c_email")%>" id="" style="width:200px" maxlength="50"/> </td>
|
|
</tr>
|
|
</form>
|
|
</table>
|
|
<%
|
|
}
|
|
rst.close();
|
|
%>
|
|
<!---------------------------------------------------------------------------------------->
|
|
<table width="100%">
|
|
<tr>
|
|
<td height="35" align="right" colspan="5" style="padding-bottom:10px;padding-top:10px;font-weight:bold;">
|
|
<a href="#none" onclick="go()" style="width: 50px; line-height: 26px; text-align: center;display: inline-block; background: #5e7cc4; border: 1px solid #555; border-radius: 5px; color: #ffffff;">수정</a>
|
|
<a href="list.jsp" style="width: 50px; line-height: 26px; text-align: center;display: inline-block; background: #ededed; border: 1px solid #555; border-radius: 5px; color: #000000;">취소</a>
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<iframe name="exec" width=0 height=0 src=""></iframe>
|
|
<%
|
|
}
|
|
%>
|
|
<%@include file="/manager_for_cms/include/manager_bottom.jsp"%>
|