mirror of
https://github.com/torrentpier/torrentpier.git
synced 2024-12-15 00:21:17 -08:00
126c75cd57
* Minor improvements * Update viewtopic_attach.tpl * Update viewtopic_attach.tpl * Update viewforum.tpl * Update viewforum.tpl * Update viewtopic.tpl * Update viewtopic.tpl * Update CHANGELOG.md * Updated * Update defines.php
689 lines
26 KiB
Smarty
689 lines
26 KiB
Smarty
<!-- IF LOGGED_IN -->
|
|
<style>
|
|
<!-- IF HIDE_FROM -->.from { display: none; }<!-- ENDIF -->
|
|
<!-- IF HIDE_AVATAR -->.avatar { display: none; }<!-- ENDIF -->
|
|
<!-- IF HIDE_RANK_IMG -->.rank_img { display: none; }<!-- ENDIF -->
|
|
<!-- IF HIDE_POST_IMG -->img.postImg, div.postImg-wrap { display: none; }<!-- ENDIF -->
|
|
<!-- IF HIDE_SMILE -->.smile { display: none; }<!-- ENDIF -->
|
|
<!-- IF HIDE_SIGNATURE -->.signature { display: none; }<!-- ENDIF -->
|
|
</style>
|
|
<!-- IF SPOILER_OPENED -->
|
|
<script type="text/javascript">
|
|
$(document).ready(function () {
|
|
$('div.sp-head').not('.ignore-sp-open').click();
|
|
});
|
|
</script>
|
|
<!-- ENDIF -->
|
|
<!-- ENDIF / LOGGED_IN -->
|
|
|
|
<!-- IF $bb_cfg['show_post_bbcode_button'] -->
|
|
<script type="text/javascript">
|
|
let loadedText = [];
|
|
|
|
ajax.view_post = function (post_id) {
|
|
if (loadedText[post_id] != null) {
|
|
$('#ptx-' + post_id).toggle();
|
|
return;
|
|
}
|
|
ajax.exec({
|
|
action: 'view_post',
|
|
post_id: post_id,
|
|
return_text: true,
|
|
});
|
|
};
|
|
ajax.callback.view_post = function (data) {
|
|
loadedText[data.post_id] = true;
|
|
$('#post_' + data.post_id + ' div.post_body').prepend(
|
|
'<div class="tCenter" id="ptx-' + data.post_id + '"><textarea style="width: 99%; height: 200px; line-height: 1.2;" readonly>' + data['post_text'] + '</textarea><hr></div>'
|
|
);
|
|
};
|
|
</script>
|
|
<!-- ENDIF -->
|
|
|
|
<!-- IF $bb_cfg['use_ajax_posts'] && (AUTH_DELETE || AUTH_REPLY || AUTH_EDIT) -->
|
|
<script type="text/javascript">
|
|
ajax.open_edit = false;
|
|
function edit_post(post_id, type, text) {
|
|
if(ajax.open_edit && ajax.open_edit != post_id) {
|
|
alert('{L_AJAX_EDIT_OPEN}');
|
|
} else{
|
|
if(ajax.open_edit && !text){
|
|
$('#pp_'+ post_id).show();
|
|
$('#pe_'+ post_id).hide();
|
|
} else{
|
|
$('#pp_'+ post_id).hide();
|
|
$('#pe_'+ post_id).show();
|
|
ajax.exec({
|
|
action : 'posts',
|
|
post_id : post_id,
|
|
topic_id : {TOPIC_ID},
|
|
text : text,
|
|
type : type
|
|
});
|
|
}
|
|
ajax.open_edit = false;
|
|
}
|
|
}
|
|
ajax.callback.posts = function(data) {
|
|
if(data.html){
|
|
$('#pp_'+ data.post_id).show().html(data.html);
|
|
initPostBBCode('#pp_'+ data.post_id);
|
|
$('#pe_'+ data.post_id).hide();
|
|
ajax.open_edit = false;
|
|
} else if(data.text){
|
|
ajax.open_edit = data.post_id;
|
|
$('#pe_'+ data.post_id).html(data.text);
|
|
}
|
|
if(data.redirect) document.location.href = data.redirect;
|
|
if(data.hide) {
|
|
if(ajax.open_edit == data.post_id) ajax.open_edit = false;
|
|
$('tbody#post_'+ data.post_id).hide();
|
|
}
|
|
if(data.quote) $('textarea#message').attr('value', $('textarea#message').val() + data.message +' ').focus();
|
|
if(data.message_html){
|
|
$('#view_message').show();
|
|
$('.view-message').html(data.message_html);
|
|
initPostBBCode('.view-message');
|
|
var maxH = screen.height - 490;
|
|
$('.view-message').css({ maxHeight: maxH });
|
|
}
|
|
};
|
|
</script>
|
|
<!-- ENDIF -->
|
|
|
|
<!-- IF SPLIT_FORM -->
|
|
<script type="text/javascript">
|
|
function set_hid_chbox (id)
|
|
{
|
|
$('#del_split_row').show();
|
|
|
|
// set checkbox value
|
|
$('#cb_'+id).val( $('#cb_'+id).val() == id ? 0 : id );
|
|
// highlight selected post
|
|
$('#post_'+id+' td').toggleClass('hl-selected-post');
|
|
|
|
return false;
|
|
}
|
|
</script>
|
|
<!-- ENDIF / SPLIT_FORM -->
|
|
|
|
<div class="spacer_6"></div>
|
|
|
|
<h1 class="maintitle">
|
|
<a class="tt-text" href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a>
|
|
<!-- IF AUTH_MOD -->
|
|
<script type="text/javascript">
|
|
var $tt_td = $('.maintitle');
|
|
function edit_topic_title (mode)
|
|
{
|
|
if (mode == 'edit') {
|
|
var tt_text = $tt_td.find('.tt-text').text();
|
|
|
|
ajax.tte_orig_html = $tt_td.html();
|
|
$tt_td.html( $('#tt-edit-tpl').html() );
|
|
$('.tt-edit-input', $tt_td).val(tt_text).focus();
|
|
}
|
|
else if (mode == 'save') {
|
|
var topic_title = $('.tt-edit-input', $tt_td).val();
|
|
|
|
ajax.edit_topic_title(topic_title);
|
|
}
|
|
else {
|
|
$tt_td.html(ajax.tte_orig_html);
|
|
}
|
|
}
|
|
ajax.edit_topic_title = function(topic_title) {
|
|
ajax.exec({
|
|
action : 'mod_action',
|
|
mode : 'edit_topic_title',
|
|
topic_id : {TOPIC_ID},
|
|
topic_title : topic_title
|
|
});
|
|
};
|
|
ajax.callback.mod_action = function(data) {
|
|
$tt_td.html(ajax.tte_orig_html);
|
|
$('.tt-text', $tt_td).html(data.topic_title);
|
|
};
|
|
ajax.post_mod_comment = function(post_id, mc_text, mc_type) {
|
|
ajax.exec({
|
|
action : 'post_mod_comment',
|
|
post_id : post_id,
|
|
mc_type : mc_type,
|
|
mc_text : mc_text
|
|
});
|
|
};
|
|
ajax.callback.post_mod_comment = function(data) {
|
|
if (data.mc_type == 0) {
|
|
$('#mc_text_'+ data.post_id).attr('value', '');
|
|
$('#pc_'+ data.post_id).hide();
|
|
}
|
|
else {
|
|
$('#pc_'+ data.post_id +' h4').html(data.mc_title);
|
|
$('#mc_comment_'+ data.post_id).html(data.mc_text);
|
|
$('#mc_class_'+ data.post_id).attr('class', 'alert alert-'+ data.mc_class);
|
|
initPostBBCode('#pc_'+ data.post_id);
|
|
$('#pc_'+ data.post_id).show();
|
|
}
|
|
};
|
|
</script>
|
|
<a style="cursor: help; color: #800000;" title="{L_EDIT_TOPIC_TITLE}" onclick="edit_topic_title('edit'); return false" href="#">¶</a>
|
|
|
|
<div id="tt-edit-tpl" style="display: none;">
|
|
<div class="tt-edit" style="padding: 4px;">
|
|
<textarea class="tt-edit-input" rows="2" cols="50" style="width: 98%; height: 35px;"></textarea>
|
|
<input type="button" value="{L_SAVE}" onclick="edit_topic_title('save'); return false;" />
|
|
<input type="button" value="{L_CANCEL}" onclick="edit_topic_title('cancel'); return false;" />
|
|
</div>
|
|
</div>
|
|
<!-- ENDIF -->
|
|
</h1>
|
|
|
|
<!-- IF PAGINATION -->
|
|
<p class="small" style="padding: 1px 6px 5px;"><b>{PAGINATION}</b></p>
|
|
<!-- ENDIF -->
|
|
|
|
<table cellpadding="0" class="w100">
|
|
<tr>
|
|
<td valign="bottom">
|
|
<a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" alt="{T_POST_REPLY}" /></a>
|
|
</td>
|
|
<td class="nav w100" style="padding-left: 8px;">
|
|
<a href="{U_INDEX}">{L_HOME}</a> <em>»</em>
|
|
<a href="{U_VIEWCAT}">{CAT_TITLE}</a>
|
|
<!-- IF PARENT_FORUM_NAME --><em>»</em> <a href="{PARENT_FORUM_HREF}">{PARENT_FORUM_NAME}</a><!-- ENDIF -->
|
|
<em>»</em> <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<!-- IF SHOW_DL_LIST || SHOW_TOR_ACT --><!-- INCLUDE viewtopic_torrent.tpl --><!-- ENDIF -->
|
|
|
|
<!-- IF TOPIC_HAS_POLL or CAN_MANAGE_POLL -->
|
|
<form id="poll-form" method="post" action="poll.php" style="display: none;">
|
|
<input id="poll-mode" type="hidden" name="mode" value="" />
|
|
<input type="hidden" name="topic_id" value="{TOPIC_ID}" />
|
|
<input type="hidden" name="{TOPIC_HASH}" value="1" />
|
|
<input type="hidden" name="start" value="{START}" />
|
|
<input type="hidden" name="forum_id" value="{FORUM_ID}" />
|
|
<input id="vote-id" type="hidden" name="vote_id" value="-1" />
|
|
<input id="poll-submit-btn" type="submit" name="submit" value="1" />
|
|
<input id="poll-caption-val" name="poll_caption" type="hidden" value="" />
|
|
<textarea id="poll-votes-val" name="poll_votes" rows="10" cols="10"></textarea>
|
|
</form>
|
|
<!-- ENDIF -->
|
|
<!-- IF CAN_MANAGE_POLL -->
|
|
<script type="text/javascript">
|
|
// заполняет #poll-form и отправляет запрос
|
|
function poll_manage (mode, confirm_msg)
|
|
{
|
|
if (confirm_msg != null && !window.confirm( confirm_msg )) {
|
|
return false;
|
|
}
|
|
$('#poll-mode').val(mode);
|
|
$('#poll-caption-val').val( $('#poll-caption-inp').val() );
|
|
$('#poll-votes-val').val( $('#poll-votes-inp').val() );
|
|
$('#poll-submit-btn').click();
|
|
return false;
|
|
}
|
|
function build_poll_add_form (src_el)
|
|
{
|
|
$('#poll').empty().append( $('#poll-edit-tpl').contents() ).show();
|
|
$('#poll-legend').html('{L_ADD_POLL}');
|
|
$('#poll-edit-submit-btn').click(function(){
|
|
return poll_manage('poll_add');
|
|
});
|
|
$(src_el).remove();
|
|
return false;
|
|
}
|
|
</script>
|
|
<div id="poll-edit-tpl" style="display: none;">
|
|
<table class="med bCenter"><tr><td>
|
|
<fieldset style="padding: 0 8px;">
|
|
<legend id="poll-legend"></legend>
|
|
<div style="margin-top: 4px;">{L_NEW_POLL_M_TITLE}:</div>
|
|
<input id="poll-caption-inp" name="poll_caption" type="text" value="" class="bold" style="width: 550px;" />
|
|
<div class="med" style="margin-top: 4px;">{L_NEW_POLL_M_VOTES}:</div>
|
|
<textarea id="poll-votes-inp" rows="8" cols="10" wrap="off" class="gen" style="width: 550px;"></textarea>
|
|
<div class="med mrg_4"><i>{L_NEW_POLL_M_EXPLAIN}: {$bb_cfg['max_poll_options']})</i></div>
|
|
<div class="mrg_8 tCenter"><input onclick="window.location.reload();" type="button" class="bold" value="{L_CANCEL}" /> <input id="poll-edit-submit-btn" type="button" value="{L_SUBMIT}" class="bold" /></div>
|
|
</fieldset>
|
|
</td></tr></table>
|
|
</div>
|
|
<!-- ENDIF -->
|
|
<!-- IF TOPIC_HAS_POLL or CAN_ADD_POLL -->
|
|
<div id="poll" class="row5" style="padding: 0 10%; display: none;">
|
|
<!-- IF TOPIC_HAS_POLL --><!-- INCLUDE viewtopic_poll.tpl --><!-- ENDIF -->
|
|
</div>
|
|
<!-- ENDIF -->
|
|
|
|
<table class="w100 border bw_TRL" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td class="cat pad_2">
|
|
|
|
<table cellspacing="0" cellpadding="0" class="borderless w100">
|
|
<tr>
|
|
<!-- IF AUTH_MOD -->
|
|
<td class="small bold nowrap" style="padding: 0 0 0 4px;">
|
|
<!-- IF IN_MODERATION -->{L_MODERATE_TOPIC}<!-- ELSE --><a href="{PAGE_URL}&mod=1&start={PAGE_START}" class="small bold">{L_MODERATE_TOPIC}</a><!-- ENDIF -->
|
|
<span style="color:#CDCDCD;">|</span>
|
|
<a class="small bold" href="{PIN_HREF}">{PIN_TITLE}</a>
|
|
<span style="color:#CDCDCD;">|</span>
|
|
<a class="small bold" href="#" onclick="$('#main_content').printThis(); return false;">{L_PRINT_PAGE}</a>
|
|
</td>
|
|
<!-- IF SELECT_PPP -->
|
|
<td class="med" style="padding: 0 4px 2px 4px;">|</td>
|
|
<td class="small nowrap" style="padding: 0 0 0 0;">{L_SELECT_POSTS_PER_PAGE}</td>
|
|
<td class="small nowrap" style="padding: 0 0 0 3px;">
|
|
<form id="ppp" action="{PAGE_URL_PPP}" method="post">{SELECT_PPP}</form>
|
|
</td>
|
|
<!-- ENDIF / SELECT_PPP -->
|
|
<!-- ENDIF / AUTH_MOD -->
|
|
|
|
<td class="small bold nowrap tRight" width="100%">
|
|
|
|
<!-- IF LOGGED_IN -->
|
|
<a class="small" href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a> <span style="color:#CDCDCD;">|</span>
|
|
<a class="menu-root" href="#topic-options">{L_DISPLAYING_OPTIONS}</a>
|
|
<!-- ENDIF / LOGGED_IN -->
|
|
</td>
|
|
|
|
<td class="nowrap" style="padding: 0 4px 2px 4px;">
|
|
<form action="{U_SEARCH}?{#POST_TOPIC_URL#}={TOPIC_ID}&dm=1&s=1" method="post">
|
|
<input id="search-text" type="text" name="nm" class="hint" style="width: 150px;" placeholder="{L_SEARCH_IN_TOPIC}" required />
|
|
<input type="submit" class="bold" value="»" style="width: 30px;" />
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<!-- IF LOGGED_IN -->
|
|
<div class="menu-sub" id="topic-options">
|
|
<table cellspacing="1" cellpadding="4">
|
|
<tr>
|
|
<th>{L_DISPLAYING_OPTIONS}</th>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<fieldset id="show-only">
|
|
<legend>{L_HIDE_IN_TOPIC}</legend>
|
|
<div class="med pad_4">
|
|
<label>
|
|
<input type="checkbox" <!-- IF HIDE_FROM -->{CHECKED}<!-- ENDIF -->
|
|
onclick="user.set('h_from', this.checked ? 1 : 0);"
|
|
/>{L_LOCATION}
|
|
</label>
|
|
<label>
|
|
<input type="checkbox" <!-- IF HIDE_AVATAR -->{CHECKED}<!-- ENDIF -->
|
|
onclick="user.set('h_av', this.checked ? 1 : 0);"
|
|
/>{L_AVATARS}
|
|
</label>
|
|
<label>
|
|
<input type="checkbox" <!-- IF HIDE_RANK_IMG -->{CHECKED}<!-- ENDIF --><!-- IF HIDE_RANK_IMG_DIS -->{DISABLED}<!-- ENDIF -->
|
|
onclick="user.set('h_rnk_i', this.checked ? 1 : 0);"
|
|
/>{L_RANK_IMAGES}
|
|
</label>
|
|
<label>
|
|
<input type="checkbox" <!-- IF HIDE_POST_IMG -->{CHECKED}<!-- ENDIF -->
|
|
onclick="user.set('h_post_i', this.checked ? 1 : 0);"
|
|
/>{L_POST_IMAGES}
|
|
</label>
|
|
<label>
|
|
<input type="checkbox" <!-- IF HIDE_SMILE -->{CHECKED}<!-- ENDIF -->
|
|
onclick="user.set('h_smile', this.checked ? 1 : 0);"
|
|
/>{L_SMILIES}
|
|
</label>
|
|
<label>
|
|
<input type="checkbox" <!-- IF HIDE_SIGNATURE -->{CHECKED}<!-- ENDIF -->
|
|
onclick="user.set('h_sig', this.checked ? 1 : 0);"
|
|
/>{L_SIGNATURES}
|
|
</label>
|
|
</div>
|
|
</fieldset>
|
|
<div class="spacer_4"></div>
|
|
<fieldset id="spoiler-opt">
|
|
<legend>{L_SHOW}</legend>
|
|
<div class="med pad_4">
|
|
<p>
|
|
<label>
|
|
<input type="checkbox" <!-- IF SPOILER_OPENED -->{CHECKED}<!-- ENDIF -->
|
|
onclick="user.set('sp_op', this.checked ? 1 : 0);"
|
|
/>{L_SHOW_OPENED}
|
|
</label>
|
|
<label>
|
|
<input type="checkbox" <!-- IF SHOW_IMG_AFTER_LOAD -->{CHECKED}<!-- ENDIF -->
|
|
onclick="user.set('i_aft_l', this.checked ? 1 : 0);"
|
|
/>{L_DOWNLOAD_PIC}
|
|
</label>
|
|
</p>
|
|
</div>
|
|
</fieldset>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="cat tCenter pad_4"><input type="button" value="{L_SUBMIT}" style="width: 100px;" onclick="window.location.reload();" /></td>
|
|
</tr>
|
|
</table>
|
|
</div><!--/topic-options-->
|
|
<!-- ENDIF / LOGGED_IN -->
|
|
|
|
<table class="topic" id="topic_main" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<th class="thHead td1">{L_AUTHOR}</th>
|
|
<th class="thHead td2">{L_MESSAGE}</th>
|
|
</tr>
|
|
|
|
<!-- BEGIN postrow -->
|
|
<tbody id="post_{postrow.POST_ID}" class="{postrow.ROW_CLASS}">
|
|
<tr>
|
|
<td class="poster_info td1"><a name="{postrow.POST_ID}"></a><!-- IF postrow.IS_NEWEST --><a name="newest"></a><!-- ENDIF -->
|
|
|
|
<!-- IF postrow.POSTER_BOT -->
|
|
<!-- IF SHOW_BOT_NICK --><p class="nick">{postrow.POSTER_NAME}</p><!-- ENDIF -->
|
|
<!-- IF postrow.POSTER_AVATAR --><p class="avatar">{postrow.POSTER_AVATAR}</p><!-- ENDIF -->
|
|
<!-- ELSE -->
|
|
<!-- IF QUICK_REPLY -->
|
|
<p class="nick" title="{L_INS_NAME_TIP}" onclick="bbcode.onclickPoster('{postrow.POSTER_NAME_JS}', {postrow.POST_ID});">
|
|
<a href="#" onclick="return false;">{postrow.POSTER_NAME}</a> <!-- IF postrow.POSTER_AUTHOR --><sup>®</sup><!-- ENDIF -->
|
|
</p>
|
|
<!-- ELSE -->
|
|
<p class="nick">{postrow.POSTER_NAME} <!-- IF postrow.POSTER_AUTHOR --><sup>®</sup><!-- ENDIF --></p>
|
|
<!-- ENDIF -->
|
|
|
|
<!-- BEGIN ban -->
|
|
<!-- IF postrow.ban.IS_BANNED --><p class="poster-banned" title="{L_BANNED_USERS}">{L_BANNED}</p><!-- ENDIF -->
|
|
<!-- END ban -->
|
|
|
|
<!-- IF postrow.POSTER_RANK --><p class="rank_txt">{postrow.POSTER_RANK}</p><!-- ENDIF -->
|
|
<!-- IF postrow.RANK_IMAGE --><p class="rank_img">{postrow.RANK_IMAGE}</p><!-- ENDIF -->
|
|
<!-- IF postrow.POSTER_AVATAR --><p class="avatar">{postrow.POSTER_AVATAR}</p><!-- ENDIF -->
|
|
<!-- IF postrow.POSTER_GENDER --><p class="joined"><em>{L_GENDER}:</em> {postrow.POSTER_GENDER}</p><!-- ENDIF -->
|
|
<!-- IF postrow.POSTER_JOINED --><p class="joined" title="{postrow.POSTER_JOINED_DATE}"><em>{L_LONGEVITY}:</em> {postrow.POSTER_JOINED}</p><!-- ENDIF -->
|
|
<!-- IF postrow.POSTER_POSTS --><p class="posts"><em>{L_POSTS}:</em> {postrow.POSTER_POSTS}</p><!-- ENDIF -->
|
|
<!-- IF postrow.POSTER_FROM --><p class="from"><em>{L_LOCATION}:</em> {postrow.POSTER_FROM}</p><!-- ENDIF -->
|
|
|
|
<!-- IF postrow.POSTER_BIRTHDAY --><p class="birthday">{postrow.POSTER_BIRTHDAY}</p><!-- ENDIF -->
|
|
<!-- ENDIF -->
|
|
|
|
<p><img src="{SPACER}" width="{TOPIC_LEFT_COL_SPACER_WITDH}" height="<!-- IF postrow.POSTER_AVATAR || postrow.RANK_IMAGE -->2<!-- ELSE -->30<!-- ENDIF -->" border="0" alt="" /></p>
|
|
|
|
</td>
|
|
<td class="message td2" rowspan="2">
|
|
|
|
<div class="post_head">
|
|
<p style="float: left;<!-- IF TEXT_BUTTONS --> padding: 4px 0 3px;<!-- ELSE --> padding-top: 5px;<!-- ENDIF -->">
|
|
<!-- IF postrow.IS_UNREAD -->{MINIPOST_IMG_NEW}<!-- ELSE -->{MINIPOST_IMG}<!-- ENDIF -->
|
|
<a class="small" href="{POST_URL}{postrow.POST_ID}#{postrow.POST_ID}" title="{L_POST_LINK}">{postrow.POST_DATE} | #{postrow.POST_NUMBER}</a>
|
|
<!-- IF postrow.POSTER_AUTHOR -->· <span>{L_AUTHOR}</span><!-- ENDIF -->
|
|
<!-- IF postrow.POSTED_AFTER -->
|
|
<span class="posted_since">({L_POSTED_AFTER} {postrow.POSTED_AFTER})</span>
|
|
<!-- ENDIF -->
|
|
</p>
|
|
|
|
<!-- IF postrow.MOD_CHECKBOX --><input type="checkbox" class="select_post" onclick="set_hid_chbox('{postrow.POST_ID}');"><!-- ENDIF -->
|
|
|
|
<p style="float: right;<!-- IF TEXT_BUTTONS --> padding: 3px 2px 4px;<!-- ELSE --> padding: 1px 6px 2px;<!-- ENDIF -->" class="post_btn_1">
|
|
<!-- IF postrow.IS_FIRST_POST and CAN_ADD_POLL --><a href="#" onclick="return build_poll_add_form(this);" class="txtb">{POLL_IMG}</a><!-- ENDIF -->
|
|
<!-- IF postrow.QUOTE --><a class="txtb" href="<!-- IF $bb_cfg['use_ajax_posts'] -->" onclick="ajax.exec({ action: 'posts', post_id: {postrow.POST_ID}, type: 'reply'}); return false;<!-- ELSE -->{QUOTE_URL}{postrow.POST_ID}<!-- ENDIF -->">{QUOTE_IMG}</a>{POST_BTN_SPACER}<!-- ENDIF -->
|
|
<!-- IF postrow.EDIT --><a class="txtb" href="<!-- IF $bb_cfg['use_ajax_posts'] -->" onclick="edit_post({postrow.POST_ID}, 'edit'); return false;<!-- ELSE -->{EDIT_POST_URL}{postrow.POST_ID}<!-- ENDIF -->">{EDIT_POST_IMG}</a>{POST_BTN_SPACER}<!-- ENDIF -->
|
|
<!-- IF postrow.DELETE --><a class="txtb" href="<!-- IF $bb_cfg['use_ajax_posts'] -->" onclick="ajax.exec({ action: 'posts', post_id: {postrow.POST_ID}, topic_id : {TOPIC_ID}, type: 'delete'}); return false;<!-- ELSE -->{DELETE_POST_URL}{postrow.POST_ID}<!-- ENDIF -->">{DELETE_POST_IMG}</a>{POST_BTN_SPACER}<!-- ENDIF -->
|
|
<!-- IF postrow.IS_FIRST_POST && $bb_cfg['show_post_bbcode_button'] --><a href="#" class="txtb" onclick="ajax.view_post('{postrow.POST_ID}'); return false;">{CODE_IMG}</a><!-- ENDIF -->
|
|
<!-- IF postrow.IP --><a class="txtb" href="{IP_POST_URL}{postrow.POST_ID}&{#POST_TOPIC_URL#}={TOPIC_ID}">{IP_POST_IMG}</a>{POST_BTN_SPACER}<!-- ENDIF -->
|
|
<!-- IF AUTH_MOD -->
|
|
<a class="menu-root menu-alt1 txtb" href="#mc_{postrow.POST_ID}">{MC_IMG}</a>{POST_BTN_SPACER}
|
|
<!-- IF not IN_MODERATION --><a class="txtb" href="{PAGE_URL}&mod=1&start={PAGE_START}#{postrow.POST_ID}">{MOD_POST_IMG}</a>{POST_BTN_SPACER}<!-- ENDIF -->
|
|
<!-- ENDIF -->
|
|
</p>
|
|
<div class="clear"></div>
|
|
</div>
|
|
|
|
<div class="post_body">
|
|
<div class="post_wrap">
|
|
<span id="pe_{postrow.POST_ID}"></span>
|
|
<span id="pp_{postrow.POST_ID}">{postrow.MESSAGE}</span>
|
|
<!-- IF postrow.RG_NAME -->
|
|
<div id="pg_{postrow.POST_ID}" class="alert alert-gray" style="width: 92%;">
|
|
<h4 class="alert-heading">{L_RELEASE_FROM_RG} — <a href="{postrow.RG_URL}">{postrow.RG_NAME}</a></h4>
|
|
<div id="pg_info_{postrow.POST_ID}">
|
|
<!-- IF postrow.RG_AVATAR --><hr /><a href="{postrow.RG_URL}">{postrow.RG_AVATAR}</a><!-- ENDIF -->
|
|
<!-- IF postrow.RG_DESC --><div class="post-wrap">{L_DESCRIPTION}: {postrow.RG_DESC}</div><!-- ENDIF -->
|
|
<!-- IF postrow.RG_SIG and postrow.RG_SIG_ATTACH --><hr /><div id="rg_sig">{L_SIGNATURE}: {postrow.RG_SIG}</div><!-- ENDIF -->
|
|
<hr /><a href="{postrow.RG_FIND_URL}">{L_MORE_RELEASES}</a>
|
|
</div>
|
|
</div>
|
|
<!-- ENDIF -->
|
|
<div id="pc_{postrow.POST_ID}" <!-- IF not postrow.MC_COMMENT -->style="display: none;"<!-- ENDIF -->>
|
|
<div id="mc_class_{postrow.POST_ID}" class="alert alert-{postrow.MC_CLASS}" style="width: 92%;">
|
|
<h4 class="alert-heading">{postrow.MC_TITLE}</h4><hr />
|
|
<div id="mc_comment_{postrow.POST_ID}">{postrow.MC_COMMENT}</div>
|
|
</div>
|
|
</div>
|
|
{postrow.ATTACHMENTS}
|
|
</div><!--/post_wrap-->
|
|
<!-- IF postrow.SIGNATURE -->{postrow.SIGNATURE}<!-- ENDIF -->
|
|
<!-- IF postrow.EDITED_MESSAGE --><div class="last_edited">{postrow.EDITED_MESSAGE}</div><!-- ENDIF -->
|
|
</div><!--/post_body-->
|
|
|
|
<!-- IF AUTH_MOD -->
|
|
<div class="menu-sub" id="mc_{postrow.POST_ID}">
|
|
<table cellspacing="1" cellpadding="4">
|
|
<tr>
|
|
<th>{L_MC_TITLE}</th>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<fieldset>
|
|
<legend>{L_MC_LEGEND}</legend>
|
|
<div class="pad_4">
|
|
{postrow.MC_SELECT_TYPE}
|
|
</div>
|
|
</fieldset>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<textarea name="mc_text_{postrow.POST_ID}" rows="10" cols="60" id="mc_text_{postrow.POST_ID}" placeholder="{L_MC_FAQ}">{postrow.MC_BBCODE}</textarea>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="cat tCenter pad_4">
|
|
<input type="button" value="{L_SUBMIT}" onclick="ajax.post_mod_comment({postrow.POST_ID}, $('#mc_text_{postrow.POST_ID}').val(), $('#mc_type_{postrow.POST_ID}').val());" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<!-- ENDIF / AUTH_MOD -->
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="poster_btn td3">
|
|
|
|
<!-- IF postrow.POSTER_BOT || not postrow.PROFILE -->
|
|
|
|
<!-- ELSE -->
|
|
<div style="<!-- IF TEXT_BUTTONS --> padding: 2px 6px 4px;<!-- ELSE --> padding: 2px 3px;<!-- ENDIF -->" class="post_btn_2">
|
|
<a class="txtb" href="{PROFILE_URL}{postrow.POSTER_ID}">{PROFILE_IMG}</a>{POST_BTN_SPACER}
|
|
<a class="txtb" href="{PM_URL}?mode=post&{#POST_USERS_URL#}={postrow.POSTER_ID}">{PM_IMG}</a>{POST_BTN_SPACER}
|
|
</div>
|
|
<!-- ENDIF -->
|
|
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
<!-- END postrow -->
|
|
|
|
<!-- IF SPLIT_FORM -->
|
|
<tbody>
|
|
<tr id="del_split_row" class="row5" style="display: none;">
|
|
<td colspan="2" class="med pad_4 td2">
|
|
<form method="post" action="{S_SPLIT_ACTION}">
|
|
<input type="hidden" name="redirect" value="modcp.php?{#POST_TOPIC_URL#}={TOPIC_ID}&mode=split" />
|
|
<input type="hidden" name="{#POST_FORUM_URL#}" value="{FORUM_ID}" />
|
|
<input type="hidden" name="{#POST_TOPIC_URL#}" value="{TOPIC_ID}" />
|
|
<input type="hidden" name="start" value="{START}" />
|
|
<input type="hidden" name="mode" value="split" />
|
|
|
|
<!-- BEGIN postrow -->
|
|
<input type="hidden" name="post_id_list[]" id="cb_{postrow.POST_ID}" />
|
|
<!-- END postrow -->
|
|
|
|
<table class="bordered bCenter">
|
|
<tr>
|
|
<td class="row1">{L_NEW_TOPIC_TITLE}</td>
|
|
<td class="row2"><input class="post" type="text" size="35" style="width: 500px" maxlength="120" name="subject" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="row1">{L_FORUM_FOR_NEW_TOPIC}</td>
|
|
<td class="row2">{S_FORUM_SELECT}</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" class="row2 tCenter">
|
|
<label><input type="checkbox" name="after_split_to_old" checked /> {L_BOT_AFTER_SPLIT_TO_OLD}</label>
|
|
|
|
<label><input type="checkbox" name="after_split_to_new" checked /> {L_BOT_AFTER_SPLIT_TO_NEW}</label>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" class="row3 tCenter">
|
|
<input type="submit" name="delete_posts" id="del" value="{L_DELETE_POSTS}" disabled onclick="return window.confirm('{L_DELETE_POSTS}?');" />
|
|
<input type="submit" name="split_type_all" id="spl_all" value="{L_SPLIT_POSTS}" disabled onclick="return window.confirm('{L_SPLIT_POSTS}?');" />
|
|
<input type="submit" name="split_type_beyond" id="spl_b" value="{L_SPLIT_AFTER}" disabled onclick="return window.confirm('{L_SPLIT_AFTER}?');" />
|
|
<label for="spl_cnf">
|
|
{L_CONFIRM}
|
|
<input id="spl_cnf" type="checkbox" name="confirm" value="1" onclick="
|
|
toggle_disabled('del', this.checked);
|
|
toggle_disabled('spl_all', this.checked);
|
|
toggle_disabled('spl_b', this.checked);
|
|
" />
|
|
</label>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
<!-- ENDIF / SPLIT_FORM -->
|
|
|
|
</table><!--/topic_main-->
|
|
|
|
<!-- IF HIDE_POST_IMG --><script type="text/javascript">$('img.postImg').remove();</script><!-- ENDIF -->
|
|
<!-- IF HIDE_SMILE --><script type="text/javascript">$('img.smile').remove();</script><!-- ENDIF -->
|
|
|
|
<table class="topic" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td class="catBottom med">
|
|
<form method="post" action="{S_POST_DAYS_ACTION}">
|
|
{L_DISPLAY_POSTS}: {S_SELECT_POST_DAYS}
|
|
{S_SELECT_POST_ORDER}
|
|
<input type="submit" value="{L_GO}" class="lite" name="submit" />
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<!-- IF PAGINATION -->
|
|
<table id="pagination" class="topic" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td class="nav pad_6 {PG_ROW_CLASS}">
|
|
<p style="float: left">{PAGE_NUMBER}</p>
|
|
<p style="float: right">{PAGINATION}</p>
|
|
</td>
|
|
</tr>
|
|
</table><!--/pagination-->
|
|
<!-- ENDIF -->
|
|
|
|
<!-- IF QUICK_REPLY -->
|
|
<br>
|
|
<form action="{QR_POST_ACTION}" method="post" name="post" onsubmit="if(checkForm(this)){ dis_submit_btn(); }else{ return false; }">
|
|
<input type="hidden" name="mode" value="reply" />
|
|
<input type="hidden" name="{#POST_TOPIC_URL#}" value="{QR_TOPIC_ID}" />
|
|
|
|
<table id="topic_quick_reply" class="topic" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<th class="thHead gen"><b>{L_QUICK_REPLY}</b></th>
|
|
</tr>
|
|
<tr>
|
|
<td class="td2 row2 tCenter">
|
|
<div id="view_message" class="hidden">
|
|
<div class="tLeft view-message"></div>
|
|
</div>
|
|
<div class="quick_reply_box bCenter">
|
|
<!-- IF not LOGGED_IN -->
|
|
<p class="mrg_6"><b>{L_QR_USERNAME}: </b><input type="text" name="username" size="20" maxlength="25" /></p>
|
|
<!-- ENDIF -->
|
|
<div class="spacer_2"></div>
|
|
<!-- INCLUDE posting_editor.tpl -->
|
|
<div class="spacer_2"></div>
|
|
</div>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr id="post_opt" class="row2">
|
|
<td class="td2 med tCenter pad_4">
|
|
<label><input type="checkbox" name="notify" <!-- IF QR_NOTIFY_CHECKED -->checked<!-- ENDIF --> <!-- IF not LOGGED_IN -->disabled<!-- ENDIF --> />
|
|
{L_QR_NOTIFY} </label>
|
|
</td>
|
|
</tr>
|
|
</table><!--/topic_quick_reply-->
|
|
|
|
</form>
|
|
<!-- ENDIF / QUICK_REPLY -->
|
|
|
|
<table cellpadding="0" class="w100" style="padding-top: 2px;">
|
|
<tr>
|
|
<td valign="top">
|
|
<a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" alt="{T_POST_REPLY}" /></a>
|
|
</td>
|
|
<td class="nav w100" style="padding-left: 8px;">
|
|
<a href="{U_INDEX}">{L_HOME}</a> <em>»</em>
|
|
<a href="{U_VIEWCAT}">{CAT_TITLE}</a>
|
|
<!-- IF PARENT_FORUM_NAME --><em>»</em> <a href="{PARENT_FORUM_HREF}">{PARENT_FORUM_NAME}</a><!-- ENDIF -->
|
|
<em>»</em> <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<!--bottom_info-->
|
|
<div class="bottom_info">
|
|
<a href="#" onclick="$.scrollTo('#topic_main', {duration: 200, axis: 'y'}); return false;">{L_MOVE_TO_TOP}</a>
|
|
|
|
<div class="jumpbox"></div>
|
|
|
|
<div id="timezone">
|
|
<p>{CURRENT_TIME}</p>
|
|
<p>{S_TIMEZONE}</p>
|
|
</div>
|
|
<div class="clear"></div>
|
|
|
|
</div><!--/bottom_info-->
|
|
|
|
<table width="100%">
|
|
<tr>
|
|
<td width="40%" valign="top" nowrap="nowrap"><span class="small">{S_WATCH_TOPIC}</span><br />
|
|
<div class="small">
|
|
<!-- IF S_TOPIC_ADMIN -->
|
|
<br clear="all" />
|
|
<div style="float: left;">{S_TOPIC_ADMIN}</div>
|
|
<!-- ENDIF -->
|
|
<!-- IF IS_ADMIN -->
|
|
<div class="med" style="float: right;">
|
|
{L_ADMIN}:
|
|
<a href="{U_LOGS}">{L_LOGS}</a>
|
|
</div>
|
|
<!-- ENDIF -->
|
|
<!-- IF S_DL_DELETE -->
|
|
<br clear="all" />
|
|
<div style="float: left;">{S_DL_DELETE}</div>
|
|
<!-- ENDIF -->
|
|
<br clear="all" />
|
|
<div style="float: left;">{S_AUTH_LIST}</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|