최초 커밋

This commit is contained in:
root
2026-07-23 16:15:57 +09:00
commit c8f5efb6b7
14652 changed files with 4812531 additions and 0 deletions
@@ -0,0 +1,480 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">', 0);
add_javascript('<script src="'.G5_JS_URL.'/jquery.register_form.js"></script>', 0);
if ($config['cf_cert_use'] && ($config['cf_cert_simple'] || $config['cf_cert_ipin'] || $config['cf_cert_hp']))
add_javascript('<script src="'.G5_JS_URL.'/certify.js?v='.G5_JS_VER.'"></script>', 0);
?>
<!-- 회원정보 입력/수정 시작 { -->
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>TOVA Join</title>
<link rel="stylesheet" href="../css/reset.css" />
<link rel="stylesheet" href="../css/font.css" />
<link rel="stylesheet" href="../css/style.css" />
<script src="../js/jquery-3.6.1.min.js"></script>
<script src="../js/common.js"></script>
</head>
<body>
<div class="wrapper">
<!-- Header -->
<header class="header">
<h1>
<img src="../img/logo_w.svg" alt="">
</h1>
<div class="menu_wrap">
<div class="menu_my"><img src="../img/ico_my.svg" alt=""></div>
<div class="menu_ham"><img src="../img/ico_ham.svg" alt=""></div>
</div>
</header>
<!-- //Header -->
<!--popup_wrap-->
<div class="popup_wrap">
<!--popup_in-->
<div class="popup_in">
<hgroup>
<div class="pop_close_wrap">
<button class="btn_close">
<div class="close_div"><img src="../img/ico_close.svg" alt=""></div>
</button>
</div>
</hgroup>
<!--popup_content-->
<div class="popup_content join completion">
<!--pop_join_left-->
<div class="pop_join_left">
<span class="bg_tit_left">Sign u</span>
<div class="join_info">
<h1 class="h_1">회원가입</h1>
<h3 class="h_3">
TOVA 회원이 되시면<br>
<strong>다운로드 및 1:1문의 서비스</strong>를<br>
이용하실 수 있습니다.
</h3>
</div>
<ul class="join_progress">
<li class="join_step"><h4 class="h_4">01</h4><h4 class="h_4">약관동의</h4></li>
<li class="join_step on"><h4 class="h_4">02</h4><h4 class="h_4"><strong>정보입력</strong></h4></li>
<li class="join_step"><h4 class="h_4">03</h4><h4 class="h_4">가입완료</h4></li>
</ul>
</div>
<!--//pop_join_right-->
<div class="pop_input_wrap pop_join_right">
<span class="bg_tit_right">p</span>
<form id="fregisterform" name="fregisterform" action="<?php echo $register_action_url?>" onsubmit="return fregisterform_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off">
<input type="hidden" name="w" value="<?php echo $w ?>">
<input type="hidden" name="url" value="<?php echo $urlencode ?>">
<input type="hidden" name="agree" value="<?php echo $agree ?>">
<input type="hidden" name="agree2" value="<?php echo $agree2 ?>">
<input type="hidden" name="cert_type" value="<?php echo $member['mb_certify']; ?>">
<input type="hidden" name="cert_no" value="">
<!-- <?php //if (isset($member['mb_sex'])) { ?><input type="hidden" name="mb_sex" value="<?php //echo $member['mb_sex'] ?>"><?php //} ?> -->
<?php //if (isset($member['mb_nick_date']) && $member['mb_nick_date'] > date("Y-m-d", G5_SERVER_TIME - ($config['cf_nick_modify'] * 86400))) { // 닉네임수정일이 지나지 않았다면 ?>
<!-- <input type="hidden" name="mb_nick_default" value="<?php //echo get_text($member['mb_nick']) ?>">
<input type="hidden" name="mb_nick" value="<?php //echo get_text($member['mb_nick']) ?>"> -->
<?php //} ?>
<h6 class="important_msg pop_notice h_6">*항목은 필수 항목 입니다.</h6>
<fieldset>
<!--tbl_wrap-->
<div id="register_form" class="tbl_wrap">
<table>
<tbody>
<tr>
<th class="h_4">아이디<span class="important_msg">*</span></th>
<td>
<div class="id_wrap">
<input type="text" class="frm_input full_input" id="reg_mb_id" name="mb_id" onchange="PG_pro('change');" placeholder="아이디 입력" <?php if($member['mb_id']!=""){ ?> style="width: 100% ;"<?php }?> autocomplete="off" value="<?php echo $member['mb_id'] ?>" <?php echo $required ?> <?php echo $readonly ?> maxlength="12"/>
<?php if($member['mb_id']==""){ ?>
<button type="button" class="chk_id" onclick="PG_pro('dupl_check');">중복확인</button>
<!-- hidden --><input type="hidden" id="dupl_check_yn" name="dupl_check_yn" value="" placeholder="아이디중복확인여부YN" style="width:250px; background-color:#dfe4ea "/>
<!-- hidden --><input type="hidden" id="GB_mb_id" name="GB_mb_id" value="<?php echo $member['mb_id'] ?>">
<?php }else{ ?>
<!-- hidden --><input type="hidden" id="reg_mb_id" name="mb_id" value="<?php echo $member['mb_id'] ?>">
<!-- hidden --><input type="hidden" id="dupl_check_yn" name="dupl_check_yn" value="Y" onclick="" style="width:250px; background-color:#dfe4ea "/>
<?php } ?>
</div>
<span class="important_msg h_6">영문+숫자 4~12자(영문으로 시작)</span>
</td>
</tr>
<tr>
<th class="h_4">비밀번호<span class="important_msg">*</span></th>
<td>
<div class="password_wrap">
<input type="password" name="mb_password" id="reg_mb_password" <?php echo $required ?> class="frm_input full_input <?php echo $required ?>" minlength="3" maxlength="20" placeholder="비밀번호 입력">
<input type="password" name="mb_password_re" id="reg_mb_password_re" <?php echo $required ?> class="frm_input full_input <?php echo $required ?>" minlength="3" maxlength="20" placeholder="비밀번호 확인">
</div>
<span class="important_msg h_6">영문+숫자+특수기호 8자 이상</span>
</td>
</tr>
<tr>
<th class="h_4">이름<span class="important_msg">*</span></th>
<td>
<div class="name_wrap">
<input type="text" id="reg_mb_name" name="mb_name" value="<?php echo get_text($member['mb_name']) ?>" <?php echo $required ?> <?php echo $name_readonly; ?> class="frm_input full_input <?php echo $required ?> <?php echo $name_readonly ?>" size="10" placeholder="이름 입력">
</div>
</td>
</tr>
<tr>
<th class="h_4">이메일<span class="important_msg">*</span></th>
<?php
if($member['mb_email']){
$mb_email_confirm = isset($member['mb_email'])?$member['mb_email']:'';
if($mb_email_confirm!=""){
$mb_email_temp = explode('@',$mb_email_confirm);
$mb_email_domain = array_pop(explode('@',$mb_email_confirm));
}
$array_domain = array('naver.com','gmail.com','google.com' ,'hanmail.net','nate.com' ,'kakao.com');
$exist_domain = false;
if (stripos(json_encode($array_domain),$mb_email_domain) !== false) {
$exist_domain = true;
}
}
?>
<td>
<div class="email_wrap">
<!-- <input type="hidden" name="old_email" value="<?php //echo $member['mb_email'] ?>">
<input type="text" name="mb_email" value="<?php //echo isset($member['mb_email'])?$member['mb_email']:''; ?>" id="reg_mb_email" required class="frm_input email full_input required" size="70" maxlength="100" placeholder="이메일 입력"> -->
<input type="text" id="reg_mb_email1" name="mb_email1" value="<?php echo $mb_email_temp[0]; ?>" required class="frm_input email full_input required" size="50" maxlength="100" placeholder="메일입력" autocomplete="off">
<div>
<span>@</span>
</div>
<select name="mb_email2" id="mb_email2" onchange="PG_changeSelect();">
<option value="@naver.com" <?php echo "@".$mb_email_domain=="@naver.com"?"selected":""; ?> >naver.com</option>
<option value="@gmail.com" <?php echo "@".$mb_email_domain=="@gmail.com"?"selected":""; ?> >gmail.com</option>
<option value="@google.com" <?php echo "@".$mb_email_domain=="@google.com"?"selected":""; ?> >google.com</option>
<option value="@hanmail.net" <?php echo "@".$mb_email_domain=="@hanmail.net"?"selected":""; ?> >hanmail.net</option>
<option value="@nate.com" <?php echo "@".$mb_email_domain=="@nate.com"?"selected":""; ?> >nate.com</option>
<option value="@kakao.com" <?php echo "@".$mb_email_domain=="@kakao.com"?"selected":""; ?> >kakao.com</option>
<option value="" <?php echo $exist_domain===false?"selected":""; ?> >직접입력</option>
</select>
<input type="hidden" name="mb_email" value="<?php echo isset($member['mb_email'])?$member['mb_email']:''; ?>" id="reg_mb_email" size="50" maxlength="100">
</div>
</td>
</tr>
<tr>
<th class="h_4">휴대전화번호<span class="important_msg">*</span></th>
<td>
<div class="phone_wrap">
<input type="text" name="mb_hp" value="<?php echo get_text($member['mb_hp']) ?>" id="reg_mb_hp" <?php echo $hp_required; ?> <?php echo $hp_readonly; ?> class="frm_input full_input <?php echo $hp_required; ?> <?php echo $hp_readonly; ?>" maxlength="20" placeholder="휴대폰 번호">
<!-- <button type="button" onclick="" name="" class="cert_number">인증번호</button> -->
</div>
</td>
</tr>
<!-- <tr class="code" style="display: none;">
<th class="h_4">인증번호</th>
<td>
<div class="phone_wrap">
<input type="text" placeholder="인증번호 입력" required>
<span class="timer">03:00</span>
<button type="button" onclick="" name="" class="check">확인</button>
<button type="button " onclick="" name="" class="check complete" style="display: none;">인증완료</button>
</div>
</td>
</tr> -->
<tr>
<th class="h_4">회사정보<span class="select_msg">(선택)</span></th>
<td>
<div class="company_wrap">
<input type="text" name="mb_comp" value="<?php echo get_text($member['mb_comp'])?>" id="reg_mb_comp" size="70" maxlength="100" placeholder="회사명 입력">
<input type="text" name="mb_comp_team" value="<?php echo get_text($member['mb_comp_team'])?>" id="reg_mb_comp_team" size="70" maxlength="100" placeholder="부서명 입력">
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!--//tbl_wrap-->
<div class="btn_confirm">
<button type="submit" id="btn_submit" class="btn_submit"><?php echo $w==''?'회원가입':'정보수정'; ?></button>
</div>
</fieldset>
</form>
</div>
<!--//pop_join_right-->
</div>
<!--//popup_content-->
</div>
<!--//popup_in-->
</div>
<!--//popup_wrap-->
</div>
</body>
<script>
$(function() {
$("#reg_zip_find").css("display", "inline-block");
var pageTypeParam = "pageType=register";
<?php if($config['cf_cert_use'] && $config['cf_cert_simple']) { ?>
// 이니시스 간편인증
var url = "<?php echo G5_INICERT_URL; ?>/ini_request.php";
var type = "";
var params = "";
var request_url = "";
$(".win_sa_cert").click(function() {
if(!cert_confirm()) return false;
type = $(this).data("type");
params = "?directAgency=" + type + "&" + pageTypeParam;
request_url = url + params;
call_sa(request_url);
});
<?php } ?>
<?php if($config['cf_cert_use'] && $config['cf_cert_ipin']) { ?>
// 아이핀인증
var params = "";
$("#win_ipin_cert").click(function() {
if(!cert_confirm()) return false;
params = "?" + pageTypeParam;
var url = "<?php echo G5_OKNAME_URL; ?>/ipin1.php"+params;
certify_win_open('kcb-ipin', url);
return;
});
<?php }?>
<?php if($config['cf_cert_use'] && $config['cf_cert_hp']) { ?>
// 휴대폰인증
var params = "";
$("#win_hp_cert").click(function() {
if(!cert_confirm()) return false;
params = "?" + pageTypeParam;
<?php
switch($config['cf_cert_hp']) {
case 'kcb':
$cert_url = G5_OKNAME_URL.'/hpcert1.php';
$cert_type = 'kcb-hp';
break;
case 'kcp':
$cert_url = G5_KCPCERT_URL.'/kcpcert_form.php';
$cert_type = 'kcp-hp';
break;
case 'lg':
$cert_url = G5_LGXPAY_URL.'/AuthOnlyReq.php';
$cert_type = 'lg-hp';
break;
default:
echo 'alert("기본환경설정에서 휴대폰 본인확인 설정을 해주십시오");';
echo 'return false;';
break;
}
?>
certify_win_open("<?php echo $cert_type; ?>", "<?php echo $cert_url; ?>"+params);
return;
});
<?php } ?>
});
function PG_changeSelect(){
var aaa = $("#mb_email2").val();
if(aaa==""){
//직접입력 선택시
$("#reg_mb_email1").attr('placeholder','aaa@bbb.com 메일주소');
// $("#reg_mb_email1").css('border','1px solid red');
$("#reg_mb_email1").focus();
}else{
$("#reg_mb_email1").attr('placeholder','메일입력');
$("#reg_mb_email1").focus();
}
}//PG_changeSelect
function PG_pro(str){
if(str=="change"){
//아이디 입력창 변경발생시 중복확인 다시해야함 : flag값 N로 변경
$("#dupl_check_yn").val('N');
}else if(str=="dupl_check"){
//아이디 중복체크
//ajax호출할 페이지, ajax값으로 바뀔 html, 해당 saction ID값
var reg_mb_id = $("#reg_mb_id").val();
if(reg_mb_id==""){ alert("아이디를 입력해주세요"); $("#reg_mb_id").focus(); return false;}
//var re = /^[a-z][a-zA-z0-9]{4,12}$/; //아이디 유효성 검사
var re = /^[a-zA-Z][a-zA-Z0-9]{4,12}$/; //아이디 유효성 검사
if (!re.test(reg_mb_id)) {            
alert("아이디는 영문으로 시작하는 \n4~12자의 영문 대소문자+숫자 조합으로만 가능합니다");            
$("#reg_mb_id").focus();      
   return false;       
 }
jQuery.ajax({
type:"GET",
url: "/tova/skin/member/basic/CL_Ajax_Data.php",
//dataType:"HTML", // 옵션이므로 JSON으로 받을게 아니면 안써도 됨
data:{
'ActionKind':'dupl_check',
'reg_mb_id':reg_mb_id,
},
success : function(data){
// 통신이 성공적으로 이루어졌을 때 이 함수를 타게 된다.
console.log(data);
// alert(data);
if(data=="1"){
//아이디중복체크 fail
alert("이미 사용중인 아이디입니다.\n 다시 입력해주세요");
$("#reg_mb_id").val('');
$("#dupl_check_yn").val('N');
$("#reg_mb_id").focus();
}else{
//아이디중복체크 pass
if(!confirm("사용가능한 아이디입니다. \n사용하시겠습니까?")){
$("#reg_mb_id").val('');
$("#dupl_check_yn").val('N');
return false;
}
$("#dupl_check_yn").val('Y');
$("#reg_mb_password").focus();
}
},
error : function(xhr, status, error) {
console.log(xhr);
console.log(status);
console.log(error);
alert("에러발생");
}
});
}else{}
}//PG_pro
// submit 최종 폼체크
function fregisterform_submit(f)
{
// 회원아이디 검사
if (f.w.value == "") {
var msg = reg_mb_id_check();
if (msg) {
alert(msg);
f.mb_id.select();
return false;
}
}
if (f.w.value == "") {
if (f.mb_password.value.length < 3) {
alert("비밀번호를 3글자 이상 입력하십시오.");
f.mb_password.focus();
return false;
}
}
if (f.mb_password.value != f.mb_password_re.value) {
alert("비밀번호가 같지 않습니다.");
f.mb_password_re.focus();
return false;
}
if (f.mb_password.value.length > 0) {
if (f.mb_password_re.value.length < 3) {
alert("비밀번호를 3글자 이상 입력하십시오.");
f.mb_password_re.focus();
return false;
}
}
// 이름 검사
if (f.w.value=="") {
if (f.mb_name.value.length < 1) {
alert("이름을 입력하십시오.");
f.mb_name.focus();
return false;
}
/*
var pattern = /([^가-힣\x20])/i;
if (pattern.test(f.mb_name.value)) {
alert("이름은 한글로 입력하십시오.");
f.mb_name.select();
return false;
}
*/
}
<?php if($w == '' && $config['cf_cert_use'] && $config['cf_cert_req']) { ?>
// 본인확인 체크
if(f.cert_no.value=="") {
alert("회원가입을 위해서는 본인확인을 해주셔야 합니다.");
return false;
}
<?php } ?>
// 닉네임 검사
// if ((f.w.value == "") || (f.w.value == "u" && f.mb_nick.defaultValue != f.mb_nick.value)) {
// var msg = reg_mb_nick_check();
// if (msg) {
// alert(msg);
// f.reg_mb_nick.select();
// return false;
// }
// }
// E-mail 검사
var mail_temp = f.mb_email1.value+''+f.mb_email2.value;
f.mb_email.value = mail_temp;
if ((f.w.value == "") || (f.w.value == "u" && f.mb_email.defaultValue != mail_temp)) {
//if ((f.w.value == "") || (f.w.value == "u" && f.mb_email.defaultValue != f.mb_email.value)) {
var msg = reg_mb_email_check();
if (msg) {
alert(msg);
f.reg_mb_email.select();
return false;
}
}
<?php if (($config['cf_use_hp'] || $config['cf_cert_hp']) && $config['cf_req_hp']) { ?>
// 휴대폰번호 체크
var msg = reg_mb_hp_check();
if (msg) {
alert(msg);
f.reg_mb_hp.select();
return false;
}
<?php } ?>
<?php //echo chk_captcha_js(); ?>
document.getElementById("btn_submit").disabled = "disabled";
return true;
}
jQuery(function($){
//tooltip
$(document).on("click", ".tooltip_icon", function(e){
$(this).next(".tooltip").fadeIn(400).css("display","inline-block");
}).on("mouseout", ".tooltip_icon", function(e){
$(this).next(".tooltip").fadeOut();
});
});
</script>
<!-- } 회원정보 입력/수정 끝 -->