git-svn-id: http://xe-core.googlecode.com/svn/trunk@1048 201d5d3c-b55e-5fd7-737f-ddc643e51545
|
|
@ -74,12 +74,12 @@
|
||||||
// 4. 자신의 쪽지함 보기 기능 추가
|
// 4. 자신의 쪽지함 보기 기능 추가
|
||||||
$menu_str = Context::getLang('cmd_view_message_box');
|
$menu_str = Context::getLang('cmd_view_message_box');
|
||||||
$menu_link = "location.href.setQuery('act','dispMemberMessages')";
|
$menu_link = "location.href.setQuery('act','dispMemberMessages')";
|
||||||
$menu_list .= sprintf("\n%s,move_url(%s,'sendMessage', true)", $menu_str, $menu_link);
|
$menu_list .= sprintf("\n%s,%s,move_url(%s,'sendMessage', true)", './modules/member/tpl/images/icon_message_box.gif', $menu_str, $menu_link);
|
||||||
|
|
||||||
// 5. 친구 목록 보기
|
// 5. 친구 목록 보기
|
||||||
$menu_str = Context::getLang('cmd_view_friend');
|
$menu_str = Context::getLang('cmd_view_friend');
|
||||||
$menu_link = "location.href.setQuery('module','member').setQuery('act','dispMemberFriend')";
|
$menu_link = "location.href.setQuery('module','member').setQuery('act','dispMemberFriend')";
|
||||||
$menu_list .= sprintf("\n%s,popopen(%s,'sendMessage', true)", $menu_str, $menu_link);
|
$menu_list .= sprintf("\n%s,%s,popopen(%s,'sendMessage', true)", './modules/member/tpl/images/icon_friend_box.gif',$menu_str, $menu_link);
|
||||||
|
|
||||||
|
|
||||||
// 아니라면 쪽지 발송, 친구 등록 추가
|
// 아니라면 쪽지 발송, 친구 등록 추가
|
||||||
|
|
@ -92,14 +92,14 @@
|
||||||
if( $target_member_info->allow_message =='Y' || ($target_member_info->allow_message == 'F' && $this->isFriend($member_srl))) {
|
if( $target_member_info->allow_message =='Y' || ($target_member_info->allow_message == 'F' && $this->isFriend($member_srl))) {
|
||||||
$menu_str = Context::getLang('cmd_send_message');
|
$menu_str = Context::getLang('cmd_send_message');
|
||||||
$menu_link = sprintf('./?module=member&act=dispMemberSendMessage&receiver_srl=%s',$member_srl);
|
$menu_link = sprintf('./?module=member&act=dispMemberSendMessage&receiver_srl=%s',$member_srl);
|
||||||
$menu_list .= sprintf("\n%s,popopen('%s','sendMessage')", $menu_str, $menu_link);
|
$menu_list .= sprintf("\n%s,%s,popopen('%s','sendMessage')", './modules/member/tpl/images/icon_write_message.gif', $menu_str, $menu_link);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 5. 친구 등록 메뉴를 만듬 (이미 등록된 친구가 아닐 경우)
|
// 5. 친구 등록 메뉴를 만듬 (이미 등록된 친구가 아닐 경우)
|
||||||
if(!$this->isAddedFriend($member_srl)) {
|
if(!$this->isAddedFriend($member_srl)) {
|
||||||
$menu_str = Context::getLang('cmd_add_friend');
|
$menu_str = Context::getLang('cmd_add_friend');
|
||||||
$menu_link = sprintf('./?module=member&act=dispMemberAddFriend&target_srl=%s',$member_srl);
|
$menu_link = sprintf('./?module=member&act=dispMemberAddFriend&target_srl=%s',$member_srl);
|
||||||
$menu_list .= sprintf("\n%s,popopen('%s','addFriend')", $menu_str, $menu_link);
|
$menu_list .= sprintf("\n%s,%s,popopen('%s','addFriend')", './modules/member/tpl/images/icon_add_friend.gif', $menu_str, $menu_link);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -141,33 +141,17 @@ h6 {
|
||||||
}
|
}
|
||||||
|
|
||||||
#membermenuarea .item {
|
#membermenuarea .item {
|
||||||
color:#000000;
|
color:#353249;
|
||||||
padding:2px;
|
|
||||||
margin-bottom:3px;
|
|
||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
border:1px solid #FFFFFF;
|
padding:2px;
|
||||||
|
height:17px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#membermenuarea .item_on {
|
#membermenuarea .item_on {
|
||||||
padding:2px;
|
color:#2911B8;
|
||||||
margin-bottom:3px;
|
font-weight:bold;
|
||||||
color:#FFFFFF;
|
letter-spacing:-1px;
|
||||||
background-color:#3916EC;
|
|
||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
border:1px solid #000000;
|
|
||||||
}
|
|
||||||
|
|
||||||
#membermenuarea .last_item {
|
|
||||||
color:#000000;
|
|
||||||
padding:2px;
|
padding:2px;
|
||||||
cursor:pointer;
|
height:17px;
|
||||||
border:1px solid #FFFFFF;
|
|
||||||
}
|
|
||||||
|
|
||||||
#membermenuarea .last_item_on {
|
|
||||||
padding:2px;
|
|
||||||
color:#FFFFFF;
|
|
||||||
background-color:#3916EC;
|
|
||||||
cursor:pointer;
|
|
||||||
border:1px solid #000000;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -457,16 +457,19 @@ function displayMemberMenu(ret_obj, response_tags, params) {
|
||||||
for(var i=0;i<infos.length;i++) {
|
for(var i=0;i<infos.length;i++) {
|
||||||
var info_str = infos[i];
|
var info_str = infos[i];
|
||||||
var pos = info_str.indexOf(",");
|
var pos = info_str.indexOf(",");
|
||||||
|
var icon = info_str.substr(0,pos).trim();
|
||||||
|
|
||||||
|
info_str = info_str.substr(pos+1, info_str.length).trim();
|
||||||
|
var pos = info_str.indexOf(",");
|
||||||
var str = info_str.substr(0,pos).trim();
|
var str = info_str.substr(0,pos).trim();
|
||||||
var func = info_str.substr(pos+1, info_str.length).trim();
|
var func = info_str.substr(pos+1, info_str.length).trim();
|
||||||
|
|
||||||
var className = "item";
|
var className = "item";
|
||||||
if(i==infos.length-1) className = "last_item";
|
//if(i==infos.length-1) className = "item";
|
||||||
|
|
||||||
if(!str || !func) continue;
|
if(!str || !func) continue;
|
||||||
|
|
||||||
html += "<div class=\""+className+"\" onmouseover=\"this.className='"+className+"_on'\" onmouseout=\"this.className='"+className+"'\" onclick=\""+func+"\">"+str+"</div>";
|
html += "<div class=\""+className+"\" onmouseover=\"this.className='"+className+"_on'\" onmouseout=\"this.className='"+className+"'\"><span style=\"background:url("+icon+") no-repeat left;padding-left:18px;\" onclick=\""+func+"\">"+str+"</div>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
loaded_member_menu_list[member_srl] = html;
|
loaded_member_menu_list[member_srl] = html;
|
||||||
|
|
|
||||||
|
|
@ -52,12 +52,12 @@
|
||||||
// 회원 정보 보기
|
// 회원 정보 보기
|
||||||
$menu_str = Context::getLang('cmd_view_member_info');
|
$menu_str = Context::getLang('cmd_view_member_info');
|
||||||
$menu_url = sprintf('./?mid=%s&act=dispMemberInfo&member_srl=%s', $mid, $member_srl);
|
$menu_url = sprintf('./?mid=%s&act=dispMemberInfo&member_srl=%s', $mid, $member_srl);
|
||||||
$menu_list[] = sprintf('%s,move_url(\'%s\')', $menu_str, $menu_url);
|
$menu_list[] = sprintf('%s,%s,move_url(\'%s\')', './modules/member/tpl/images/icon_view_info.gif', $menu_str, $menu_url);
|
||||||
|
|
||||||
// 아이디로 검색
|
// 아이디로 검색
|
||||||
$menu_str = Context::getLang('cmd_view_own_document');
|
$menu_str = Context::getLang('cmd_view_own_document');
|
||||||
$menu_url = sprintf('./?mid=%s&search_target=user_id&search_keyword=%s', $mid, $user_id);
|
$menu_url = sprintf('./?mid=%s&search_target=user_id&search_keyword=%s', $mid, $user_id);
|
||||||
$menu_list[] = sprintf('%s,move_url(\'%s\')', $menu_str, $menu_url);
|
$menu_list[] = sprintf('%s,%s,move_url(\'%s\')', './modules/member/tpl/images/icon_view_written.gif',$menu_str, $menu_url);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 다른 사람의 아이디를 클릭한 경우
|
// 다른 사람의 아이디를 클릭한 경우
|
||||||
|
|
@ -66,9 +66,15 @@
|
||||||
// 메일 보내기
|
// 메일 보내기
|
||||||
$menu_str = Context::getLang('cmd_send_email');
|
$menu_str = Context::getLang('cmd_send_email');
|
||||||
$menu_url = sprintf('%s <%s>', $user_name, $email_address);
|
$menu_url = sprintf('%s <%s>', $user_name, $email_address);
|
||||||
$menu_list[] = sprintf('%s,sendMailTo(\'%s\')', $menu_str, $menu_url);
|
$menu_list[] = sprintf('%s,%s,sendMailTo(\'%s\')', './modules/member/tpl/images/icon_sendmail.gif', $menu_str, $menu_url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 홈페이지 보기
|
||||||
|
if($member_info->homepage) $menu_list[] = sprintf("%s,%s,winopen('%s')", './modules/member/tpl/images/icon_homepage.gif',Context::getLang('homepage'), $member_info->homepage);
|
||||||
|
|
||||||
|
// 블로그 보기
|
||||||
|
if($member_info->blog) $menu_list[] = sprintf("%s,%s,winopen('%s')", './modules/member/tpl/images/icon_blog.gif', Context::getLang('blog'), $member_info->blog);
|
||||||
|
|
||||||
// 정보를 저장
|
// 정보를 저장
|
||||||
$this->add("menu_list", implode("\n",$menu_list));
|
$this->add("menu_list", implode("\n",$menu_list));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
BIN
modules/member/tpl/images/icon_add_friend.gif
Normal file
|
After Width: | Height: | Size: 1 KiB |
BIN
modules/member/tpl/images/icon_blog.gif
Normal file
|
After Width: | Height: | Size: 1 KiB |
BIN
modules/member/tpl/images/icon_friend_box.gif
Normal file
|
After Width: | Height: | Size: 1 KiB |
BIN
modules/member/tpl/images/icon_homepage.gif
Normal file
|
After Width: | Height: | Size: 1 KiB |
BIN
modules/member/tpl/images/icon_message_box.gif
Normal file
|
After Width: | Height: | Size: 1 KiB |
BIN
modules/member/tpl/images/icon_on.gif
Normal file
|
After Width: | Height: | Size: 1,022 B |
BIN
modules/member/tpl/images/icon_sendmail.gif
Normal file
|
After Width: | Height: | Size: 1,014 B |
BIN
modules/member/tpl/images/icon_view_info.gif
Normal file
|
After Width: | Height: | Size: 591 B |
BIN
modules/member/tpl/images/icon_view_written.gif
Normal file
|
After Width: | Height: | Size: 621 B |
BIN
modules/member/tpl/images/icon_write_message.gif
Normal file
|
After Width: | Height: | Size: 1 KiB |