경로 정리 - 큰일었어요!!!
This commit is contained in:
@ -1,8 +1,5 @@
|
||||
if (typeof(CAPSLOCK_JS) == 'undefined') // 한번만 실행
|
||||
{
|
||||
if (typeof g4_path == 'undefined')
|
||||
alert('g4_path 변수가 선언되지 않았습니다. js/capslock.js');
|
||||
|
||||
var CAPSLOCK_JS = true;
|
||||
|
||||
var capslock_delay = 3000; // "CapsLock 이 켜져 있습니다." 이미지를 몇초간 출력할 것인지?
|
||||
@ -66,5 +63,5 @@ if (typeof(CAPSLOCK_JS) == 'undefined') // 한번만 실행
|
||||
return obj.offsetTop + obj.clientTop + get_real_top(obj.offsetParent);
|
||||
}
|
||||
|
||||
document.write("<div id='capslock_info' style='display:none; position:absolute;'><img src='"+g4_path+"/img/capslock.gif'></div>");
|
||||
document.write("<div id='capslock_info' style='display:none; position:absolute;'><img src='"+g4_url+"/img/capslock.gif'></div>");
|
||||
}
|
||||
152
js/common.js
152
js/common.js
@ -1,6 +1,6 @@
|
||||
// 전역 변수
|
||||
var errmsg = "";
|
||||
var errfld;
|
||||
var errfld = null;
|
||||
|
||||
// 필드 검사
|
||||
function check_field(fld, msg)
|
||||
@ -296,28 +296,6 @@ function win_zip(frm_name, frm_zip1, frm_zip2, frm_addr1, frm_addr2)
|
||||
win_open(url, "winZip", "left=50,top=50,width=616,height=460,scrollbars=1");
|
||||
}
|
||||
|
||||
// 쪽지 창
|
||||
function win_memo(url)
|
||||
{
|
||||
if (!url)
|
||||
url = g4_path + "/" + g4_bbs + "/memo.php";
|
||||
win_open(url, "winMemo", "left=50,top=50,width=620,height=460,scrollbars=1");
|
||||
}
|
||||
|
||||
// 포인트 창
|
||||
function win_point(url)
|
||||
{
|
||||
win_open(g4_path + "/" + g4_bbs + "/point.php", "winPoint", "left=20, top=20, width=616, height=635, scrollbars=1");
|
||||
}
|
||||
|
||||
// 스크랩 창
|
||||
function win_scrap(url)
|
||||
{
|
||||
if (!url)
|
||||
url = g4_path + "/" + g4_bbs + "/scrap.php";
|
||||
win_open(url, "scrap", "left=20, top=20, width=616, height=500, scrollbars=1");
|
||||
}
|
||||
|
||||
// 새로운 패스워드 분실 창 : 100902
|
||||
function win_password_lost()
|
||||
{
|
||||
@ -345,14 +323,6 @@ function win_formmail(mb_id, name, email)
|
||||
win_open(g4_path+"/" + g4_bbs + "/formmail.php?mb_id="+mb_id+"&name="+encodeURIComponent(name)+"&email="+email, "winFormmail", "left=50, top=50, width=600, height=480, scrollbars=0");
|
||||
}
|
||||
|
||||
// 설문조사 창
|
||||
function win_poll(url)
|
||||
{
|
||||
if (!url)
|
||||
url = "";
|
||||
win_open(url, "winPoll", "left=50, top=50, width=616, height=500, scrollbars=1");
|
||||
}
|
||||
|
||||
// 자기소개 창
|
||||
function win_profile(mb_id)
|
||||
{
|
||||
@ -479,4 +449,124 @@ $(document).ready(function(){
|
||||
win_password_lost(this.href);
|
||||
return false;
|
||||
});
|
||||
});
|
||||
|
||||
/**
|
||||
* 포인트 창
|
||||
**/
|
||||
var win_point = function(href) {
|
||||
var new_win = window.open(href, 'win_point', 'left=100,top=100,width=600, height=600, scrollbars=1');
|
||||
new_win.focus();
|
||||
}
|
||||
|
||||
/**
|
||||
* 쪽지 창
|
||||
**/
|
||||
var win_memo = function(href) {
|
||||
var new_win = window.open(href, 'win_memo', 'left=100,top=100,width=620,height=500,scrollbars=1');
|
||||
new_win.focus();
|
||||
}
|
||||
|
||||
/**
|
||||
* 메일 창
|
||||
**/
|
||||
var win_email = function(href) {
|
||||
var new_win = window.open(href, 'win_email', 'left=100,top=100,width=600,height=580,scrollbars=0');
|
||||
new_win.focus();
|
||||
}
|
||||
|
||||
/**
|
||||
* 자기소개 창
|
||||
**/
|
||||
var win_profile = function(href) {
|
||||
var new_win = window.open(href, 'win_profile', 'left=100,top=100,width=620,height=510,scrollbars=1');
|
||||
new_win.focus();
|
||||
}
|
||||
|
||||
/**
|
||||
* 스크랩 창
|
||||
**/
|
||||
var win_scrap = function(href) {
|
||||
var new_win = window.open(href, 'win_scrap', 'left=100,top=100,width=600,height=600,scrollbars=1');
|
||||
new_win.focus();
|
||||
}
|
||||
|
||||
/**
|
||||
* 홈페이지 창
|
||||
**/
|
||||
var win_homepage = function(href) {
|
||||
var new_win = window.open(href, 'win_homepage', '');
|
||||
new_win.focus();
|
||||
}
|
||||
|
||||
/**
|
||||
* 우편번호 창
|
||||
**/
|
||||
var win_zip = function(href) {
|
||||
var new_win = window.open(href, 'win_zip', 'width=616, height=460, scrollbars=1');
|
||||
new_win.focus();
|
||||
}
|
||||
|
||||
/**
|
||||
* 새로운 패스워드 분실 창 : 101123
|
||||
**/
|
||||
win_password_lost = function(href)
|
||||
{
|
||||
var new_win = window.open(href, 'win_password_lost', 'width=617, height=330, scrollbars=1');
|
||||
new_win.focus();
|
||||
}
|
||||
|
||||
/**
|
||||
* 설문조사 결과
|
||||
**/
|
||||
var win_poll = function(href) {
|
||||
var new_win = window.open(href, 'win_poll', 'width=616, height=500, scrollbars=1');
|
||||
new_win.focus();
|
||||
}
|
||||
|
||||
$(function(){
|
||||
$('.win_point').click(function() {
|
||||
win_point(this.href);
|
||||
return false;
|
||||
});
|
||||
|
||||
$('.win_memo').click(function() {
|
||||
win_memo(this.href);
|
||||
return false;
|
||||
});
|
||||
|
||||
$('.win_email').click(function() {
|
||||
win_email(this.ref);
|
||||
return false;
|
||||
});
|
||||
|
||||
$('.win_scrap').click(function() {
|
||||
win_scrap(this.href);
|
||||
return false;
|
||||
});
|
||||
|
||||
$('.win_profile').click(function() {
|
||||
win_profile(this.ref);
|
||||
return false;
|
||||
});
|
||||
|
||||
$('.win_homepage').click(function() {
|
||||
win_homepage(this.ref);
|
||||
return false;
|
||||
});
|
||||
|
||||
$('.win_zip_find').click(function() {
|
||||
win_zip(this.href);
|
||||
return false;
|
||||
});
|
||||
|
||||
$('.win_password_lost').click(function() {
|
||||
win_password_lost(this.href);
|
||||
return false;
|
||||
});
|
||||
|
||||
$('.win_poll').click(function() {
|
||||
win_poll(this.href);
|
||||
return false;
|
||||
});
|
||||
});
|
||||
@ -2,8 +2,6 @@ if (typeof(SIDEVIEW_JS) == 'undefined') // 한번만 실행
|
||||
{
|
||||
if (typeof g4_is_member == 'undefined')
|
||||
alert('g4_is_member 변수가 선언되지 않았습니다. js/sideview.js');
|
||||
if (typeof g4_path == 'undefined')
|
||||
alert('g4_path 변수가 선언되지 않았습니다. js/sideview.js');
|
||||
|
||||
var SIDEVIEW_JS = true;
|
||||
|
||||
@ -75,7 +73,7 @@ if (typeof(SIDEVIEW_JS) == 'undefined') // 한번만 실행
|
||||
// 쪽지보내기
|
||||
if (mb_id)
|
||||
// 불여우 자바스크립트창이 뜨는 오류를 수정
|
||||
this.insertTail("memo", "<a href=\"javascript:win_memo('"+g4_path+"/" + g4_bbs + "/memo_form.php?me_recv_mb_id="+mb_id+"');\">쪽지보내기</a>");
|
||||
this.insertTail("memo", "<a href=\"javascript:win_memo('"+g4_bbs_url+"/memo_form.php?me_recv_mb_id="+mb_id+"');\">쪽지보내기</a>");
|
||||
// 메일보내기
|
||||
if (email)
|
||||
this.insertTail("mail", "<a href=\"javascript:;\" onclick=\"win_formmail('"+mb_id+"','"+name+"','"+email+"');\">메일보내기</a>");
|
||||
@ -90,21 +88,21 @@ if (typeof(SIDEVIEW_JS) == 'undefined') // 한번만 실행
|
||||
// 게시판테이블 아이디가 넘어왔을 경우
|
||||
if (g4_bo_table) {
|
||||
if (mb_id) // 회원일 경우 아이디로 검색
|
||||
this.insertTail("mb_id", "<a href='"+g4_path+"/" + g4_bbs + "/board.php?bo_table="+g4_bo_table+"&sca="+g4_sca+"&sfl=mb_id,1&stx="+mb_id+"'>아이디로 검색</a>");
|
||||
this.insertTail("mb_id", "<a href='"+g4_bbs_url+"/board.php?bo_table="+g4_bo_table+"&sca="+g4_sca+"&sfl=mb_id,1&stx="+mb_id+"'>아이디로 검색</a>");
|
||||
else // 비회원일 경우 이름으로 검색
|
||||
this.insertTail("name", "<a href='"+g4_path+"/" + g4_bbs + "/board.php?bo_table="+g4_bo_table+"&sca="+g4_sca+"&sfl=wr_name,1&stx="+name+"'>이름으로 검색</a>");
|
||||
this.insertTail("name", "<a href='"+g4_bbs_url+"/board.php?bo_table="+g4_bo_table+"&sca="+g4_sca+"&sfl=wr_name,1&stx="+name+"'>이름으로 검색</a>");
|
||||
}
|
||||
if (mb_id)
|
||||
this.insertTail("new", "<a href='"+g4_path+"/" + g4_bbs + "/new.php?mb_id="+mb_id+"'>전체게시물</a>");
|
||||
this.insertTail("new", "<a href='"+g4_bbs_url+"/new.php?mb_id="+mb_id+"'>전체게시물</a>");
|
||||
|
||||
// 최고관리자일 경우
|
||||
if (g4_is_admin == "super") {
|
||||
// 회원정보변경
|
||||
if (mb_id)
|
||||
this.insertTail("modify", "<a href='"+g4_path+"/" + g4_admin + "/member_form.php?w=u&mb_id="+mb_id+"' target='_blank'>회원정보변경</a>");
|
||||
this.insertTail("modify", "<a href='"+g4_admin_url+"/member_form.php?w=u&mb_id="+mb_id+"' target='_blank'>회원정보변경</a>");
|
||||
// 포인트내역
|
||||
if (mb_id)
|
||||
this.insertTail("point", "<a href='"+g4_path+"/" + g4_admin + "/point_list.php?sfl=mb_id&stx="+mb_id+"' target='_blank'>포인트내역</a>");
|
||||
this.insertTail("point", "<a href='"+g4_admin_url+"/point_list.php?sfl=mb_id&stx="+mb_id+"' target='_blank'>포인트내역</a>");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user