Files
Testing/templates/user_messages_view.tpl
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

239 lines
6.5 KiB
Smarty

{include file='header.tpl'}
{* $Id: user_messages_view.tpl 194 2009-07-15 21:44:24Z john $ *}
<table class='tabs' cellpadding='0' cellspacing='0'>
<tr>
<td class='tab0'>&nbsp;</td>
<td class='tab{if $b == 0}1{else}2{/if}' NOWRAP><a href='user_messages.php?s={$s}'>{lang_print id=780}</a></td>
<td class='tab'>&nbsp;</td>
<td class='tab{if $b == 0}2{else}1{/if}' NOWRAP><a href='user_messages_outbox.php'>{lang_print id=781}</a></td>
<td class='tab3'>&nbsp;</td>
</tr>
</table>
<!--<img src='./images/icons/messages48.gif' border='0' class='icon_big' />-->
<div class='page_header'>{$pmconvo_info.pmconvo_subject}</div>
{capture assign='collaborators'}{section name=coll_loop loop=$collaborators}
{assign var="userid" value=$collaborators[coll_loop]->user_info.user_id}
{if $collaborators[coll_loop]->user_info.club==1}
<a href='club.php?club_id={$collaborators[coll_loop]->user_info.user_id}'>{$collaborators[coll_loop]->user_info.user_username}</a>
{else}
<a href='{$url->url_create("profile", $collaborators[coll_loop]->user_info.user_username)}'>{$collaborators[coll_loop]->user_displayname}</a>{/if}{if $smarty.section.coll_loop.last != TRUE}, {/if}{/section}{/capture}
<div>{lang_sprintf id=801 1=$collaborators}</div>
<br />
<br />
{* JAVASCRIPT FOR AUTOGROWING TEXTAREA *}
{literal}
<script type="text/javascript">
<!--
window.addEvent('domready', function() { textarea_autogrow('reply_body'); });
//-->
</script>
{/literal}
{* LOOP THROUGH MESSAGES IN THREAD *}
<table cellpadding='0' cellspacing='0' width='100%'>
{section name=pm_loop loop=$pms}
<tr>
<td class='messages_view1' style="width:60px;">
{if $pms[pm_loop].club==0}
<a href='{$url->url_create("profile",$pms[pm_loop].author->user_info.user_username)}'>
{else}<a href='club.php?club_id={$pms[pm_loop].author->user_info.user_id}'>{/if}
{if $pms[pm_loop].club==0}
{assign var="profilepicture" value=$pms[pm_loop].author->user_photo("./images/nophoto.png")}
{$pms[pm_loop].author->userprofiledot($profilepicture, "90px")}
{else}
<img src="{$pms[pm_loop].pm_user->user_info.club_photo}" onerror="this.src='{$cloudcdn1}/images/nophoto.png'" style="max-width:90px;">
{/if}
</a>
{if $smarty.section.pm_loop.last}<a name='bottom'></a>{/if}
</td>
<td class='messages_authorbox' nowrap='nowrap'>
{if $pms[pm_loop].club==0}
<div class='messages_author'><a href='{$url->url_create("profile",$pms[pm_loop].author->user_info.user_username)}'>{$pms[pm_loop].author->user_displayname|truncate:20:"...":true}</a></div>
{else}
<div class='messages_author'><a href='club.php?club_id={$pms[pm_loop].author->user_info.user_id}'>{$pms[pm_loop].author->user_info.user_username|truncate:20:"...":true}</a></div>{/if}
<div class='messages_date'>{$datetime->cdate("`$setting.setting_timeformat` `$setting.setting_dateformat`", $datetime->timezone($pms[pm_loop].pm_date, $global_timezone))}</div>
{if $pms[pm_loop].author->user_info.user_username!=$user->user_info.user_username}
<div>
<a data-toggle="modal" data-target="#myModal" href="user_report.php?return_url={$url->url_current()|escape:url}&user={$pms[pm_loop].author->user_info.user_username}&item=message&objectid={$pms[pm_loop].pm_id}">Report a Problem</a>
<!--<input type='button' class='button' value='Report this Person' onClick="javascript:TB_show('Notify an Administrator', 'user_report.php?return_url=https://bateworld.com/profile.php?user={$pms[pm_loop].author->user_info.user_username}&TB_iframe=true&height=450&width=450', '', './images/trans.gif');">
-->
</div>
{/if}
</td>
<td class='messages_view2'>{$pms[pm_loop].pm_body|choptext:75:"<br>"}</td>
</tr>
<tr><td colspan='3'>&nbsp;</td></tr>
{/section}
{* DISPLAY REPLY TO ALL BOX *}
<tr>
<td colspan="3" class='messages_view2_bottom'>
<a name='reply'></a>
<div id='reply_error' style='display: none;'>{lang_print id=796}</div>
{if $blockerror}<div id='reply_error2' style='display: {$blockerror};'>{lang_print id=1321}</div>{/if}
<form action='user_messages_view.php#bottom' method='POST' onSubmit="{literal}if(this.reply.value.replace(/ /g, '') == '') { $('reply_error').style.display='block'; return false; } else {jQuery('#submit1').prop( 'disabled', true ); jQuery('#submit1').prop( 'value', 'Sending...' ); return true; }{/literal}">
{if $userid!=390124}
{* if $collaborators|@count == 1}{lang_print id=802}{else}{lang_print id=803}{/if *}
{if is_array($collaborators) || $collaborators instanceof Countable}
{if $collaborators|@count == 1}
{lang_print id=802}
{else}
{lang_print id=803}
{/if}
{else}
{if strlen($collaborators) == 1}
{lang_print id=802}
{else}
{lang_print id=803}
{/if}
{/if}
<br>
<textarea name='reply' id='reply_body' class="form-control"></textarea>
<input type="hidden" name="s" value="{$s}">
<br>
<input type='submit' id="submit1" class='button' value='{lang_print id=791}'>
{/if}
{* SHOW BACK TO INBOX *}
{if $b == 0}
<input type='button' class='button' value='{lang_print id=805}' onClick="window.location.href='user_messages.php?s={$s}';">
{* SHOW BACK TO OUTBOX *}
{else}
<input type='button' class='button' value='{lang_print id=806}' onClick="window.location.href='user_messages_outbox.php';">
{/if}
<input type='hidden' name='task' value='reply'>
<input type='hidden' name='pmconvo_id' value='{$pmconvo_info.pmconvo_id}'>
</form>
<div style='padding-top: 15px;'><a href='user_messages_view.php?pmconvo_id={$pmconvo_info.pmconvo_id}&task=delete'>{lang_print id=1181}</a></div>
</td>
</tr>
</table>
{literal}
<link rel="stylesheet" type="text/css" href="/include/emojis/emojionearea.min.css" media="screen">
<script type="text/javascript" src="/include/emojis/emojionearea.js"></script>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery("#reply_body").emojioneArea({
attributes: {
spellcheck : true,
autocomplete : "on",
autocorrect : "on",
autocapitalize : "on",
},
// container: "#emojicontainer",
pickerPosition: "left",
tonesStyle: "bullet",
pickerPosition :"bottom"
// saveEmojisAs: "image"
});
});
</script>
{/literal}
{include file='footer.tpl'}