MINI MINI MANI MO
<?
require_once "./_common/common.php";
include $_SERVER['DOCUMENT_ROOT'].'/_config/global.php';
include $_SERVER['DOCUMENT_ROOT'].'/_config/_class/phpfun.class.php';
$phpfun = new phpfun();
$SID = session_id();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, target-densitydpi=medium-dpi">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<head>
<link rel="stylesheet" type="text/css" href="css/style.css">
<link href="css/scale.css" rel="stylesheet" type="text/css">
<script src="http://dmaps.daum.net/map_js_init/postcode.v2.js"></script>
<script>
function openDaumPostcode() {
new daum.Postcode({
oncomplete: function(data) {
var fullAddr = ''; // 최종 주소 변수
var extraAddr = ''; // 조합형 주소 변수
if (data.userSelectedType === 'R') { // 사용자가 도로명 주소를 선택했을 경우
fullAddr = data.roadAddress;
} else { // 사용자가 지번 주소를 선택했을 경우(J)
fullAddr = data.jibunAddress;
}
if(data.userSelectedType === 'R'){
if(data.bname !== ''){
extraAddr += data.bname;
}
if(data.buildingName !== ''){
extraAddr += (extraAddr !== '' ? ', ' + data.buildingName : data.buildingName);
}
fullAddr += (extraAddr !== '' ? ' ('+ extraAddr +')' : '');
}
document.join.zipcode.value = data.zonecode; //5자리 새우편번호 사용
document.join.address.value = fullAddr;
document.join.address_ext.focus();
}
}).open();
}
</script>
<script>
function check_ID_Window(){
var frm = document.join;
var id = frm.userId.value;
if(!frm.userId.value){
alert("아이디를 입력해주세요");
frm.userId.focus();
return;
}
if(frm.userId.value.length <= 3 || frm.userId.value.length >= 15){
alert("아이디는 3자 이상 15자 이하로 입력해주세요");
frm.userId.focus();
return;
}
window.open("id_check.php?userId="+id,"","width=400, height=350");
}
function check_nicname_Window(){
var frm = document.join;
var nickname = frm.userNick2.value;
if(!frm.userNick2.value){
alert("닉네임을 입력해주세요");
frm.userNick2.focus();
return;
}
window.open("nicname_chk1.php?userNick="+nickname,"","width=400, height=350");
}
function open_zip(url){
window.open(url,'zipcode','width=400, height=370');
}
function numericAlphaCheck(p_item) {
var str = '1234567890';
var str2 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
var str3 = "-_=+\|()*&^%$#@!~`?></;,.:'";
var i, errorreturn = false;
var ch1=0;
var ch2=0;
var ch3=0;
for ( i = 0; i < p_item.length; i++){
if (str.indexOf(p_item.charAt(i)) > 0) {
ch1=1;
}
}
for ( i = 0; i < p_item.length; i++){
if (str2.indexOf(p_item.charAt(i)) > 0) {
ch2=1;
}
}
for ( i = 0; i < p_item.length; i++){
if (str3.indexOf(p_item.charAt(i)) > 0) {
ch3=1;
}
}
return ch1+ch2+ch3;
}
function change_form(){
var frm = document.join;
id_ch1=numericAlphaCheck(frm.userPw1.value);
if(!frm.userNick2.value){
alert("닉네임을 입력해주세요");
frm.userNick2.focus();
return ;
}
if(frm.userNick2.value!='<?=$row[userNick]?>'&&frm.nicchk_value.value == 0){
alert("닉네임 중복확인해주세요");
return ;
}
if(!frm.yuserPw.value){
alert("기존 비밀번호를 입력해주세요");
frm.yuserPw.focus();
return ;
}
if(frm.userPw1.value){
if(frm.userPw1.value.length<8){
alert("비밀번호를 8자 이상 입력해 주세요.");
frm.userPw1.focus();
return;
}
/* if(id_ch1<3){
alert("비밀번호는 영어,숫자,특수문자를 포함해 주세요.");
frm.userPw1.focus();
return;
}*/
if(frm.userPw1.value != frm.userPw2.value){
alert("새비밀번호와 새비밀번호 확인이 맞지 않습니다. 다시 확인해주세요!");
frm.userPw1.focus();
return ;
}
}
frm.action="proc2.php?Mode=indi";
frm.submit();
}
</script>
</head>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
<!-- 회원가입독립 css -->
.join_img_body { position:relative; margin-top:0px;margin-bottom:20px;float:center; width:100%; border:0px solid #e3e3e3; padding:0px;float:center; background-color:#ffffff}
.join_img_body ul li { width:250px; float:center; }
.join_img_body table { }
.join_img_body table.join_form tr th { background:#f7f7f7; border:1px solid #949294; font-weight:normal; }
.join_img_body table.join_form tr td { text-align:left; padding:1px 1px 1px 1px; color:#000000; border:1px solid #949294;}
.join_img_body table.join_form tr td table { padding:0; margin:0; }
.join_img_body table.join_form tr td table tr td { padding:0; margin:0; border:none; padding:2px 2px 2px 2px; }
.div_title { text-align:left; margin-bottom:10px;margin-left:0px; }
input[type=text] { padding:1px 1px 1px 1px; border:1px solid #008ade; }
input[type=password] { padding:1px 1px 1px 1px; border:1px solid #008ade; }
.div_con { width:759px; height:130px; overflow-y:scroll; text-align:left; white-space:pre-line; padding:10px; margin:0px; border:1px solid #959595; line-height:150%;float:center; }
.confirm_area { margin:15px 0; }
.div_con1 {width:759px; height:130px; overflow-y:scroll; text-align:left; white-space:pre-line; padding:10px; margin:0px; border:1px solid #959595; line-height:150%;float:center; }
</style>
<div id="top">
<? include "inc/sub_top.html"; ?>
</div>
<table id="navi" width="100%" height="60" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<!-- navi start-->
<table id="navi" width="100%" height="60" border="0" cellpadding="0" cellspacing="0">
<tr><td height="10" ></td></tr>
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
<?if(!$tt){$ts1="color: #FF0000;font-weight:bolder;";$ts2="color: #000000";$ts3="color: #000000";}else{$ts2="color: #FF0000;font-weight:bolder;";$ts1="color: #000000";$ts3="color: #000000";}?>
<tr>
<td align="center"><table align="center"><tr><td><a href="/edit.php"><font style="<?=$ts1?>">회원정보수정</font></a> ㅣ <a href="/out.php"><font style="<?=$ts2?>">회원탈퇴</font></a></td>
</tr></table></td>
</tr>
<tr><td height="1" bgcolor="#0066CC"></td></tr>
<tr><td height="10" ></td></tr>
</table> </td>
</tr>
<tr>
<td align="center">
<div align="center">
<!-- contents start-->
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="20" align="center"><div class="join_img_body">
<!--이용약관-->
<!--이용약관 end-->
<form name="join" method="post">
<input type="hidden" name="nicchk_value" id="nicchk_value">
<input type="hidden" name="idx" value="<?=$row[idx]?>">
<div class="div_title"><strong> 기본인적사항</strong>
</div>
<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="e4e4e4" bgcolor="e4e4e4">
<!--추가 에러-->
<tr>
<th width="20%" height="40" align="center" bgcolor="#ffffff">이름</th>
<td width="75% bgcolor=" align="left" bgcolor="#FFFFFF" style="padding-left:3px;#FFFFFF">우정넷</td>
</tr>
<tr>
<th height="40" align="center" bgcolor="#ffffff" >아이디</th>
<td align="left" bgcolor="#FFFFFF" style="padding-left:3px;"#FFFFFF><b>drg1038</b></td>
</tr>
<tr>
<th height="40" align="center" bgcolor="#ffffff" >닉네임</th>
<td align="left" bgcolor="#FFFFFF" style="padding-left:3px;"#FFFFFF><table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="75%" height="30"><input name="userNick2" type="text" class='b_form' style="width:97%; height:26px;border:1px solid #cccccc" /></td>
<td width="70"><div align="right">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="75" height="26" align="center" bgcolor="#F6F6F6" style="color:#000000;cursor:pointer;border:1px solid #cccccc" onclick="check_ID_Window()"><strong>중복확인</strong></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td height="20" align="left" style="color:#FF0000">사용가능 ㅣ 사용불가</td>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<th height="40" align="center" bgcolor="#ffffff" >현재비밀번호</th>
<td align="left" bgcolor="#FFFFFF" style="padding-left:3px;"><input name="yuserPw" id="yuserPw" type="password" hname='비밀번호' style='width:95%;height:26px;border:1px solid #cccccc' value=""/>
</td>
</tr>
<tr>
<th height="40" align="center" bgcolor="#ffffff">새비밀번호</th>
<td align="left" bgcolor="#FFFFFF" style="padding-left:3px;"><input name="userPw1" style="width: 95%;height:26px;border:1px solid #cccccc" type="password" /></td>
</tr>
<tr>
<th height="40" align="center" bgcolor="#ffffff">새비번확인</th>
<td align="left" bgcolor="#FFFFFF" style="padding-left:3px;"><input name="userPw2" style="width: 95%;height:26px;border:1px solid #cccccc" type="password"/></td>
</tr>
<tr>
<th height="40" align="center" bgcolor="#ffffff">일반전화</th>
<td align="left" bgcolor="#FFFFFF" style="padding-left:3px;"><span style="border:none">
<input name="tel1" type="text" maxlength="4" hname="회사전화" value="<?=$tel1?>" style="height:26px;border:1px solid #cccccc;width:20%"/>
-
<input name="tel2" type="text" maxlength="4" hname="회사전화" value="<?=$tel2?>" style="height:26px;border:1px solid #cccccc;width:20%"/>
-
<input name="tel3" type="text" maxlength="4" hname="회사전화" value="<?=$tel3?>" style="height:26px;border:1px solid #cccccc;width:20%"/>
</span></td>
</tr>
<tr>
<th height="40" align="center" bgcolor="#ffffff">휴대전화</th>
<td align="left" bgcolor="#FFFFFF" style="padding-left:3px;"><span style="border:none">
<input name="pcs1" type="text" size="4" maxlength="4" hname="휴대전화" value="<?=$pcs1?>" style="height:26px;border:1px solid #cccccc;width:20%"/>
-
<input name="pcs2" type="text" size="4" maxlength="4" hname="휴대전화" value="<?=$pcs2?>" style="height:26px;border:1px solid #cccccc;width:20%"/>
-
<input name="pcs3" type="text" size="4" maxlength="4" hname="휴대전화" value="<?=$pcs3?>" style="height:26px;border:1px solid #cccccc;width:20%"/>
</span></td>
</tr>
<tr>
<th height="40" align="center" bgcolor="#ffffff">이메일</th>
<td align="left" bgcolor="#FFFFFF" style="padding-left:3px;"><input name="email1" type="text" style="width:95%; height:26px;border:1px solid #cccccc" hname='이메일' value="<?=$row[email]?>"/></td>
</tr>
</table>
<div class="btn_area" style="margin-top:20px" align="center">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><table width="150" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="40" bgcolor="ff0000" style="font-size:15px; padding-bottom:5px;"><div align="center"><strong><font color="#FFFFFF" onclick="join_submit();">회원정보수정</font></strong></div></td>
</tr>
</table></td>
</tr>
</table>
<a href="javascript:change_form();"></a> </div>
<br />
</table>
<div id="btm">
<? include "inc/btm.html"; ?>
</div>
OHA YOOOO