Discuz功能源码(开源)
源代码在线查看: pm.htm
{template header}
$bbname » {lang pm}
{lang pm_center}
+ {lang pm_send}
{lang pm_unread}
{lang pm_private}
{lang pm_system}($systemnewpm)
{lang pm_announce}
{lang pm_setting}
{eval $range = array('', '{lang pm_today}', '{lang pm_yesterday}', '{lang pm_before_yesterday}');}
{echo discuz_uc_avatar($pm[touid], 'small');}
{echo discuz_uc_avatar($pm[touid], 'small');}
$range[$pm[daterange]] $pm[time]$pm[date] $pm[time]
>
$pm[msgfrom]
$pm[subject]
$pm[message]
{lang delete}
$pm[message]
{lang delete}
$pm[message]
{lang checkall}
|{lang mark_read}
|{lang mark_unread}
|{lang delete}
{lang delete}
{lang pm_num_total}
{lang pm_first_page}
{lang pm_search_continue}
$multipage
function deletepm(obj, pmid) {
str = 'ajaxget(\'' + obj.href + '\', \'pm_' + pmid + '\', \'ajaxwaitid\', \'ajaxwaitid\', \'\', \'$(\\\'pm_' + pmid + '\\\').style.display = \\\'none\\\'\');';
dconfirm('{lang pm_delete_confirm}', str);
}
{lang data_nonexistence}
{lang pm_total} {echo count($pmlist);}
|{lang pm_archive}
|{lang pm_clean}
|{lang pm_add_blacklist}
{lang pm_between_user}
{lang pm_week}
{lang pm_all_day}
{eval $new = 0;}
{subtemplate pm_node}
{lang pm_three_day_nonexistence}
{lang pm_week_nonexistence}
{lang pm_all_day_nonexistence}
{eval $seditor = array('pmreply', array('bold', 'img', 'link', 'quote', 'code', 'smilies'));}
{subtemplate seditor}
{lang pm_reply}
{eval $policymsgs = $p = '';}
$extcredits[$id][img] $extcredits[$id][title] $policy $extcredits[$id][unit]
{eval $policymsgs .= $p.$policymsg;$p = ', ';}
{lang pm_credit_msg}
function pmreplysubmit() {
$('pmreplymessage').value = seditor_parseurl($('pmreplymessage').value);
ajaxpost('pmform', 'pm_new', 'pm_new', 'onerror');
}
function messagehandle_pmreply() {
$('pm_new').style.display = '';
}
function appendpmnode() {
$('pm_new').className = 'pm_list';
$('pm_new').style.display = '';
$('pm_new').id = '';
ul = document.createElement('ul');
ul.id = 'pm_new';
ul.className = 'pm_list';
ul.style.display = 'none';
$('pm_list').appendChild(ul);
$('pmform').message.value = '';
creditnoticewin();
}
{lang pm_all_blacklist_receive}
{lang pm_all_blacklist_black}
{lang pm_blacklist}:
{eval $dataexist=0;}
{eval $dataexist=1;}
$user
{lang pm_remove_blacklist}
{lang data_nonexistence}
{subtemplate personal_navbar}
{template footer}