File: /var/www/ilya/data/www/irkboard.ru/cache/skin_cache/cacheid_2/skin_messaging.php
<?php
/*--------------------------------------------------*/
/* FILE GENERATED BY INVISION POWER BOARD 3 */
/* CACHE FILE: Skin set id: 2 */
/* CACHE FILE: Generated: Wed, 19 Aug 2009 21:44:38 GMT */
/* DO NOT EDIT DIRECTLY - THE CHANGES WILL NOT BE */
/* WRITTEN TO THE DATABASE AUTOMATICALLY */
/*--------------------------------------------------*/
class skin_messaging_2 {
/**
* Construct
*/
function __construct( ipsRegistry $registry )
{
/* Make object */
$this->registry = $registry;
$this->DB = $this->registry->DB();
$this->settings =& $this->registry->fetchSettings();
$this->request =& $this->registry->fetchRequest();
$this->lang = $this->registry->getClass('class_localization');
$this->member = $this->registry->member();
$this->memberData =& $this->registry->member()->fetchMemberData();
$this->cache = $this->registry->cache();
$this->caches =& $this->registry->cache()->fetchCaches();
}
/* -- messengerTemplate --*/
function messengerTemplate($html, $jumpmenu, $dirData, $totalData=array(), $topicParticipants=array(), $inlineError='') {
$IPBHTML = "";
$this->registry->templateStriping['participants'] = array( FALSE, "row1","row2");
$IPBHTML .= "" . $this->registry->getClass('output')->addJSModule("messenger", "0" ) . "
<script type='text/javascript'>
//<![CDATA[
ipb.templates['invite_more'] = new Template(\"<form method='post' action='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "app=members&module=messaging&section=view&do=addParticipants", 'public','' ), "", "" ) . "'>\" +
\"<input type='hidden' name='authKey' value='{$this->member->form_hash}' />\" +
\"<input type='hidden' name='topicID' value='{$this->request['topicID']}' />\" +
\"<input type='hidden' name='st' value='{$this->request['st']}' />\" +
\"<fieldset class='row1'><h3>Invite More Participants</h3>\" +
\"<ul><li class='field'><label for='invite_more_autocomplete'>Enter member names:</label>\" +
\"<input type='text' class='input_text' name='inviteNames' id='invite_more_autocomplete' size='50' />\" +
\"<span class='desc'>#{name_text}, separated with commas</span>\" +
\"</li></ul></fieldset><fieldset class='submit'><input type='submit' class='input_submit' value='Add' /> \" +
\"or <a href='#' class='cancel' title='Cancel'>Cancel</a></fieldset></form>\");
//]]>
</script>
<h2>Messenger</h2>
<div id='messenger_utilities'>
<!-- Show topic participants -->
" . ((is_array( $topicParticipants ) and count( $topicParticipants )) ? ("<div class='general_box alt' id='participants'>
<h3 class='bar'>Participants</h3>
<ul id='participants_list'>
".$this->__f__11d78132d295edfb96b06910a80ebab0($html,$jumpmenu,$dirData,$totalData,$topicParticipants,$inlineError)."
</ul>
<ul class='post_controls'>
<li>
<a href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "module=messaging&section=view&do=toggleNotifications&topicID={$this->request['topicID']}&authKey={$this->member->form_hash}", 'publicWithApp','' ), "", "" ) . "' title='Toggle notification status for this conversation'>
" . (($topicParticipants[ $this->memberData['member_id'] ]['map_ignore_notification']) ? ("" . $this->registry->getClass('output')->getReplacement("msg_notify_on") . " Turn Notifications <strong>ON</strong>
") : ("" . $this->registry->getClass('output')->getReplacement("msg_notify_on") . " Turn Notifications <strong>OFF</strong>
")) . "
</a>
</li>
</ul>
</div>
" . (($this->memberData['g_max_mass_pm'] && count( $topicParticipants ) < $this->memberData['g_max_mass_pm']) ? ("<div id='invite_more' class='general_box alt'>
<h3>Invite Participants</h3>
" . (($this->memberData['g_max_mass_pm'] == 0) ? ("
<p class='desc'>You may invite an <strong>unlimited</strong> number of members</p>
<script type='text/javascript'>
ipb.messenger.invitesLeft = parseInt( 0 );
ipb.messenger.nameText = ipb.lang['enter_unlimited_names'];
</script>
") : ("
<p class='desc'>You may invite up to <strong>" . ( $this->memberData['g_max_mass_pm'] - count( $topicParticipants ) ) . "</strong> more members</p>
<script type='text/javascript'>
ipb.messenger.invitesLeft = parseInt( " . ( $this->memberData['g_max_mass_pm'] - count( $topicParticipants ) ) . " );
ipb.messenger.nameText = ipb.lang['enter_x_names'].gsub(/\\[x\\]/, ipb.messenger.invitesLeft);
</script>
")) . "
<ul class='post_controls'>
<li id='add_participants'><a href='#' title='Add Participants'>" . $this->registry->getClass('output')->getReplacement("add_participants") . " Add</a></li>
</ul>
</div>") : ("")) . "") : ("")) . "
<div id='folder_list' class='general_box alt'>
<h3>Folders</h3>
<ol id='folders'>
" . ((count($dirData)) ? ("".$this->__f__7aea48851364593f242fcec335745491($html,$jumpmenu,$dirData,$totalData,$topicParticipants,$inlineError)." ") : ("")) . "
</ol>
<ul class='post_controls'>
<!-- SKINNOTE: We need a static way to add/edit folders -->
<li id='add_folder'><a href='#' title='Add Folder'>" . $this->registry->getClass('output')->getReplacement("add_folder") . " Add</a></li>
<li id='edit_folders'><a href='#' title='Edit Folders'>" . $this->registry->getClass('output')->getReplacement("edit_folder") . " Edit</a></li>
</ul>
<script type='text/javascript'>
//<![CDATA[
ipb.messenger.folderTemplate = \"<li class='folder' id='f_[id]'>" . $this->registry->getClass('output')->getReplacement("folder_generic") . " <a href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "module=messaging&section=view&do=showFolder&folderID=[id]", 'publicWithApp','' ), "", "" ) . "' title='Go to folder'>[name]</a> <span class='total'>[total]</span><span class='edit_folders' style='display: none'><a href='#' id='delete_[id]' class='f_delete'>Delete</a> | <a href='#' id='empty_[id]' class='f_empty'>Empty</a></span></li>\";
//]]>
</script>
</div>
" . (($this->memberData['g_max_messages'] > 0) ? ("<div id='space_allowance' class='general_box'>
<h3>Storage</h3>
<p>Your messenger storage</p>
<p class='progress_bar' title='Your messenger folders are {$totalData['full_percent']}% full' " . (($totalData['full_percent'] > 80) ? ("class='limit'") : ("")) . ">
<span style='width: {$totalData['full_percent']}%'>{$totalData['full_percent']}%</span>
</p>
<p>
<span class='desc'>{$totalData['full_percent']}% of your quota ({$this->memberData['g_max_messages']} messages)</span>
</p>
</div>") : ("")) . "
<div id='message_search' class='general_box'>
<h3>Search Messages</h3>
<form action='{$this->settings['base_url']}app=members&module=messaging&section=search' method='post'>
<fieldset>
<input type='text' name='searchFor' class='input_text' size='15' style='width: 60%' /> <input type='submit' class='input_submit' value='Go' />
</fieldset>
</form>
</div>
</div>
<div id='messenger_content'>
" . (($inlineError) ? ("
<div class='message error'>
<h4>{$inlineError}</h4>
</div>
<br />
") : ("")) . "
$html
</div>
<!-- end -->";
return $IPBHTML;
}
function __f__11d78132d295edfb96b06910a80ebab0($html, $jumpmenu, $dirData, $totalData=array(), $topicParticipants=array(), $inlineError='')
{
$_ips___x_retval = '';
foreach( $topicParticipants as $memberID => $memberData )
{
$_ips___x_retval .= "
<li class='" . IPSLib::next( $this->registry->templateStriping["participants"] ) . "'>
<a href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "showuser={$memberData['member_id']}", 'public','' ), "{$memberData['members_seo_name']}", "showuser" ) . "' title='View Profile' ><img src='{$memberData['pp_thumb_photo']}' width='{$memberData['pp_thumb_width']}' height='{$memberData['pp_thumb_height']}' alt='Photo' class='photo' /></a>
" . (($memberData['map_ignore_notification']) ? ("
" . $this->registry->getClass('output')->getReplacement("msg_notify_off") . "
") : ("
" . $this->registry->getClass('output')->getReplacement("msg_notify_on") . "
")) . "
" . (($memberData['map_user_active']) ? ("" . (($memberData['map_is_starter']) ? ("
<span class='name starter'><a href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "showuser={$memberData['member_id']}", 'public','' ), "{$memberData['members_seo_name']}", "showuser" ) . "' title='View Profile'><strong>{$memberData['members_display_name_short']}</strong></a></span>" . $this->registry->getClass('output')->getTemplate('global')->user_popup($memberData['member_id'], $memberData['members_seo_name']) . "
") : ("
<span class='name'><a href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "showuser={$memberData['member_id']}", 'public','' ), "{$memberData['members_seo_name']}", "showuser" ) . "' title='View Profile'>{$memberData['members_display_name_short']}</a></span>" . $this->registry->getClass('output')->getTemplate('global')->user_popup($memberData['member_id'], $memberData['members_seo_name']) . "
")) . "
<br />
<span class='desc'>
" . (($memberData['_topicDeleted']) ? ("
<em>Unavailable: Topic Deleted</em>
") : ("Last Read:
" . (($memberData['map_read_time']) ? ("
" . $this->registry->getClass('class_localization')->getDate($memberData['map_read_time'],"short", 0) . "
") : ("
<em>Not yet read</em>
")) . "")) . "
</span>
" . ((! $memberData['map_is_starter'] AND $memberData['_canBeBlocked'] AND ($topicParticipants[ $this->memberData['member_id'] ]['map_is_starter'] OR $this->memberData['g_is_supmod']) AND ( $memberData['map_user_id'] != $this->memberData['member_id'] ) AND !$memberData['_topicDeleted']) ? ("
<br /><a href=\"" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "module=messaging&section=view&do=blockParticipant&topicID={$this->request['topicID']}&memberID={$memberData['map_user_id']}&authKey={$this->member->form_hash}", 'publicWithApp','' ), "", "" ) . "\" title='Block this user' class='cancel'>Block</a>
") : ("")) . "") : ("" . (($memberData['map_user_banned']) ? ("<span class='name blocked'><a href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "showuser={$memberData['member_id']}", 'public','' ), "{$memberData['members_seo_name']}", "showuser" ) . "' title='View Profile'><strong>{$memberData['members_display_name_short']}</strong></a></span>" . $this->registry->getClass('output')->getTemplate('global')->user_popup($memberData['member_id'], $memberData['members_seo_name']) . "
<br />
<span class='desc'>User is blocked & can't participate</span>
<br />
" . (($memberData['_canBeBlocked'] AND ($topicParticipants[ $this->memberData['member_id'] ]['map_is_starter'] OR $this->memberData['g_is_supmod'])) ? ("
<a href=\"" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "module=messaging&section=view&do=unblockParticipant&topicID={$this->request['topicID']}&memberID={$memberData['map_user_id']}&authKey={$this->member->form_hash}", 'publicWithApp','' ), "", "" ) . "\" title='Unblock this user' class='cancel'>Unblock</a>
") : ("")) . "") : ("<span class='name left_convo'><a href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "showuser={$memberData['member_id']}", 'public','' ), "{$memberData['members_seo_name']}", "showuser" ) . "' title='View Profile'><strong>{$memberData['members_display_name_short']}</strong></a></span>" . $this->registry->getClass('output')->getTemplate('global')->user_popup($memberData['member_id'], $memberData['members_seo_name']) . "
<br />
<span class='desc'>
" . (($memberData['_topicDeleted']) ? ("
<em>Unavailable: Topic Deleted</em>
") : ("" . (($memberData['map_is_system']) ? ("
Is unable to participate
") : ("
Has left the conversation
")) . "")) . "
</span>")) . "")) . "
</li>
";
}
$_ips___x_retval .= '';
return $_ips___x_retval;
}
function __f__7aea48851364593f242fcec335745491($html, $jumpmenu, $dirData, $totalData=array(), $topicParticipants=array(), $inlineError='')
{
$_ips___x_retval = '';
foreach( $dirData as $id => $data )
{
$_ips___x_retval .= "
" . (($data['protected']) ? ("
<li class='folder protected' id='f_{$id}'>" . $this->registry->getClass('output')->getReplacement("folder_{$id}") . "
") : ("
<li class='folder' id='f_{$id}'>" . $this->registry->getClass('output')->getReplacement("folder_generic") . "
")) . "
<a href=\"" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "module=messaging&section=view&do=showFolder&folderID={$id}", 'publicWithApp','' ), "", "" ) . "\" title=\"Go to folder\" rel=\"folder_name\">{$data['real']}</a>
<span class='total'>
" . (($id == 'all') ? ("
" . intval($this->memberData['msg_count_total']) . "
") : ("
" . intval($data['count']) . "
")) . "
</span>
" . (( ! $data['protected']) ? ("
<span class='edit_folders' style='display: none'><a href='#' id='delete_{$id}' class='f_delete'>Delete</a> | <a href='#' id='empty_{$id}' class='f_empty'>Empty</a></span></li>
") : ("
<span class='edit_folders' style='display: none'><a href='#' id='empty_{$id}' class='f_empty'>Empty</a></span></li>
")) . "
";
}
$_ips___x_retval .= '';
return $_ips___x_retval;
}
/* -- PMQuickForm --*/
function PMQuickForm($toMemberData) {
$IPBHTML = "";
$IPBHTML .= "<form id='pm_to_member_{$toMemberData['member_id']}'>
<input type='hidden' name='toMemberID' value='{$toMemberData['member_id']}' />
<fieldset class='row1'>
<h3>Sending a PM to {$toMemberData['members_display_name']}</h3>
<div id='pm_error_{$toMemberData['member_id']}'>
<br />
<p class='message error'></p></div>
<script type='text/javascript'>
$('pm_error_{$toMemberData['member_id']}').hide();
</script>
<ul>
<li class='field'>
<label for='pm_subject_{$toMemberData['member_id']}'>Subject</label>
<input type='text' class='input_text' id='pm_subject_{$toMemberData['member_id']}' name='msg_title' size='50' tabindex='1' />
</li>
<li class='field'>
<label for='pm_textarea_{$toMemberData['member_id']}'>Message</label>
<textarea class='input_text' name='Post' tabindex='2' id='pm_textarea_{$toMemberData['member_id']}' cols='70' rows='8'></textarea>
</li>
</ul>
</fieldset>
<fieldset class='submit'>
<input type='submit' class='input_submit' name='send_msg' value='Send' /> or <a href='#' class='cancel' title='Cancel sending' id='pm_cancel_{$toMemberData['member_id']}'>Cancel</a>
</fieldset>
</form>";
return $IPBHTML;
}
/* -- sendNewPersonalTopicForm --*/
function sendNewPersonalTopicForm($displayData) {
$IPBHTML = "";
$IPBHTML .= "<div id='message_compose' class='post_form'>
<form id='msgForm' style='display:block' action=\"" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "module=messaging&section=send&do=send", 'publicWithApp','' ), "", "" ) . "\" method=\"post\" name=\"REPLIER\">
<input type='hidden' name='topicID' value=\"{$displayData['topicID']}\" />
<input type='hidden' name=\"postKey\" value=\"{$displayData['postKey']}\" />
<input type=\"hidden\" name=\"auth_key\" value=\"{$this->member->form_hash}\" />
" . (($displayData['preview']) ? ("
<h2>{$this->lang->words['pm_preview']}</h2>
<div class='post_wrap' id='post_preview'>
<div class='row2' style='padding:8px'>
<div class='post entry-content'>{$displayData['preview']}</div>
</div>
</div>
<br />
") : ("")) . "
<h2>Compose New Message</h2>
" . (($displayData['errors']) ? ("
<div class='message error'>
<h4>{$this->lang->words['err_errors']}</h4>
<p>{$displayData['errors']}</p>
<p>{$this->lang->words['pme_none_sent']}</p>
</div>
") : ("")) . "
<ul class='topic_options'></ul>
<fieldset>
<h3 class='bar'>Recipients</h3>
<ul>
<li class='field'>
<label for='entered_name'>{$this->lang->words['to_whom']}</label>
<input type=\"text\" class='input_text' id='entered_name' name=\"entered_name\" size=\"30\" value=\"{$displayData['name']}\" tabindex=\"1\" />
</li>
" . ((intval($this->memberData['g_max_mass_pm'])) ? ("
<li class='field'>
<label for='more_members'>Other Recipients</label>
<input type='text' size=\"50\" class='input_text' name='inviteUsers' value='{$displayData['inviteUsers']}' id='more_members' tabindex='2' />
<span class='desc'>You may add up to <strong>{$this->memberData['g_max_mass_pm']}</strong> other recipients</span>
</li>
<li class='field'>
<label for='send_type'>Send to others as</label>
<select name='sendType' id='send_type'>
<option value='invite'>Invitation</option>
<option value='copy'>Copy</option>
</select>
<span class='desc'>
<strong>Invitation</strong> allows all invited members to participate in a single conversation<br />
<strong>Copy</strong> will send a separate conversation to each member
</span>
</li>
") : ("")) . "
</ul>
</fieldset>
<fieldset>
<h3 class='bar'>Message</h3>
<ul>
<li class='field'>
<label for='message_subject'>Message Subject</label>
<input type=\"text\" name=\"msg_title\" id='message_subject' class='input_text' size=\"40\" tabindex=\"3\" maxlength=\"40\" value=\"{$displayData['title']}\" />
</li>
<li>
{$displayData['editor']}
</li>
</ul>
</fieldset>
" . (($displayData['uploadData']['canUpload']) ? ("
<fieldset class='attachments'>
" . $this->registry->getClass('output')->getTemplate('post')->uploadForm($displayData['postKey'], 'msg', $displayData['uploadData']['attach_stats'], 0) . "
</fieldset>
") : ("")) . "
<fieldset class='submit'>
<input class='input_submit' type=\"submit\" value=\"{$this->lang->words['submit_send']}\" tabindex=\"3\" accesskey=\"s\" />
<input class='input_submit alt' type=\"submit\" value=\"{$this->lang->words['pm_pre_button']}\" tabindex=\"4\" name=\"preview\" />
<input class='input_submit alt' type=\"submit\" value=\"{$this->lang->words['pms_send_later']}\" tabindex=\"5\" name=\"save\" />
{$this->lang->words['or']} <a href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "app=members&module=messaging", 'public','' ), "", "" ) . "' title='{$this->lang->words['cancel']}' class='cancel'>{$this->lang->words['cancel']}</a>
</fieldset>
</form>
</div>
" . $this->registry->getClass('output')->getTemplate('global')->include_highlighter() . "
<br />";
return $IPBHTML;
}
/* -- sendReplyForm --*/
function sendReplyForm($displayData) {
$IPBHTML = "";
$IPBHTML .= "<div id='message_compose' class='post_form'>
" . (($displayData['type'] == 'reply') ? ("
<form id='msgForm' style='display:block' action=\"" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "module=messaging&section=send&do=sendReply", 'publicWithApp','' ), "", "" ) . "\" method=\"post\" name=\"REPLIER\">
") : ("
<form id='msgForm' style='display:block' action=\"" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "module=messaging&section=send&do=sendEdit", 'publicWithApp','' ), "", "" ) . "\" method=\"post\" name=\"REPLIER\">
")) . "
<input type=\"hidden\" name=\"msgID\" value=\"{$displayData['msgID']}\" />
<input type='hidden' name='topicID' value=\"{$displayData['topicID']}\" />
<input type='hidden' name=\"postKey\" value=\"{$displayData['postKey']}\" />
<input type=\"hidden\" name=\"authKey\" value=\"{$this->member->form_hash}\" />
{$data['upload']}
" . (($displayData['preview']) ? ("
<h2>{$this->lang->words['pm_preview']}</h2>
<div class='post_wrap' id='post_preview'>
<div class='row2' style='padding:8px'>
<div class='post entry-content'>{$displayData['preview']}</div>
</div>
</div>
<br />
") : ("")) . "
<h2>
" . (($displayData['type'] == 'reply') ? ("
Compose Reply
") : ("
Editing Message
")) . "
</h2>
" . (($displayData['errors']) ? ("
<h4>{$this->lang->words['err_errors']}</h4>
<p>
{$displayData['errors']}
<br />
<br />
{$this->lang->words['pme_none_sent']}
</p>
") : ("")) . "
<ul class='topic_options'></ul>
<fieldset>
<h3 class='bar'>Message</h3>
<ul>
<li>
{$displayData['editor']}
</li>
</ul>
</fieldset>
" . (($displayData['uploadData']['canUpload']) ? ("
<fieldset class='attachments'>
" . $this->registry->getClass('output')->getTemplate('post')->uploadForm($displayData['postKey'], 'msg', $displayData['uploadData']['attach_stats'], $displayData['msgID'], 0) . "
</fieldset>
") : ("")) . "
<fieldset id='pm_options'>
<!-- nothing here now... so you can remove that 'pm_options' class, if there is one -->
</fieldset>
<fieldset class='submit'>
" . (($displayData['type'] == 'reply') ? ("
<input class='input_submit' type=\"submit\" value=\"{$this->lang->words['submit_send']}\" tabindex=\"10\" accesskey=\"s\" />
<input class='input_submit alt' type=\"submit\" value=\"{$this->lang->words['pm_pre_button']}\" tabindex=\"11\" name=\"previewReply\" />
or <a href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "app=members&module=messaging&do=showConversation&topicID={$displayData['topicID']}", 'public','' ), "", "" ) . "' title='Cancel composing' class='cancel'>Cancel</a>
") : ("
<input class='input_submit' type=\"submit\" value=\"Save Message\" tabindex=\"10\" accesskey=\"s\" />
or <a href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "app=members&module=messaging&section=view&do=showConversation&topicID={$displayData['topicID']}", 'public','' ), "", "" ) . "' title='Cancel composing' class='cancel'>Cancel</a>
")) . "
</fieldset>
</form>
</div>
<br />";
return $IPBHTML;
}
/* -- showConversation --*/
function showConversation($topic, $replies, $members, $jump="") {
$IPBHTML = "";
$IPBHTML .= "<div id='conversation'>
<div class='topic_controls'>
{$topic['_pages']}
<ul class='topic_buttons'>
" . ((1 == 1) ? ("
<li><a href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "module=messaging&section=send&do=form", 'publicWithApp','' ), "", "" ) . "' title='Go to compose screen'>" . $this->registry->getClass('output')->getReplacement("compose_icon") . " Compose New</a></li>
") : ("")) . "" . (($topic['_canReply']) ? ("
<li><a href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "module=messaging&section=send&do=replyForm&topicID={$topic['mt_id']}", 'publicWithApp','' ), "", "" ) . "'>" . $this->registry->getClass('output')->getReplacement("reply_icon") . " Add Reply</a></li>
") : ("
<li class='disabled'><span>You cannot reply</span></li>
")) . "
<!-- SKINNOTE: Can probably do with some kind of 'are you sure' dialogue here.. -->
<li><a onclick='ipb.messenger.deletePM(this)' id='pm_delete_t_{$topic['mt_id']}' href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "module=messaging&section=view&do=deleteConversation&topicID={$topic['mt_id']}&authKey={$this->member->form_hash}", 'publicWithApp','' ), "", "" ) . "'>" . $this->registry->getClass('output')->getReplacement("delete_msg_icon") . " Delete</a></li>
</ul>
</div>
<br />
<h2>{$topic['mt_title']}</h2>
<ul class='topic_options'></ul>".$this->__f__2c5408bf2fb90a843668eb49837f4c95($topic,$replies,$members,$jump)."<div class='topic_controls'>
{$topic['_pages']}
<ul class='topic_buttons'>
" . ((1 == 1) ? ("
<li><a href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "module=messaging&section=send&do=form", 'publicWithApp','' ), "", "" ) . "' title='Go to compose screen'>" . $this->registry->getClass('output')->getReplacement("compose_icon") . " Compose New</a></li>
") : ("")) . "" . (($topic['_canReply']) ? ("
<li><a href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "module=messaging&section=send&do=replyForm&topicID={$topic['mt_id']}", 'publicWithApp','' ), "", "" ) . "'>" . $this->registry->getClass('output')->getReplacement("reply_icon") . " Add Reply</a></li>
") : ("
<li class='disabled'><span>You cannot reply</span></li>
")) . "
<!-- SKINNOTE: Can probably do with some kind of 'are you sure' dialogue here.. -->
<li><a onclick='ipb.messenger.deletePM(this)' id='pm_delete_b_{$topic['mt_id']}' href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "module=messaging&section=view&do=deleteConversation&topicID={$topic['mt_id']}&authKey={$this->member->form_hash}", 'publicWithApp','' ), "", "" ) . "'>" . $this->registry->getClass('output')->getReplacement("delete_msg_icon") . " Delete</a></li>
</ul>
</div>
<br />
" . (($topic['_canReply']) ? ("" . $this->registry->getClass('output')->addJSModule("editor", "0" ) . "
<script type='text/javascript'>
//<![CDATA[
" . $this->registry->getClass('output')->getTemplate('editors')->editorJS() . "
//]]>
</script>
<br />
<div id='fast_reply' style='display: {$displayData['fast_reply']}'>
<h3>Fast Reply</h3>
<ul class='topic_options'></ul>
<div class='general_box alt'>
<form action='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "app=members&module=messaging&section=send&do=sendReply&topicID={$topic['mt_id']}", 'public','' ), "", "" ) . "' method='post'>
" . $this->registry->getClass('output')->getTemplate('editors')->editorShell('fast-reply', 'msgContent', '', 1) . "
<fieldset class='submit'>
<input type=\"hidden\" name=\"authKey\" value=\"{$this->member->form_hash}\" />
<input type=\"hidden\" name=\"fast_reply_used\" value=\"1\" />
<input type=\"hidden\" name=\"enableemo\" value=\"yes\" />
<input type=\"hidden\" name=\"enablesig\" value=\"yes\" />
<input type='submit' name=\"submit\" class='input_submit' value='Post' /> <input type='submit' name=\"previewReply\" class='input_submit alt' value='Use Full Editor' />
</fieldset>
</form>
</div>
</div>
<script type=\"text/javascript\">
//<![CDATA[
if( $('fast-reply_textarea') ){
$('fast-reply_textarea').setStyle('height: 70px');
}
ipb.editor_values.set( 'emoticons', \$H({ " . IPSLib::fetchEmoticonsAsJson() . " }) );
ipb.vars['emoticon_url'] = \"{$this->settings['emoticons_url']}\";
//ipb.editors[ '{$editor_id}' ] = new ipb.editor( '{$editor_id}', parseInt($rte_mode), parseInt($rte_mode) == 1 ? 0 : 1, 'Hello this is an initial value' );
ipb.editors[ 'fast-reply' ] = new ipb.editor( 'fast-reply', USE_RTE );
in_use = 0;
" . (($rte_mode != 1) ? ("
obj = ipb.editors['fast-reply'].editor_document;
") : ("
obj = $( ipb.editors['fast-reply'].items['text_obj'] );
")) . "
Event.observe( obj, 'click', function(){
if( in_use != 1 ){
$( ipb.editors['fast-reply'] ).resize_to( 250 );
in_use = 1;
}
}, true);
//]]>
</script>") : ("")) . "
</div>
" . $this->registry->getClass('output')->getTemplate('global')->include_highlighter() . "";
return $IPBHTML;
}
function __f__2c5408bf2fb90a843668eb49837f4c95($topic, $replies, $members, $jump="")
{
$_ips___x_retval = '';
foreach( $replies as $msg_id => $msg )
{
$_ips___x_retval .= "
<a id='msg{$msg['msg_id']}'></a>
<div class='post_block first hentry " . (($post['post']['queued']==1) ? ("moderated") : ("")) . " " . (($this->settings['reputation_enabled']) ? ("with_rep") : ("")) . "' id='post_id_{$msg['msg_id']}'>
<div class='post_wrap'>
" . (($members[ $msg['msg_author_id'] ]['member_id']) ? ("
<h3>
") : ("
<h3 class='guest'>
")) . "
" . (($members[ $msg['msg_author_id'] ]['member_id']) ? ("" . (($members[ $msg['msg_author_id'] ]['_online']) ? ("
" . $this->registry->getClass('output')->getReplacement("user_online") . "
") : ("
" . $this->registry->getClass('output')->getReplacement("user_offline") . "
")) . "
<a class=\"url fn\" href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "showuser={$members[ $msg['msg_author_id'] ]['member_id']}", 'public','' ), "{$members[ $msg['msg_author_id'] ]['members_seo_name']}", "showuser" ) . "'>{$members[ $msg['msg_author_id'] ]['members_display_name']}</a>" . $this->registry->getClass('output')->getTemplate('global')->user_popup($members[ $msg['msg_author_id'] ]['member_id'], $members[ $msg['msg_author_id'] ]['members_seo_name']) . "") : ("
{$members[ $msg['msg_author_id'] ]['members_display_name']}
")) . "
" . (($msg['_ip_address'] != '') ? ("<span class='ip'>({$this->lang->words['ip']}:
" . (($members[ $msg['msg_author_id'] ]['g_access_cp']) ? ("
<em>{$this->lang->words['ip_private']}</em>
") : ("
<a href=\"" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "app=core&module=usercp&tab=members&area=modIpaddress&do=custom&ip={$msg['ip_address']}", 'public','' ), "", "" ) . "\" title='Find information about this IP'>{$msg['ip_address']}</a>
")) . "
)</span>") : ("")) . "
</h3>
<p class='posted_info'>Sent " . $this->registry->getClass('class_localization')->getDate($msg['msg_date'],"long", 0) . "</p>
<div class='author_info'>
" . $this->registry->getClass('output')->getTemplate('global')->userInfoPane($members[ $msg['msg_author_id'] ], $msg_id, array()) . "
</div>
<div class='post_body'>
<div class='post entry-content'>
{$msg['msg_post']}
{$msg['attachmentHtml']}
</div>
" . (($this->memberData['view_sigs'] AND $members[ $msg['msg_author_id'] ]['signature']) ? ("
" . $this->registry->getClass('output')->getTemplate('global')->signature_separator($members[ $msg['msg_author_id'] ]['signature']) . "
") : ("")) . "
</div>
<ul class='post_controls'>
" . ((($this->settings['disable_reportpost'] != 1) and ( $this->memberData['member_id'] )) ? ("
<li class='report'>
<a href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "app=core&module=reports&rcom=messages&topicID={$this->request['topicID']}&st={$this->request['st']}&msg={$msg['msg_id']}", 'public','' ), "", "" ) . "'>" . $this->registry->getClass('output')->getReplacement("report_post_icon") . " Report</a>
</li>
") : ("")) . "
" . (($topic['_canReply']) ? ("
<li>
<a href=\"" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "module=messaging&section=send&do=replyForm&topicID={$topic['mt_id']}&msgID={$msg['msg_id']}", 'publicWithApp','' ), "", "" ) . "\" title=\"{$this->lang->words['tt_reply_to_post']}\">" . $this->registry->getClass('output')->getReplacement("reply_post_icon") . " Reply</a>
</li>
") : ("")) . "
" . (($msg['_canEdit'] === TRUE) ? ("
<li class='post_edit' id='edit_post_{$msg['msg_id']}'>
<a href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "module=messaging&section=send&do=editMessage&topicID={$topic['mt_id']}&msgID={$msg['msg_id']}", 'publicWithApp','' ), "", "" ) . "' title='Edit this post'>" . $this->registry->getClass('output')->getReplacement("edit_post_icon") . " Edit</a>
</li>
") : ("")) . "
" . (($msg['_canDelete'] === TRUE) ? ("
<li class='post_del' id='del_post_{$msg['msg_id']}'>
<a href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "module=messaging&section=send&do=deleteReply&topicID={$topic['mt_id']}&msgID={$msg['msg_id']}&authKey={$this->member->form_hash}", 'publicWithApp','' ), "", "" ) . "' title='Delete this post' class='delete_post'>" . $this->registry->getClass('output')->getReplacement("delete_post_icon") . " Delete</a>
</li>
") : ("")) . "
</ul>
</div>
</div>
";
}
$_ips___x_retval .= '';
return $_ips___x_retval;
}
/* -- showFolder --*/
function showFolder($messages, $dirname, $pages, $currentFolderID, $jumpFolderHTML) {
$IPBHTML = "";
$this->templateVars['folder_all'] = "";
$this->__default__templateVars['folder_all'] = "";
if ( $this->request['folderFilter'] == 'all' OR ! $this->request['folderFilter'] )
{
$this->templateVars['folder_all'] = "selected='selected'";
}
else {$this->templateVars['folder_all'] = $this->__default__templateVars['folder_all']; }
$this->templateVars['folder_in'] = "";
$this->__default__templateVars['folder_in'] = "";
if ( $this->request['folderFilter'] == 'in' )
{
$this->templateVars['folder_in'] = "selected='selected'";
}
else {$this->templateVars['folder_in'] = $this->__default__templateVars['folder_in']; }
$this->templateVars['folder_sent'] = "";
$this->__default__templateVars['folder_sent'] = "";
if ( $this->request['folderFilter'] == 'sent' )
{
$this->templateVars['folder_sent'] = "selected='selected'";
}
else {$this->templateVars['folder_sent'] = $this->__default__templateVars['folder_sent']; }
$this->registry->templateStriping['msg_stripe'] = array( FALSE, "row1","row2");
$IPBHTML .= "<script type='text/javascript'>
ipb.messenger.curFolder = '{$currentFolderID}';
</script>
<div class='topic_controls'>
{$pages}
" . (($currentFolderID != 'drafts') ? ("") : ("")) . "
<ul class='topic_buttons'>
<li><a href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "module=messaging&section=send&do=form", 'publicWithApp','' ), "", "" ) . "' title='Go to compose screen'>" . $this->registry->getClass('output')->getReplacement("compose_icon") . " Compose New</a></li>
</ul>
</div>
<div id='message_list'>
<form action=\"" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "app=members&module=messaging&section=view&do=multiFile&cFolderID={$currentFolderID}", 'public','' ), "", "" ) . "\" id='msgFolderForm' method=\"post\">
<input type=\"hidden\" name=\"sort\" value=\"{$this->request['sort']}\" />
<input type=\"hidden\" name=\"st\" value=\"{$this->request['st']}\" />
<input type=\"hidden\" name=\"auth_key\" value=\"{$this->member->form_hash}\" />
<table class='ipb_table' id='message_table'>
<caption>{$dirname}</caption>
<tr class='header'>
<th scope='col' class='col_m_status'> </th>
<th scope='col' class='col_m_subject'>Topic</th>
<th scope='col' class='col_m_from'>Starter</th>
<th scope='col' class='col_m_to'><a href=\"" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "app=members&module=messaging&section=view&do=showFolder&folderID={$currentFolderID}&sort=nameTo&st={$this->request['st']}", 'public','' ), "", "" ) . "\">To</a></th>
<th scope='col' class='col_m_replies'>Replies</th>
<th scope='col' class='col_m_date'>Last Message</th>
<th scope='col' class='col_m_status'> </th>
<th scope='col' class='col_mod short'><input type='checkbox' class='input_check' id='msg_checkall' value='1' /></th>
</tr>
" . ((count( $messages )) ? ("".$this->__f__02ca7a952d7212125b45e94a01635c02($messages,$dirname,$pages,$currentFolderID,$jumpFolderHTML)." ") : ("
<tr>
<td colspan='8' class='no_messages row1'>
There are no messages to view in this folder
</td>
</tr>
")) . "
</table>
<div id='messenger_mod' class='moderation_bar'>
<select id='pm_multifile' name='pm_multifile' class='input_select'>
<optgroup label=\"With Selected...\">
<option value=\"delete\">Delete</option>
" . (($currentFolderID != 'drafts') ? ("
<option value=\"markread\">Mark Read</option>
<option value=\"markunread\">Mark Unread</option>
<option value=\"notifyon\">Turn On Notifications</option>
<option value=\"notifyoff\">Turn Off Notifications</option>
") : ("")) . "
</optgroup>
" . (($jumpFolderHTML AND $currentFolderID != 'drafts' AND $currentFolderID != 'new') ? ("
<optgroup label=\"Or Move To...\">
{$jumpFolderHTML}
</optgroup>
") : ("")) . "
</select>
<input type=\"button\" class='input_submit alt' onclick='ipb.messenger.goMultiFile(this)' value=\"Go\" />
</div>
</form>
<div id='messenger_filter'>
<form method='post' action='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "app=members&module=messaging&section=view&do=showFolder&folderID={$currentFolderID}", 'public','' ), "", "" ) . "'>
<label for='conversation_filter'>Show: </label>
<select id='conversation_filter' name='folderFilter' class='input_select'>
<option value='' " . $this->templateVars["folder_all"] . ">All Conversations</option>
<option value='in' " . $this->templateVars["folder_in"] . ">Conversations Others Started</option>
<option value='sent' " . $this->templateVars["folder_sent"] . ">Conversations I Started</option>
</select>
<input type='submit' class='input_submit alt' value='Update' />
</form>
</div>
</div>
<br />
<div class='topic_controls'>
{$pages}
<ul class='topic_buttons'>
<li><a href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "module=messaging&section=send&do=form", 'publicWithApp','' ), "", "" ) . "' title='Go to compose screen'>" . $this->registry->getClass('output')->getReplacement("compose_icon") . " Compose New</a></li>
</ul>
</div>";
return $IPBHTML;
}
function __f__d770e0802e73202d66792658e6f2003f($messages, $dirname, $pages, $currentFolderID, $jumpFolderHTML,$id='',$msg='')
{
$_ips___x_retval = '';
foreach( $msg['pages'] as $page )
{
$_ips___x_retval .= "
" . (($page['last']) ? ("
<li><a href=\"" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "app=members&module=messaging&section=view&do=showConversation&topicID={$msg['mt_id']}&st={$page['st']}", 'public','' ), "", "" ) . "\" title='Go to page {$page['page']}'>{$page['page']} →</a></li>
") : ("
<li><a href=\"" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "app=members&module=messaging&section=view&do=showConversation&topicID={$msg['mt_id']}&st={$page['st']}", 'public','' ), "", "" ) . "\" title='Go to page {$page['page']}'>{$page['page']}</a></li>
")) . "
";
}
$_ips___x_retval .= '';
return $_ips___x_retval;
}
function __f__02ca7a952d7212125b45e94a01635c02($messages, $dirname, $pages, $currentFolderID, $jumpFolderHTML)
{
$_ips___x_retval = '';
foreach( $messages as $id => $msg )
{
$_ips___x_retval .= "
<tr id='{$msg['mt_id']}' class='" . IPSLib::next( $this->registry->templateStriping["msg_stripe"] ) . "'>
<td class='altrow short'>
" . (($msg['mt_is_deleted'] OR $msg['map_user_banned']) ? ("
" . $this->registry->getClass('output')->getReplacement("msg_deleted") . "
") : ("" . (($msg['map_has_unread'] == 1) ? ("
" . $this->registry->getClass('output')->getReplacement("msg_icon_new") . "
") : ("
" . $this->registry->getClass('output')->getReplacement("msg_icon") . "
")) . "")) . "
</td>
<td>
" . (($msg['mt_hasattach']) ? ("
" . $this->registry->getClass('output')->getReplacement("t_attach") . "
") : ("")) . "
<span class='m_title'>
" . (($msg['map_has_unread'] == 1) ? ("
<a href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "app=members&module=messaging&section=view&do=findMessage&topicID={$msg['mt_id']}&msgID=__firstUnread__", 'public','' ), "", "" ) . "' title='Go to first unread post'>" . $this->registry->getClass('output')->getReplacement("f_newpost") . "</a>
<strong>
") : ("")) . "
" . (($currentFolderID == 'drafts') ? ("
<a href=\"" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "app=members&module=messaging&section=send&do=form&topicID={$msg['mt_id']}", 'public','' ), "", "" ) . "\">{$msg['mt_title']}</a>
") : ("
<a href=\"" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "app=members&module=messaging&section=view&do=showConversation&topicID={$msg['mt_id']}", 'public','' ), "", "" ) . "\">{$msg['mt_title']}</a>
")) . "
" . (($msg['map_has_unread'] == 1) ? ("
</strong>
") : ("")) . "
" . ((is_array( $msg['pages'] ) AND count( $msg['pages'] )) ? ("
<ul class='mini_pagination'>
".$this->__f__d770e0802e73202d66792658e6f2003f($messages,$dirname,$pages,$currentFolderID,$jumpFolderHTML,$id,$msg)." </ul>
") : ("")) . "
" . ((in_array( $currentFolderID, array( 'new' ) )) ? ("
<p>Folder: {$msg['_folderName']}</p>
") : ("")) . "
</span>
</td>
<td class='altrow short'>
" . (($msg['_starterMemberData']['members_display_name']) ? ("
<a href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "showuser={$msg['_starterMemberData']['member_id']}", 'public','' ), "{$msg['_starterMemberData']['members_seo_name']}", "showuser" ) . "'>{$msg['_starterMemberData']['members_display_name']}</a>" . $this->registry->getClass('output')->getTemplate('global')->user_popup($msg['_starterMemberData']['member_id'], $msg['_starterMemberData']['members_seo_name']) . "
<!-- SKINNOTE: Add block user back in -->
") : ("
<span class='desc'>{$this->lang->words['deleted_user']}</span>
")) . "
</td>
<td class='short'>
" . (($msg['_toMemberData']['members_display_name']) ? ("
<a href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "showuser={$msg['_toMemberData']['member_id']}", 'public','' ), "{$msg['_toMemberData']['members_seo_name']}", "showuser" ) . "'>{$msg['_toMemberData']['members_display_name']}</a>" . $this->registry->getClass('output')->getTemplate('global')->user_popup($msg['_toMemberData']['member_id'], $msg['_toMemberData']['members_seo_name']) . "
<!-- SKINNOTE: Add block user back in -->
") : ("
<span class='desc'>{$this->lang->words['deleted_user']}</span>
")) . "
" . (($msg['_otherInviteeCount'] > 0) ? ("" . (($msg['_otherInviteeCount'] > 1) ? ("
<p title='" . implode( ', ', $msg['_invitedMemberNames'] ) . "'>(and {$msg['_otherInviteeCount']} others)</p>
") : ("
<p title='" . implode( ', ', $msg['_invitedMemberNames'] ) . "'>(and {$msg['_otherInviteeCount']} other)</p>
")) . "") : ("")) . "
</td>
<td class='altrow short'>
<span class='desc'>" . (($msg['map_user_banned']) ? ("-") : ("" . intval( $msg['mt_replies'] ) . "")) . "</span>
</td>
<td>
<ul class='last_post'>
" . (($msg['map_user_banned']) ? ("
<li><em>Information Not Available</em></li>
") : ("
<li><a href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "app=members&module=messaging&section=view&do=findMessage&topicID={$msg['mt_id']}&msgID={$msg['mt_last_msg_id']}", 'public','' ), "", "" ) . "' title='Go to last post'>" . $this->registry->getClass('output')->getReplacement("f_lastpost") . "</a> " . $this->registry->getClass('class_localization')->getDate($msg['mt_last_post_time'],"long", 0) . "</li>
<li>By: <a href=\"" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "showuser={$msg['_lastMsgAuthor']['member_id']}", 'public','' ), "{$msg['_lastMsgAuthor']['members_seo_name']}", "showuser" ) . "\">{$msg['_lastMsgAuthor']['members_display_name']}</a>" . $this->registry->getClass('output')->getTemplate('global')->user_popup($msg['_lastMsgAuthor']['member_id'], $msg['_lastMsgAuthor']['members_seo_name']) . "</li>
")) . "
</ul>
</td>
<td class='altrow short'>
" . (($msg['map_ignore_notification']) ? ("
" . $this->registry->getClass('output')->getReplacement("msg_notify_off") . "
") : ("
" . $this->registry->getClass('output')->getReplacement("msg_notify_on") . "
")) . "
</td>
<td class='short'>
<input type='checkbox' class='input_check msg_check' name='msgid[{$msg['mt_id']}]' id='msg_check_{$msg['mt_id']}' />
</td>
</tr>
";
}
$_ips___x_retval .= '';
return $_ips___x_retval;
}
/* -- showSearchResults --*/
function showSearchResults($messages, $pages, $error) {
$IPBHTML = "";
$this->registry->templateStriping['msg_stripe'] = array( FALSE, "row1","row2");
$IPBHTML .= "<script type='text/javascript'>
//<![CDATA[
ipb.messenger.curFolder = 'in';
//]]>
</script>
<h2>Your Search Results</h2>
" . (($error) ? ("
<p class='message error'>
{$error}
</p>
<br />
") : ("")) . "
<div class='topic_controls'>
{$pages}
</div>
<br />
<div id='message_list'>
<table class='ipb_table' id='message_table'>
<caption>{$dirname}</caption>
<tr class='header'>
<th scope='col' class='col_m_status'> </th>
<th scope='col' class='col_m_subject'>Subject</th>
<th scope='col' class='col_m_replies'>Replies</th>
<th scope='col' class='col_m_sender'>Recipient</th>
<th scope='col' class='col_m_date'>Date</th>
</tr>
" . ((count( $messages )) ? ("".$this->__f__0a7e02abf3da7677f62ca84342b468c9($messages,$pages,$error)." ") : ("
<tr>
<td colspan='5' class='no_messages row1'>
There are no messages to view
</td>
</tr>
")) . "
</table>
</form>
</div>";
return $IPBHTML;
}
function __f__0a7e02abf3da7677f62ca84342b468c9($messages, $pages, $error)
{
$_ips___x_retval = '';
foreach( $messages as $id => $msg )
{
$_ips___x_retval .= "
<tr id='{$msg['mt_id']}' class='" . IPSLib::next( $this->registry->templateStriping["msg_stripe"] ) . "'>
<td class='altrow short'>
" . (($msg['map_has_unread'] != 1) ? ("
" . $this->registry->getClass('output')->getReplacement("msg_read") . "
") : ("
" . $this->registry->getClass('output')->getReplacement("msg_unread") . "
")) . "
" . (($msg['mt_is_deleted']) ? ("
" . $this->registry->getClass('output')->getReplacement("msg_deleted") . "
") : ("")) . "
</td>
<td>
" . (($msg['mt_hasattach']) ? ("
" . $this->registry->getClass('output')->getReplacement("t_attach") . "
") : ("")) . "
<span class='m_title'>
" . (($msg['map_has_unread'] == 1) ? ("
<strong>
") : ("")) . "
<a href=\"" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "app=members&module=messaging&section=view&do=showConversation&topicID={$msg['mt_id']}", 'public','' ), "", "" ) . "\">{$msg['mt_title']}</a>
" . (($msg['map_has_unread'] == 1) ? ("
</strong>
") : ("")) . "
<p>Label: {$msg['_folderName']}</p>
</span>
</td>
<td>
<span class='desc'>" . intval( $msg['mt_replies'] ) . "</span>
</td>
<td class='altrow'>
" . (($msg['_toMemberData']['member_id']) ? ("<a href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "showuser={$msg['_toMemberData']['member_id']}", 'public','' ), "", "" ) . "'>{$msg['_toMemberData']['members_display_name']}</a>
" . (($msg['mt_invited_count']) ? ("" . (($msg['mt_invited_count'] > 1) ? ("
<p>(and {$msg['mt_invited_count']} others)</p>
") : ("
<p>(and {$msg['mt_invited_count']} other)</p>
")) . "") : ("")) . "
<!-- SKINNOTE: Add block user back in -->") : ("
<span class='desc'>{$this->lang->words['deleted_user']}</span>
")) . "
</td>
<td>
" . $this->registry->getClass('class_localization')->getDate($msg['mt_last_post_time'],"long", 0) . "
</td>
</tr>
";
}
$_ips___x_retval .= '';
return $_ips___x_retval;
}
}
/*--------------------------------------------------*/
/* END OF FILE */
/*--------------------------------------------------*/
?>