First commit

This commit is contained in:
2025-06-18 10:24:27 +08:00
commit ebc39cd5dd
3873 changed files with 412712 additions and 0 deletions

View File

@@ -0,0 +1,74 @@
<!--{template common/header}-->
<!--{if $order && $codes}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2>{lang invitecode_succeed_title}</h2>
<div class="my"><a href="index.php"><i class="dm-house"></i></a></div>
</div>
<form name="confirmform" method="get" autocomplete="off" action="member.php">
<input type="hidden" name="mod" value="{$_G[setting][regname]}" />
<input type="hidden" name="invitecode" value="{$codes[0]}" />
<div class="post_box">
<ul>
<li class="mtext">
<textarea class="pt" readonly>{$codetext}</textarea>
</li>
<li class="text-muted">{lang invitecode_email}</li>
</ul>
</div>
<div class="post_btn">
<button class="pn btn_pn mgrey">
{lang reg_continue}
</button>
</div>
</form>
<!--{else}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2>{lang invitecode_buycode}</h2>
<div class="my"><a href="index.php"><i class="dm-house"></i></a></div>
</div>
<form id="confirmform" name="confirmform" method="post" autocomplete="off" action="misc.php?mod=buyinvitecode">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="buysubmit" value="true" />
<input type="hidden" name="handlekey" value="buyinvite" />
<div class="post_box p10">
<ul>
<!--{if $_G['setting']['inviteconfig']['invitecodeprompt']}-->
<li class="mtext">
{$_G['setting'][inviteconfig][invitecodeprompt]}
</li>
<!--{/if}-->
<li class="mli">
<input type="number" value="" class="px" autocomplete="off" id="amount" name="amount" placeholder="{lang buy_nums}">
</li>
<li class="mli">
<input type="email" value="" class="px" autocomplete="off" name="email" placeholder="{lang active_email}">
</li>
<li class="text-muted">{lang active_email_comment}</li>
<li class="mli b0">
{lang invitecode_expiration}
<span class="input-append">$maxinviteday</span>
</li>
</ul>
</div>
<div class="post_btn">
<button id="buysubmit_btn" class="pn btn_pn mgrey">
{lang need_money} <strong id="desamount" class="xi1">0.00</strong> {lang money_unit}
</button>
</div>
</form>
<script type="text/javascript">
(function() {
$('#amount').on('input',function() {
var amount = $('#amount').val().replace(/^0/, '');
amount = parseInt(amount);
$('#desamount').html(!isNaN(amount) ? amount * $_G['setting']['inviteconfig']['invitecodeprice'] : 0);
});
})();
</script>
<!--{/if}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,64 @@
<!--{hook/global_footer_mobile}-->
<div id="mask" style="display:none;"></div>
<!--{if $_G['setting']['statcode']}--><div id="statcode" style="display:none;">{$_G['setting']['statcode']}</div><!--{/if}-->
<!--{if !$nofooter}-->
<div class="foot_height"></div>
<div class="foot flex-box">
<a href="index.php" class="flex{if (strpos($_SERVER['REQUEST_URI'], $_G['setting']['defaultindex']) && strpos('forum.php', $_G['setting']['defaultindex']) === false) || strpos($_SERVER['REQUEST_URI'], 'index.php') || (strpos('forum.php', $_G['setting']['defaultindex']) === 0 && $_G['basescript'] == 'forum' && $_GET['mod'] != 'find')} mon{/if}">
<span class="foot-ico"><em class="ma"></em></span>
<span class="foot-txt">{lang mobhome}</span>
</a>
<!--{if strpos('forum.php', $_G['setting']['defaultindex']) === false}-->
<a href="<!--{if $_G['setting']['mobile']['forum']['index'] > 1}-->forum.php<!--{elseif $_G['setting']['mobile']['forum']['index'] == 1}-->forum.php?mod=guide&view=newthread<!--{else}-->forum.php?forumlist=1<!--{/if}-->" class="flex{if $_G['basescript'] == 'forum' && $_GET['mod'] != 'find' && (CURMODULE == 'index' || $_GET['forumlist'] == 1 || CURMODULE == 'forumdisplay' || CURMODULE == 'viewthread' || CURMODULE == 'guide')} mon{/if}">
<span class="foot-ico"><em class="mb"></em></span>
<span class="foot-txt">{$_G['setting']['navs'][2]['navname']}</span>
</a>
<!--{elseif strpos('forum.php', $_G['setting']['defaultindex']) === 0}-->
<!--{if helper_access::check_module('portal')}-->
<a href="portal.php" class="flex{if $_G['basescript'] == 'portal'} mon{/if}">
<span class="foot-ico"><em class="mb"></em></span>
<span class="foot-txt">{lang mobnews}</span>
</a>
<!--{elseif helper_access::check_module('group')}-->
<a href="group.php" class="flex{if $_G['basescript'] == 'group'} mon{/if}">
<span class="foot-ico"><em class="mb"></em></span>
<span class="foot-txt">{$_G['setting']['navs'][3]['navname']}</span>
</a>
<!--{elseif helper_access::check_module('feed')}-->
<a href="home.php" class="flex{if $_G['basescript'] == 'home' && CURMODULE == 'space' && $_GET['do'] == 'home'} mon{/if}">
<span class="foot-ico"><em class="mb"></em></span>
<span class="foot-txt">{lang mobfeed}</span>
</a>
<!--{else}-->
<a href="home.php?mod=space&do=pm" class="flex{if $_G['basescript'] == 'home' && CURMODULE == 'space' && $_GET['do'] == 'pm'} mon{/if}">
<span class="foot-ico"><em class="mb"><!--{if $_G['uid'] && ($_G['member']['newpm'] || $_G['member']['newprompt'])}--><i class="ico_msg"></i><!--{/if}--></em></span>
<span class="foot-txt">{lang pm_center}</span>
</a>
<!--{/if}-->
<!--{/if}-->
<a href="forum.php?mod=misc&action=nav" class="flex foot-post">
<span class="foot-ico"><em class="mc"></em></span>
<span class="foot-txt">{lang mobpost}</span>
</a>
<a href="forum.php?mod=find" class="flex{if $_G['basescript'] == 'forum' && $_GET['mod'] == 'find'} mon{/if}">
<span class="foot-ico"><em class="md"></em></span>
<span class="foot-txt">{lang mobfind}</span>
</a>
<a href="{if $_G['uid']}home.php?mod=space&uid={$_G['uid']}&do=profile&mycenter=1{else}member.php?mod=logging&action=login{/if}" class="flex{if $_G['basescript'] == 'home' && CURMODULE == 'space' && $_GET['mycenter'] == 1} mon{/if}">
<span class="foot-ico"><em class="me">
<!--{if strpos('forum.php', $_G['setting']['defaultindex']) === false || helper_access::check_module('portal') || helper_access::check_module('group') || helper_access::check_module('feed')}-->
<!--{if $_G['uid'] && ($_G['member']['newpm'] || $_G['member']['newprompt'])}--><i class="ico_msg"></i><!--{/if}-->
<!--{/if}-->
</em></span>
<span class="foot-txt">{lang mobmy}</span>
</a>
</div>
<!--{/if}-->
</body>
</html>
<!--{eval updatesession();}-->
<!--{if defined('IN_MOBILE')&&!defined('IN_PREVIEW')}-->
<!--{eval output();}-->
<!--{else}-->
<!--{eval output_preview();}-->
<!--{/if}-->

View File

@@ -0,0 +1 @@
<!--{echo output_ajax()}-->]]></root><!--{eval exit;}-->

View File

@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Cache-control" content="{if $_G['setting']['mobile']['mobilecachetime'] > 0}{$_G['setting']['mobile']['mobilecachetime']}{else}no-cache{/if}" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<meta name="format-detection" content="telephone=no" />
<title><!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> {lang waptitle} - Powered by Discuz!</title>
<meta name="keywords" content="{if !empty($metakeywords)}{echo dhtmlspecialchars($metakeywords)}{/if}" />
<meta name="description" content="{if !empty($metadescription)}{echo dhtmlspecialchars($metadescription)} {/if},$_G['setting']['bbname']" />
$_G['setting']['seohead']
<base href="{$_G['siteurl']}" />
<script type="text/javascript">var STYLEID = '{STYLEID}', STATICURL = '{STATICURL}', IMGDIR = '{IMGDIR}', VERHASH = '{VERHASH}', charset = '{CHARSET}', discuz_uid = '{$_G['uid']}', cookiepre = '{$_G['config']['cookie']['cookiepre']}', cookiedomain = '{$_G['config']['cookie']['cookiedomain']}', cookiepath = '{$_G['config']['cookie']['cookiepath']}', showusercard = '{$_G['setting']['showusercard']}', attackevasive = '{$_G['config']['security']['attackevasive']}', disallowfloat = '{$_G['setting']['disallowfloat']}', creditnotice = '<!--{if $_G['setting']['creditnotice']}-->$_G['setting']['creditnames']<!--{/if}-->', defaultstyle = '$_G['style']['defaultextstyle']', REPORTURL = '$_G['currenturl_encode']', SITEURL = '$_G['siteurl']', JSPATH = '$_G['setting']['jspath']';</script>
<link rel="stylesheet" href="{STATICURL}image/mobile/style.css?{VERHASH}" type="text/css" media="all">
<link rel="stylesheet" href="{STATICURL}image/mobile/font/dzmicon.css?{VERHASH}" type="text/css" media="all">
<script src="{STATICURL}js/mobile/jquery.min.js?{VERHASH}"></script>
<script src="{STATICURL}js/mobile/common.js?{VERHASH}" charset="{CHARSET}"></script>
<script src="{STATICURL}js/swiper/swiper-bundle.min.js?{VERHASH}"></script>
</head>
<body id="{$_G['basescript']}" class="pg_{CURMODULE}">
<!--{hook/global_header_mobile}-->
<div id="append_parent"></div>

View File

@@ -0,0 +1,10 @@
{eval
ob_end_clean();
ob_start();
@header("Expires: -1");
@header("Cache-Control: no-store, private, post-check=0, pre-check=0, max-age=0", FALSE);
@header("Pragma: no-cache");
@header("Content-type: text/xml; charset=".CHARSET);
echo '<?xml version="1.0" encoding="'.CHARSET.'"?>'."\r\n";
}
<root><![CDATA[

View File

View File

@@ -0,0 +1,24 @@
<!--{template common/header}-->
<div id="ct" class="wp cl ptw pbw">
<table style="margin:0 auto"><tr><td>
<div class="z dzphone"><div>
<div class="scrtop">
<div class="cl"><div class="time"><!--{echo date('H:i')}--></div><div class="defect"></div></div>
<div class="siteurl"><!--{$_G['siteurl']}--></div>
</div>
<iframe id="ifm0" frameborder="0" src="misc.php?mod=mobile&view=true"></iframe>
<div class="homebar"></div>
</div></div>
<div class="z" style="margin-top: 60px; width: 430px;">
<div class="mtw bm bw0" style="background-color: #dfeaf4;">
<div class="bm_c">
<h1 class="xw1 xs2 mbn">{lang login_mobile}</h1>
<p class="mbw xg2">{lang login_mobile_join}</p>
<p class="hm mbw" style="font-size: 18px; color: #F60;">
<img src="data/cache/$file" />
</p>
</div>
</div>
</div></td></tr></table>
</div>
<!--{template common/footer}-->

View File

@@ -0,0 +1,68 @@
{eval
$sechash = 'S'.random(4);
$sectpl = !empty($sectpl) ? explode("<sec>", $sectpl) : array('<br />',': ','<br />','');
}
<!--{if $sectpl}-->
<!--{if $secqaacheck}-->
<script type="text/javascript">
//Todo: 抽函数到文件中
var seccheck_tpl = new Array();
var seccheck_modid = new Array();
function updatesecqaa(idhash, tpl) {
if(document.getElementById('secqaa_' + idhash)) {
if(tpl) {
seccheck_tpl[idhash] = tpl;
}
var id = 'seqaajs_' + idhash;
var src = 'misc.php?mod=secqaa&action=update&idhash=' + idhash + '&' + Math.random();
if(document.getElementById(id)) {
document.getElementsByTagName('head')[0].appendChild(document.getElementById(id));
}
var scriptNode = document.createElement("script");
scriptNode.type = "text/javascript";
scriptNode.id = id;
scriptNode.src = src;
document.getElementsByTagName('head')[0].appendChild(scriptNode);
}
}
</script>
<li class="sec_code vm">
<span id="secqaa_$sechash" class="flex-box"></span>
<script type="text/javascript" reload="1">updatesecqaa('$sechash', '$sectpl');</script>
</li>
<!--{/if}-->
<!--{if $seccodecheck}-->
<script type="text/javascript">
//Todo: 抽函数到文件中
var seccheck_tpl = new Array();
var seccheck_modid = new Array();
function updateseccode(idhash, tpl, modid) {
if(!document.getElementById('seccode_' + idhash)) {
return;
}
if(tpl) {
seccheck_tpl[idhash] = tpl;
}
if(modid) {
seccheck_modid[idhash] = modid;
} else {
modid = seccheck_modid[idhash];
}
var id = 'seccodejs_' + idhash;
var src = 'misc.php?mod=seccode&action=update&mobile=2&idhash=' + idhash + '&' + Math.random() + '&modid=' + modid;
if(document.getElementById(id)) {
document.getElementsByTagName('head')[0].appendChild(document.getElementById(id));
}
var scriptNode = document.createElement("script");
scriptNode.type = "text/javascript";
scriptNode.id = id;
scriptNode.src = src;
document.getElementsByTagName('head')[0].appendChild(scriptNode);
}
</script>
<li class="sec_code vm">
<span id="seccode_c$sechash" class="flex-box"></span>
<script type="text/javascript" reload="1">updateseccode('c$sechash', '$sectpl', '{$_G['basescript']}::{CURMODULE}');</script>
</li>
<!--{/if}-->
<!--{/if}-->

View File

@@ -0,0 +1,51 @@
<!--{if $param['login']}-->
<!--{if $_G['inajax']}-->
<!--{eval dheader('Location:member.php?mod=logging&action=login&inajax=1&infloat=1');exit;}-->
<!--{else}-->
<!--{eval dheader('Location:member.php?mod=logging&action=login');exit;}-->
<!--{/if}-->
<!--{/if}-->
<!--{template common/header}-->
<!--{if $_G['inajax']}-->
<div class="tip">
<dt id="messagetext">
<p>$show_message</p>
<!--{if $_G['forcemobilemessage']}-->
<p>
<a href="{$_G['setting']['mobile']['pageurl']}" class="mtn">{lang continue}</a><br />
<a href="javascript:history.back();">{lang goback}</a>
</p>
<!--{/if}-->
<!--{if $url_forward && !$_GET['loc']}-->
<script type="text/javascript">
setTimeout(function() {
window.location.href = '$url_forward';
}, '3000');
</script>
<!--{elseif $allowreturn}-->
<dd><input type="button" class="close pn" onclick="popup.close();" value="{lang close}"></dd>
<!--{/if}-->
</dt>
</div>
<!--{else}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2>{lang mobtishi}</h2>
<div class="my"><a href="index.php"><i class="dm-house"></i></a></div>
</div>
<div class="jump_c">
<p>$show_message</p>
<!--{if $_G['forcemobilemessage']}-->
<p class="mt10">
<a href="{$_G['setting']['mobile']['pageurl']}">{lang continue}</a><br />
<a href="javascript:history.back();">{lang goback}</a>
</p>
<!--{/if}-->
<!--{if $url_forward}-->
<p><a href="$url_forward" class="grey">{lang message_forward_mobile}</a></p>
<!--{elseif $allowreturn}-->
<p><a href="javascript:history.back();" class="grey">{lang message_go_back}</a></p>
<!--{/if}-->
</div>
<!--{/if}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,92 @@
<!--{template common/header}-->
<div class="tip loginbox loginpop p5" id="floatlayout_applylist" style="max-height:400px; overflow-y:scroll;">
<form id="applylistform" method="post" autocomplete="off" action="forum.php?mod=misc&action=activityapplylist&tid=$_G['tid']&applylistsubmit=yes&infloat=yes{if !empty($_GET['from'])}&from=$_GET['from']{/if}">
<h2 class="log_tit" id="return_applylist"><!--{if $isactivitymaster}-->{lang activity_applylist_manage}<!--{else}-->{lang activity_applylist}<!--{/if}--></h2>
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="operation" value="" />
<input type="hidden" name="handlekey" value="$_GET['handlekey']" />
<ul class="post_box cl">
<li class="flex-box mli mtit">
<!--{if $isactivitymaster}--><div class="flex"></div><!--{/if}-->
<div class="flex-2 xs1"><span class="z">{lang activity_join_members}</span></div>
<div class="flex-3 xs1"><span class="y">{lang activity_jointime}</span></div>
</li>
<!--{loop $applylist $apply}-->
<li class="flex-box mli mtext">
<!--{if $isactivitymaster}-->
<div class="flex">
<!--{if $apply['uid'] != $_G['uid']}-->
<input type="checkbox" name="applyidarray[]" class="pc" value="$apply['applyid']" />
<!--{else}-->
<input type="checkbox" class="pc" disabled="disabled" />
<!--{/if}-->
</div>
<!--{/if}-->
<div class="flex-2 xs1">
<span class="z"><a href="home.php?mod=space&uid=$apply['uid']" target="_blank" class="xs1">$apply['username']</a><span>
</div>
<div class="flex-3 xs1">
<span class="y">$apply['dateline']</span>
</div>
</li>
<li class="flex-box mli mtit">
<!--{if $isactivitymaster}-->
<div class="flex-3 xs1">
<span class="z">
<!--{if $apply['verified'] == 1}-->
<i class="fico-valid fc-v vm"></i>{lang activity_allow_join}
<!--{elseif $apply['verified'] == 2}-->
{lang activity_do_replenish}
<!--{else}-->
{lang activity_cant_audit}
<!--{/if}-->
</span>
</div>
<!--{/if}-->
<!--{if $activity['cost']}-->
<div class="flex-3 xs1">
<span class="y">{lang activity_payment}: <!--{if $apply['payment'] >= 0}-->$apply['payment'] {lang payment_unit}<!--{else}-->{lang activity_self}<!--{/if}--></span>
</div>
<!--{/if}-->
</li>
<!--{if $apply['message']}-->
<li class="flex-box mli mtext">
<!--{if $apply['message']}--><div class="flex-3 xs1 xg1"><span class="z">{lang leaveword}: $apply['message']</span></div><!--{/if}-->
</li>
<!--{/if}-->
<li class="flex-box mli mtit">
<div class="flex-3 xs1">
<!--{if $apply['ufielddata']}-->
{lang extension_project}
<!--{else}-->
{lang extension_project}: {lang no_informations}
<!--{/if}-->
</div>
</li>
<ul class="ufielddata">$apply['ufielddata']</ul>
<div class="discuz_x mb10 cl"></div>
<!--{/loop}-->
</ul>
<!--{if $isactivitymaster}-->
<ul class="post_box cl mb10">
<label>
<li class="flex-box mli">
<div class="flex xs1"><input name="reason" class="px vm" size="25" placeholder="{lang activity_ps}" /></div>
</li>
</label>
</ul>
<dd>
<button class="formdialog button z" type="submit" value="true" name="applylistsubmit" onclick="$('applylistform').operation.value='notification';"><span>{lang send_notification}</span></button>
<button class="formdialog button y" type="submit" value="true" name="applylistsubmit" onclick="$('applylistform').operation.value='replenish';"><span>{lang to_improve}</span></button>
</dd>
<dd>
<button class="formdialog button btn_pn_green z" type="submit" value="true" name="applylistsubmit"><span>{lang confirm}</span></button>
<button class="formdialog button btn_pn_red y" type="submit" value="true" name="applylistsubmit" onclick="$('applylistform').operation.value='delete';"><span>{lang activity_refuse}</span></button>
</dd>
<!--{/if}-->
</form>
</div>
<style type="text/css">
.ufielddata li { display:flex;-webkit-box-flex: 3;-webkit-flex: 3;-ms-flex: 3;flex: 3; font-size:12px;color: var(--dz-FC-999);height: 20px;line-height: 20px;padding: 5px 15px;}
</style>
<!--{template common/footer}-->

View File

@@ -0,0 +1,24 @@
$activity[class]: $thread[subject]
<!--{echo "\n";}-->
{lang activity_starttime}: <!--{if $activity['starttimeto']}-->{lang activity_start_between}<!--{else}-->$activity[starttimefrom]<!--{/if}-->
<!--{echo "\n";}-->
{lang activity_space}: $activity[place]
<!--{echo "\n";}-->
<!--{if $activity['cost']}-->
{lang activity_payment}: $activity[cost] {lang payment_unit}
<!--{echo "\n";}-->
<!--{/if}-->
{lang gender}: <!--{if $activity['gender'] == 1}-->{lang male}<!--{elseif $activity['gender'] == 2}-->{lang female}<!--{else}-->{lang unlimited}<!--{/if}-->
<!--{echo "\n";}-->
<!--{if $activity['expiration']}-->{lang activity_totime}: $activity[expiration]<!--{/if}-->
<!--{echo "\n";}-->
{lang activity_already}: $applynumbers {lang activity_member_unit}
<!--{echo "\n\n";}-->
{lang activity_content}: "$activity[message]"
<!--{echo "\n\n";}-->
{lang activity_join_members},{lang leaveword},<!--{if $activity['cost']}-->{lang activity_payment},<!--{/if}-->{lang activity_jointime},{lang status}$ufield
<!--{echo "\n";}-->
<!--{loop $applylist $apply}-->
$apply[username],$apply[message],<!--{if $activity['cost']}--><!--{if $apply[payment] >= 0}-->$apply[payment] {lang payment_unit}<!--{else}-->{lang activity_self}<!--{/if}-->,<!--{/if}-->$apply[dateline],<!--{if $apply[verified]}-->{lang activity_allow_join}<!--{else}-->{lang activity_cant_audit}<!--{/if}--><!--{if $apply[fielddata]}-->$apply[fielddata]<!--{/if}-->
<!--{echo "\n";}-->
<!--{/loop}-->

View File

@@ -0,0 +1,47 @@
<!--{template common/header_ajax}-->
<!--{if $_GET['action'] == 'getpostfeed'}-->
<!--{if !empty($_GET['type'])}-->
$post['message']
<!--{else}-->
<div class="z flw_avt">
<a href="home.php?mod=space&uid=$feed['uid']" class="z" c="1"><!--{avatar($feed['uid'],'small')}--></a>
<span class="cnr"></span>
</div>
<div class="flw_article">
<div class="flw_author pbm">
<a href="home.php?mod=space&uid=$feed['uid']" c="1">$feed['username']</a>
<span class="xg1">&nbsp;<!--{eval echo dgmdate($feed['dateline'], 'u');}--></span>
</div>
<!--{if $feed['note']}-->
<div class="flw_quotenote xs2 pbw">
$feed['note']
</div>
<div class="flw_quote">
<!--{/if}-->
<!--{if $thread['fid'] != $_G['setting']['followforumid']}-->
<h2 class="wx pbm">
<a href="forum.php?mod=viewthread&tid=$thread['tid']&extra=page%3D1">$thread['subject']</a>
</h2>
<!--{/if}-->
<div class="pbm c cl" id="original_content_$feed['feedid']">$feed['content']</div>
<div class="xg1 cl">
<span class="y">
<!--{if $feed['uid'] == $_G['uid'] || $_G['adminid'] == 1}-->
&nbsp; <a href="home.php?mod=spacecp&ac=follow&feedid=$feed['feedid']&op=delete" id="c_delete_$feed['feedid']" class="flw_delete dialog">{lang delete}</a>
<!--{/if}-->
<a href="javascript:;" id="relay_$feed['feedid']" onclick="quickrelay($feed['feedid'], $thread['tid']);">{lang follow_relay}($feed['relay'])</a>&nbsp;
<a href="javascript:;" onclick="quickreply($thread['fid'], $thread['tid'], $feed['feedid'])">{lang follow_quickreply}($thread['replies'])</a>
</span>
<!--{if $feed['note']}--><a href="home.php?mod=space&uid=$feed['uid']">$thread['author']</a> {lang poston} <!--{date($thread['dateline'])}-->&nbsp;<!--{/if}--><!--{if $thread['fid'] != $_G['setting']['followforumid'] && $_G['cache']['forums'][$thread['fid']]['name']}-->#<a href="forum.php?mod=forumdisplay&fid=$thread['fid']">$_G['cache']['forums'][$thread['fid']]['name']</a><!--{/if}-->
</div>
<!--{if $feed['note']}--></div><!--{/if}-->
</div>
<div id="replybox_$feed['feedid']" class="flw_replybox cl" style="display: none;"></div>
<div id="relaybox_$feed['feedid']" class="flw_replybox cl" style="display: none;"></div>
<!--{/if}-->
<!--{else}-->
<a href="home.php?mod=space&uid=$post['authorid']" class="d xg1">$post['author']:</a>$post['message']
<!--{/if}-->
<!--{template common/footer_ajax}-->

View File

@@ -0,0 +1,67 @@
<!--{template common/header_ajax}-->
<span class="cnr"></span>
<form method="post" autocomplete="off" id="postform_{$_GET['feedid']}" action="forum.php?mod=post&action=reply&fid=$_GET['fid']&extra=$extra&tid=$_GET['tid']&replysubmit=yes" onsubmit="this.message.value = parseurl(this.message.value);{if !empty($_GET['inajax'])}ajaxpost(this.id, 'return_$_GET['handlekey']', 'return_$_GET['handlekey']', 'onerror');return false;{/if}" class="mbm">
<input type="hidden" name="formhash" id="formhash" value="{FORMHASH}" />
<input type="hidden" name="handlekey" value="$_GET['handlekey']" />
<span id="subjectbox" style="display: none;"><input name="subject" id="subject" class="px" value="" style="width: 25em" /></span>
<div class="moodfm">
<div class="moodfm_post">
<div class="moodfm_text flw_autopt">
<textarea name="message" id="postmessage_{$_GET['tid']}_{$_GET['feedid']}" class="pts" cols="80" rows="4" placeholder="{lang thread_content}" onkeyup="resizeTx(this);" onkeydown="resizeTx(this);" onpropertychange="resizeTx(this);" oninput="resizeTx(this);"></textarea>
</div>
<!--{if $secqaacheck || $seccodecheck}-->
<!--{block sectpl}--><ul><li><em class="d"><sec></em><span id="sec<hash>" onclick="showMenu({'ctrlid':this.id,'win':'{$_GET[handlekey]}'})"><sec></span><div id="sec<hash>_menu" class="p_pop p_opt" style="display:none"><sec></div></li></ul><!--{/block}-->
<div class="mtm sec post_box"><ul class="cl"><!--{subtemplate common/seccheck}--></ul></div>
<!--{/if}-->
<div class="moodfm_f">
<div class="moodfm_btn">
<button type="submit" id="postsubmit" class="pgsbtn button" value="true" name="{if $_GET['action'] == 'newthread'}topicsubmit{elseif $_GET['action'] == 'reply'}replysubmit{/if}">{lang reply}</button>
</div>
<!--{if helper_access::check_module('follow')}-->
<div class="moodfm_signature">
<label>
<input type="checkbox" name="adddynamic" class="pc" value="1" />
<span>{lang post_meanwhile_relay}</span>
</label>
</div>
<!--{/if}-->
</div>
</div>
</div>
</form>
<ul id="newreply_{$_GET['tid']}_{$_GET['feedid']}" class="flw_newreply">
<!--{loop $list $pid $post}-->
<li><a href="home.php?mod=space&uid=$post['authorid']" class="d xi2">$post['author']:</a>$post['message']</li>
<!--{/loop}-->
</ul>
<div class="cl">
<a href="javascript:;" onclick="replybox_close('replybox_{$_GET['feedid']}')" class="replybox_close">{lang close}</a>
<!--{if $fid != $_G['setting']['followforumid']}-->
<a href="forum.php?mod=viewthread&tid={$_GET['tid']}&extra=page%3D1" target="_blank" class="xi2">&rarr; {lang view_all_replies}</a>
<!--{/if}-->
</div>
<script type="text/javascript">
function succeedhandle_$_GET[handlekey](url, msg, values) {
var x = new Ajax();
x.get('forum.php?mod=ajax&action=getpost&inajax=1&tid='+values.tid+'&fid='+values.fid+'&pid='+values.pid, function(s){
newli = document.createElement("li");
newli.innerHTML = s;
var ulObj = $('newreply_'+values.tid+'_{$_GET['feedid']}');
ulObj.insertBefore(newli, ulObj.firstChild);
$('postmessage_{$_GET['tid']}_{$_GET['feedid']}').value = '';
if(values.sechash) {
updatesecqaa(values.sechash);
updateseccode(values.sechash);
$('seccodeverify_'+values.sechash).value='';
}
});
if(parseInt(values.feedid)) {
getNewFollowFeed(values.tid, values.fid, values.pid, values.feedid);
}
}
</script>
<!--{template common/footer_ajax}-->

View File

@@ -0,0 +1,64 @@
<!--{template common/header}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2>{lang announcement}</h2>
<div class="my"><a href="index.php"><i class="dm-house"></i></a></div>
</div>
<div class="dhnav_box">
<div id="dhnav">
<div id="dhnav_li">
<ul class="swiper-wrapper">
<li class="swiper-slide{if empty($_GET[m])} mon{/if}"><a href="forum.php?mod=announcement">{lang all}</a>{if empty($_GET[m])}<em></em>{/if}</li>
<!--{loop $months $month}-->
<li class="swiper-slide{if $_GET[m] == $month[0].$month[1]} mon{/if}"><a href="forum.php?mod=announcement&m=$month[0].$month[1]">$month[0] {lang year} $month[1] {lang month}</a></li>
<!--{/loop}-->
</ul>
</div>
</div>
</div>
<div class="annlist mt10 cl">
<ul>
<!--{eval $nn = 0;}-->
<!--{loop $announcelist $ann}-->
<!--{eval $nn++;}-->
<li class="cl">
<h2><a href="javascript:;" class="ann_more" id="ann_{$ann['id']}"><i class="dm-c-{if $nn == 1 && !$annid || $ann['id'] == $annid}down{else}right{/if}"></i>$ann['subject']</a></h2>
<h3><span class="my">$ann['starttime']</span><span class="mz">{lang author}:</span> <a href="home.php?mod=space&username=$ann['authorenc']&do=profile">$ann['author']</a></h3>
<div class="annlist_box" style="display:{if $nn == 1 && !$annid || $ann['id'] == $annid}block{else}none{/if};" id="ann_{$ann['id']}_box">
$ann['message']
</div>
</li>
<!--{/loop}-->
</ul>
</div>
<script>
if($("#dhnav_li .mon").length > 0) {
var discuz_nav = $("#dhnav_li .mon").offset().left + $("#dhnav_li .mon").width() >= $(window).width() ? $("#dhnav_li .mon").index() : 0;
}else{
var discuz_nav = 0;
}
mySwiper = new Swiper('#dhnav_li', {
freeMode : true,
slidesPerView : 'auto',
initialSlide : discuz_nav,
onTouchMove: function(swiper){
Discuz_Touch_on = 0;
},
onTouchEnd: function(swiper){
Discuz_Touch_on = 1;
},
});
$('.ann_more').on('click', function() {
var obj = $(this);
var sub_obj = $('#' + obj.attr('id') + '_box');
if(sub_obj.css('display') == 'none') {
sub_obj.css('display', 'block');
obj.find('i').removeClass().addClass('dm-c-down');
} else {
sub_obj.css('display', 'none');
obj.find('i').removeClass().addClass('dm-c-right');
}
});
</script>
<!--{eval $nofooter = true;}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,58 @@
<!--{template common/header}-->
<div class="tip loginbox loginpop p5" id="floatlayout_attachpay">
<h2 class="log_tit" id="return_attachpay">{lang pay_attachment}</h2>
<form id="attachpayform" method="post" autocomplete="off" action="forum.php?mod=misc&action=attachpay&tid={$_G['tid']}">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="referer" value="{echo dreferer()}" />
<input type="hidden" name="aid" value="$aid" />
<input type="hidden" name="paysubmit" value="true" />
<ul class="post_box cl">
<li class="flex-box mli">
<div class="flex-2 xs1"><span class="z">{lang author}</span></div>
<div class="flex-3 xs1"><a href="home.php?mod=space&uid=$attach['uid']">$attach['author']</a></div>
</li>
<li class="flex-box mli">
<div class="flex-2 xs1"><span class="z">{lang attachment}</span></div>
<div class="flex-3 xs1" style="line-height:20px;overflow:hidden;">$attach['filename'] <!--{if $attach['description']}-->($attach['description'])<!--{/if}--></div>
</li>
<li class="flex-box mli">
<div class="flex-2 xs1"><span class="z">{lang price}({$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]]['title']})</span></div>
<div class="flex-3 xs1">$attach['price'] {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]]['unit']}</div>
</li>
<!--{if $status != 1}-->
<li class="flex-box mli">
<div class="flex-2 xs1"><span class="z">{lang pay_author_income}({$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]]['title']})</span></div>
<div class="flex-3 xs1">$attach['netprice'] {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]]['unit']}</div>
</li>
<li class="flex-box mli">
<div class="flex-2 xs1"><span class="z">{lang pay_balance}({$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]]['title']})</span></div>
<div class="flex-3 xs1">$balance {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]]['unit']}</div>
</li>
<!--{/if}-->
<!--{if $status == 1}-->
<li class="flex-box mli">
<div class="flex-2 xs1"><span class="z"></span></div>
<div class="flex-3 xs1">{lang status_insufficient}</div>
</li>
<!--{elseif $status == 2}-->
<li class="flex-box mli">
<div class="flex-2 xs1"><span class="z"></span></div>
<div class="flex-3 xs1">{lang status_download}, <a href="forum.php?mod=attachment&aid=$aidencode" target="_blank">{lang download}</a></div>
</li>
<!--{/if}-->
<!--{if $status != 1}-->
<label>
<li class="flex-box mli">
<div class="flex-3 xs1"><span class="z">{lang buy_all_attch}</span></div>
<div class="flex-2 xs1"><input name="buyall" type="checkbox" class="pc" value="yes" /></div>
</li>
</label>
<!--{/if}-->
</ul>
<!--{if $status != 1}-->
<div class="mb10"></div>
<dd><input class="formdialog button" type="submit" name="submit" value="<!--{if $status == 0}-->{lang pay_attachment}<!--{else}-->{lang free_buy}<!--{/if}-->" /></dd>
<!--{/if}-->
</form>
</div>
<!--{template common/footer}-->

View File

@@ -0,0 +1,23 @@
<!--{template common/header}-->
<div class="tip loginbox loginpop p5" id="floatlayout_attachpay_view">
<h2 class="log_tit" id="return_attachpay_view">{lang pay_view}</h2>
<!--{if $loglist}-->
<ul class="post_box cl">
<li class="flex-box mli">
<div class="flex tit">{lang username}</div>
<div class="flex tit">{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]}</div>
<div class="flex tit">{lang time}</div>
</li>
<!--{loop $loglist $log}-->
<li class="flex-box mli">
<div class="flex xs1"><a href="home.php?mod=space&uid=$log['uid']">$log['username']</a></div>
<div class="flex xs1">$log['dateline']</div>
<div class="flex xs1 xi1">{$log[$extcreditname]} {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]]['unit']}</div>
</li>
<!--{/loop}-->
</ul>
<!--{else}-->
<dt>{lang attachment_buy_not}</dt>
<!--{/if}-->
</div>
<!--{template common/footer}-->

View File

@@ -0,0 +1,69 @@
<!--{template common/header}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2>
<!--{if $op == 'edit'}-->
{lang collection_edit}
<!--{else}-->
{lang collection_create}
<!--{/if}-->
</h2>
</div>
<div class="setbox cl">
<!--{if $op != 'edit'}-->
<div class="bodybox p10">
<div class="quote">
<p>{lang collection_remain_tips}</p>
</div>
</div>
<!--{/if}-->
<form method="post" autocomplete="off" action="forum.php?mod=collection&action=edit" onsubmit="return checklen();">
<input type="hidden" value="1" name="submitcollection" />
<input type="hidden" value="{$op}" name="op" />
<input type="hidden" value="{$ctid}" name="ctid" />
<input type="hidden" name="formhash" id="formhash" value="{FORMHASH}" />
<input type="hidden" name="collectionsubmit" id="collectionsubmit" value="submit" />
<ul class="bodybox post_box mt15 cl">
<li class="flex-box mli">
<div class="tit">{lang collection_title}<span class="f_g">*</span></div>
<div class="flex input"><input type="text" id="formtitle"{if $_G['collection']['name']} value="{$_G['collection']['name']}"{/if} autocomplete="off" name="title"></div>
</li>
<li class="tit">{lang collection_desc} </li>
<li class="cl">
<textarea name="desc" id="formdesc" rows="5" class="pxs">
{$_G['collection']['desc']}
</textarea>
</li>
<div class="bodybox p10">
<div class="quote">
<p>{lang collection_keywords_desc}</p>
</div>
</div>
<li class="flex-box mli">
<div class="tit">{lang collection_keywords}</div>
<div class="flex input"><input type="text" id="formkeyword"{if $_G['collection']['keyword']} value="{$_G['collection']['keyword']}"{/if} autocomplete="off" name="keyword"></div>
</li>
</ul>
<div class="mt5 p10">
<button type="submit" class="formdialog flex pn"><!--{if $op == 'edit'}-->{lang collection_edit}<!--{else}-->{lang collection_create}<!--{/if}--></button>
</div>
</form>
</div>
<script type="text/javascript">
var titlelimit = '$titlelimit';
var desclimit = '$desclimit';
function checklen() {
if(mb_strlen($("formtitle").value) > titlelimit) {
showError({lang collection_title_exceed});
return false;
}
if(mb_strlen($("formdesc").value) > desclimit) {
showError({lang collection_desc_exceed});
return false;
}
return true;
}
</script>
<!--{eval $nofooter = true;}-->
<!--{block footerplus}--><div class="O1JmykD4eNwe"></div><!--{/block}-->

View File

@@ -0,0 +1,20 @@
<!--{template common/header}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2>
{lang collection}
</h2>
<div class="my">
<!--{if helper_access::check_module('collection')}-->
<a href="forum.php?mod=collection&amp;action=edit"><i class="dm-plus-c"></i></a>
<!--{else}-->
<a href="<!--{if $_G['setting']['mobile']['mobilehotthread']}--><!--{if !empty($_G['setting']['grid']['showgrid'])}-->forum.php<!--{else}-->forum.php?mod=guide&view=newthread<!--{/if}--><!--{else}-->forum.php?forumlist=1<!--{/if}-->"><i class="dm-house"></i></a>
<!--{/if}-->
</div>
</div>
<!--{subtemplate forum/collection_nav}-->
<!--{hook/collection_index_top}-->
<!--{subtemplate forum/collection_list}-->
<!--{hook/collection_index_bottom}-->
$multipage
<!--{template common/footer}-->

View File

@@ -0,0 +1,170 @@
<!--{template common/header}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2>
{lang collection_commentlist}
</h2>
<div class="my">
<a href="#moption" class="popup"><i class="dm-edit"></i></a>
</div>
<div class="mtime">
<div class="dialogbox" id="moption" popup="true" class="manage" style="display:none">
<!--{hook/collection_viewoptions}-->
<!--{if $permission}-->
<a class="button" href="forum.php?mod=collection&action=edit&op=edit&ctid={$_G['collection']['ctid']}&formhash={FORMHASH}">{lang edit}</a>
<input type="button" value="{lang delete}" class="dialog button" href="forum.php?mod=collection&action=edit&op=remove&ctid={$_G['collection']['ctid']}&formhash={FORMHASH}">
<input type="button" value="{lang collection_invite_team}" class="dialog button" href="forum.php?mod=collection&action=edit&op=invite&ctid=$ctid">
<!--{/if}-->
<!--{if $_G['uid']!=$_G['collection']['uid']}-->
<input type="button" value="{lang collection_recommend}" class="dialog button" href="forum.php?mod=collection&action=comment&op=recommend&ctid=$ctid">
<!--{/if}-->
<!--{if $isteamworkers}-->
<input type="button" value="{lang collection_exit_team}" class="dialog button" href="forum.php?mod=collection&action=edit&op=removeworker&ctid={$_G['collection']['ctid']}&uid={$_G['uid']}&formhash={FORMHASH}">
<!--{/if}-->
</div>
</div>
</div>
<!--{hook/collection_view_top}-->
<!--{if $_G['page'] == 1}-->
<div class="forumdisplay-top cl">
<h2>
<!--{if $_G['group']['allowfollowcollection'] && $_G['collection']['uid'] != $_G['uid']}-->
<!--{if !$collectionfollowdata['ctid']}-->
<input type="button" id="a_favorite" value="{lang collection_follow}" class="dialog button" href="forum.php?mod=collection&action=follow&op=follow&ctid={$ctid}&formhash={FORMHASH}">
<!--{else}-->
<input type="button" id="a_favorite" value="{lang collection_unfollow}" class="dialog button" href="forum.php?mod=collection&action=follow&op=unfo&ctid={$ctid}&formhash={FORMHASH}">
<!--{/if}-->
<!--{/if}-->
{$_G['collection']['name']}
</h2>
<p><a href="javascript:;">{lang collection_threadnum}</a><span> {$_G['collection']['threadnum']}</span><a href="javascript:;">{lang collection_commentnum}</a><span> {$_G['collection']['commentnum']}</span><a href="javascript:;">{lang collection_follow}</a><span> {$_G['collection']['follownum']}</span></p>
<p class="mt5">
<!--{if $_G['collection']['desc']}-->
{$_G['collection']['desc']}
<!--{/if}-->
<span class="y">
<!--{if $_G['collection']['ratenum'] > 0}-->
<i class="dm-star-fill" style="color: {if (1<=$star)}var(--dz-BG-color){else}#ccc{/if};"></i>
<i class="dm-star-fill" style="color: {if (2<=$star)}var(--dz-BG-color){else}#ccc{/if};"></i>
<i class="dm-star-fill" style="color: {if (3<=$star)}var(--dz-BG-color){else}#ccc{/if};"></i>
<i class="dm-star-fill" style="color: {if (4<=$star)}var(--dz-BG-color){else}#ccc{/if};"></i>
<i class="dm-star-fill" style="color: {if (5<=$star)}var(--dz-BG-color){else}#ccc{/if};"></i>
<!--{else}-->
{lang collection_norate}
<!--{/if}-->
</span>
</p>
</div>
<!--{/if}-->
<div class="dhnav_box">
<div id="dhnav">
<div id="dhnav_li">
<ul class="flex-box">
<li class="flex"><a href="forum.php?mod=collection&action=view&ctid={$_G['collection']['ctid']}">{lang all}</a></li>
<li class="flex mon"><a href="forum.php?mod=collection&action=view&op=comment&ctid={$_G['collection']['ctid']}">{lang collection_commentlist}</a></li>
<li class="flex"><a href="forum.php?mod=collection&action=view&op=followers&ctid={$_G['collection']['ctid']}">{lang collection_followlist}</a></li>
</ul>
</div>
</div>
</div>
<!--{if $_G['collection']['commentnum'] > 0}-->
<!--{if $permission}-->
<form action="forum.php?mod=collection&action=comment&op=del" method="POST" id="form_delComment">
<input type="hidden" name="delcomment[]" />
<input type="hidden" name="ctid" value="{$ctid}" />
<input type="hidden" name="formhash" value="{FORMHASH}" />
<!--{/if}-->
<div class="viewthread">
<!--{loop $commentlist $comment}-->
<div class="plc cl" id="cid$comment['cid']">
<div class="avatar"><img src="<!--{avatar($comment['uid'], 'small', true)}-->" /></div>
<div class="display pi" href="#replybtn_$comment['cid']">
<ul class="authi">
<li class="mtit">
<!--{if $comment[rate]}-->
<span class="y">
<i class="dm-star-fill" style="color: {if (1<=$comment[rate])}var(--dz-BG-color){else}#ccc{/if};"></i>
<i class="dm-star-fill" style="color: {if (2<=$comment[rate])}var(--dz-BG-color){else}#ccc{/if};"></i>
<i class="dm-star-fill" style="color: {if (3<=$comment[rate])}var(--dz-BG-color){else}#ccc{/if};"></i>
<i class="dm-star-fill" style="color: {if (4<=$comment[rate])}var(--dz-BG-color){else}#ccc{/if};"></i>
<i class="dm-star-fill" style="color: {if (5<=$comment[rate])}var(--dz-BG-color){else}#ccc{/if};"></i>
</span>
<!--{/if}-->
<!--{if $comment['uid'] && $comment['username']}-->
<span class="z">
<a href="home.php?mod=space&uid=$comment['uid']">$comment['username']</a>
</span>
<!--{/if}-->
</li>
<li class="mtime">
<!--{if $permission}-->
<em class="mgl"><a href="javascript:;" onclick="document.getElementsByName('delcomment[]')[0].value={$comment['cid']};document.getElementById('form_delComment').submit();" class="dialog blue">{lang delete}</a></em>
<!--{/if}-->
$comment['dateline']
</li>
</ul>
<div class="message">
$comment['message']
</div>
</div>
</div>
<!--{/loop}-->
</div>
<!--{if $permission}-->
</form>
<!--{/if}-->
<!--{/if}-->
<!--{if $_G['group']['allowcommentcollection']}-->
<form id="form_addComment" enctype="multipart/form-data" action="forum.php?mod=collection&action=comment&ctid={$_G['collection']['ctid']}" name="form_addComment" method="post" autocomplete="off" accept-charset="utf-8" onsubmit="document.charset='utf-8';">
<div class="setbox cl">
<ul class="bodybox post_box cl">
<li class="tit">{lang collection_ratecollection} </li>
<li class="cl">
<textarea name="message" rows="5" class="pxs"></textarea>
</li>
<!--{if !$memberrate}-->
<li class="flex-box mli">
<input type="hidden" name="ratescore" id="ratescore" />
<span id="clct_ratestar_star">
<a href="javascript:;" onclick="rateStarSet('clct_ratestar_star',1,'ratescore')"><i class="dm-star-fill"></i></a>
<a href="javascript:;" onclick="rateStarSet('clct_ratestar_star',2,'ratescore')"><i class="dm-star-fill"></i></a>
<a href="javascript:;" onclick="rateStarSet('clct_ratestar_star',3,'ratescore')"><i class="dm-star-fill"></i></a>
<a href="javascript:;" onclick="rateStarSet('clct_ratestar_star',4,'ratescore')"><i class="dm-star-fill"></i></a>
<a href="javascript:;" onclick="rateStarSet('clct_ratestar_star',5,'ratescore')"><i class="dm-star-fill"></i></a>
</span>
<script>
function rateStarSet(target, level, input) {
if(input) document.getElementById(input).value = level;
var stars = document.getElementById(target).children;
for(var i = 0; i < stars.length; i++) {
document.getElementById(target).children[i].style.color = (i < level) ? "var(--dz-BG-color)" : "#ccc";
}
}
</script>
<style>
#clct_ratestar_star a {
color: #ccc;
}
</style>
</li>
<!--{else}-->
<li class="flex-box mli">
<div class="tit">{lang collection_rated} </div>
<span id="clct_ratestar_star">
<i class="dm-star-fill" style="color: {if (1<=$memberrate)}var(--dz-BG-color){else}#ccc{/if};"></i>
<i class="dm-star-fill" style="color: {if (2<=$memberrate)}var(--dz-BG-color){else}#ccc{/if};"></i>
<i class="dm-star-fill" style="color: {if (3<=$memberrate)}var(--dz-BG-color){else}#ccc{/if};"></i>
<i class="dm-star-fill" style="color: {if (4<=$memberrate)}var(--dz-BG-color){else}#ccc{/if};"></i>
<i class="dm-star-fill" style="color: {if (5<=$memberrate)}var(--dz-BG-color){else}#ccc{/if};"></i>
</span>
</li>
<!--{/if}-->
</ul>
<div class="mt5 p10">
<button id="btnCommentSubmit" type="submit" class="formdialog flex pn">{lang collection_comment_submit}</button>
</div>
</div>
</form>
<!--{/if}-->
<!--{hook/collection_side_bottom}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,86 @@
<!--{template common/header}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2>
{lang collection_followlist}
</h2>
<div class="my">
<a href="#moption" class="popup"><i class="dm-edit"></i></a>
</div>
<div class="mtime">
<div class="dialogbox" id="moption" popup="true" class="manage" style="display:none">
<!--{hook/collection_viewoptions}-->
<!--{if $permission}-->
<a class="button" href="forum.php?mod=collection&action=edit&op=edit&ctid={$_G['collection']['ctid']}&formhash={FORMHASH}">{lang edit}</a>
<input type="button" value="{lang delete}" class="dialog button" href="forum.php?mod=collection&action=edit&op=remove&ctid={$_G['collection']['ctid']}&formhash={FORMHASH}">
<input type="button" value="{lang collection_invite_team}" class="dialog button" href="forum.php?mod=collection&action=edit&op=invite&ctid=$ctid">
<!--{/if}-->
<!--{if $_G['uid']!=$_G['collection']['uid']}-->
<input type="button" value="{lang collection_recommend}" class="dialog button" href="forum.php?mod=collection&action=comment&op=recommend&ctid=$ctid">
<!--{/if}-->
<!--{if $isteamworkers}-->
<input type="button" value="{lang collection_exit_team}" class="dialog button" href="forum.php?mod=collection&action=edit&op=removeworker&ctid={$_G['collection']['ctid']}&uid={$_G['uid']}&formhash={FORMHASH}">
<!--{/if}-->
</div>
</div>
</div>
<!--{hook/collection_view_top}-->
<!--{if $_G['page'] == 1}-->
<div class="forumdisplay-top cl">
<h2>
<!--{if $_G['group']['allowfollowcollection'] && $_G['collection']['uid'] != $_G['uid']}-->
<!--{if !$collectionfollowdata['ctid']}-->
<input type="button" id="a_favorite" value="{lang collection_follow}" class="dialog button" href="forum.php?mod=collection&action=follow&op=follow&ctid={$ctid}&formhash={FORMHASH}">
<!--{else}-->
<input type="button" id="a_favorite" value="{lang collection_unfollow}" class="dialog button" href="forum.php?mod=collection&action=follow&op=unfo&ctid={$ctid}&formhash={FORMHASH}">
<!--{/if}-->
<!--{/if}-->
{$_G['collection']['name']}
</h2>
<p><a href="javascript:;">{lang collection_threadnum}</a><span> {$_G['collection']['threadnum']}</span><a href="javascript:;">{lang collection_commentnum}</a><span> {$_G['collection']['commentnum']}</span><a href="javascript:;">{lang collection_follow}</a><span> {$_G['collection']['follownum']}</span></p>
<p class="mt5">
<!--{if $_G['collection']['desc']}-->
{$_G['collection']['desc']}
<!--{/if}-->
<span class="y">
<!--{if $_G['collection']['ratenum'] > 0}-->
<i class="dm-star-fill" style="color: {if (1<=$star)}var(--dz-BG-color){else}#ccc{/if};"></i>
<i class="dm-star-fill" style="color: {if (2<=$star)}var(--dz-BG-color){else}#ccc{/if};"></i>
<i class="dm-star-fill" style="color: {if (3<=$star)}var(--dz-BG-color){else}#ccc{/if};"></i>
<i class="dm-star-fill" style="color: {if (4<=$star)}var(--dz-BG-color){else}#ccc{/if};"></i>
<i class="dm-star-fill" style="color: {if (5<=$star)}var(--dz-BG-color){else}#ccc{/if};"></i>
<!--{else}-->
{lang collection_norate}
<!--{/if}-->
</span>
</p>
</div>
<!--{/if}-->
<div class="dhnav_box">
<div id="dhnav">
<div id="dhnav_li">
<ul class="flex-box">
<li class="flex"><a href="forum.php?mod=collection&action=view&ctid={$_G['collection']['ctid']}">{lang all}</a></li>
<li class="flex"><a href="forum.php?mod=collection&action=view&op=comment&ctid={$_G['collection']['ctid']}">{lang collection_commentlist}</a></li>
<li class="flex mon"><a href="forum.php?mod=collection&action=view&op=followers&ctid={$_G['collection']['ctid']}">{lang collection_followlist}</a></li>
</ul>
</div>
</div>
</div>
<!--{if $followers}-->
<div class="imglist cl">
<ul>
<!--{loop $followers $follower}-->
<li>
<a href="home.php?mod=space&uid=$follower[uid]">
<img src="{avatar($follower['uid'],'middle',true)}" class="mimg" />
$follower[username]
</a>
</li>
<!--{/loop}-->
</ul>
</div>
<!--{/if}-->
<!--{if $multipage}-->$multipage<!--{/if}-->
<!--{hook/collection_side_bottom}-->
<!--{subtemplate common/footer}-->

View File

@@ -0,0 +1,20 @@
<!--{template common/header}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2>
{lang collection}
</h2>
<div class="my">
<!--{if helper_access::check_module('collection')}-->
<a href="forum.php?mod=collection&amp;action=edit"><i class="dm-plus-c"></i></a>
<!--{else}-->
<a href="<!--{if $_G['setting']['mobile']['mobilehotthread']}--><!--{if !empty($_G['setting']['grid']['showgrid'])}-->forum.php<!--{else}-->forum.php?mod=guide&view=newthread<!--{/if}--><!--{else}-->forum.php?forumlist=1<!--{/if}-->"><i class="dm-house"></i></a>
<!--{/if}-->
</div>
</div>
<!--{subtemplate forum/collection_nav}-->
<!--{hook/collection_index_top}-->
<!--{subtemplate forum/collection_list}-->
<!--{hook/collection_index_bottom}-->
$multipage
<!--{template common/footer}-->

View File

@@ -0,0 +1,27 @@
<!--{template common/header}-->
<div class="setbox cl" id="invite">
<form action="forum.php?mod=collection&action=edit&op=invite&ctid={$ctid}" method="POST">
<input type="hidden" name="formhash" id="formhash" value="{FORMHASH}" />
<input type="hidden" name="submitaddthread" value="submit" />
<ul class="bodybox post_box mt15 cl">
<div class="bodybox p10">
<div class="quote">
<p>{lang collection_max_invite}</p>
</div>
</div>
<li class="flex-box mli">
<div class="tit">{lang collection_username}<span class="f_g">*</span></div>
<div class="flex input"><input type="text" id="username" autocomplete="off" name="username"></div>
</li>
</ul>
<div class="mt5 p10">
<button type="submit" class="formdialog flex pn">{lang invite}</button>
</div>
</form>
</div>
<style>
#invite {
background-color: #fff;
}
</style>
<!--{template common/footer}-->

View File

@@ -0,0 +1,60 @@
<!--{if is_array($collectiondata) && count($collectiondata) > 0}-->
<div class="threadlist cl">
<ul>
<!--{loop $collectiondata $collectionvalues}-->
<li class="list{if $op == 'my'} {if $collectionvalues['uid'] == $_G['uid']}mycreate{elseif is_array($twctid) && in_array($collectionvalues['ctid'], $twctid)}myteam{else}mysubscribe{/if}{/if}">
<div class="threadlist_top cl">
<a href="home.php?mod=space&uid={$collectionvalues['uid']}" class="mimg"><img src="<!--{avatar($collectionvalues['uid'], 'middle', true)}-->"></a>
<div class="muser">
<h3><a href="home.php?mod=space&uid={$collectionvalues['uid']}" class="mmc">{$collectionvalues['username']}</a></h3>
<span class="mtime">
{$collectionvalues['dateline']}
<span class="y">
<!--{if $collectionvalues['ratenum'] > 0}-->
<i class="dm-star-fill" style="color: {if (1<=$collectionvalues['star'])}var(--dz-BG-color){else}#ccc{/if};"></i>
<i class="dm-star-fill" style="color: {if (2<=$collectionvalues['star'])}var(--dz-BG-color){else}#ccc{/if};"></i>
<i class="dm-star-fill" style="color: {if (3<=$collectionvalues['star'])}var(--dz-BG-color){else}#ccc{/if};"></i>
<i class="dm-star-fill" style="color: {if (4<=$collectionvalues['star'])}var(--dz-BG-color){else}#ccc{/if};"></i>
<i class="dm-star-fill" style="color: {if (5<=$collectionvalues['star'])}var(--dz-BG-color){else}#ccc{/if};"></i>
<!--{else}-->
{lang collection_norate}
<!--{/if}-->
</span>
</span>
</div>
</div>
<a href="forum.php?mod=collection&action=view&ctid={$collectionvalues['ctid']}{if $op}&fromop={$op}{/if}{if $tid}&fromtid={$tid}{/if}">
<div class="threadlist_tit cl">
<em>{$collectionvalues['name']}</em>
</div>
<div class="threadlist_mes cl">{$collectionvalues['shortdesc']}</div>
</a>
<!--{if $collectionvalues['arraykeyword']}-->
<div class="threadlist_foot cl">
<ul>
<!--{if $collectionvalues['arraykeyword']}-->
<!--{eval $keycount=0;}-->
<!--{loop $collectionvalues['arraykeyword'] $unique_keyword}-->
<li class="mr"><a href="search.php?mod={if $_G['setting']['search']['collection']['status']}collection{else}forum{/if}&srchtxt={echo rawurlencode($unique_keyword)}&formhash={FORMHASH}&searchsubmit=true&source=collectionsearch">#$unique_keyword</a></li>
<!--{eval $keycount++;}-->
<!--{/loop}-->
<!--{/if}-->
</ul>
</div>
<!--{/if}-->
<div class="threadlist_foot cl">
<ul>
<li><i class="dm-star-fill"></i>{$collectionvalues['follownum']}</li>
<li><i class="dm-explore"></i>{$collectionvalues['follownum']}</li>
<li><i class="dm-chat-s-fill"></i>{$collectionvalues['commentnum']}</li>
</ul>
</div>
</li>
<!--{/loop}-->
</ul>
</div>
<!--{else}-->
<div class="threadlist_box mt10 cl">
<h4>{lang collection_nocollection}</h4>
</div>
<!--{/if}-->

View File

@@ -0,0 +1,49 @@
<!--{template common/header}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2>
{$_G[username]}{lang somebody_collection}
</h2>
<div class="my">
<!--{if helper_access::check_module('collection')}-->
<a href="forum.php?mod=collection&amp;action=edit"><i class="dm-plus-c"></i></a>
<!--{else}-->
<a href="<!--{if $_G['setting']['mobile']['mobilehotthread']}--><!--{if !empty($_G['setting']['grid']['showgrid'])}-->forum.php<!--{else}-->forum.php?mod=guide&view=newthread<!--{/if}--><!--{else}-->forum.php?forumlist=1<!--{/if}-->"><i class="dm-house"></i></a>
<!--{/if}-->
</div>
</div>
<div class="dhnav_box">
<div id="dhnav">
<div id="dhnav_li">
<ul class="flex-box">
<li id="mycreate"><a href="javascript:;">{lang collection_mycreate}</a></li>
<li id="myteam"><a href="javascript:;">{lang collection_myteam}</a></li>
<li id="mysubscribe"><a href="javascript:;">{lang collection_mysubscribe}</a></li>
</ul>
</div>
</div>
</div>
<!--{hook/collection_index_top}-->
<!--{subtemplate forum/collection_list}-->
<!--{hook/collection_index_bottom}-->
<script>
var mycreate = document.getElementById('mycreate');
var myteam = document.getElementById('myteam');
var mysubscribe = document.getElementById('mysubscribe');
mycreate.onclick = myteam.onclick = mysubscribe.onclick = function() {
mycreate.classList = "flex";
myteam.classList = "flex";
mysubscribe.classList = "flex";
this.classList += " mon";
var lists = document.getElementsByClassName('list');
var mons = document.getElementsByClassName(this.id);
for(var i = 0; i < lists.length; i++) {
lists[i].style.display = "none";
}
for(var i = 0; i < mons.length; i++) {
mons[i].style = "";
}
}
mycreate.onclick();
</script>
<!--{template common/footer}-->

View File

@@ -0,0 +1,9 @@
<div class="dhnv flex-box cl">
<a class="flex{if !$op && !$tid} mon{/if}" href="forum.php?mod=collection">{lang collection_recommended}</a>
<a class="flex{if $op == 'all'} mon{/if}" href="forum.php?mod=collection&amp;op=all">{lang collection_all}</a>
<a class="flex{if $op == 'my'} mon{/if}" href="forum.php?mod=collection&amp;op=my">{lang collection_my}</a>
<!--{if !$op && $tid}-->
<a class="flex mon" href="forum.php?mod=collection&amp;tid=$tid">{lang collection_nav_related}</a>
<!--{/if}-->
<!--{hook/collection_nav_extra}-->
</div>

View File

@@ -0,0 +1,23 @@
<!--{template common/header}-->
<div class="setbox cl" id="recommend">
<form action="forum.php?mod=collection&action=comment&op=recommend&ctid={$ctid}" onsubmit="ajaxpost(this.id, 'form_collectionrecommend');" id="form_collectionrecommend" name="form_collectionrecommend" method="POST">
<input type="hidden" value="{FORMHASH}" name="formhash" />
<input type="hidden" name="inajax" value="1">
<input type="hidden" name="handlekey" value="$_GET['handlekey']">
<ul class="bodybox post_box mt15 cl">
<li class="flex-box mli">
<div class="tit">{lang collection_recommend_thread_url}<span class="f_g">*</span></div>
<div class="flex input"><input type="text" id="formtitle" autocomplete="off" name="threadurl"></div>
</li>
</ul>
<div class="mt5 p10">
<button type="submit" class="formdialog flex pn">{lang collection_recommend_submit}</button>
</div>
</form>
</div>
<style>
#recommend {
background-color: #fff;
}
</style>
<!--{template common/footer}-->

View File

@@ -0,0 +1,42 @@
<!--{template common/header}-->
<div class="tip loginbox loginpop p5" id="floatlayout_collection">
<h2 class="log_tit" id="return_rate"><a href="javascript:;" onclick="popup.close();"><span class="icon_close y">&nbsp;</span></a>{lang collection}</h2>
<form action="forum.php?mod=collection&action=edit&op=addthread" method="post" id="form_addcollectionthread" name="form_addcollectionthread">
<ul class="post_box cl">
<li id="collectionlist" class="flex-box mli" {if $reamincreatenum > 0 && count($allowcollections) <= 0}style="display:none;"{/if}>
<div class="flex tit xs2">{lang collection_select}</div>
<div class="flex-2">
<select name="ctid" id="selectCollection" class="sort_sel">
<!--{loop $collections $collection}-->
<!--{if !is_array($tidcollections) || !in_array($collection['ctid'], $tidcollections)}-->
<option value="$collection['ctid']">$collection['name']</option>
<!--{/if}-->
<!--{/loop}-->
</select>
</div>
</li>
<li class="flex-box mli" {if $reamincreatenum <= 0}style="display:none;"{/if} id="allowcreate">
<div class="flex-3 xs2"><!--{if !$collections}-->{lang collection_select_nocollection}<!--{/if}-->{lang collection_select_remain} <a href="forum.php?mod=collection&action=edit" target="_blank" class="xi2" id="createRemainTips">{lang collection_create}</a></div>
</li>
<dt class="mpt">
<textarea name="reason" id="formreason" cols="50" rows="2" class="pt" placeholder="{lang collection_addreason}"></textarea>
</dt>
</ul>
<!--{if $tid}-->
<input type="hidden" name="tids[]" value="$tid">
<!--{elseif is_array($_GET['tids'])}-->
<!--{loop $_GET['tids'] $tid}-->
<input type="hidden" name="tids[]" value="$tid">
<!--{/if}-->
<!--{/if}-->
<input type="hidden" name="inajax" value="1">
<input type="hidden" name="handlekey" value="$_GET['handlekey']">
<input type="hidden" name="formhash" id="formhash" value="{FORMHASH}" />
<input type="hidden" name="addthread" id="addthread" value="1" />
<dd>
<a href="forum.php?mod=collection&op=my" target="_blank" class="button z">{lang collection_view_mine}</a>
<button type="submit" name="submitaddthread" id="btn_submitaddthread" class="button y formdialog"><span>{lang collection_addbtn}</span></button>
</dd>
</form>
</div>
<!--{template common/footer}-->

View File

@@ -0,0 +1,120 @@
<!--{template common/header}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2>
{lang all}
</h2>
<div class="my">
<a href="#moption" class="popup"><i class="dm-edit"></i></a>
</div>
<div class="mtime">
<div class="dialogbox" id="moption" popup="true" class="manage" style="display:none">
<!--{hook/collection_viewoptions}-->
<!--{if $permission}-->
<a class="button" href="forum.php?mod=collection&action=edit&op=edit&ctid={$_G['collection']['ctid']}&formhash={FORMHASH}">{lang edit}</a>
<input type="button" value="{lang delete}" class="dialog button" href="forum.php?mod=collection&action=edit&op=remove&ctid={$_G['collection']['ctid']}&formhash={FORMHASH}">
<input type="button" value="{lang collection_invite_team}" class="dialog button" href="forum.php?mod=collection&action=edit&op=invite&ctid=$ctid">
<!--{/if}-->
<!--{if $_G['uid']!=$_G['collection']['uid']}-->
<input type="button" value="{lang collection_recommend}" class="dialog button" href="forum.php?mod=collection&action=comment&op=recommend&ctid=$ctid">
<!--{/if}-->
<!--{if $isteamworkers}-->
<input type="button" value="{lang collection_exit_team}" class="dialog button" href="forum.php?mod=collection&action=edit&op=removeworker&ctid={$_G['collection']['ctid']}&uid={$_G['uid']}&formhash={FORMHASH}">
<!--{/if}-->
</div>
</div>
</div>
<!--{hook/collection_view_top}-->
<!--{if $_G['page'] == 1}-->
<div class="forumdisplay-top cl">
<h2>
<!--{if $_G['group']['allowfollowcollection'] && $_G['collection']['uid'] != $_G['uid']}-->
<!--{if !$collectionfollowdata['ctid']}-->
<input type="button" id="a_favorite" value="{lang collection_follow}" class="dialog button" href="forum.php?mod=collection&action=follow&op=follow&ctid={$ctid}&formhash={FORMHASH}">
<!--{else}-->
<input type="button" id="a_favorite" value="{lang collection_unfollow}" class="dialog button" href="forum.php?mod=collection&action=follow&op=unfo&ctid={$ctid}&formhash={FORMHASH}">
<!--{/if}-->
<!--{/if}-->
{$_G['collection']['name']}
</h2>
<p><a href="javascript:;">{lang collection_threadnum}</a><span> {$_G['collection']['threadnum']}</span><a href="javascript:;">{lang collection_commentnum}</a><span> {$_G['collection']['commentnum']}</span><a href="javascript:;">{lang collection_follow}</a><span> {$_G['collection']['follownum']}</span></p> <p class="mt5">
<!--{if $_G['collection']['desc']}-->
{$_G['collection']['desc']}
<!--{/if}-->
<span class="y">
<!--{if $_G['collection']['ratenum'] > 0}-->
<i class="dm-star-fill" style="color: {if (1<=$star)}var(--dz-BG-color){else}#ccc{/if};"></i>
<i class="dm-star-fill" style="color: {if (2<=$star)}var(--dz-BG-color){else}#ccc{/if};"></i>
<i class="dm-star-fill" style="color: {if (3<=$star)}var(--dz-BG-color){else}#ccc{/if};"></i>
<i class="dm-star-fill" style="color: {if (4<=$star)}var(--dz-BG-color){else}#ccc{/if};"></i>
<i class="dm-star-fill" style="color: {if (5<=$star)}var(--dz-BG-color){else}#ccc{/if};"></i>
<!--{else}-->
{lang collection_norate}
<!--{/if}-->
</span>
</p>
</div>
<!--{/if}-->
<div class="dhnav_box">
<div id="dhnav">
<div id="dhnav_li">
<ul class="flex-box">
<li class="flex mon"><a href="javascript:;">{lang all}</a></li>
<li class="flex"><a href="forum.php?mod=collection&action=view&op=comment&ctid={$_G['collection']['ctid']}">{lang collection_commentlist}</a></li>
<li class="flex"><a href="forum.php?mod=collection&action=view&op=followers&ctid={$_G['collection']['ctid']}">{lang collection_followlist}</a></li>
</ul>
</div>
</div>
</div>
<!--{if !$op}-->
<div class="threadlist_box cl">
<div class="threadlist cl">
<ul>
<!--{if $threadlist}-->
<!--{loop $collectiontids $tid $thread}-->
<li class="list">
<div class="threadlist_top cl">
<a href="home.php?mod=space&uid={$thread['authorid']}" class="mimg"><img src="<!--{avatar($thread['authorid'], 'middle', true)}-->"></a>
<div class="muser">
<h3><a href="home.php?mod=space&uid={$thread['authorid']}" class="mmc">{$thread['author']}</a></h3>
<span class="mtime">{$thread['dateline']}</span>
</div>
</div>
<a href="forum.php?mod=viewthread&tid=$tid&extra=$extra">
<div class="threadlist_tit cl">
<em>{$thread['subject']}</em>
</div>
</a>
<div class="threadlist_mes cl">
<span><!--{if $thread['lastposter']}-->$thread[lastposter]<!--{else}-->{$_G['setting']['anonymoustext']}<!--{/if}--></span>
<span>$thread[lastpost]</span>
</div>
<div class="threadlist_foot cl">
<ul>
<li><i class="dm-eye-fill"></i>{$thread['views']}</li>
<li><i class="dm-chat-s-fill"></i>{$thread['replies']}</li>
</ul>
</div>
</li>
<!--{/loop}-->
<!--{else}-->
<h4>
<!--{if $search_status && $isteamworkers && $permission}-->
{lang collection_cloud_search}
<!--{else}-->
{lang no_content}
<!--{/if}-->
</h4>
<!--{/if}-->
</ul>
</div>
</div>
<!--{hook/collection_threadlistbottom}-->
<!--{if $multipage}--><div class="pgs mtm cl">$multipage</div><br /><!--{/if}-->
<!--{elseif $op == 'related'}-->
<!--{hook/collection_relatedop}-->
<!--{/if}-->
<!--{hook/collection_side_bottom}-->
<!--{subtemplate common/footer}-->

View File

@@ -0,0 +1,57 @@
<!--{template common/header}-->
<div class="tip loginbox loginpop p5" id="floatlayout_comment">
<form method="post" autocomplete="off" id="commentform" action="forum.php?mod=post&action=reply&comment=yes&tid=$post['tid']&pid=$_GET['pid']&extra=$extra{if !empty($_GET['page'])}&page=$_GET['page']{/if}&commentsubmit=yes&infloat=yes&inajax=1">
<h2 class="log_tit" id="return_comment"><a href="javascript:;" onclick="popup.close();"><span class="icon_close y">&nbsp;</span></a>{lang comments}</h2>
<input type="hidden" name="formhash" id="formhash" value="{FORMHASH}" />
<input type="hidden" name="handlekey" value="$_GET['handlekey']" />
<!--{if $commentitem}-->
<ul class="post-box cl">
<!--{eval $items = range(0, 5);$itemlang = array('{lang comment_1}', '{lang comment_2}', '{lang comment_3}', '{lang comment_4}', '{lang comment_5}', '{lang comment_6}');$i = $cmm = 0;}-->
<!--{loop $commentitem $item}-->
<!--{eval $item = trim($item);}-->
<!--{if $item}-->
<li class="flex-box">
<div class="flex">$item</div>
<div class="flex-2">
<span id="clct_$i" class="clct_star z">
<a href="javascript:;" onclick="rateStarSet('clct_$i',1,'itemc_$i')"><i class="dm-star-fill"></i></a>
<a href="javascript:;" onclick="rateStarSet('clct_$i',2,'itemc_$i')"><i class="dm-star-fill"></i></a>
<a href="javascript:;" onclick="rateStarSet('clct_$i',3,'itemc_$i')"><i class="dm-star-fill"></i></a>
<a href="javascript:;" onclick="rateStarSet('clct_$i',4,'itemc_$i')"><i class="dm-star-fill"></i></a>
<a href="javascript:;" onclick="rateStarSet('clct_$i',5,'itemc_$i')"><i class="dm-star-fill"></i></a>
</span>
</div>
<input type="hidden" id="itemc_$i" name="commentitem[$item]" value="" />
</li>
<!--{eval $i++;}-->
<!--{/if}-->
<!--{/loop}-->
</ul>
<!--{/if}-->
<dt class="mpt">
<textarea rows="2" cols="50" name="message" id="commentmessage" class="pt" style="overflow: auto"></textarea>
</dt>
<!--{if $secqaacheck || $seccodecheck}-->
<ul class="post-box p5 cl">
<!--{subtemplate common/seccheck}-->
</ul>
<!--{/if}-->
<button type="submit" id="commentsubmit" class="pn pnc formdialog" value="true" name="commentsubmit"{if !$seccodecheck && !$secqaacheck} onmouseover="checkpostrule('seccheck_comment', 'ac=reply&infloat=yes&handlekey=$_GET[handlekey]');this.onmouseover=null"{/if}><span>{lang publish}</span></button>
</form>
</div>
<script type="text/javascript" reload="1">
getID('commentmessage').focus();
function rateStarSet(target, level, input) {
if(input) getID(input).value = level;
var stars = getID(target).children;
for(var i = 0; i < stars.length; i++) {
getID(target).children[i].style.color = (i < level) ? "var(--dz-BG-color)" : "#ccc";
}
}
</script>
<style>
.clct_star a {
color: #ccc;
}
</style>
<!--{template common/footer}-->

View File

@@ -0,0 +1,31 @@
<!--{template common/header}-->
<!--{if $comments}-->
<h3 class="psth xs1"><span class="icon_ring vm"></span>{lang comments}</h3>
<!--{if $totalcomment}--><div class="pstl">$totalcomment</div><!--{/if}-->
<!--{loop $comments $comment}-->
<div class="plc p0 cl" id="commentdetail_{$comment['id']}">
<div class="avatar l0">$comment['avatar']</div>
<div class="display pi">
<ul class="authi">
<li class="mtit">
<span class="y"><!--{if $comment['useip'] && $_G['group']['allowviewip']}-->IP:$comment['useip']{if $comment['port']}:$comment['port']{/if}<!--{/if}--></span>
<span class="z">
<!--{if $comment['authorid']}-->
<a href="home.php?mod=space&uid=$comment['authorid']" class="xi2 xw1">$comment['author']</a>
<!--{else}-->
{lang guest}
<!--{/if}-->
</span>
</li>
<li class="mtime">
<em class="mgl"><!--{if $_G['forum']['ismoderator'] && $_G['group']['allowdelpost']}--><a href="forum.php?mod=topicadmin&action=delcomment&fid={$_G['fid']}&tid={$_G['tid']}&moderate[]={$_G['tid']}&topiclist[]={$comment['id']}&page={$_G['page']}" class="dialog">{lang delete}</a><!--{/if}--></em>
{lang poston} $comment['dateline']
</li>
<li class="mtxt mt5">$comment['comment']</li>
</ul>
</div>
</div>
<!--{/loop}-->
<!--{/if}-->
<div class="pgs page mpage mbm cl">$multi</div>
<!--{template common/footer}-->

View File

@@ -0,0 +1,33 @@
<!--{template common/header}-->
<div class="tip loginbox loginpop p5" id="floatlayout_debateumpire" style="max-height:400px; overflow-y:scroll;">
<form method="post" autocomplete="off" id="postform" action="forum.php?mod=misc&action=debateumpire&tid=$_G[tid]&umpiresubmit=yes&infloat=yes{if !empty($_GET['from'])}&from=$_GET['from']{/if}"{if !empty($_GET['infloat'])} onsubmit="ajaxpost('postform', 'return_$_GET['handlekey']', 'return_$_GET['handlekey']', 'onerror');return false;"{/if}>
<h2 class="log_tit" id="return_debateumpire">{lang debate_umpirecomment}</h2>
<input type="hidden" name="formhash" id="formhash" value="{FORMHASH}" />
<ul class="post_box cl">
<li class="flex-box mli cl">
<div class="flex"><span class="z">{lang debate_winner}</span></div>
<div class="flex"><label><span class="z"><input type="radio" name="winner" value="1" class="pr" $winnerchecked[1] id="winner1" />{lang debate_square}</span></label></div>
<div class="flex"><label><span class="z"><input type="radio" name="winner" value="2" class="pr" $winnerchecked[2] id="winner1" />{lang debate_opponent}</span></label></div>
<div class="flex"><label><span class="z"><input type="radio" name="winner" value="3" class="pr" $winnerchecked[3] id="winner1" />{lang debate_draw}</span></label></div>
</li>
<li class="flex-box mli cl">
<div class="flex"><span class="z">{lang debate_bestdebater}</span></div>
<div class="flex-3">
<select onchange="getID('bestdebater').value=this.options[this.options.selectedIndex].value" class="sort_sel">
<option value=""><strong>{lang debate_recommend_list}</strong></option>
<option value="">------------------------------</option>
<!--{loop $candidates $candidate}-->
<option value="$candidate[username]"{if $candidate[username] == $debate[bestdebater]} selected="selected"{/if}>$candidate[username] ( $candidate[voters] {lang debate_poll}, <!--{if $candidate[stand] == 1}-->{lang debate_square}<!--{elseif $candidate[stand] == 2}-->{lang debate_opponent}<!--{/if}-->)</option>
<!--{/loop}-->
</select>
</div>
</li>
<li class="flex-box mli cl">
<div class="flex"><input type="text" name="bestdebater" id="bestdebater" class="px" value="$debate['bestdebater']" placeholder="{lang debate_list_nonexistence}" /></div>
</li>
</ul>
<dt class="pt10 pb10"><textarea id="umpirepoint" name="umpirepoint" class="pt pxbg" placeholder="{lang debate_umpirepoint}">$debate['umpirepoint']</textarea></dt>
<button class="pn pnc" type="submit" name="umpiresubmit" value="true" class="submit"><span>{lang submit}</span></button>
</form>
</div>
<!--{template common/footer}-->

View File

@@ -0,0 +1,220 @@
<!--{template common/header}-->
<!--{if $_GET['mod'] == 'find'}-->
<!--{template forum/find}-->
<!--{else}-->
<!--{if $_G['setting']['mobile']['forum']['index'] == 1 && empty($_G['cache']['heats']['message']) && $_GET['forumlist'] != 1}-->
<!--{eval dheader('Location:forum.php?mod=guide&view=newthread');exit;}-->
<!--{else}-->
<!--{if ($_G['setting']['mobile']['forum']['index'] && $_GET['forumlist'] != 1) || !$_G['setting']['mobile']['forum']['index']}-->
<div class="header cl">
<div class="mzlogo"><a href="javascript:;">{$_G['style']['touchlogo']}</a></div>
<div class="myss"><a href="search.php?mod=forum"><i class="dm-search"></i>{lang mobsearchtxt}</a></div>
</div>
<!--{else}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2>{$_G['setting']['navs'][2]['navname']}</h2>
<div class="my"><a href="search.php?mod=forum"><i class="dm-search"></i></a></div>
</div>
<!--{/if}-->
<!--{if ($_G['setting']['mobile']['forum']['index'] > 1 && $_GET['forumlist'] != 1)}-->
<!--{if !empty($_G['setting']['grid']['showgrid']) && !$_G['setting']['grid']['gridtype']}-->
<div class="dz-swiper_box dz-swiper">
<ul class="swiper-wrapper">
<!--{loop $grids['slide'] $stid $svalue}-->
<li class="swiper-slide"><a href="{$svalue['url']}"><img src="$svalue['image']" width="100%" class="vm"><span>$svalue['subject']</span></a></li>
<!--{/loop}-->
</ul>
<div class="swiper-forum"></div>
</div>
<script>
var swiper = new Swiper('.dz-swiper', {
autoplay: {
disableOnInteraction: false,
delay: 3000,
},
pagination: {
el: '.swiper-forum',
type: 'fraction',
},
});
</script>
<!--{/if}-->
<!--{hook/index_top}-->
<!--{/if}-->
<!--{if $_G['setting']['mobile']['forum']['index'] > 1 && $_GET['forumlist'] != 1}-->
<!--{eval loadcache(array('forums'));$i=0;}-->
<!--{if !empty($_G['cache']['heats']['message'])}-->
<div class="hotbox cl">
<h2><span>{lang mobredian}</span>{lang mobtuijian}</h2>
<div class="hotbox-toutiao cl">
<ul>
<!--{loop $_G['cache']['heats']['message'] $data}-->
<li><a href="forum.php?mod=viewthread&tid=$data['tid']"><span>$data['subject']</span>$data['message']</a></li>
<!--{/loop}-->
</ul>
</div>
<div class="listbox hotbox-list cl">
<ul>
<!--{loop $_G['cache']['heats']['subject'] $data}-->
<li><a href="forum.php?mod=viewthread&tid=$data['tid']"><span class="mbk">$_G['cache']['forums'][$data['fid']]['name']</span><span class="mx">|</span>$data['subject']</a></li>
<!--{/loop}-->
</ul>
</div>
</div>
<!--{/if}-->
<!--{hook/index_catlist_top}-->
<!--{if !empty($_G['setting']['grid']['showgrid'])}-->
<div class="tabs flex-box mt10 cl">
<a href="javascript:;" class="flex mon">{lang collection_lastthread}</a>
<a href="javascript:;" class="flex">{lang show_newthreads}</a>
<a href="javascript:;" class="flex">{$_G['setting']['navs'][2]['navname']}{lang hot_thread}</a>
<a href="javascript:;" class="flex">{lang post_digest_thread}</a>
<!--{if $_G['setting']['mobile']['forum']['index'] == 2}--><a href="forum.php?forumlist=1" class="flex">{lang forum_list}</a><!--{/if}-->
</div>
<div id="tabs-box" class="swiper-container listbox cl">
<div class="swiper-wrapper">
<div class="swiper-slide">
<ul>
<!--{loop $grids['newthread'] $thread}-->
<!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
<!--{eval $thread['tid']=$thread['closed'];}-->
<!--{/if}-->
<li><a href="forum.php?mod=viewthread&tid=$thread['tid']"{if $thread['highlight']} $thread['highlight']{/if}><span class="mybk">$thread['dateline']</span><span class="mico"></span>{$thread['oldsubject']}</a></li>
<!--{/loop}-->
</ul>
</div>
<div class="swiper-slide">
<ul>
<!--{loop $grids['newreply'] $thread}-->
<!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
<!--{eval $thread['tid']=$thread['closed'];}-->
<!--{/if}-->
<li><a href="forum.php?mod=viewthread&tid=$thread['tid']"{if $thread['highlight']} $thread['highlight']{/if}><span class="mybk">$thread['replies'] {lang reply}</span><span class="mico"></span>{$thread['oldsubject']}</a></li>
<!--{/loop}-->
</ul>
</div>
<div class="swiper-slide">
<ul>
<!--{loop $grids['hot'] $thread}-->
<!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
<!--{eval $thread['tid']=$thread['closed'];}-->
<!--{/if}-->
<!--{eval $i++;}-->
<li><a href="forum.php?mod=viewthread&tid=$thread['tid']"{if $thread['highlight']} $thread['highlight']{/if}><span class="mybk">$thread['views'] {lang mobrenqi}</span><span class="mnum">$i</span>{$thread['oldsubject']}</a></li>
<!--{/loop}-->
</ul>
</div>
<div class="swiper-slide">
<ul>
<!--{loop $grids['digest'] $thread}-->
<!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
<!--{eval $thread['tid']=$thread['closed'];}-->
<!--{/if}-->
<li><a href="forum.php?mod=viewthread&tid=$thread['tid']"{if $thread['highlight']} $thread['highlight']{/if}><span class="mybk">$thread['author']</span><span class="mico"></span>{$thread['oldsubject']}</a></li>
<!--{/loop}-->
</ul>
</div>
</div>
</div>
<script type="text/javascript">
window.onload = function() {
var tabsSwiper = new Swiper('#tabs-box', {
speed: 500,
on: {
slideChangeTransitionStart: function() {
$(".tabs .mon").removeClass('mon');
$(".tabs a").eq(this.activeIndex).addClass('mon');
}
}
})
$(".tabs a").on('click', function(e) {
e.preventDefault()
$(".tabs .mon").removeClass('mon')
$(this).addClass('mon')
tabsSwiper.slideTo($(this).index())
})
}
</script>
<!--{/if}-->
<!--{/if}-->
<!--{if in_array($_G['setting']['mobile']['forum']['index'], array(0,3)) || $_GET['forumlist'] == 1}-->
<!--{if $announcements}-->
<div class="ann-box">
<div class="mtit">{lang announcements}</div>
<div id="ann"><ul>$announcements</ul></div>
</div>
<script type="text/javascript">discuz_loop(24, 30, 3000, 'ann');</script>
<!--{/if}-->
<!--{if $_G['setting']['mobile']['forum']['statshow']}-->
<div class="stat cl">
<ul class="flex-box">
<li class="flex"><em>$todayposts</em>{lang index_today}</li>
<li class="flex"><em>$postdata[0]</em>{lang index_yesterday}</li>
<li class="flex"><em>$posts</em>{lang index_posts}</li>
<li class="flex"><em>$_G['cache']['userstats']['totalmembers']</em>{lang index_members}</li>
</ul>
</div>
<!--{/if}-->
<!--{hook/index_top_mobile}-->
<div class="forumlist cl">
<!--{loop $catlist $key $cat}-->
<div class="subforumshow cl" href="#sub-forum_$cat['fid']">
<i class="{if !$_G['setting']['mobile']['forum']['forumview']}dm-minus-c{else}dm-plus-c{/if}"></i>
<h2><a href="javascript:;">$cat['name']</a></h2>
</div>
<div id="sub-forum_$cat['fid']" class="sub-forum mlist<!--{if $cat['forumcolumns'] == 3}-->3<!--{elseif $cat['forumcolumns'] == 2}-->2<!--{elseif $cat['forumcolumns'] == 1 || $cat['forumcolumns'] == 0}-->1<!--{else}-->4<!--{/if}--> cl">
<ul>
<!--{loop $cat['forums'] $forumid}-->
<!--{eval $forum=$forumlist[$forumid];}-->
<!--{eval $forumurl = !empty($forum['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? $_G['scheme'].'://'.$forum['domain'].'.'.$_G['setting']['domain']['root']['forum'] : 'forum.php?mod=forumdisplay&fid='.$forum['fid'];}-->
<!--{if $forum['permission'] == 1}-->
<li><span class="micon{if $_G['setting']['mobile']['forum']['iconautowidth']} autowidth{/if}"><a href="forum.php?mod=forumdisplay&fid={$forum['fid']}"><!--{if $forum['icon']}-->$forum['icon']<!--{else}--><svg width="48" height="44" alt="$forum['name']"><path fill="#{if $forum['folder']}fdc910{else}c9c9c9{/if}" d="M48 20C48 9 37.3 0 24 0S0 8.9 0 20s10.7 20 24 20c2.4 0 4.7-.3 6.8-.8L42 44l-2.8-8.5C44.6 31.8 48 26.2 48 20z"/></svg><!--{/if}--></a></span>
<a href="forum.php?mod=forumdisplay&fid={$forum['fid']}" class="murl"><p class="mtit">{lang private_forum}<!--{if $forum['todayposts'] > 0 && ($cat['forumcolumns'] == 1 || $cat['forumcolumns'] == 0)}--><span class="mnum">{lang forum_todayposts} $forum['todayposts']</span><!--{/if}--></p></a></li>
<!--{else}-->
<li><span class="micon{if $_G['setting']['mobile']['forum']['iconautowidth']} autowidth{/if}"><a href="forum.php?mod=forumdisplay&fid={$forum['fid']}"><!--{if $forum['icon']}-->$forum['icon']<!--{else}--><svg width="48" height="44" alt="$forum['name']"><path fill="#{if $forum['folder']}fdc910{else}c9c9c9{/if}" d="M48 20C48 9 37.3 0 24 0S0 8.9 0 20s10.7 20 24 20c2.4 0 4.7-.3 6.8-.8L42 44l-2.8-8.5C44.6 31.8 48 26.2 48 20z"/></svg><!--{/if}--></a></span>
<a href="forum.php?mod=forumdisplay&fid={$forum['fid']}" class="murl"><p class="mtit">{$forum['name']}<!--{if $forum['todayposts'] > 0 && ($cat['forumcolumns'] == 1 || $cat['forumcolumns'] == 0)}--><span class="mnum">{lang forum_todayposts} $forum['todayposts']</span><!--{/if}--></p>
<!--{if $cat['forumcolumns'] < 3}--><!--{if $forum['redirect']}--><p class="mtxt">{lang url_link}</p><!--{else}--><p class="mtxt"><!--{if $cat['forumcolumns'] == 2}-->{lang mobposts}: <!--{echo dnumber($forum['posts'])}--><!--{if $forum['todayposts'] > 0}--><span class="mnum">{lang forum_todayposts}: $forum['todayposts']</span><!--{/if}--><!--{else}--><!--{if $forum['description']}-->$forum['description']<!--{else}-->{lang mobnodescription}<!--{/if}--><!--{/if}--></p><!--{/if}--><!--{/if}--></a></li>
<!--{/if}-->
<!--{/loop}-->
</ul>
</div>
<!--{/loop}-->
</div>
<!--{hook/index_middle_mobile}-->
<script type="text/javascript">
(function() {
<!--{if !$_G['setting']['mobile']['forum']['forumview']}-->
$('.sub-forum').css('display', 'block');
<!--{else}-->
$('.sub-forum').css('display', 'none');
<!--{/if}-->
$('.subforumshow').on('click', function() {
var obj = $(this);
var subobj = $(obj.attr('href'));
if(subobj.css('display') == 'none') {
subobj.css('display', 'block');
obj.find('i').removeClass().addClass('dm-minus-c');
} else {
subobj.css('display', 'none');
obj.find('i').removeClass().addClass('dm-plus-c');
}
});
})();
</script>
<!--{/if}-->
<div class="footer mt10 cl">
<div class="footer-nv">
<a href="javascript:;" class="mon">{lang mobile2version}</a>|<a
href="{$_G['setting']['mobile']['nomobileurl']}">{lang nomobiletype}</a><!--{if $clienturl}-->|<a
href="$clienturl">{lang clientversion}</a><!--{/if}-->
</div>
<div class="footer-copy mt10">
<!--{if $_G['setting']['icp'] || $_G['setting']['mps']}--><!--{if $_G['setting']['icp']}--><a href="https://beian.miit.gov.cn/" target="_blank">$_G['setting']['icp']</a><!--{/if}--><!--{if $_G['setting']['mps']}--><a href="https://beian.mps.gov.cn/#/query/webSearch?code=$_G['setting']['mpsid']" target="_blank"><img width="14" height="14" src="{IMGDIR}/ico_mps.png" />$_G['setting']['mps']</a><!--{/if}--><br><!--{/if}-->
Powered by Discuz! <em>$_G['setting']['version']</em>
<p class="xs0">{lang copyright}</p>
</div>
</div>
<!--{/if}-->
<!--{/if}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,163 @@
{eval
function tpl_hide_credits_hidden($creditsrequire) {
global $_G;
}
<!--{block return}--><div class="locked"><!--{if $_G['uid']}-->{$_G['username']}<!--{else}-->{lang guest}<!--{/if}-->{lang post_hide_credits_hidden}</div><!--{/block}-->
<!--{eval return $return;}-->
{eval
}
function tpl_hide_credits($creditsrequire, $message) {
}
<!--{block return}--><div class="locked">{lang post_hide_credits}</div>
$message<br /><br />
<!--{/block}-->
<!--{eval return $return;}-->
{eval
}
function tpl_codedisp($code) {
$randomid = 'code_'.random(3);
}
<!--{block return}--><div class="blockcode"><div id="$randomid"><ol><li>$code</ol></div><em onclick="copycode(getID('$randomid'));">{lang discuzcode_copyclipboard}</em></div><!--{/block}-->
<!--{eval return $return;}-->
{eval
}
function tpl_quote() {
}
<!--{block return}--><div class="quote"><blockquote>\\1</blockquote></div><!--{/block}-->
<!--{eval return $return;}-->
{eval
}
function tpl_free() {
}
<!--{block return}--><div class="quote"><blockquote>\\1</blockquote></div><!--{/block}-->
<!--{eval return $return;}-->
{eval
}
function tpl_hide_reply() {
global $_G;
}
<!--{block return}--><div class="showhide"><h4>{lang post_hide}</h4>\\1</div>
<!--{/block}-->
<!--{eval return $return;}-->
{eval
}
function tpl_hide_reply_hidden() {
global $_G;
}
<!--{block return}--><div class="locked"><!--{if $_G['uid']}-->{$_G['username']}<!--{else}-->{lang guest}<!--{/if}-->{lang post_hide_reply_hidden}</div><!--{/block}-->
<!--{eval return $return;}-->
{eval
}
function attachlist($attach) {
global $_G;
$attach['refcheck'] = (!$attach['remote'] && $_G['setting']['attachrefcheck']) || ($attach['remote'] && ($_G['setting']['ftp']['hideurl'] || ($attach['isimage'] && $_G['setting']['attachimgpost'] && strtolower(substr($_G['setting']['ftp']['attachurl'], 0, 3)) == 'ftp')));
$aidencode = packaids($attach);
$is_archive = $_G['forum_thread']['is_archived'] ? "&fid=".$_G['fid']."&archiveid=".$_G['forum_thread']['archiveid'] : '';
$pluginhook = !empty($_G['setting']['pluginhooks']['viewthread_attach_extra'][$attach['aid']]) ? $_G['setting']['pluginhooks']['viewthread_attach_extra'][$attach['aid']] : '';
}
<!--{block return}-->
<li class="b_t p5">
<!--{if !$attach['price'] || $attach['payed']}--><a href="forum.php?mod=attachment{$is_archive}&aid=$aidencode" id="aid$attach['aid']" target="_blank"><!--{else}--><a href="forum.php?mod=misc&action=attachpay&aid=$attach['aid']&tid=$attach['tid']" class="dialog"><!--{/if}-->
<div class="tit">
<!--{if $_G['setting']['mobile']['mobilesimpletype'] == 0}-->$attach['attachicon']<!--{/if}-->
<span class="link f_b">$attach['filename']</span>
<p class="pl5 f_9">$attach['dateline'] {lang upload}</p>
<p class="pl5 f_9">$attach['attachsize']<!--{if $attach['readperm']}-->, {lang readperm}: <strong>$attach['readperm']</strong><!--{/if}--><!--{if !$_G['setting']['hideattachdown']}-->, {lang downloads}: $attach['downloads']<!--{/if}--><!--{if !$attach['attachimg'] && $_G['getattachcredits']}-->, {lang attachcredits}: $_G['getattachcredits']<!--{/if}--></p>
<!--{if $attach['price']}-->
<p class="pl5 f_9">
{lang price}: <strong class="xi1">$attach['price'] {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][unit]}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]}</strong> &nbsp;[<a href="forum.php?mod=misc&action=viewattachpayments&aid=$attach['aid']" class="dialog">{lang pay_view}</a>]
<!--{if !$attach['payed']}-->
&nbsp;[<a href="forum.php?mod=misc&action=attachpay&aid=$attach['aid']&tid=$attach['tid']" class="dialog">{lang attachment_buy}</a>]
<!--{/if}-->
</p>
<!--{/if}-->
</div>
</a>
<div><!--{if $attach['description']}--><p class="f_9">{$attach['description']}</p><!--{/if}--></div>
$pluginhook
</li>
<!--{/block}-->
<!--{eval return $return;}-->
{eval
}
function imagelist($attach, $firstpost = 0) {
global $_G, $post;
$fix = count($post['imagelist']) == 1 ? 1000 : 1500;
$fixtype = count($post['imagelist']) == 1 ? 'fixnone' : 'fixwr';
$attach['refcheck'] = (!$attach['remote'] && $_G['setting']['attachrefcheck']) || ($attach['remote'] && ($_G['setting']['ftp']['hideurl'] || ($attach['isimage'] && $_G['setting']['attachimgpost'] && strtolower(substr($_G['setting']['ftp']['attachurl'], 0, 3)) == 'ftp')));
$mobilethumburl = $attach['attachimg'] && $_G['setting']['showimages'] && (!$attach['price'] || $attach['payed']) && ($_G['group']['allowgetimage'] || $_G['uid'] == $attach['uid']) ? getforumimg($attach['aid'], 0, $fix, 99999, 1) : '' ;
$aidencode = packaids($attach);
$is_archive = $_G['forum_thread']['is_archived'] ? "&fid=".$_G['fid']."&archiveid=".$_G['forum_thread']['archiveid'] : '';
$pluginhook = !empty($_G['setting']['pluginhooks']['viewthread_attach_extra'][$attach['aid']]) ? $_G['setting']['pluginhooks']['viewthread_attach_extra'][$attach['aid']] : '';
$guestviewthumb = !empty($_G['setting']['guestviewthumb']['flag']) && !$_G['uid'];
$mobileguestviewthumburl = $guestviewthumb ? ($attach['attachimg'] && $_G['setting']['showimages'] && (((!$attach['price'] || $attach['payed']) && ($_G['group']['allowgetimage'] || $_G['uid'] == $attach['uid'])) || ($guestviewthumb)) ? getforumimg($attach['aid'], 0, $_G['setting']['guestviewthumb']['width'], $_G['setting']['guestviewthumb']['height'], 1) : '') : '';
}
<!--{block return}-->
<!--{if $attach['attachimg'] && $_G['setting']['showimages'] && (((!$attach['price'] || $attach['payed']) && ($_G['group']['allowgetimage'] || $_G['uid'] == $attach['uid'])) || ($guestviewthumb))}-->
<!--{if $_G['setting']['mobile']['mobilesimpletype'] == 0}-->
<li><a href="forum.php?mod=viewthread&tid=$attach['tid']&aid=$attach['aid']&from=album&page=$_G['page']" class="orange"><img id="aimg_$attach['aid']" src="{if $guestviewthumb}$mobileguestviewthumburl{elseif $attach['refcheck']}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes&nothumb=yes{else}{$attach['url']}{$attach['attachment']}{/if}" alt="$attach['imgalt']" /></a>
$pluginhook
</li>
<!--{/if}-->
<!--{/if}-->
<!--{/block}-->
<!--{eval return $return;}-->
{eval
}
function attachinpost($attach, $post) {
global $_G;
$attach['refcheck'] = (!$attach['remote'] && $_G['setting']['attachrefcheck']) || ($attach['remote'] && ($_G['setting']['ftp']['hideurl'] || ($attach['isimage'] && $_G['setting']['attachimgpost'] && strtolower(substr($_G['setting']['ftp']['attachurl'], 0, 3)) == 'ftp')));
$mobilethumburl = $attach['attachimg'] && $_G['setting']['showimages'] && (!$attach['price'] || $attach['payed']) && ($_G['group']['allowgetimage'] || $_G['uid'] == $attach['uid']) ? getforumimg($attach['aid'], 0, 200, 200, 'fixnone') : '' ;
$aidencode = packaids($attach);
$is_archive = $_G['forum_thread']['is_archived'] ? '&fid='.$_G['fid'].'&archiveid='.$_G['forum_thread']['archiveid'] : '';
$guestviewthumb = !empty($_G['setting']['guestviewthumb']['flag']) && !$_G['uid'];
$mobileguestviewthumburl = $guestviewthumb ? ($attach['attachimg'] && $_G['setting']['showimages'] && (((!$attach['price'] || $attach['payed']) && ($_G['group']['allowgetimage'] || $_G['uid'] == $attach['uid'])) || ($guestviewthumb)) ? getforumimg($attach['aid'], 0, $_G['setting']['guestviewthumb']['width'], $_G['setting']['guestviewthumb']['height'], 1) : '') : '';
}
<!--{block return}-->
<!--{if $attach['attachimg'] && $_G['setting']['showimages'] && (((!$attach['price'] || $attach['payed']) && ($_G['group']['allowgetimage'] || $_G['uid'] == $attach['uid'])) || ($guestviewthumb))}-->
<!--{if $_G['setting']['mobile']['mobilesimpletype'] == 0}-->
<a href="forum.php?mod=viewthread&tid=$attach['tid']&aid=$attach['aid']&from=album&page=$_G['page']" class="orange"><img id="aimg_$attach['aid']" src="{if $guestviewthumb}$mobileguestviewthumburl{elseif $attach['refcheck']}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes&nothumb=yes{else}{$attach['url']}{$attach['attachment']}{/if}" alt="$attach['imgalt']" /></a>
<!--{/if}-->
<!--{else}-->
<ul id="attach_$attach['aid']" class="quote post_attlist cl" >
<li class="p5">
<!--{if !$attach['price'] || $attach['payed']}-->
<a href="forum.php?mod=attachment{$is_archive}&aid=$aidencode" target="_blank">
<!--{else}-->
<a href="forum.php?mod=misc&action=attachpay&aid=$attach['aid']&tid=$attach['tid']" class="dialog">
<!--{/if}-->
<div class="tit">
<!--{if $_G['setting']['mobile']['mobilesimpletype'] == 0}--><span class="z mr5 cl">$attach['attachicon']</span><!--{/if}-->
<span class="link f_b">$attach['filename']</span>
<p class="pl5 f_9">$attach['dateline'] {lang upload}</p>
<p class="pl5 f_9">$attach['attachsize']<!--{if !$_G['setting']['hideattachdown']}-->, {lang downloads}: $attach['downloads']<!--{/if}--><!--{if !$attach['attachimg'] && $_G['getattachcredits']}-->, {lang attachcredits}: $_G['getattachcredits']<!--{/if}--></p>
<!--{if $attach['readperm']}--><p class="pl5 f_9">{lang readperm}: <strong>$attach['readperm']</strong></p><!--{/if}-->
<!--{if $attach['price']}-->
<p class="pl5 f_9 xg1">
{lang price}: <strong class="xi1">$attach['price'] {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][unit]}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]}</strong> &nbsp;[<a href="forum.php?mod=misc&action=viewattachpayments&aid=$attach['aid']" class="dialog">{lang pay_view}</a>]
<!--{if !$attach['payed']}-->
&nbsp;[<a href="forum.php?mod=misc&action=attachpay&aid=$attach['aid']&tid=$attach['tid']" class="dialog">{lang attachment_buy}</a>]
<!--{/if}-->
</p>
<!--{/if}-->
</div>
</a>
<div><!--{if $attach['description']}--><p class="f_9 xg1">{$attach['description']}</p><!--{/if}--></div>
</li>
</ul>
<!--{/if}-->
<!--{/block}-->
<!--{eval return $return;}-->
<!--{eval
}
}-->

View File

@@ -0,0 +1,15 @@
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2>{lang mobfind}</h2>
<div class="my"></div>
</div>
<div class="findbox cl">
<ul>
<!--{loop $_G['setting']['mfindnavs'] $nav}-->
<!--{if is_array($nav) && $nav['available'] && ($nav['type'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1)) || !$nav['type'])}-->
<li><a href="$nav[url]"><i class="dm-c-right"></i>$nav[name]</a></li>
<!--{/if}-->
<!--{/loop}-->
<!--{hook/index_find_extra_mobile}-->
</ul>
</div>

View File

@@ -0,0 +1,190 @@
<!--{template common/header}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2><!--{eval echo strip_tags($_G['forum']['name']) ? strip_tags($_G['forum']['name']) : $_G['forum']['name'];}--></h2>
<div class="my"><a href="forum.php?mod=post&action=newthread&fid={$_G['fid']}"><i class="dm-edit"></i></a></div>
</div>
<!--{hook/forumdisplay_top_mobile}-->
<div class="forumdisplay-top cl">
<h2>
<!--{if $_G['forum']['icon']}--><img src="<!--{echo get_forumimg($_G['forum']['icon'])}-->" alt="$_G['forum']['name']" /><!--{else}--><svg width="48" height="44" alt="$_G['forum']['name']"><path fill="#c9c9c9" d="M48 20C48 9 37.3 0 24 0S0 8.9 0 20s10.7 20 24 20c2.4 0 4.7-.3 6.8-.8L42 44l-2.8-8.5C44.6 31.8 48 26.2 48 20z"/></svg><!--{/if}-->
<!--{if helper_access::check_module('favorite')}-->
<a href="home.php?mod=spacecp&ac=favorite&type=forum&id=$_G['fid']&handlekey=favoriteforum&formhash={FORMHASH}" id="a_favorite" class="dialog">{lang favorite}<span id="number_favorite" {if !$_G['forum']['favtimes']} style="display:none;"{/if}><span id="number_favorite_num"> +{$_G['forum']['favtimes']}</span></span></a>
<!--{/if}-->
$_G['forum']['name']
</h2>
<p>{lang index_today}: <span>$_G['forum']['todayposts']</span>{lang index_threads}: <span>$_G['forum']['threads']</span><!--{if $_G['forum']['rank']}-->{lang rank}: <span>$_G['forum']['rank']</span><!--{/if}--></p>
<!--{hook/forumdisplay_nav_mobile}-->
</div>
<div class="dhnav_box">
<div id="dhnav">
<div id="dhnav_li">
<ul class="flex-box">
<li class="flex{if $_REQUEST['sortall']==1||(!$_REQUEST['typeid'] && !$_REQUEST['sortid']&& !$_REQUEST['filter'])} mon{/if}"><a href="forum.php?mod=forumdisplay&fid=$_G['fid']{if $_G['forum']['threadsorts']['defaultshow']}&filter=sortall&sortall=1{/if}{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang all}</a></li>
<li class="flex{if $_GET['filter'] == 'lastpost'} mon{/if}"><a href="forum.php?mod=forumdisplay&fid=$_G['fid']&filter=lastpost&orderby=lastpost$forumdisplayadd['lastpost']{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang latest}</a></li>
<li class="flex{if $_GET['filter'] == 'heat'} mon{/if}"><a href="forum.php?mod=forumdisplay&fid=$_G['fid']&filter=heat&orderby=heats$forumdisplayadd['heat']{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang order_heats}</a></li>
<li class="flex{if $_GET['filter'] == 'hot'} mon{/if}"><a href="forum.php?mod=forumdisplay&fid=$_G['fid']&filter=hot">{lang hot_thread}</a></li>
<li class="flex{if $_GET['filter'] == 'digest'} mon{/if}"><a href="forum.php?mod=forumdisplay&fid=$_G['fid']&filter=digest&digest=1$forumdisplayadd['digest']{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang digest_posts}</a></li>
</ul>
</div>
</div>
</div>
<!--{hook/forumdisplay_middle}-->
<!--{if $_G['forum']['threadsorts'] || ($_G['forum']['threadtypes'] && $_G['forum']['threadtypes']['listable'])}-->
<div class="dhnavs_box">
<div id="dhnavs">
<div id="dhnavs_li">
<ul class="swiper-wrapper">
<!--{if ($_G['forum']['threadtypes'] && $_G['forum']['threadtypes']['listable'])}-->
<!--{if $_G['forum']['threadtypes']}-->
<!--{loop $_G['forum']['threadtypes']['types'] $id $name}-->
<li class="swiper-slide{if $_GET['typeid'] == $id} mon{/if}"><a href="forum.php?mod=forumdisplay&fid=$_G['fid']&filter=typeid&typeid=$id$forumdisplayadd['typeid']{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">$name</a></li>
<!--{/loop}-->
<!--{/if}-->
<!--{/if}-->
<!--{if $_G['forum']['threadsorts']}-->
<!--{loop $_G['forum']['threadsorts']['types'] $id $name}-->
<!--{if $_GET['sortid'] == $id}-->
<li class="swiper-slide mon"><a href="forum.php?mod=forumdisplay&fid=$_G['fid']{if $_GET['typeid']}&filter=typeid&typeid=$_GET['typeid']{/if}{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">$name</a></li>
<!--{else}-->
<li class="swiper-slide"><a href="forum.php?mod=forumdisplay&fid=$_G['fid']&filter=sortid&sortid=$id$forumdisplayadd['sortid']{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">$name</a></li>
<!--{/if}-->
<!--{/loop}-->
<!--{/if}-->
</ul>
</div>
</div>
</div>
<script>
if($("#dhnavs_li .mon").length > 0) {
var discuz_nav = $("#dhnavs_li .mon").offset().left + $("#dhnavs_li .mon").width() >= $(window).width() ? $("#dhnavs_li .mon").index() : 0;
}else{
var discuz_nav = 0;
}
new Swiper('#dhnavs_li', {
freeMode : true,
slidesPerView : 'auto',
initialSlide : discuz_nav,
onTouchMove: function(swiper){
Discuz_Touch_on = 0;
},
onTouchEnd: function(swiper){
Discuz_Touch_on = 1;
},
});
</script>
<!--{/if}-->
<!--{if $subexists && $_G['page'] == 1}--><!--{template forum/forumdisplay_subforum}--><!--{/if}-->
<!--{if !$subforumonly}-->
<div class="threadlist_box<!--{if ((in_array($thread['displayorder'], array(1, 2, 3, 4))) || !empty($announcement)) && $_G['page'] == 1}--> mt10<!--{/if}--> cl">
<div class="threadlist cl">
<ul>
<!--{if !empty($announcement)}-->
<li class="list_top"><!--{if empty($announcement['type'])}--><a href="forum.php?mod=announcement&id=$announcement['id']#$announcement['id']"><!--{else}--><a href="$announcement['message']"><!--{/if}--><span class="micon gonggao">{lang announcement}</span>$announcement['subject']</a></li>
<!--{/if}-->
<!--{if $_G['forum_threadcount']}-->
<!--{loop $_G['forum_threadlist'] $key $thread}-->
<!--{if !$_G['setting']['mobile']['forum']['displayorder3'] && $thread['displayorder'] > 0}-->
{eval continue;}
<!--{/if}-->
<!--{if $thread['displayorder'] > 0 && !$displayorder_thread}-->
{eval $displayorder_thread = 1;}
<!--{/if}-->
<!--{if $thread['moved']}-->
<!--{eval $thread['tid']=$thread['closed'];}-->
<!--{/if}-->
<!--{if in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
<li class="list_top">
<a href="forum.php?mod=viewthread&tid=$thread['tid']&extra=$extra">
<!--{if in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
<span class="micon">{lang mobzhiding}</span>
<!--{/if}-->
<em $thread['highlight']>{$thread['subject']}</em>
</a>
</li>
<!--{else}-->
<li class="list">
<!--{hook/forumdisplay_thread_mobile $key}-->
<div class="threadlist_top cl">
<!--{if $thread['authorid'] && $thread['author']}-->
<a href="home.php?mod=space&uid={$thread['authorid']}" class="mimg"><img src="<!--{avatar($thread['authorid'], 'middle', true)}-->"></a>
<!--{else}-->
<a href="javascript:;" class="mimg"><img src="<!--{avatar(0, 'middle', true)}-->" /></a>
<!--{/if}-->
<div class="muser">
<h3>
<!--{if $thread['authorid'] && $thread['author']}-->
<a href="home.php?mod=space&uid={$thread['authorid']}" class="mmc">{$thread['author']}</a>
<!--{else}-->
{$_G['setting']['anonymoustext']}
<!--{/if}-->
</h3>
<span class="mtime">{$thread['dateline']}</span>
</div>
</div>
<a href="forum.php?mod=viewthread&tid=$thread['tid']&extra=$extra">
<div class="threadlist_tit cl">
<!--{if $thread['folder'] == 'lock'}-->
<span class="micon lock">{lang closed_thread}</span>
<!--{elseif $thread['special'] == 1}-->
<span class="micon">{lang thread_poll}</span>
<!--{elseif $thread['special'] == 2}-->
<span class="micon">{lang thread_trade}</span>
<!--{elseif $thread['special'] == 3}-->
<span class="micon">{lang thread_reward}</span>
<!--{elseif $thread['special'] == 4}-->
<span class="micon">{lang thread_activity}</span>
<!--{elseif $thread['special'] == 5}-->
<span class="micon">{lang thread_debate}</span>
<!--{/if}-->
<!--{if $thread['attachment'] == 2 && $_G['setting']['mobile']['mobilesimpletype'] == 1}-->
<span class="micon">{lang mobtu}</span>
<!--{/if}-->
<!--{if in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
<span class="micon top">{lang thread_sticky}</span>
<!--{/if}-->
<!--{if $thread['digest'] > 0}-->
<span class="micon digest">{lang thread_digest}</span>
<!--{/if}-->
<em $thread['highlight']>{$thread['subject']}</em>
</div>
</a>
<a href="forum.php?mod=viewthread&tid=$thread['tid']&extra=$extra"><div class="threadlist_mes cl">{$threadlist_data[$thread['tid']]['message']}</div></a>
<!--{if $threadlist_data[$thread['tid']]['attachment']}-->
<!--{eval $attach_on = 0;}-->
<a href="forum.php?mod=viewthread&tid=$thread['tid']&extra=$extra">
<div class="{if count($threadlist_data[$thread['tid']]['attachment']) == 1}threadlist_imgs1 {elseif count($threadlist_data[$thread['tid']]['attachment']) == 2} threadlist_imgs threadlist_imgs2{else} threadlist_imgs{/if} cl">
<ul>
<!--{loop $threadlist_data[$thread['tid']]['attachment'] $value}-->
<!--{eval $attach_on++; if($attach_on > 9) break;}-->
<li><!--{if count($threadlist_data[$thread['tid']]['attachment']) > 9 && $attach_on == 9}--><em>{echo count($threadlist_data[$thread['tid']]['attachment'])}{lang mobtu}</em><!--{/if}--><img src="$value" class="vm"></li>
<!--{/loop}-->
</ul>
</div>
</a>
<!--{/if}-->
<!--{hook/forumdisplay_thread_content_mobile $key}-->
<div class="threadlist_foot cl">
<ul>
<!--{if $thread['typeid']}-->
<li class="mr"><a href="forum.php?mod=forumdisplay&fid=$thread['fid']&filter=typeid&typeid=$thread['typeid']">#{$_G['forum']['threadtypes']['types'][$thread['typeid']]}</a></li>
<!--{/if}-->
<li><i class="dm-eye-fill"></i>{$thread['views']}</li>
<li><i class="dm-chat-s-fill"></i>{$thread['replies']}</li>
<!--{hook/forumdisplay_thread_foot_mobile $key}-->
</ul>
</div>
</li>
<!--{/if}-->
<!--{/loop}-->
<!--{else}-->
<h4>{lang forum_nothreads}</h4>
<!--{/if}-->
</ul>
</div>
$multipage
</div>
<!--{/if}-->
<!--{hook/forumdisplay_bottom_mobile}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,115 @@
<div id="post_new"></div>
<div class="plc cl">
<form method="post" autocomplete="off" id="fastpostform" action="forum.php?mod=post&action=reply&fid=$_G['fid']&tid=$_G['tid']&extra=$_GET['extra']&replysubmit=yes&mobile=2">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<span class="avatar"><img style="height:32px;width:32px;" src="<!--{avatar($_G['uid'], 'small', true)}-->" /></span>
<div class="pi">
<ul class="fastpost">
<!--{if $_G['forum_thread']['special'] == 5 && empty($firststand)}-->
<li>
<select id="stand" name="stand" >
<option value="">{lang debate_viewpoint}</option>
<option value="0">{lang debate_neutral}</option>
<option value="1">{lang debate_square}</option>
<option value="2">{lang debate_opponent}</option>
</select>
</li>
<!--{/if}-->
<li><input type="text" value="{lang send_reply_fast_tip}" class="input grey" color="gray" name="message" id="fastpostmessage"></li>
<li id="fastpostsubmitline" style="display:none;"><!--{if $secqaacheck || $seccodecheck}--><!--{subtemplate common/seccheck}--><!--{/if}--><input type="button" value="{lang reply}" class="button2" name="replysubmit" id="fastpostsubmit"><a href="forum.php?mod=post&action=reply&fid=$_G['fid']&tid=$_G['tid']&reppost=$_G['forum_firstpid']&page=$page" class="y" style="height:30px;width:30px;margin-top:7px;background:url({STATICURL}image/mobile/images/icon_photo.png) no-repeat"><span class="none">{lang reply}</span></a><!--{hook/viewthread_fastpost_button_mobile}--></li>
</ul>
</div>
</form>
</div>
<script type="text/javascript">
(function() {
var form = $('#fastpostform');
<!--{if !$_G['uid'] || $_G['uid'] && !$allowpostreply}-->
$('#fastpostmessage').on('focus', function() {
<!--{if !$_G['uid']}-->
popup.open('{lang nologin_tip}', 'confirm', 'member.php?mod=logging&action=login');
<!--{else}-->
popup.open('{lang nopostreply}', 'alert');
<!--{/if}-->
this.blur();
});
<!--{else}-->
$('#fastpostmessage').on('focus', function() {
var obj = $(this);
if(obj.attr('color') == 'gray') {
obj.attr('value', '');
obj.removeClass('grey');
obj.attr('color', 'black');
$('#fastpostsubmitline').css('display', 'block');
}
})
.on('blur', function() {
var obj = $(this);
if(obj.attr('value') == '') {
obj.addClass('grey');
obj.attr('value', '{lang send_reply_fast_tip}');
obj.attr('color', 'gray');
}
});
<!--{/if}-->
$('#fastpostsubmit').on('click', function() {
var msgobj = $('#fastpostmessage');
if(msgobj.val() == '{lang send_reply_fast_tip}') {
msgobj.attr('value', '');
}
$.ajax({
type:'POST',
url:form.attr('action') + '&handlekey=fastpost&loc=1&inajax=1',
data:form.serialize(),
dataType:'xml'
})
.success(function(s) {
evalscript(s.lastChild.firstChild.nodeValue);
})
.error(function() {
window.location.href = obj.attr('href');
popup.close();
});
return false;
});
$('#replyid').on('click', function() {
$(document).scrollTop($(document).height());
$('#fastpostmessage')[0].focus();
});
})();
function succeedhandle_fastpost(locationhref, message, param) {
var pid = param['pid'];
var tid = param['tid'];
var reply_mod = param['reply_mod'];
if(!reply_mod) {
$.ajax({
type:'POST',
url:'forum.php?mod=viewthread&tid=' + tid + '&viewpid=' + pid + '&mobile=2',
dataType:'xml'
})
.success(function(s) {
$('#post_new').append(s.lastChild.firstChild.nodeValue);
})
.error(function() {
window.location.href = 'forum.php?mod=viewthread&tid=' + tid;
popup.close();
});
} else {
if(!message) {
message = '{lang postreplyneedmod}';
}
popup.open(message, 'alert');
}
$('#fastpostmessage').attr('value', '');
if(param['sechash']) {
$('.seccodeimg').click();
}
}
function errorhandle_fastpost(message, param) {
popup.open(message, 'alert');
}
</script>

View File

@@ -0,0 +1,19 @@
<!--{template common/header}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2><!--{eval echo strip_tags($_G['forum']['name']) ? strip_tags($_G['forum']['name']) : $_G['forum']['name'];}--></h2>
<div class="my"><a href="forum.php?mod=post&action=newthread&fid={$_G['fid']}"><i class="dm-edit"></i></a></div>
</div>
<div class="loginbox">
<form method="post" autocomplete="off" action="forum.php?mod=forumdisplay&fid={$_G['fid']}&action=pwverify">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<div class="login_from">
<div class="message">{lang forum_password_require}</div>
<ul>
<li><input type="password" class="px" value="" name="pw"></li>
</ul>
</div>
<div class="btn_login"><button value="true" name="loginsubmit" type="submit" class="formdialog pn">{lang submit}</button></div>
</form>
</div>
<!--{template common/footer}-->

View File

@@ -0,0 +1,17 @@
<div class="forumlist cl">
<div class="subforumshow cl">
<h2><a href="javascript:;"><em></em>{lang forum_subforums}</a></h2>
</div>
<div id="sub-forum_$_G['forum']['fid']" class="sub-forum mlist4 cl">
<ul>
<!--{loop $sublist $sub}-->
<!--{eval $forumurl = !empty($sub['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? $_G['scheme'].'://'.$sub['domain'].'.'.$_G['setting']['domain']['root']['forum'] : 'forum.php?mod=forumdisplay&fid='.$sub['fid'];}-->
<li>
<span class="micon{if $_G['setting']['mobile']['forum']['iconautowidth']} autowidth{/if}"><!--{if $sub['icon']}-->$sub['icon']<!--{else}--><a href="$forumurl"><svg width="48" height="44" alt="$sub['name']"><path fill="#{if $forum['folder']}fdc910{else}c9c9c9{/if}" d="M48 20C48 9 37.3 0 24 0S0 8.9 0 20s10.7 20 24 20c2.4 0 4.7-.3 6.8-.8L42 44l-2.8-8.5C44.6 31.8 48 26.2 48 20z"/></svg></a><!--{/if}--></span>
<a href="$forumurl" class="murl"><p class="mtit"><!--{if $forum['permission'] == 1}-->{lang private_forum}<!--{else}-->{$sub['name']}<!--{/if}--></p></a>
</li>
<!--{hook/forumdisplay_subforum_extra_mobile $sub['fid']}-->
<!--{/loop}-->
</ul>
</div>
</div>

View File

@@ -0,0 +1,34 @@
<!--{template common/header}-->
<!--{if $_G['setting']['mobile']['mobilehotthread']}-->
<!--{if !empty($_G['setting']['grid']['showgrid'])}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div><h2></h2><div class="my"></div>
</div>
<div class="header_toplogo">{$_G['style']['touchlogo']}<p>{$_G['setting']['navs'][2]['navname']}{lang guide}</p></div>
<!--{else}-->
<div class="header cl"></div>
<div class="header_toplogo guide_index">
{$_G['style']['touchlogo']}
<div class="mtop_ss"><a href="search.php?mod=forum"><i class="dm-search"></i>{lang mobsearchtxt}</a></div>
</div>
<!--{/if}-->
<!--{else}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div><h2></h2><div class="my"></div>
</div>
<div class="header_toplogo">{$_G['style']['touchlogo']}<p>{$_G['setting']['navs'][2]['navname']}{lang guide}</p></div>
<!--{/if}-->
<div class="dhnv flex-box cl">
<a href="forum.php?mod=guide&view=newthread" class="flex<!--{if $currentview['newthread']}--> mon<!--{/if}-->">{lang latest}</a>
<a href="forum.php?mod=guide&view=hot" class="flex<!--{if $currentview['hot']}--> mon<!--{/if}-->">{lang order_heats}</a>
<a href="forum.php?mod=guide&view=digest" class="flex<!--{if $currentview['digest'] }--> mon<!--{/if}-->">{lang digest}</a>
<a href="forum.php?mod=guide&view=new" class="flex<!--{if $currentview['new']}--> mon<!--{/if}-->">{lang join_thread}</a>
<a href="forum.php?mod=guide&view=sofa" class="flex<!--{if $currentview['sofa']}--> mon<!--{/if}-->">{lang guide_sofa}</a>
<a href="forum.php?forumlist=1" class="flex">{lang guide_forumlist}</a>
</div>
<!--{loop $data $key $list}-->
<!--{subtemplate forum/guide_list_row}-->
<!--{/loop}-->
</div>
$multipage
<!--{template common/footer}-->

View File

@@ -0,0 +1,72 @@
<!--{if $list['threadcount']}-->
<!--{eval $threadlist_data = get_attach($list['threadlist'], true, true);}-->
<div class="threadlist cl">
<ul>
<!--{loop $list['threadlist'] $key $thread}-->
<li class="list">
<div class="threadlist_top cl">
<a href="home.php?mod=space&uid={$thread['authorid']}" class="mimg"><img src="<!--{avatar($thread['authorid'], 'middle', true)}-->"></a>
<div class="muser">
<h3><a href="home.php?mod=space&uid={$thread['authorid']}" class="mmc">{$thread['author']}</a></h3>
<span class="mtime">{$thread['dateline']}</span>
</div>
</div>
<a href="forum.php?mod=viewthread&tid=$thread['tid']&extra=$extra">
<div class="threadlist_tit cl">
<!--{if $thread['folder'] == 'lock'}-->
<span class="micon lock">{lang closed_thread}</span>
<!--{elseif $thread['special'] == 1}-->
<span class="micon">{lang thread_poll}</span>
<!--{elseif $thread['special'] == 2}-->
<span class="micon">{lang thread_trade}</span>
<!--{elseif $thread['special'] == 3}-->
<span class="micon">{lang thread_reward}</span>
<!--{elseif $thread['special'] == 4}-->
<span class="micon">{lang thread_activity}</span>
<!--{elseif $thread['special'] == 5}-->
<span class="micon">{lang thread_debate}</span>
<!--{/if}-->
<!--{if $thread['attachment'] == 2 && $_G['setting']['mobile']['mobilesimpletype'] == 1}-->
<span class="micon">{lang mobtu}</span>
<!--{/if}-->
<!--{if in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
<span class="micon top">{lang thread_sticky}</span>
<!--{/if}-->
<!--{if $thread['digest'] > 0}-->
<span class="micon digest">{lang thread_digest}</span>
<!--{/if}-->
<em $thread['highlight']>{$thread['subject']}</em>
</div>
</a>
<!--{if $threadlist_data[$thread['tid']]['attachment']}-->
<!--{eval $attach_on = 0;}-->
<a href="forum.php?mod=viewthread&tid=$thread['tid']&extra=$extra">
<div class="{if count($threadlist_data[$thread['tid']]['attachment']) == 1}threadlist_imgs1 {elseif count($threadlist_data[$thread['tid']]['attachment']) == 2} threadlist_imgs threadlist_imgs2{else} threadlist_imgs{/if} cl">
<ul>
<!--{loop $threadlist_data[$thread['tid']]['attachment'] $value}-->
<!--{eval $attach_on++; if($attach_on > 9) break;}-->
<li><!--{if count($threadlist_data[$thread['tid']]['attachment']) > 9 && $attach_on == 9}--><em>{echo count($threadlist_data[$thread['tid']]['attachment'])}{lang mobtu}</em><!--{/if}--><img src="$value" class="vm"></li>
<!--{/loop}-->
</ul>
</div>
</a>
<!--{elseif $threadlist_data[$thread['tid']]['media']}-->
{$threadlist_data[$thread['tid']]['media']}
<!--{/if}-->
<a href="forum.php?mod=viewthread&tid=$thread['tid']&extra=$extra"><div class="threadlist_mes cl">{$threadlist_data[$thread['tid']]['message']}</div></a>
<div class="threadlist_foot cl">
<ul>
<li class="mr"><a href="forum.php?mod=forumdisplay&fid=$thread['fid']">#{$_G['cache']['forums'][$thread['fid']]['name']}</a></li>
<li><i class="dm-eye-fill"></i>{$thread['views']}</li>
<li><i class="dm-chat-s-fill"></i>{$thread['replies']}</li>
</ul>
</div>
</li>
<!--{/loop}-->
</ul>
</div>
<!--{else}-->
<div class="threadlist_box mt10 cl">
<h4>{lang guide_nothreads}</h4>
</div>
<!--{/if}-->

View File

View File

@@ -0,0 +1,18 @@
<!--{template common/header}-->
<!--{if $script == 'noperm'}-->
<div class="bm bw0">
<h1 class="mt">{lang mod_option_error}</h1>
<p>{lang mod_error_invalid}</p>
<p class="notice">{lang mod_notice}</p>
</div>
<!--{elseif !empty($modtpl)}-->
<!--{if in_array($script, array('member', 'login'))}-->
<!--{eval include(template($modtpl));}-->
<!--{else}-->
<div class="box ban pbn">
{lang admin_threadtopicadmin_error}
</div>
<!--{/if}-->
<!--{/if}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,14 @@
<p class="xw1">{lang panel_login}</p>
<p class="xg1">{lang panel_notice_login}</p>
<form method="post" autocomplete="off" action="{$cpscript}?mod=modcp&action=login&mobile=2" class="exfm">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="fid" value="{$_G['fid']}" />
<input type="hidden" name="uid" value="{$_GET['uid']}" />
<input type="hidden" name="submit" value="yes" />
<input type="hidden" name="login_panel" value="yes" />
<p>{lang panel_login_username}: <strong>{$_G['member']['username']}</strong></p>
<p>{lang panel_login_password}:<input type="password" name="cppwd" id="cppwd" class="txt" /></p>
<p class="mtn"><input type="submit" name="submit" id="submit" value="{lang submit}" /></p>
</form>

View File

@@ -0,0 +1,67 @@
<!--{if $op == 'ban'}-->
<div class="box">
<!--{if $op == 'ban' && $member && !$error}-->
<form method="post" autocomplete="off" action="{$cpscript}?mod=modcp&action=$_GET['action']&op=$op&mobile=2" class="schresult">
<input type="hidden" name="formhash" value="{FORMHASH}">
<input type="hidden" name="username" value="$_GET['username']">
<input type="hidden" name="uid" value="$_GET['uid']">
<div class="bbn pbn mbn">
<div class="xw1">{lang result}</div>
<p><a href="home.php?mod=space&uid=$member['uid']" target="_blank" class="xi2">$member['username']</a> UID: $member['uid']<br /><!--{if $member['groupid'] == 4}-->{lang modcp_members_status_banpost}<!--{elseif $member['groupid'] == 5}-->{lang modcp_members_status_banvisit}<!--{else}-->{lang modcp_members_status_normal}<!--{/if}--> <!--{if $member['banexpiry']}-->( {lang valid_before} $member['banexpiry'] )<!--{/if}--></p>
<p>{lang changeto} <!--{if $member['groupid'] == 4 || $member['groupid'] == 5}-->
<input type="radio" name="bannew" id="bannew_0" value="0" checked="checked" class="pr" /> <label for="bannew_0">{lang modcp_members_status_normal}</label>
<!--{/if}-->
<!--{if $member['groupid'] != 4 && $_G['group']['allowbanuser']}--><input type="radio" name="bannew" id="bannew_4" class="pr" value="4" {if $member['groupid'] != 4 && $member['groupid'] != 5}checked="checked"{/if} /> <label for="bannew_4">{lang modcp_members_status_banpost}</label> <!--{/if}-->
<!--{if $member['groupid'] != 5 && $_G['group']['allowbanvisituser']}--><label><input type="radio" name="bannew" id="bannew_5" class="pr" value="5" {if $member['groupid'] != 4 && $member['groupid'] != 5 && !$_G['group']['allowbanuser']}checked="checked"{/if} />{lang modcp_members_status_banvisit}</label><!--{/if}--></p>
<p>{lang expiry}</p>
<p>
<input type="text" id="banexpirynew" name="banexpirynew" autocomplete="off" value="" class="txt" />
</p>
<p>{lang modcp_members_ban_days_comment}</p>
<p>{lang reason}</p>
<p><textarea name="reason" class="txt" rows="4" cols="80">$member['signature']</textarea></p>
<p class="mtn"><input type="submit" name="bansubmit" id="submit" value="{lang submit}" /></p>
</div>
</form>
<!--{/if}-->
<form method="post" autocomplete="off" action="{$cpscript}?mod=modcp&action=$_GET['action']&op=$op&mobile=2">
<input type="hidden" name="formhash" value="{FORMHASH}">
<strong>{lang mod_member_ban}</strong>
<div >
<p>
<!--{if !empty($error)}-->
<!--{if $error == 1}-->
{lang mod_message_member_search}
<!--{elseif $error == 2}-->
{lang mod_message_member_nonexistence}
<!--{elseif $error == 3}-->
{lang mod_message_member_nopermission}
<!--{if $_G['adminid'] == 1}--><br /><span class="xg1">{lang mod_message_goto_admincp}</span>
<!--{/if}-->
<!--{/if}-->
<!--{/if}-->
</p>
<p>
{lang username}
<input type="text" name="username" class="txt" value="" size="20" />
</p>
<p>
UID
<input type="text" name="uid" class="txt" value="<!--{$member['uid']}-->" size="20" />
</p>
<p class="mtn">
<input type="submit" name="submit" id="searchsubmit" value="{lang modcp_logs_search}" />
</p>
</div>
</form>
</div>
<!--{else}-->
<div class="box">
<p>{lang admin_threadtopicadmin_error}</p>
<input type="button" onclick="javascript:history.back();return false;" value="{lang goback}">
</div>
<!--{/if}-->

View File

@@ -0,0 +1,41 @@
<!--{template common/header}-->
<header class="header">
<div class="nav">
<a href="forum.php?mod=viewthread&tid=$_G[tid]" class="z"><img src="{STATICURL}image/mobile/images/icon_back.png" /></a>
<span class="name">{lang pay}</span>
</div>
</header>
<form id="payform" method="post" autocomplete="off" action="forum.php?mod=misc&action=pay&paysubmit=yes&infloat=yes{if !empty($_GET['from'])}&from=$_GET['from']{/if}"{if !empty($_GET['infloat'])} onsubmit="ajaxpost('payform', 'return_$_GET['handlekey']', 'return_$_GET['handlekey']', 'onerror');return false;"{/if}>
<div class="f_c">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="referer" value="{echo dreferer()}" />
<input type="hidden" name="tid" value="$_G[tid]" />
<input type="hidden" name="paysubmit" value="true" />
<!--{if !empty($_GET['infloat'])}--><input type="hidden" name="handlekey" value="$_GET['handlekey']" /><!--{/if}-->
<div class="clew_con c">
<table class="list" cellspacing="0" cellpadding="0" style="width: 400px">
<tr>
<th>{lang author}</th>
<td><!--{if empty($thread['authorid'])}-->$thread['author']<!--{else}--><a href="home.php?mod=space&uid=$thread['authorid']">$thread['author']</a><!--{/if}--></td>
</tr>
<tr>
<th valign="top">{lang price}({$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]})</th>
<td>$thread[price] {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][unit]}</td>
</tr>
<tr>
<th valign="top">{lang pay_author_income}({$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]})</th>
<td>$thread[netprice] {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][unit]}</td>
</tr>
<tr>
<th valign="top">{lang pay_balance}({$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]})</th>
<td>$balance {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][unit]}</td>
</tr>
</table>
</div>
<div class="clew_con">
<input class="button" type="submit" name="submit" value="{lang submit}" />
</div>
</div>
</form>
<!--{template common/footer}-->

View File

@@ -0,0 +1,504 @@
<!--{template common/header}-->
<!--{eval $adveditor = $isfirstpost && $special || $special == 2 && ($_GET['action'] == 'newthread' || $_GET['action'] == 'reply' && !empty($_GET['addtrade']) || $_GET['action'] == 'edit' && $thread['special'] == 2);}-->
<form method="post" id="postform"
{if $_GET['action'] == 'newthread'}action="forum.php?mod=post&action={if $special != 2}newthread{else}newtrade{/if}&fid=$_G['fid']&extra=$extra&topicsubmit=yes&mobile=2"
{elseif $_GET['action'] == 'reply'}action="forum.php?mod=post&action=reply&fid=$_G['fid']&tid=$_G['tid']&extra=$extra&replysubmit=yes&mobile=2"
{elseif $_GET['action'] == 'edit'}action="forum.php?mod=post&action=edit&extra=$extra&editsubmit=yes&mobile=2" $enctype
{/if}>
<input type="hidden" name="formhash" id="formhash" value="{FORMHASH}" />
<input type="hidden" name="posttime" id="posttime" value="{TIMESTAMP}" />
<!--{if !empty($_GET['modthreadkey'])}--><input type="hidden" name="modthreadkey" id="modthreadkey" value="$_GET['modthreadkey']" /><!--{/if}-->
<!--{if $_GET['action'] == 'reply'}-->
<input type="hidden" name="noticeauthor" value="$noticeauthor" />
<input type="hidden" name="noticetrimstr" value="$noticetrimstr" />
<input type="hidden" name="noticeauthormsg" value="$noticeauthormsg" />
<!--{if $reppid}-->
<input type="hidden" name="reppid" value="$reppid" />
<!--{/if}-->
<!--{if $_GET['reppost']}-->
<input type="hidden" name="reppost" value="$_GET['reppost']" />
<!--{elseif $_GET['repquote']}-->
<input type="hidden" name="reppost" value="$_GET['repquote']" />
<!--{/if}-->
<!--{/if}-->
<!--{if $_GET['action'] == 'edit'}-->
<input type="hidden" name="fid" id="fid" value="$_G['fid']" />
<input type="hidden" name="tid" value="$_G['tid']" />
<input type="hidden" name="pid" value="$pid" />
<input type="hidden" name="page" value="$_GET['page']" />
<!--{/if}-->
<!--{if $special}-->
<input type="hidden" name="special" value="$special" />
<!--{/if}-->
<!--{if $specialextra}-->
<input type="hidden" name="specialextra" value="$specialextra" />
<!--{/if}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2><!--{if $_GET['action'] == 'edit'}-->{lang edit}<!--{else}-->{lang send_threads}<!--{/if}--></h2>
<div class="my"></div>
</div>
<!--{if $_GET['action'] == 'newthread' && ($_G['group']['allowpostpoll'] || $_G['group']['allowpostreward'] || $_G['group']['allowpostdebate'] || $_G['group']['allowpostactivity'] || $_G['group']['allowposttrade'] || $_G['setting']['threadplugins'] || $_G['forum']['threadsorts']['types'])}-->
<div class="dhnavs_box">
<div id="dhnavs">
<div id="dhnavs_li">
<ul class="swiper-wrapper">
<!--{if empty($_G['forum']['threadsorts']['required']) && !$_G['forum']['allowspecialonly']}-->
<li class="swiper-slide {if $postspecialcheck[0]}mon{/if}"><a href="forum.php?mod=post&action=newthread&fid=$_G['fid']&cedit=yes<!--{if !empty($_G['tid'])}-->&tid=$_G['tid']<!--{/if}--><!--{if !empty($modelid)}-->&modelid=$modelid<!--{/if}-->&extra=$extra">{lang post_newthread}</a></li>
<!--{/if}-->
<!--{loop $_G['forum']['threadsorts']['types'] $tsortid $name}-->
<li class="swiper-slide {if $sortid == $tsortid}mon{/if}"><a href="forum.php?mod=post&action=newthread&sortid=$tsortid&fid=$_G['fid']&cedit=yes<!--{if !empty($_G['tid'])}-->&tid=$_G['tid']<!--{/if}--><!--{if !empty($modelid)}-->&modelid=$modelid<!--{/if}-->&extra=$extra"><!--{echo strip_tags($name);}--></a></li>
<!--{/loop}-->
<!--{if $_G['group']['allowpostpoll']}--><li class="swiper-slide {if $_GET['special'] == 1}mon{/if}"><a href="forum.php?mod=post&action=newthread&special=1&fid=$_G['fid']&cedit=yes<!--{if !empty($_G['tid'])}-->&tid=$_G['tid']<!--{/if}--><!--{if !empty($modelid)}-->&modelid=$modelid<!--{/if}-->&extra=$extra">{lang post_newthreadpoll}</a></li><!--{/if}-->
<!--{if $_G['group']['allowpostreward']}--><li class="swiper-slide {if $_GET['special'] == 3}mon{/if}"><a href="forum.php?mod=post&action=newthread&special=3&fid=$_G['fid']&cedit=yes<!--{if !empty($_G['tid'])}-->&tid=$_G['tid']<!--{/if}--><!--{if !empty($modelid)}-->&modelid=$modelid<!--{/if}-->&extra=$extra">{lang post_newthreadreward}</a></li><!--{/if}-->
<!--{if $_G['group']['allowpostdebate']}--><li class="swiper-slide {if $_GET['special'] == 5}mon{/if}"><a href="forum.php?mod=post&action=newthread&special=5&fid=$_G['fid']&cedit=yes<!--{if !empty($_G['tid'])}-->&tid=$_G['tid']<!--{/if}--><!--{if !empty($modelid)}-->&modelid=$modelid<!--{/if}-->&extra=$extra">{lang post_newthreaddebate}</a></li><!--{/if}-->
<!--{if $_G['group']['allowpostactivity']}--><li class="swiper-slide {if $_GET['special'] == 4}mon{/if}"><a href="forum.php?mod=post&action=newthread&special=4&fid=$_G['fid']&cedit=yes<!--{if !empty($_G['tid'])}-->&tid=$_G['tid']<!--{/if}--><!--{if !empty($modelid)}-->&modelid=$modelid<!--{/if}-->&extra=$extra">{lang post_newthreadactivity}</a></li><!--{/if}-->
<!--{if $_G['group']['allowposttrade']}--><li class="swiper-slide {if $_GET['special'] == 2}mon{/if}"><a href="forum.php?mod=post&action=newthread&special=2&fid=$_G['fid']&cedit=yes<!--{if !empty($_G['tid'])}-->&tid=$_G['tid']<!--{/if}--><!--{if !empty($modelid)}-->&modelid=$modelid<!--{/if}-->&extra=$extra">{lang post_newthreadtrade}</a></li><!--{/if}-->
<!--{if $_G['setting']['threadplugins']}-->
<!--{loop $_G['forum']['threadplugin'] $tpid}-->
<!--{if array_key_exists($tpid, $_G['setting']['threadplugins']) && is_array($_G['group']['allowthreadplugin']) && in_array($tpid, $_G['group']['allowthreadplugin'])}-->
<li class="swiper-slide {if $specialextra==$tpid}mon{/if}"><a href="forum.php?mod=post&action=newthread&specialextra=$tpid&fid=$_G['fid']&cedit=yes<!--{if !empty($_G['tid'])}-->&tid=$_G['tid']<!--{/if}--><!--{if !empty($modelid)}-->&modelid=$modelid<!--{/if}-->&extra=$extra">{$_G['setting']['threadplugins'][$tpid]['name']}</a></li>
<!--{/if}-->
<!--{/loop}-->
<!--{/if}-->
</ul>
</div>
</div>
</div>
<script>
if($("#dhnavs_li .mon").length > 0) {
var discuz_nav = $("#dhnavs_li .mon").offset().left + $("#dhnavs_li .mon").width() >= $(window).width() ? $("#dhnavs_li .mon").index() : 0;
}else{
var discuz_nav = 0;
}
new Swiper('#dhnavs_li', {
freeMode : true,
slidesPerView : 'auto',
initialSlide : discuz_nav,
onTouchMove: function(swiper){
Discuz_Touch_on = 0;
},
onTouchEnd: function(swiper){
Discuz_Touch_on = 1;
},
});
</script>
<!--{/if}-->
<div class="post_from post_box">
<!--{hook/post_top_mobile}-->
<ul class="cl">
<!--{if $_GET['action'] == 'reply' && !empty($_GET['addtrade']) || $_GET['action'] == 'edit' && $thread['special'] == 2 && !$postinfo['first']}-->
<input name="subject" type="hidden" value="" />
<!--{elseif $_GET['action'] != 'reply'}-->
<li class="mli"><input type="text" class="px pl5" id="needsubject" autocomplete="off" value="$postinfo['subject']" name="subject" placeholder="{lang posts}{lang thread_subject}"></li>
<!--{else}-->
<li class="mtext">
RE: $thread['subject']
<!--{if $quotemessage}-->$quotemessage<!--{/if}-->
</li>
<!--{/if}-->
<!--{if $isfirstpost && !empty($_G['forum']['threadtypes']['types'])}-->
<li class="mli">
<select id="typeid" name="typeid" class="sort_sel pl5">
<i class="dm-c-down sort_jt"></i>
<option value="0" selected="selected">{lang threadtype}</option>
<!--{loop $_G['forum']['threadtypes']['types'] $typeid $name}-->
<!--{if empty($_G['forum']['threadtypes']['moderators'][$typeid]) || $_G['forum']['ismoderator']}-->
<option value="$typeid"{if $thread['typeid'] == $typeid || $_GET['typeid'] == $typeid} selected="selected"{/if}><!--{echo strip_tags($name);}--></option>
<!--{/if}-->
<!--{/loop}-->
</select>
</li>
<!--{/if}-->
</ul>
<!--{template forum/post_editor_extra}-->
<ul class="cl">
<li class="mtext">
<textarea class="pt" id="needmessage" autocomplete="off" id="{$editorid}_textarea" name="$editor['textarea']" placeholder="<!--{if $_GET['action'] != 'reply'}-->{lang posts}<!--{/if}-->{lang thread_content}" fwin="reply"><!--{if $special != 127}-->$postinfo['message']<!--{/if}--></textarea>
<div class="mimg cl">
<a href="javascript:;" class="post_imgbtn"><i class="dm-image"></i>{lang e_img_attach}<input type="file" name="Filedata" id="filedata" multiple="multiple" accept=".jpg,.jpeg,.gif,.png,.bmp,image/jpeg,image/gif,image/png,image/bmp" /></a>
<a href="javascript:;" class="post_attbtn"><i class="dm-star-fill"></i>{lang upload_attach}<input type="file" name="Filedata" id="attfiledata" multiple="multiple" /></a>
</div>
<div class="cl">
<ul id="imglist" class="post_imglist cl">
<!--{loop $imgattachs['used'] $temp}-->
<li><span aid="$temp['aid']" class="del" up="1"><a href="javascript:;"><i class="dm-error"></i></a></span><span class="p_img"><a href="javascript:;"><img style="height:54px;width:54px;" id="aimg_$temp['aid']" src="{$temp['url']}/$temp['attachment']" /></a></span><input type="hidden" name="attachnew[{$temp['aid']}]['description']" /></li>
<!--{/loop}-->
</ul>
</div>
<div class="cl">
<ul id="attlist" class="post_attlist setbox cl">
<!--{loop $attachs['used'] $temp}-->
<li class="b_t"><div class="tit"><span aid="{$temp['aid']}" up="1" class="del btn f_f"><a href="javascript:;"><i class="dm-trash z"></i></a></span>
<!--{if $_G['setting']['allowattachurl']}-->
<!--{if $temp['ext'] == 'mp3'}-->
<span class="btn" onclick="addsmilies('[audio]attach://{$temp['aid']}.mp3[/audio]')">{lang forum_post_insert}{lang e_audio}</span>
<!--{elseif $temp['ext'] == 'mp4'}-->
<span class="btn" onclick="addsmilies('[media=x,500,375]attach://{$temp['aid']}.mp4[/media]')">{lang forum_post_insert}{lang e_video}</span>
<!--{/if}-->
<!--{/if}-->
<span class="btn" onclick="addsmilies('[attach]{$temp['aid']}[/attach]')">{lang forum_post_insert}</span>{$temp['filetype']}<span class="link">{$temp['filename']}</span></div><div class="minput"><div class="attms flex-box"><span class="f_c">{lang description}</span><input type="text" name="attachnew[{$temp['aid']}][description]" value="{$temp['description']}" class="input flex"></div></div><div class="minput">
<!--{if $_G['group']['allowsetattachperm']}-->
<!--{if $_G['cache']['groupreadaccess']}-->
<div class="attqx flex-box"><span>{lang forum_post_perm}</span>
<div class="flex">
<select name="attachnew[{$temp['aid']}][readperm]" id="readperm{$temp['aid']}" class="sort_sel">
<option value="" selected="selected">{lang unlimited}</option>
<!--{loop $_G['cache']['groupreadaccess'] $val}-->
<option value="$val['readaccess']"{if $temp['readperm'] == $val['readaccess']} selected="selected"{/if}>$val['grouptitle']</option>
<!--{/loop}-->
<option value="255"{if $temp['readperm'] == 255} selected{/if}>{lang highest_right}</option>
</select>
</div>
</div>
<!--{/if}-->
<!--{/if}-->
<!--{if $_G['group']['maxprice']}--><div class="attjg flex-box"><span>{lang price}</span><input type="text" name="attachnew[{$temp['aid']}][price]" value="{$temp['price']}" class="input price flex"><em>{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]}</em></div><!--{/if}--></div></li>
<!--{/loop}-->
</ul>
</div>
</li>
<!--{if $_GET['action'] == 'edit' && $isorigauthor && ($isfirstpost && $thread['replies'] < 1 || !$isfirstpost) && !$rushreply && $_G['setting']['editperdel']}-->
<label>
<li class="flex-box mli">
<div class="flex-3 xg1"><span class="z">{lang post_delpost}</span></div>
<div class="flex"><span class="y"><input type="checkbox" name="delete" id="delete" class="pc" value="1"></span></div>
</li>
</label>
<!--{/if}-->
<!--{hook/post_middle_mobile}-->
<!--{subtemplate forum/post_editor_attribute}-->
</ul>
<!--{if $_GET['action'] != 'edit' && ($secqaacheck || $seccodecheck)}-->
<ul class="cl">
<!--{subtemplate common/seccheck}-->
</ul>
<!--{/if}-->
<!--{hook/post_bottom_mobile}-->
</div>
<div class="post_btn">
<button id="postsubmit" class="btn_pn <!--{if $_GET['action'] == 'edit'}-->btn_pn_blue" disable="false"<!--{else}-->btn_pn_grey" disable="true"<!--{/if}-->>
<!--{if $_GET['action'] == 'newthread'}-->
<!--{if $special == 0}-->{lang send_thread}
<!--{elseif $special == 1}-->{lang post_newthreadpoll}
<!--{elseif $special == 2}-->{lang post_newthreadtrade}
<!--{elseif $special == 3}-->{lang post_newthreadreward}
<!--{elseif $special == 4}-->{lang post_newthreadactivity}
<!--{elseif $special == 5}-->{lang post_newthreaddebate}
<!--{elseif $special == 127}-->
<!--{if $buttontext}-->$buttontext<!--{else}-->{lang post_newthread}<!--{/if}-->
<!--{/if}-->
<!--{elseif $_GET['action'] == 'reply' && !empty($_GET['addtrade'])}-->{lang trade_add_post}
<!--{elseif $_GET['action'] == 'reply'}-->{lang join_thread}
<!--{elseif $_GET['action'] == 'edit' && $isfirstpost && $thread['displayorder'] == -4}-->{lang post_newthread}
<!--{elseif $_GET['action'] == 'edit'}-->{lang edit_save}
<!--{/if}-->
</button>
</div>
<!--{hook/post_btn_extra_mobile}-->
<input type="hidden" name="{if $_GET['action'] == 'newthread'}topicsubmit{elseif $_GET['action'] == 'reply'}replysubmit{elseif $_GET['action'] == 'edit'}editsubmit{/if}" value="yes">
</form>
<script type="text/javascript">
(function() {
var needsubject = needmessage = false;
<!--{if $_GET['action'] == 'reply'}-->
needsubject = true;
<!--{elseif $_GET['action'] == 'edit'}-->
needsubject = needmessage = true;
<!--{/if}-->
<!--{if $_GET['action'] == 'newthread' || ($_GET['action'] == 'edit' && $isfirstpost)}-->
$('#needsubject').on('keyup input', function() {
var obj = $(this);
if(obj.val()) {
needsubject = true;
if(needmessage == true) {
$('.btn_pn').removeClass('btn_pn_grey').addClass('btn_pn_blue');
$('.btn_pn').attr('disable', 'false');
}
} else {
needsubject = false;
$('.btn_pn').removeClass('btn_pn_blue').addClass('btn_pn_grey');
$('.btn_pn').attr('disable', 'true');
}
});
<!--{/if}-->
$('#needmessage').on('keyup input', function() {
var obj = $(this);
if(obj.val()) {
needmessage = true;
if(needsubject == true) {
$('.btn_pn').removeClass('btn_pn_grey').addClass('btn_pn_blue');
$('.btn_pn').attr('disable', 'false');
}
} else {
needmessage = false;
$('.btn_pn').removeClass('btn_pn_blue').addClass('btn_pn_grey');
$('.btn_pn').attr('disable', 'true');
}
});
$('#needmessage').on('scroll', function() {
var obj = $(this);
if(obj.scrollTop() > 0) {
obj.attr('rows', parseInt(obj.attr('rows'))+2);
}
}).scrollTop($(document).height());
})();
(function($){
$.fn.extend({
insertAtCaret: function(myValue){
var t = $(this)[0];
if (document.selection) {
this.focus();
sel = document.selection.createRange();
sel.text = myValue;
this.focus();
}
else
if (t.selectionStart || t.selectionStart == '0') {
var startPos = t.selectionStart;
var endPos = t.selectionEnd;
var scrollTop = t.scrollTop;
t.value = t.value.substring(0, startPos) + myValue + t.value.substring(endPos, t.value.length);
this.focus();
t.selectionStart = startPos + myValue.length;
t.selectionEnd = startPos + myValue.length;
t.scrollTop = scrollTop;
}
else {
this.value += myValue;
this.focus();
}
}
})
})(jQuery);
function addsmilies(a){
$('#needmessage').insertAtCaret(a);
}
</script>
<script type="text/javascript" src="{STATICURL}js/mobile/ajaxfileupload.js?{VERHASH}"></script>
<script type="text/javascript" src="{STATICURL}js/mobile/buildfileupload.js?{VERHASH}"></script>
<script type="text/javascript">
var imgexts = typeof imgexts == 'undefined' ? 'jpg, jpeg, gif, png' : imgexts;
var STATUSMSG = {
'-1' : '{lang uploadstatusmsgnag1}',
'0' : '{lang uploadstatusmsg0}',
'1' : '{lang uploadstatusmsg1}',
'2' : '{lang uploadstatusmsg2}',
'3' : '{lang uploadstatusmsg3}',
'4' : '{lang uploadstatusmsg4}',
'5' : '{lang uploadstatusmsg5}',
'6' : '{lang uploadstatusmsg6}',
'7' : '{lang uploadstatusmsg7}(' + imgexts + ')',
'8' : '{lang uploadstatusmsg8}',
'9' : '{lang uploadstatusmsg9}',
'10' : '{lang uploadstatusmsg10}',
'11' : '{lang uploadstatusmsg11}',
'12' : '{lang uploadstatusmsg12}',
'13' : '{lang uploadstatusmsg13}'
};
var form = $('#postform');
$(document).on('change', '#filedata', function() {
popup.open('<img src="' + IMGDIR + '/imageloading.gif">');
uploadsuccess = function(data) {
if(data == '') {
popup.open('{lang uploadpicfailed}', 'alert');
}
var dataarr = data.split('|');
if(dataarr[0] == 'DISCUZUPLOAD' && dataarr[2] == 0) {
popup.close();
$('#imglist').append('<li><div><span aid="'+dataarr[3]+'" class="del"><a href="javascript:;"><i class="dm-error"></i></a></span><span class="p_img"><a href="javascript:;" onclick="addsmilies(\'[attachimg]'+dataarr[3]+'[/attachimg]\')"><img style="height:54px;width:54px;" id="aimg_'+dataarr[3]+'" src="{$_G['setting']['attachurl']}forum/'+dataarr[5]+'" /></a></span><input type="hidden" name="attachnew['+dataarr[3]+'][description]" /><div></li>');
} else {
var sizelimit = '';
if(dataarr[7] == 'ban') {
sizelimit = '{lang uploadpicatttypeban}';
} else if(dataarr[7] == 'perday') {
sizelimit = '{lang donotcross}'+Math.ceil(dataarr[8]/1024)+'K)';
} else if(dataarr[7] > 0) {
sizelimit = '{lang donotcross}'+Math.ceil(dataarr[7]/1024)+'K)';
}
popup.open(STATUSMSG[dataarr[2]] + sizelimit, 'alert');
}
};
if(typeof FileReader != 'undefined' && this.files[0]) {//note 支持html5上传新特性
for (const file of this.files) {
var tmpfiles = [];
tmpfiles[0] = file;
$.buildfileupload({
uploadurl:'misc.php?mod=swfupload&operation=upload&type=image&inajax=yes&infloat=yes&simple=2',
files:tmpfiles,
uploadformdata:{uid:"$_G['uid']", hash:"<!--{eval echo md5(substr(md5($_G['config']['security']['authkey']), 8).$_G['uid'])}-->"},
uploadinputname:'Filedata',
maxfilesize:"$swfconfig['max']",
success:uploadsuccess,
error:function() {
popup.open('{lang uploadpicfailed}', 'alert');
}
});
}
} else {
$.ajaxfileupload({
url:'misc.php?mod=swfupload&operation=upload&type=image&inajax=yes&infloat=yes&simple=2',
data:{uid:"$_G['uid']", hash:"<!--{eval echo md5(substr(md5($_G['config']['security']['authkey']), 8).$_G['uid'])}-->"},
dataType:'text',
fileElementId:'filedata',
success:uploadsuccess,
error: function() {
popup.open('{lang uploadpicfailed}', 'alert');
}
});
}
});
$(document).on('change', '#attfiledata', function() {
popup.open('<img src="' + IMGDIR + '/imageloading.gif">');
uploadsuccess = function(data) {
if(data == '') {
popup.open('{lang uploadpicfailed}', 'alert');
}
var dataarr = data.split('|');
if(dataarr[0] == 'DISCUZUPLOAD' && dataarr[2] == 0) {
popup.close();
var video_file = '';
var file_ex = 'unknown.gif';
if (/bittorrent$|torrent$/.test(dataarr[6].toLowerCase())) {
file_ex = 'torrent.gif';
} else if (/pdf$|pdf$/.test(dataarr[6].toLowerCase())) {
file_ex = 'pdf.gif';
} else if (/(jpg|gif|png|bmp)$/.test(dataarr[6].toLowerCase())) {
file_ex = 'image.gif';
} else if (/(swf|fla|flv|swi)$/.test(dataarr[6].toLowerCase())) {
file_ex = 'flash.gif';
} else if (/(wav|mid|mp3|m3u|wma|asf|asx|vqf|mpg|mpeg|avi|wmv|mp4|ogv|webm|ogg)$/.test(dataarr[6].toLowerCase())) {
file_ex = 'av.gif';
} else if (/(ra|rm|rv)$/.test(dataarr[6].toLowerCase())) {
file_ex = 'real.gif';
} else if (/(php|js|pl|cgi|asp|htm|html|xml)$/.test(dataarr[6].toLowerCase())) {
file_ex = 'html.gif';
} else if (/(txt|rtf|wri|chm)$/.test(dataarr[6].toLowerCase())) {
file_ex = 'text.gif';
} else if (/(doc|ppt)$/.test(dataarr[6].toLowerCase())) {
file_ex = 'msoffice.gif';
} else if (/rar$/.test(dataarr[6].toLowerCase())) {
file_ex = 'rar.gif';
} else if (/(zip|arj|arc|cab|lzh|lha|tar|gz)$/.test(dataarr[6].toLowerCase())) {
file_ex = 'zip.gif';
} else if (/(exe|com|bat|dll)$/.test(dataarr[6].toLowerCase())) {
file_ex = 'binary.gif';
} else {
file_ex = 'unknown.gif';
}
<!--{if $_G['setting']['allowattachurl']}-->
if (/mp3$/.test(dataarr[6].toLowerCase())) {
video_file = '<span class="btn" onclick="addsmilies(\'[audio]attach://' + dataarr[3] + '.mp3[/audio]\')">{lang forum_post_insert}{lang e_audio}</span>';
} else if (/(mp4)$/.test(dataarr[6].toLowerCase())) {
video_file = '<span class="btn" onclick="addsmilies(\'[media=x,500,375]attach://' + dataarr[3] + '.mp4[/media]\')">{lang forum_post_insert}{lang e_video}</span>';
}
<!--{/if}-->
$('#attlist').append('<li class="b_t"><div class="tit"><span aid="'+dataarr[3]+'" up="1" class="del btn f_f"><a href="javascript:;"><i class="dm-trash z"></i></a></span>'+video_file+'<span class="btn" onclick="addsmilies(\'[attach]'+dataarr[3]+'[/attach]\')">{lang forum_post_insert}</span><img src="static/image/filetype/'+file_ex+'" border="0" class="vm mimg" alt=""><span class="link">'+dataarr[6]+'</span></div><!--{if $_GET['result'] != 'simple'}--><div class="minput"><div class="attms flex-box"><span class="f_c">{lang description}</span><input type="text" name="attachnew['+dataarr[3]+'][description]" value="" class="input flex"></div></div><div class="minput"><!--{if $_G['group']['allowsetattachperm']}--><!--{if $_G['cache']['groupreadaccess']}--><div class="attqx flex-box"><span>{lang forum_post_perm}</span><div class="flex"><select name="attachnew['+dataarr[3]+'][readperm]" id="readperm'+dataarr[3]+'" class="sort_sel"><option value="" selected="selected">{lang unlimited}</option><!--{loop $_G['cache']['groupreadaccess'] $val}--><option value="$val['readaccess']">$val['grouptitle']({lang readperm}: $val['readaccess'])</option><!--{/loop}--><option value="255"{if $temp['readperm'] == 255} selected{/if}>{lang highest_right}</option></select></div></div><!--{/if}--><!--{/if}--><!--{if $_G['group']['maxprice']}--><div class="attjg flex-box"><span>{lang price}</span><input type="text" name="attachnew['+dataarr[3]+'][price]" value="0" class="input price flex"><em>{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]}</em></div><!--{/if}--></div><!--{/if}--></li>');
} else {
var sizelimit = '';
if(dataarr[7] == 'ban') {
sizelimit = '{lang uploadpicatttypeban}';
} else if(dataarr[7] == 'perday') {
sizelimit = '{lang donotcross}'+Math.ceil(dataarr[8]/1024)+'K)';
} else if(dataarr[7] > 0) {
sizelimit = '{lang donotcross}'+Math.ceil(dataarr[7]/1024)+'K)';
}
popup.open(STATUSMSG[dataarr[2]] + sizelimit, 'alert');
}
};
if(typeof FileReader != 'undefined' && this.files[0]) {//note 支持html5上传新特性
for (const file of this.files) {
var tmpfiles = [];
tmpfiles[0] = file;
$.buildfileupload({
uploadurl:'misc.php?mod=swfupload&operation=upload&fid={$_G['fid']}&inajax=yes&infloat=yes&simple=2',
files:tmpfiles,
uploadformdata:{uid:"$_G['uid']", hash:"<!--{eval echo md5(substr(md5($_G['config']['security']['authkey']), 8).$_G['uid'])}-->"},
uploadinputname:'Filedata',
maxfilesize:"$swfconfig['max']",
success:uploadsuccess,
error:function() {
popup.open('{lang uploadpicfailed}', 'alert');
}
});
}
} else {
$.ajaxfileupload({
url:'misc.php?mod=swfupload&operation=upload&fid={$_G['fid']}&inajax=yes&infloat=yes&simple=2',
data:{uid:"$_G['uid']", hash:"<!--{eval echo md5(substr(md5($_G['config']['security']['authkey']), 8).$_G['uid'])}-->"},
dataType:'text',
fileElementId:'attfiledata',
success:uploadsuccess,
error: function() {
popup.open('{lang uploadpicfailed}', 'alert');
}
});
}
});
$(document).ready(function(){
$('body').on('input', 'input[name="seccodeverify"]', function(){
var obj = $(this);
var btn = $('#postsubmit');
if (btn.attr('disable') === 'true' && obj.val().length > 0){
btn.attr('disable','false');
btn.removeClass('btn_pn_grey').addClass('btn_pn_blue');
}
});
});
$(document).ready(function(){
$('body').on('input', 'input[name="secanswer"]', function(){
var obj = $(this);
var btn = $('#postsubmit');
if (btn.attr('disable') === 'true' && obj.val().length > 0){
btn.attr('disable','false');
btn.removeClass('btn_pn_grey').addClass('btn_pn_blue');
}
});
});
$('#postsubmit').on('click', function() {
var obj = $(this);
if(obj.attr('disable') == 'true') {
return false;
}
obj.attr('disable', 'true').removeClass('btn_pn_blue').addClass('btn_pn_grey');
popup.open('<img src="' + IMGDIR + '/imageloading.gif">');
var postlocation = '';
if(typeof geo !== 'undefined' && geo.errmsg === '' && geo.loc) {
postlocation = geo.longitude + '|' + geo.latitude + '|' + geo.loc;
}
var myform = document.getElementById('postform');
var formdata = new FormData(myform);
$.ajax({
type:'POST',
url:form.attr('action') + '&geoloc=' + postlocation + '&handlekey='+form.attr('id')+'&inajax=1',
data:formdata,
cache:false,
contentType:false,
processData:false,
dataType:'xml'
})
.success(function(s) {
popup.open(s.lastChild.firstChild.nodeValue);
})
.error(function() {
popup.open('{lang networkerror}', 'alert');
});
return false;
});
$(document).on('click', '.del', function() {
var obj = $(this);
$.ajax({
type:'GET',
url:'forum.php?mod=ajax&action=deleteattach&inajax=yes&aids[]=' + obj.attr('aid') + (obj.attr('up') == 1 ? '&tid={$postinfo['tid']}&pid={$postinfo['pid']}&formhash={FORMHASH}' : ''),
})
.success(function(s) {
obj.closest('li').remove();
})
.error(function() {
popup.open('{lang networkerror}', 'alert');
});
return false;
});
</script>
<!--{eval $nofooter = true;}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,189 @@
<div class="discuz_x cl"></div>
<ul class="cl">
<li class="flex-box mli" id="certainstarttime" {if $activity['starttimeto']}style="display: none"{/if}>
<div class="flex pl5"><span class="z xg1">{lang post_event_time}</span></div>
<div class="flex-3"><input type="text" name="starttimefrom[0]" id="starttimefrom_0" class="px" autocomplete="off" value="$activity['starttimefrom']" placeholder="{lang post_event_time}" /></div>
</li>
<li class="flex-box mli" id="uncertainstarttime" {if !$activity['starttimeto']}style="display: none"{/if}>
<div class="flex-2 pl5"><span class="z xg1">{lang post_event_time}</span></div>
<div class="flex-3"><input type="text" name="starttimefrom[1]" id="starttimefrom_1" class="px" autocomplete="off" value="$activity['starttimefrom']" placeholder="{lang activity_starttime}" /></div>
<div class="flex"><span class="z xg1"> ~ </span></div>
<div class="flex-3"><input type="text" autocomplete="off" id="starttimeto" name="starttimeto" class="px" value="{if $activity['starttimeto']}$activity['starttimeto']{/if}" placeholder="{lang endtime}" /></div>
</li>
<li class="flex-box mli mtit"><div class="flex pl5"><span class="z xg1">{lang admin_close_expire_comment}</span></div></li>
<label for="activitytime">
<li class="flex-box mli">
<div class="flex-3 pl5"><span class="z xg1">{lang activity_starttime_endtime}</span></div>
<div class="flex"><span class="y"><input type="checkbox" id="activitytime" name="activitytime" class="pc" onclick="if(this.checked) {getID('certainstarttime').style.display='none';getID('uncertainstarttime').style.display='';} else {getID('certainstarttime').style.display='';getID('uncertainstarttime').style.display='none';}" value="1" {if $activity['starttimeto']}checked{/if} /></span></div>
</li>
</label>
<li class="flex-box mli">
<div class="flex pl5"><span class="z xg1">{lang activity_space}</span></div>
<div class="flex-3"><input type="text" name="activityplace" id="activityplace" class="px oinf" value="$activity['place']" /></div>
</li>
<!--{if $_GET[action] == 'newthread'}-->
<label>
<li class="flex-box mli">
<div class="flex pl5"><span class="z xg1">{lang activity_city}</span></div>
<div class="flex-3"><input name="activitycity" id="activitycity" class="px" type="text" /></div>
</li>
</label>
<!--{/if}-->
<label>
<li class="flex-box mli">
<div class="flex pl5"><span class="z xg1">{lang activiy_sort}</span></div>
<div class="flex-3"><input type="text" id="activityclass" name="activityclass" class="px" value="$activity['class']" /></div>
</li>
</label>
<li class="flex-box mli">
<div class="flex pl5"><span class="z xg1">{lang activity_need_member}</span></div>
<div class="flex-3"><input type="text" name="activitynumber" id="activitynumber" class="px" onkeyup="checkvalue(this.value)" value="$activity['number']" /></div>
<div class="flex">
<select name="gender" id="gender" class="sort_sel">
<option value="0" {if !$activity['gender']}selected="selected"{/if}>{lang unlimited}</option>
<option value="1" {if $activity['gender'] == 1}selected="selected"{/if}>{lang male}</option>
<option value="2" {if $activity['gender'] == 2}selected="selected"{/if}>{lang female}</option>
</select>
</div>
</li>
<!--{if $_G['setting']['activityfield']}-->
<div class="discuz_x cl"></div>
<li class="flex-box mli mtit"><div class="flex pl5"><span class="z xg1">{lang optional_data}</span></div></li>
</ul>
<ul class="post-box flex-box flex-wrap m15 mt0 mb0 cl">
<!--{loop $_G['setting']['activityfield'] $key $val}-->
<li class="flex flex-half mli">
<label for="userfield_$key">
<dd class="flex-box">
<div class="flex"><input type="checkbox" name="userfield[]" id="userfield_$key" class="pc" value="$key"{if $activity['ufield']['userfield'] && in_array($key, $activity['ufield']['userfield'])} checked="checked"{/if} /></div>
<div class="flex-3"><span class="z xg1">$val</span></div>
</dd>
</label>
</li>
<!--{/loop}-->
</ul>
<ul class="cl">
<!--{/if}-->
<!--{if $_G['setting']['activityextnum']}-->
<div class="discuz_x cl"></div>
<li class="flex-box mli mtit"><div class="flex pl5"><span class="z xg1">{lang other_data}</span></div></li>
<li class="flex-box mli mtext"><textarea name="extfield" id="extfield" class="pt" cols="50" placeholder="{lang other_data}"><!--{if $activity['ufield']['extfield']}-->$activity['ufield']['extfield']<!--{/if}--></textarea></li>
<li class="flex-box mli mtit"><div class="flex pl5"><span class="z xg1">{lang post_activity_message} $_G['setting']['activityextnum'] {lang post_option}</span></div></li>
<div class="discuz_x cl"></div>
<!--{/if}-->
<!--{if $_G['setting']['activitycredit']}-->
<li class="flex-box mli">
<div class="flex pl5"><span class="z xg1">{lang consumption_credit}</span></div>
<div class="flex-3"><input type="text" name="activitycredit" id="activitycredit" class="px" value="$activity['credit']" /></div>
<div class="flex"><span class="y xg1">{$_G['setting']['extcredits'][$_G['setting']['activitycredit']][title]}</span></div>
</li>
<li class="flex-box mli mtit"><div class="flex pl5"><span class="z xg1">{lang user_consumption_money}</span></div></li>
<!--{/if}-->
<li class="flex-box mli">
<div class="flex pl5"><span class="z xg1">{lang activity_payment}</span></div>
<div class="flex-3"><input type="text" name="cost" id="cost" class="px" onkeyup="checkvalue(this.value)" value="$activity['cost']" /></div>
<div class="flex"><span class="y xg1">{lang payment_unit}</span></div>
</li>
<li class="flex-box mli">
<div class="flex pl5"><span class="z xg1">{lang post_closing}</span></div>
<div class="flex-3"><input type="text" name="activityexpiration" id="activityexpiration" class="px" autocomplete="off" value="$activity['expiration']" /></div>
</li>
<li class="flex-box mli mtit"><div class="flex pl5"><span class="z xg1">{lang admin_close_expire_comment}</span></div></li>
<!--{if $allowpostimg}-->
<li class="flex-box mli">
<div class="flex group_upico">
<em class="bg_e" id="activityattach_image"><img src="{if $activityattach['attachment']}$activityattach['url']/{if $activityattach['thumb']}{eval echo getimgthumbname($activityattach['attachment']);}{else}$activityattach['attachment']{/if}{else}{STATICURL}image/common/nophoto.gif{/if}"></em>
<span>{lang post_topic_image}</span>
</div>
<div class="editpic" style="margin:0;">
<ul>
<li class="up_btn flex">
<a class="" href="javascript:;"><!--{if $activityattach['attachment']}-->{lang update}<!--{else}-->{lang upload}<!--{/if}--><input type="file" id="activityimg" name="activityimg" class="" accept="image/*"></a>
</li>
</ul>
</div>
</li>
<li class="flex-box mli mtit"><div class="flex pl5"><span class="z xg1"><!--{if $activityattach['attachment']}-->{lang post_click_message_1}<!--{else}-->{lang post_click_message_2}<!--{/if}--></span></div></li>
<input type="hidden" name="activityaid" id="activityaid" {if $activityattach['attachment']}value="$activityattach['aid']" {/if}/>
<input type="hidden" name="activityaid_url" id="activityaid_url" />
<!--{/if}-->
<!--{hook/post_activity_extra}-->
</ul>
<div class="discuz_x cl"></div>
<script type="text/javascript" reload="1">
function checkvalue(value){
if(!value.search(/^\d+$/)) {
//getID(message).innerHTML = '';
} else {
popup.open('<b>{lang input_invalid}</b>', 'alert');
}
}
//EXTRAFUNC['validator']['special'] = 'validateextra';
$(document).on('click', '#postsubmit', function() {
if(getID('postform').starttimefrom_0.value == '' && getID('postform').starttimefrom_1.value == '') {
popup.open('{lang post_error_message_1}', 'alert');
return false;
}
if(getID('postform').activityplace.value == '') {
popup.open('{lang post_error_message_2}', 'alert');
return false;
}
if(getID('postform').activityclass.value == '') {
popup.open('{lang post_error_message_3}', 'alert');
return false;
}
return true;
});
$(document).on('change', '#activityimg', function() {
popup.open('<img src="' + IMGDIR + '/imageloading.gif">');
uploadsuccess = function(data) {
if(data == '') {
popup.open('{lang uploadpicfailed}', 'alert');
}
var dataarr = data.split('|');
if(dataarr[0] == 'DISCUZUPLOAD' && dataarr[2] == 0) {
popup.close();
$('#activityattach_image').html('<img id="aimg_'+dataarr[3]+'" src="{$_G['setting']['attachurl']}forum/'+dataarr[5]+'" />');
getID('activityaid').value = dataarr[3];
getID('activityaid_url').value = dataarr[5];
} else {
var sizelimit = '';
if(dataarr[7] == 'ban') {
sizelimit = '{lang uploadpicatttypeban}';
} else if(dataarr[7] == 'perday') {
sizelimit = '{lang donotcross}'+Math.ceil(dataarr[8]/1024)+'K)';
} else if(dataarr[7] > 0) {
sizelimit = '{lang donotcross}'+Math.ceil(dataarr[7]/1024)+'K)';
}
popup.open(STATUSMSG[dataarr[2]] + sizelimit, 'alert');
}
};
if(typeof FileReader != 'undefined' && this.files[0]) {//note 支持html5上传新特性
$.buildfileupload({
uploadurl:'misc.php?mod=swfupload&operation=upload&type=image&inajax=yes&infloat=yes&simple=2',
files:this.files,
uploadformdata:{uid:"$_G['uid']", hash:"<!--{eval echo md5(substr(md5($_G['config']['security']['authkey']), 8).$_G['uid'])}-->"},
uploadinputname:'Filedata',
maxfilesize:"$swfconfig['max']",
success:uploadsuccess,
error:function() {
popup.open('{lang uploadpicfailed}', 'alert');
}
});
} else {
$.ajaxfileupload({
url:'misc.php?mod=swfupload&operation=upload&type=image&inajax=yes&infloat=yes&simple=2',
data:{uid:"$_G['uid']", hash:"<!--{eval echo md5(substr(md5($_G['config']['security']['authkey']), 8).$_G['uid'])}-->"},
dataType:'text',
fileElementId:'filedata',
success:uploadsuccess,
error: function() {
popup.open('{lang uploadpicfailed}', 'alert');
}
});
}
});
</script>

View File

@@ -0,0 +1,51 @@
<div class="discuz_x cl"></div>
<ul class="cl">
<label for="endtime">
<li class="flex-box mli">
<div class="flex pl5"><span class="z xg1">{lang endtime}</span></div>
<div class="flex-3"><input type="text" name="endtime" id="endtime" class="px" autocomplete="off" value="$debate['endtime']" /></div>
</li>
</label>
<li class="flex-box mli mtit"><div class="flex pl5"><span class="z xg1">{lang admin_close_expire_comment}</span></div></li>
<label for="umpire">
<li class="flex-box mli">
<div class="flex pl5"><span class="z xg1">{lang debate_umpire}</span></div>
<div class="flex-2"><input type="text" name="umpire" id="umpire" class="px" onblur="checkuserexists(this.value, 'checkuserinfo')" value="$debate['umpire']" /></div>
<div class="flex-2"><span id="checkuserinfo" class="y"></span></div>
</li>
</label>
<div class="discuz_x cl"></div>
<li class="flex-box mli mtit"><div class="flex pl5"><span class="z xg1">{lang debate_square_point}</span></div></li>
<li class="mtext"><textarea name="affirmpoint" id="affirmpoint" class="pt" placeholder="{lang debate_square_point}">$debate['affirmpoint']</textarea></li>
<div class="discuz_x cl"></div>
<li class="flex-box mli mtit"><div class="flex pl5"><span class="z xg1">{lang debate_opponent_point}</span></div></li>
<li class="mtext"><textarea name="negapoint" id="negapoint" class="pt" placeholder="{lang debate_opponent_point}">$debate['negapoint']</textarea></li>
<!--{hook/post_debate_extra}-->
</ul>
<div class="discuz_x cl"></div>
<script type="text/javascript" reload="1">
function checkuserexists(username, objname) {
if(!username) {
getID(objname).innerHTML = '';
return;
}
var x = new Ajax();
username = BROWSER.ie && document.charset == 'utf-8' ? encodeURIComponent(username) : username;
x.get('forum.php?mod=ajax&inajax=1&action=checkuserexists&username=' + username, function(s){
var obj = getID(objname);
popup.open(s);
});
}
$(document).on('click', '#postsubmit', function() {
if(getID('postform').affirmpoint.value == '') {
popup.open('{lang post_debate_message_1}', 'alert');
return false;
}
if(getID('postform').negapoint.value == '') {
popup.open('{lang post_debate_message_2}', 'alert');
return false;
}
return true;
});
</script>

View File

@@ -0,0 +1,299 @@
<div class="discuz_x cl"></div>
<li id="post_extra" class="cl">
<div class="dhnavs_box">
<div id="dhnavs">
<div id="dhnavs_li">
<ul class="swiper-wrapper" id="post_extra_tb" onselectstart="return false">
<li class="swiper-slide" id="extra_additional_b" onclick="showExtra('extra_additional')"><a>{lang post_additional_options}</a></li>
<!--{if $_GET['action'] == 'newthread' || $_GET['action'] == 'edit' && $isfirstpost}-->
<!--{if $_G['group']['allowsetreadperm']}-->
<li class="swiper-slide" id="extra_readperm_b" onclick="showExtra('extra_readperm')"><a>{lang readperm}</a></li>
<!--{/if}-->
<!--{if $_G['group']['allowreplycredit'] && !in_array($special, array(2, 3))}-->
<!--{if $_GET[action] == 'newthread'}-->
<!--{eval $extcreditstype = $_G['setting']['creditstransextra'][10];}-->
<!--{else}-->
<!--{eval $extcreditstype = !empty($replycredit_rule['extcreditstype']) ? $replycredit_rule['extcreditstype'] : $_G['setting']['creditstransextra'][10];}-->
<!--{/if}-->
<!--{eval $userextcredit = getuserprofile('extcredits'.$extcreditstype);}-->
<!--{if ($_GET['action'] == 'newthread' && $userextcredit > 0) || ($_GET['action'] == 'edit' && $isorigauthor && $isfirstpost)}-->
<li class="swiper-slide" id="extra_replycredit_b" onclick="showExtra('extra_replycredit')"><a>{lang replycredit}</a></li>
<!--{/if}-->
<!--{/if}-->
<!--{if ($_GET['action'] == 'newthread' && $_G['group']['allowpostrushreply'] && $special != 2) || ($_GET['action'] == 'edit' && getstatus($thread['status'], 3))}-->
<li class="swiper-slide" id="extra_rushreplyset_b" onclick="showExtra('extra_rushreplyset')"><a>{lang rushreply_thread}</a></li>
<!--{/if}-->
<!--{if $_G['group']['maxprice'] && !$special}-->
<li class="swiper-slide" id="extra_price_b" onclick="showExtra('extra_price')"><a>{lang thread_pricepay}</a></li>
<!--{/if}-->
<!--{if $_G['group']['allowposttag']}-->
<li class="swiper-slide" id="extra_tag_b" onclick="showExtra('extra_tag')"><a>{lang posttag}</a></li>
<!--{/if}-->
<!--{if $_G['group']['allowsetpublishdate'] && ($_GET['action'] == 'newthread' || ($_GET['action'] == 'edit' && $isfirstpost && $thread['displayorder'] == -4))}-->
<li class="swiper-slide" id="extra_pubdate_b" onclick="showExtra('extra_pubdate')"><a>{lang post_timer}</a></li>
<!--{/if}-->
<!--{/if}-->
<!--{hook/post_attribute_extra_mobile}-->
</ul>
</div>
</div>
</div>
</li>
<div class="setbox" id="post_extra_c">
<!--{if $_GET['action'] == 'newthread' || $_GET[action] == 'edit' && $isfirstpost}-->
<!--{if !empty($userextcredit)}-->
<div id="extra_replycredit_c" class="exfm cl" style="display: none;">
<ul class="cl">
<li class="flex-box mli">
<div class="tit">{lang replycredit_reward}</div>
<div class="flex input"><input type="text" name="replycredit_times" id="replycredit_times" class="px pxs vm" value="{if !empty($replycredit_rule['lasttimes'])}{$replycredit_rule['lasttimes']}{else}1{/if}" onkeyup="javascript:getreplycredit();" /></div>
<div class="tit">{lang replycredit_time}</div>
</li>
<li class="flex-box mli">
<div class="tit">{lang replycredit_once}</div>
<div class="flex input"><input type="text" name="replycredit_extcredits" id="replycredit_extcredits" class="px pxs vm" value="{if !empty($replycredit_rule['extcredits']) && $thread['replycredit'] > 0}{$replycredit_rule['extcredits']}{else}0{/if}" onkeyup="javascript:getreplycredit();" /></div>
<div class="tit">{$_G['setting']['extcredits'][$extcreditstype][unit]}{$_G['setting']['extcredits'][$extcreditstype][title]}<span class="xg1">{lang replycredit_empty}</span> </div>
</li>
<li class="flex-box mli">
<div class="tit">{lang replycredit_member} </div>
<div class="flex input">
<select id="replycredit_membertimes" name="replycredit_membertimes" class="sort_sel vm">
<!--{eval for($i=1;$i<11;$i++) {;}-->
<option value="$i"{if isset($replycredit_rule['membertimes']) && $replycredit_rule['membertimes'] == $i} selected="selected"{/if}>$i</option>
<!--{eval };}-->
</select>
</div>
<div class="tit">{lang replycredit_time}</div>
</li>
<li class="flex-box mli">
<div class="tit">{lang replycredit_rate}</div>
<div class="flex input">
<select id="replycredit_random" name="replycredit_random" class="sort_sel vm">
<!--{eval for($i=100;$i>9;$i=$i-10) {;}-->
<option value="$i"{if isset($replycredit_rule['random']) && $replycredit_rule['random'] == $i} selected="selected"{/if}>$i</option>
<!--{eval };}-->
</select>
</div>
<div class="tit">%</div>
</li>
<li class="mtit p10">{lang replycredit_total} <span id="replycredit_sum"><!--{if !empty($thread['replycredit'])}-->{$thread['replycredit']}<!--{else}-->0<!--{/if}--></span> {$_G['setting']['extcredits'][$extcreditstype][unit]}{$_G['setting']['extcredits'][$extcreditstype][title]}<!--{if !empty($thread['replycredit'])}--><span class="xg1">({lang replycredit_however} {$thread['replycredit']} {$_G['setting']['extcredits'][$extcreditstype][unit]}{$_G['setting']['extcredits'][$extcreditstype][title]})</span><!--{/if}-->, <span id="replycredit">{lang replycredit_revenue} {$_G['setting']['extcredits'][$extcreditstype][title]} 0</span> {$_G['setting']['extcredits'][$extcreditstype][unit]}, {lang you_have} {$_G['setting']['extcredits'][$extcreditstype][title]} $userextcredit {$_G['setting']['extcredits'][$extcreditstype][unit]}</li>
</ul>
</div>
<!--{/if}-->
<!--{if $_G['group']['allowsetreadperm']}-->
<div id="extra_readperm_c" class="exfm cl" style="display:none">
<ul class="cl">
<li class="flex-box mli">
<div class="tit">{lang readperm}:</div>
<div class="flex input">
<select name="readperm" id="readperm" class="sort_sel">
<option value="">{lang unlimited}</option>
<!--{loop $_G['cache']['groupreadaccess'] $val}-->
<option value="$val[readaccess]"{if $thread['readperm'] == $val['readaccess']} selected="selected"{/if}>$val['grouptitle']</option>
<!--{/loop}-->
<option value="255"{if $thread['readperm'] == 255} selected="selected"{/if}>{lang highest_right}</option>
</select>
</div>
</li>
<li class="mtit p10"><span class="xg1">{lang post_select_usergroup_readacces}</span></li>
</ul>
</div>
<!--{/if}-->
<!--{if $_G['group']['maxprice'] && !$special}-->
<div id="extra_price_c" class="exfm cl" style="display:none">
<ul class="cl">
<li class="flex-box mli">
<div class="tit">{lang price}:</div>
<div class="flex input">
<input type="text" id="price" name="price" class="px pxs" value="$thread[pricedisplay]" />
</div>
<div class="pipe">
{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][unit]}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]}
</div>
</li>
<li class="mtit p10"><span class="xg1">{lang post_price_comment}</span></li>
<!--{if $_G['group']['maxprice'] && ($_GET[action] == 'newthread' || $_GET[action] == 'edit' && $isfirstpost)}-->
<!--{if $_G['setting']['maxincperthread']}--><li class="mtit p10"><span class="xg1">{lang post_price_income_comment}</span></li><!--{/if}-->
<!--{if $_G['setting']['maxchargespan']}--><li class="mtit p10"><span class="xg1">{lang post_price_charge_comment}<!--{if $_GET[action] == 'edit' && $freechargehours}-->{lang post_price_free_chargehours}<!--{/if}--></span></li><!--{/if}-->
<!--{/if}-->
</ul>
</div>
<!--{/if}-->
<!--{if $_G['group']['allowposttag']}-->
<div id="extra_tag_c" class="exfm cl" style="display: none;">
<ul class="cl">
<li class="flex-box mli">
<div class="tit">{lang post_tag}:</div>
<div class="flex input"><input type="text" class="px vm" size="60" id="tags" name="tags" value="{$postinfo[tag] or ''}" /></div>
</li>
<li class="mtit p10">
<p class="xg1">{lang posttag_comment}</p>
</li>
</ul>
</div>
<!--{/if}-->
<!--{if ($_GET['action'] == 'newthread' && $_G['group']['allowpostrushreply'] && $special != 2) || ($_GET[action] == 'edit' && getstatus($thread['status'], 3))}-->
<div id="extra_rushreplyset_c" class="exfm cl" style="display: none;">
<ul class="cl">
<li class="mli"><label for="rushreply"><input type="checkbox" name="rushreply" id="rushreply" class="pc vm" value="1" {if $_GET['action'] == 'edit' && getstatus($thread['status'], 3)}disabled="disabled" checked="checked"{/if} /> {lang rushreply_change}</label></li>
<li class="flex-box mli">
<div class="tit">{lang thread_rushreply_start}</div>
<div class=""><input type="text" name="rushreplyfrom" id="rushreplyfrom" class="px" autocomplete="off" value="{$postinfo['rush']['starttimefrom'] or ''}" onkeyup="getID('rushreply').checked = true;" /></div>
</li>
<li class="flex-box mli">
<div class="tit">{lang thread_rushreply_over}</div>
<div class=""><input type="text" autocomplete="off" id="rushreplyto" name="rushreplyto" class="px" value="{$postinfo['rush']['starttimeto'] or ''}" onkeyup="getID('rushreply').checked = true;" /></div>
</li>
<li class="flex-box mli">
<div class="tit">{lang rushreply_rewardfloor} </div>
<div class=""><input type="text" name="rewardfloor" id="rewardfloor" class="px oinf" value="{$postinfo[rush][rewardfloor] or ''}" onkeyup="$('rushreply').checked = true;" /></div>
</li>
<li class="mtit p10">{lang rushreply_rewardfloor_comment}</li>
<li class="flex-box mli">
<div class="tit">{lang stopfloor}: </div>
<div class=""><input type="text" name="replylimit" id="replylimit" class="px" autocomplete="off" value="{$postinfo[rush][replylimit] or ''}" onkeyup="$('rushreply').checked = true;" /></div>
</li>
<li class="mtit p10">{lang replylimit} </li>
<li class="flex-box mli">
<div class="tit">{lang rushreply_end}</div>
<div class=""><input type="text" name="stopfloor" id="stopfloor" class="px" autocomplete="off" value="{$postinfo[rush][stopfloor] or ''}" onkeyup="$('rushreply').checked = true;" /></div>
</li>
<li class="flex-box mli">
<div class="tit"><!--{if !empty($_G['setting']['creditstransextra'][11])}-->{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][11]][title]}<!--{else}-->{lang credits}<!--{/if}-->{lang min_limit}: </div>
<div class=""><input type="text" name="creditlimit" id="creditlimit" class="px" autocomplete="off" value="{$postinfo[rush][creditlimit] or ''}" onkeyup="$('rushreply').checked = true;" /></div>
</li>
<li class="mtit p10"><!--{if !empty($_G['setting']['creditstransextra'][11])}-->({$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][11]][title]})<!--{else}-->{lang total_credits}<!--{/if}-->{lang post_rushreply_credit}</li>
</ul>
</div>
<!--{/if}-->
<!--{if $_G['group']['allowsetpublishdate'] && ($_GET['action'] == 'newthread' || ($_GET['action'] == 'edit' && $isfirstpost && $thread['displayorder'] == -4))}-->
<div id="extra_pubdate_c" class="exfm cl" style="display: none;">
<label><input type="checkbox" name="cronpublish" onclick="if(this.checked) {getID('cronpublishdate').click();doane(event,false);};hidenFollowBtn(this.checked);" id="cronpublish" value="true" class="pc"{if $cronpublish} checked="checked"{/if} />{lang post_timer}</label>
<input type="text" name="cronpublishdate" id="cronpublishdate" class="px" autocomplete="off" value="{$cronpublishdate}" onchange="if(this.value) getID('cronpublish').checked = true;">
</div>
<!--{/if}-->
<!--{/if}-->
<div id="extra_additional_c" class="exfm p5 cl" style="display: none;">
<li class="mtit">{lang basic_attr}</li>
<ul class="flex-box flex-wrap p10 cl">
<li class="mli flex-half">
<!--{if $_GET['action'] != 'edit'}-->
<!--{if $_G['group']['allowanonymous']}--><label for="isanonymous"><input type="checkbox" name="isanonymous" id="isanonymous" class="pc" value="1" />{lang post_anonymous}</label><!--{/if}-->
<!--{else}-->
<!--{if $_G['group']['allowanonymous'] || (!$_G['group']['allowanonymous'] && $orig['anonymous'])}--><label for="isanonymous"><input type="checkbox" name="isanonymous" id="isanonymous" class="pc" value="1" {if $orig['anonymous']}checked="checked"{/if} />{lang post_anonymous}</label><!--{/if}-->
<!--{/if}-->
</li>
<!--{if $_GET['action'] == 'newthread' || $_GET['action'] == 'edit' && $isfirstpost}-->
<li class="mli flex-half"><label for="hiddenreplies"><input type="checkbox" name="hiddenreplies" id="hiddenreplies" class="pc"{if $thread['hiddenreplies']} checked="checked"{/if} value="1">{lang hiddenreplies}</label></li>
<!--{/if}-->
<!--{if $_G['uid'] && ($_GET['action'] == 'newthread' || $_GET[action] == 'edit' && $isfirstpost) && $special != 3}-->
<li class="mli flex-half"><label for="ordertype"><input type="checkbox" name="ordertype" id="ordertype" class="pc" value="1" $ordertypecheck />{lang post_descviewdefault}</label></li>
<!--{/if}-->
<!--{if ($_GET['action'] == 'newthread' || $_GET['action'] == 'edit' && $isfirstpost)}-->
<li class="mli flex-half"><label for="allownoticeauthor"><input type="checkbox" name="allownoticeauthor" id="allownoticeauthor" class="pc" value="1"{if $allownoticeauthor} checked="checked"{/if} />{lang post_noticeauthor}</label></li>
<!--{/if}-->
<!--{if $_GET['action'] != 'edit' && helper_access::check_module('feed') && $_G['forum']['allowfeed']}-->
<li class="mli flex-half"><label for="addfeed"><input type="checkbox" name="addfeed" id="addfeed" class="pc" value="1" $addfeedcheck>{lang addfeed}</label></li>
<!--{/if}-->
<li class="mli flex-half"><label for="usesig"><input type="checkbox" name="usesig" id="usesig" class="pc" value="1" {if !$_G['group']['maxsigsize']}disabled {else}$usesigcheck {/if}/>{lang post_show_sig}</label></li>
</ul>
<li class="mtit">{lang text_feature}</li>
<ul class="flex-box flex-wrap p10 cl">
<li class="mli flex-half">
<!--{if ($_G['forum']['allowhtml'] || ($_GET['action'] == 'edit' && ($orig['htmlon'] & 1))) && $_G['group']['allowhtml']}-->
<label for="htmlon"><input type="checkbox" name="htmlon" id="htmlon" class="pc" value="1" $htmloncheck />{lang post_html}</label>
<!--{else}-->
<label for="htmlon"><input type="checkbox" name="htmlon" id="htmlon" class="pc" value="0" $htmloncheck disabled="disabled" />{lang post_html}</label>
<!--{/if}-->
</li>
<li class="mli flex-half">
<label for="allowimgcode"><input type="checkbox" id="allowimgcode" class="pc" disabled="disabled"{if $_G['forum']['allowimgcode']} checked="checked"{/if} />{lang post_imgcode}</label>
</li>
<!--{if $_G['forum']['allowimgcode']}-->
<li class="mli flex-half">
<label for="allowimgurl"><input type="checkbox" id="allowimgurl" class="pc" checked="checked" />{lang post_imgurl}</label>
</li>
<!--{/if}-->
<li class="mli flex-half">
<label for="parseurloff"><input type="checkbox" name="parseurloff" id="parseurloff" class="pc" value="1" $urloffcheck />{lang disable}{lang post_parseurl}</label>
</li>
<li class="mli flex-half">
<label for="smileyoff"><input type="checkbox" name="smileyoff" id="smileyoff" class="pc" value="1" $smileyoffcheck />{lang disable}{lang smilies}</label>
</li>
<li class="mli flex-half">
<label for="bbcodeoff"><input type="checkbox" name="bbcodeoff" id="bbcodeoff" class="pc" value="1" $codeoffcheck />{lang disable}{lang discuzcode}</label>
</li>
<li class="mli flex-half">
<!--{if $_G['group']['allowimgcontent']}-->
<label for="imgcontent"><input type="checkbox" name="imgcontent" id="imgcontent" class="pc" value="1" $imgcontentcheck onclick="switchEditor(this.checked?0:1);$('e_switchercheck').checked=this.checked;" />{lang content_to_pic}</label>
<!--{else}-->
<label for="imgcontent"><input type="checkbox" name="imgcontent" id="imgcontent" class="pc" value="0" $imgcontentcheck disabled="disabled"/>{lang content_to_pic}</label>
<!--{/if}-->
</li>
</ul>
<!--{if $_GET['action'] == 'newthread' && $_G['forum']['ismoderator'] && ($_G['group']['allowdirectpost'] || !$_G['forum']['modnewposts'])}-->
<!--{if $_GET['action'] == 'newthread' && $_G['forum']['ismoderator'] && ($_G['group']['allowdirectpost'] || !$_G['forum']['modnewposts']) && ($_G['group']['allowstickthread'] || $_G['group']['allowdigestthread'])}-->
<li class="mtit">{lang manage_operation}</li>
<ul class="flex-box flex-wrap p10 cl">
<!--{if $_G['group']['allowstickthread']}-->
<li class="mli flex-half"><label for="sticktopic"><input type="checkbox" name="sticktopic" id="sticktopic" class="pc" value="1" $stickcheck />{lang post_stick_thread}</label></li>
<!--{/if}-->
<!--{if $_G['group']['allowdigestthread']}-->
<li class="mli flex-half"><label for="addtodigest"><input type="checkbox" name="addtodigest" id="addtodigest" class="pc" value="1" $digestcheck />{lang post_digest_thread}</label></li>
<!--{/if}-->
</ul>
<!--{/if}-->
<!--{elseif $_GET[action] == 'edit' && $_G['forum_auditstatuson']}-->
<li class="mtit">{lang manage_operation}</li>
<ul class="flex-box flex-wrap p10 cl">
<li class="mli flex-half"><label for="audit"><input type="checkbox" name="audit" id="audit" class="pc" value="1">{lang auditstatuson}</label></li>
</ul>
<!--{/if}-->
</div>
<!--{hook/post_attribute_extra_body_mobile}-->
</div>
<script type="text/javascript">
if($("#dhnavs_li .mon").length > 0) {
var discuz_nav = $("#dhnavs_li .mon").offset().left + $("#dhnavs_li .mon").width() >= $(window).width() ? $("#dhnavs_li .mon").index() : 0;
}else{
var discuz_nav = 0;
}
new Swiper('#dhnavs_li', {
freeMode : true,
slidesPerView : 'auto',
initialSlide : discuz_nav,
onTouchMove: function(swiper){
Discuz_Touch_on = 0;
},
onTouchEnd: function(swiper){
Discuz_Touch_on = 1;
},
});
function showExtra(id) {
if ($('#'+id+'_c').css('display') == 'block') {
$('#'+id+'_b').attr("class","swiper-slide");
$('#'+id+'_c').css({'display':'none'});
} else {
var extraButton = $('#post_extra_tb').children('li');
var extraForm = $('#post_extra_c').children('div');
$.each($('#post_extra_tb > li'), function(){
$(this).attr("class","swiper-slide");
});
$.each($('#post_extra_c > div'), function(){
if($(this).hasClass('exfm')) {
$(this).css({'display':'none'});
}
});
$('#'+id+'_b').addClass('mon');
$('#'+id+'_c').css({'display':'block'});
}
}
</script>

View File

@@ -0,0 +1,29 @@
<!--{if $sortid}-->
<input type="hidden" name="sortid" value="$sortid" />
<!--{/if}-->
<!--{if !$isfirstpost && $thread['special'] == 5 && empty($firststand) && $_GET['action'] != 'edit'}-->
<ul class="cl">
<li class="mli">
<select name="stand" id="stand" class="sort_sel pl5">
<option value="">{lang debate_viewpoint}</option>
<option value="0">{lang debate_neutral}</option>
<option value="1"{if $stand == 1} selected="selected"{/if}>{lang debate_square}</option>
<option value="2"{if $stand == 2} selected="selected"{/if}>{lang debate_opponent}</option>
</select>
</li>
</ul>
<!--{/if}-->
<!--{if $showthreadsorts}-->
<div class="exfm cl">
<!--{template forum/post_sortoption}-->
</div>
<!--{elseif $adveditor}-->
<!--{if $special == 1}--><!--{template forum/post_poll}-->
<!--{elseif $special == 2 && ($_GET['action'] != 'edit' || ($_GET['action'] == 'edit' && ($thread['authorid'] == $_G['uid'] && $_G['group']['allowposttrade'] || $_G['group']['allowedittrade'])))}--><!--{template forum/post_trade}-->
<!--{elseif $special == 3}--><!--{template forum/post_reward}-->
<!--{elseif $special == 4}--><!--{template forum/post_activity}-->
<!--{elseif $special == 5}--><!--{template forum/post_debate}-->
<!--{elseif $specialextra}--><div class="specialpost s_clear">$threadplughtml</div>
<!--{/if}-->
<!--{/if}-->

View File

@@ -0,0 +1,98 @@
<!--{template common/header}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2>{lang send_posts}</h2>
<div class="my"><a href="search.php?mod=forum"><i class="dm-search"></i></a></div>
</div>
<div style="display:none">
<ul id="fs_group">$grouplist</ul>
<ul id="fs_forum_common">$commonlist</ul>
<!--{loop $forumlist $forumid $forum}-->
<ul id="fs_forum_$forumid">$forum</ul>
<!--{/loop}-->
<!--{loop $subforumlist $forumid $forum}-->
<ul id="fs_subforum_$forumid">$forum</ul>
<!--{/loop}-->
</div>
<div class="pblbox cl">
<ul class="pbl cl">
<li id="block_group"></li>
<li id="block_forum"></li>
<li id="block_subforum"></li>
</ul>
</div>
<!--{if $_G['group']['allowpost'] || !$_G['uid']}-->
<div class="post_btn cl">
<button id="postbtn" class="pn" onclick="window.location.href='forum.php?mod=post&action=newthread&fid=' + selectfid" disabled="disabled">{lang send_posts}</button>
</div>
<!--{/if}-->
<script type="text/javascript" reload="1">
var s = '<!--{if $commonfids}--><p><a id="commonforum" href="javascript:;" onclick="switchforums(this, 1, \'common\')" class="pbsb lightlink">{lang nav_forum_frequently}</a></p><!--{/if}-->';
var lis = document.getElementById('fs_group').getElementsByTagName('LI');
for(i = 0;i < lis.length;i++) {
var gid = lis[i].getAttribute('fid');
if(document.getElementById('fs_forum_' + gid)) {
s += '<p><a href="javascript:;" ondblclick="locationforums(1, ' + gid + ')" onclick="switchforums(this, 1, ' + gid + ')" class="pbsb">' + lis[i].innerHTML + '</a></p>';
}
}
document.getElementById('block_group').innerHTML = s;
var lastswitchobj = null;
var selectfid = 0;
var switchforum = switchsubforum = '';
switchforums(document.getElementById('commonforum'), 1, 'common');
function switchforums(obj, block, fid) {
if(lastswitchobj != obj) {
if(lastswitchobj) {
lastswitchobj.parentNode.className = '';
}
obj.parentNode.className = 'pbls';
}
var s = '';
if(block == 1) {
var lis = document.getElementById('fs_forum_' + fid).getElementsByTagName('LI');
for(i = 0;i < lis.length;i++) {
fid = lis[i].getAttribute('fid');
if(fid != '') {
s += '<p><a href="javascript:;" ondblclick="locationforums(2, ' + fid + '\)" onclick="switchforums(this, 2, ' + fid + ')"' + (document.getElementById('fs_subforum_' + fid) ? ' class="pbsb"' : '') + '>' + lis[i].innerHTML + '</a></p>';
}
}
document.getElementById('block_forum').innerHTML = s;
document.getElementById('block_subforum').innerHTML = '';
switchforum = switchsubforum = '';
selectfid = 0;
document.getElementById('postbtn').setAttribute("disabled", "disabled");
document.getElementById('postbtn').className = 'pn xg1 y';
} else if(block == 2) {
selectfid = fid;
if(document.getElementById('fs_subforum_' + fid)) {
var lis = document.getElementById('fs_subforum_' + fid).getElementsByTagName('LI');
for(i = 0;i < lis.length;i++) {
fid = lis[i].getAttribute('fid');
s += '<p><a href="javascript:;" ondblclick="locationforums(3, ' + fid + ')" onclick="switchforums(this, 3, ' + fid + ')">' + lis[i].innerHTML + '</a></p>';
}
document.getElementById('block_subforum').innerHTML = s;
} else {
document.getElementById('block_subforum').innerHTML = '';
}
switchforum = obj.innerHTML;
switchsubforum = '';
document.getElementById('postbtn').removeAttribute("disabled");
document.getElementById('postbtn').className = 'pn pnc y';
} else {
selectfid = fid;
switchsubforum = obj.innerHTML;
document.getElementById('postbtn').removeAttribute("disabled");
document.getElementById('postbtn').className = 'pn pnc y';
}
lastswitchobj = obj;
}
function locationforums(block, fid) {
location.href = block == 1 ? 'forum.php?gid=' + fid : 'forum.php?mod=forumdisplay&fid=' + fid;
}
</script>
<!--{template common/footer}-->

View File

@@ -0,0 +1,107 @@
<input type="hidden" name="polls" value="yes" />
<input type="hidden" name="fid" value="$_G['fid']" />
<div class="discuz_x cl"></div>
<ul class="cl">
<label for="polldatas">
<li class="flex-box mli">
<div class="flex-2 pl5 xg1">{lang post_poll_allowmultiple}</div>
<div class="flex-3"><input type="text" name="maxchoices" id="maxchoices" class="px pxs" value="{if $_GET[action] == 'edit' && $poll[maxchoices]}$poll[maxchoices]{else}1{/if}" /></div>
<div class="flex xg1"><span class="y">{lang post_option}</span></div>
</li>
</label>
<label for="polldatas">
<li class="flex-box mli">
<div class="flex-2 pl5 xg1">{lang post_poll_expiration}</div>
<div class="flex-3"><input type="text" name="expiration" id="polldatas" class="px pxs" value="{if $_GET[action] == 'edit'}{if !$poll[expiration]}0{elseif $poll[expiration] < 0}{lang poll_close}{elseif $poll[expiration] < TIMESTAMP}{lang poll_finish}{else}{echo (round(($poll[expiration] - TIMESTAMP) / 86400))}{/if}{/if}" /></div>
<div class="flex xg1"><span class="y">{lang days}</span></div>
</li>
</label>
<label>
<li class="flex-box mli">
<div class="flex-3 pl5 xg1"><span class="z">{lang poll_after_result}</span></div>
<div class="flex"><span class="y"><input type="checkbox" name="visibilitypoll" id="visibilitypoll" class="pc" value="1"{if $_GET['action'] == 'edit' && !$poll['visible']} checked{/if} /></span></div>
</li>
</label>
<label>
<li class="flex-box mli">
<div class="flex-3 pl5 xg1"><span class="z">{lang post_poll_overt}</span></div>
<div class="flex"><span class="y"><input type="checkbox" name="overt" id="overt" class="pc" value="1"{if $_GET['action'] == 'edit' && $poll['overt']} checked{/if} /></span></div>
</li>
</label>
<!--{if $_GET[action] == 'newthread'}-->
<input type="hidden" name="tpolloption" value="1" />
<li class="flex-box mli mtit">
<div class="flex pl5">{lang post_poll_options}: {lang post_poll_comment}</div>
</li>
<span id="polloption_new"></span>
<li class="flex-box mli" id="polloption_hidden" style="display: none">
<div class="flex-3"><input type="text" name="polloption[]" class="px vm" autocomplete="off" placeholder="{lang post_poll_options}" /></div>
<div class="flex"><span class="y"><a href="javascript:;" class="d" onclick="delpolloption(this)">{lang delete}</a></span></div>
</li>
<li class="flex-box mli"><a href="javascript:;" onclick="addpolloption()" class="flex xg1">+{lang post_poll_add}</a></li>
<!--{else}-->
<li class="flex-box mli mtit">
<div class="flex pl5">{lang displayorder}</div>
<div class="flex-3">{lang post_poll_options}</div>
</li>
<!--{loop $poll['polloption'] $key $option}-->
<!--{eval $ppid = $poll['polloptionid'][$key];}-->
<input type="hidden" name="polloptionid[{$poll[polloptionid][$key]}]" value="$poll[polloptionid][$key]" />
<li class="flex-box mli">
<div class="flex pl5"><span class="z"><input type="text" name="displayorder[{$poll[polloptionid][$key]}]" class="px pxs vm" autocomplete="off" value="$poll[displayorder][$key]" /></span></div>
<div class="flex-2"><input type="text" name="polloption[{$poll[polloptionid][$key]}]" class="px vm" autocomplete="off" value="$option"{if !$_G['group']['alloweditpoll']} readonly="readonly"{/if} /></div>
<div class="flex">
<span class="y">
<!--{if $poll['isimage']}-->
<img src="{if $poll['imginfo'][$ppid]['small']}$poll['imginfo'][$ppid]['small']{else}{STATICURL}image/common/nophoto.gif{/if}" height="36" />
<input type="hidden" name="pollimage[{$poll['polloptionid'][$key]}]" id="pollUploadProgress_{$key}_aid" value="$poll['imginfo'][$ppid]['aid']" />
<!--{/if}-->
</span>
</div>
</li>
<!--{/loop}-->
<span id="polloption_new"></span>
<li class="flex-box mli" id="polloption_hidden" style="display: none">
<div class="flex pl5"><input type="text" name="displayorder[]" class="px pxs vm" autocomplete="off" placeholder="0" /></div>
<div class="flex-2"><input type="text" name="polloption[]" class="px vm" autocomplete="off" placeholder="{lang post_poll_options}" /></div>
<div class="flex"><span class="y"><a href="javascript:;" class="d" onclick="delpolloption(this)">{lang delete}</a></span></div>
</li>
<li class="flex-box mli"><a href="javascript:;" onclick="addpolloption()" class="flex xg1">+{lang post_poll_add}</a></li>
<!--{/if}-->
<!--{hook/post_poll_extra}-->
</ul>
<script type="text/javascript" reload="1">
var maxoptions = parseInt('$_G[setting][maxpolloptions]');
<!--{if $_GET[action] == 'newthread'}-->
var curoptions = 0;
var curnumber = 1;
addpolloption();
addpolloption();
addpolloption();
<!--{else}-->
var curnumber = curoptions = <!--{echo count($poll['polloption'])}-->;
for(var i=0; i < curnumber; i++) {
//addUploadEvent('newpoll_'+i, 'pollUploadProgress_'+i);
}
<!--{/if}-->
function addpolloption() {
if (curoptions < maxoptions) {
var imgid = 'newpoll_' + curnumber;
var proid = 'pollUploadProgress_' + curnumber;
var pollstr = getID('polloption_hidden').innerHTML.replace('newpoll', imgid);
pollstr = pollstr.replace('pollUploadProgress', proid);
getID('polloption_new').outerHTML = '<li class="flex-box mli">' + pollstr + '</li>' + getID('polloption_new').outerHTML;
curoptions++;
curnumber++;
} else {
popup.open('{lang post_poll_exceed}' + maxoptions, 'alert');
}
}
function delpolloption(obj) {
obj.parentNode.parentNode.parentNode.parentNode.removeChild(obj.parentNode.parentNode.parentNode);
curoptions--;
}
</script>

View File

@@ -0,0 +1,91 @@
<div class="discuz_x cl"></div>
<ul class="cl">
<!--{if $_GET[action] == 'newthread'}-->
<label for="rewardprice">
<li class="flex-box mli">
<div class="flex pl5"><span class="z xg1">{lang reward_price}</span></div>
<div class="flex"><input type="text" name="rewardprice" id="rewardprice" class="px pxs" size="6" onkeyup="getrealprice(this.value)" value="{$_G['group']['minrewardprice']}" /></div>
<div class="flex"><span class="y xg1 xs1">{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][2]][unit]}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][2]][title]}</span></div>
</li>
</label>
<li class="flex-box mli mtit">
<div class="flex pl5"><span class="z xg1">{lang reward_tax_after} <strong id="realprice">0</strong> {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][2]][unit]}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][2]][title]}</span></div>
</li>
<li class="flex-box mli mtit">
<div class="flex pl5"><span class="z xg1">
{lang reward_price_min} {$_G['group']['minrewardprice']} {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][2]][unit]}
<!--{if $_G['group']['maxrewardprice'] > 0}-->, {lang reward_price_max} {$_G['group']['maxrewardprice']} {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][2]][unit]}<!--{/if}-->
, {lang you_have} <!--{echo getuserprofile('extcredits'.$_G['setting']['creditstransextra'][2]);}--> {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][2]][unit]}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][2]][title]}
</span></div>
</li>
<!--{elseif $_GET[action] == 'edit'}-->
<!--{if $isorigauthor}-->
<!--{if $thread['price'] > 0}-->
<label for="rewardprice">
<li class="flex-box mli">
<div class="flex pl5"><span class="z xg1">{lang reward_price}</span></div>
<div class="flex"><input type="text" name="rewardprice" id="rewardprice" class="px pxs" onkeyup="getrealprice(this.value)" size="6" value="$rewardprice" /></div>
<div class="flex"><span class="y xg1 xs1">{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][2]][title]}</span></div>
</li>
</label>
<li class="flex-box mli mtit">
<div class="flex pl5"><span class="z xg1">{lang reward_tax_add} <strong id="realprice">0</strong> {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][2]][unit]}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][2]][title]}</span></div>
</li>
<li class="flex-box mli mtit">
<div class="flex pl5"><span class="z xg1">{lang reward_price_min} {$_G['group']['minrewardprice']} {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][2]][unit]}
<!--{if $_G['group']['maxrewardprice'] > 0}-->, {lang reward_price_max} {$_G['group']['maxrewardprice']} {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][2]][unit]}<!--{/if}-->
, {lang you_have} <!--{echo getuserprofile('extcredits'.$_G['setting']['creditstransextra'][2]);}--> {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][2]][unit]}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][2]][title]}</span></div>
</li>
<!--{else}-->
<li class="flex-box mli mtit"><div class="flex pl5"><span class="z xg1">{lang post_reward_resolved}</span></div></li>
<input type="hidden" name="rewardprice" value="$rewardprice" tabindex="1" />
<!--{/if}-->
<!--{else}-->
<!--{if $thread['price'] > 0}-->
{lang reward_price}: $rewardprice {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][2]][unit]}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][2]][title]}
<!--{else}-->
{lang post_reward_resolved}
<!--{/if}-->
<!--{/if}-->
<!--{/if}-->
<!--{if $_G['setting']['rewardexpiration'] > 0}-->
<li class="flex-box mli mtit">
<div class="flex pl5"><span class="z xg1">$_G['setting']['rewardexpiration'] {lang post_reward_message}</span></div>
</li>
<!--{/if}-->
<!--{hook/post_reward_extra}-->
</ul>
<script type="text/javascript" reload="1">
function getrealprice(price){
if(!price.search(/^\d+$/) ) {
n = Math.ceil(parseInt(price) + price * $_G['setting']['creditstax']);
if(price > 32767) {
getID('realprice').innerHTML = '<b>{lang reward_price_overflow}</b>';
}
<!--{if $_GET[action] == 'edit'}-->
else if(price < $rewardprice) {
getID('realprice').innerHTML = '<b>{lang reward_cant_fall}</b>';
}
<!--{/if}-->
else if(price < $_G['group']['minrewardprice'] || ($_G['group']['maxrewardprice'] > 0 && price > $_G['group']['maxrewardprice'])) {
getID('realprice').innerHTML = '<b>{lang reward_price_bound}</b>';
} else {
getID('realprice').innerHTML = n;
}
}else{
getID('realprice').innerHTML = '<b>{lang input_invalid}</b>';
}
}
if(getID('rewardprice')) {
getrealprice(getID('rewardprice').value)
}
$(document).on('click', '#postsubmit', function() {
if(getID('postform').rewardprice && getID('postform').rewardprice.value == '') {
popup.open('{lang post_reward_error_message}', 'alert');
return false;
}
return true;
});
</script>

View File

@@ -0,0 +1,472 @@
<input type="hidden" name="selectsortid" size="45" value="$_G['forum_selectsortid']" />
<!--{if $isfirstpost && $sortid}-->
<script type="text/javascript">
var forum_optionlist = <!--{if $forum_optionlist}-->'$forum_optionlist'<!--{else}-->''<!--{/if}-->;
</script>
<!--{/if}-->
<!--{if $_G['forum_typetemplate']}-->
<!--{if $_G['forum']['threadsorts']['description'][$_G['forum_selectsortid']] || $_G['forum']['threadsorts']['expiration'][$_G['forum_selectsortid']]}-->
<ul class="post_box cl">
<!--{if $_G['forum']['threadsorts']['description'][$_G['forum_selectsortid']]}-->
<li class="flex-box mli">
<div class="flex xg1">{lang threadtype_description}</div>
<div class="flex-3">$_G['forum']['threadsorts']['description'][$_G['forum_selectsortid']]</div>
</li>
<!--{/if}-->
<!--{if $_G['forum']['threadsorts']['expiration'][$_G['forum_selectsortid']]}-->
<li class="flex-box mli">
<div class="flex xg1">{lang threadtype_expiration}</div>
<div class="flex-3">
<select name="typeexpiration" id="typeexpiration" class="sort_sel">
<option value="259200">{lang three_days}</option>
<option value="432000">{lang five_days}</option>
<option value="604800">{lang seven_days}</option>
<option value="2592000">{lang one_month}</option>
<option value="7776000">{lang three_months}</option>
<option value="15552000">{lang half_year}</option>
<option value="31536000">{lang one_year}</option>
</select>
</div>
</li>
<!--{if $_G['forum_optiondata']['expiration']}--><li class="flex-box mli mtit">{lang valid_before}: $_G['forum_optiondata']['expiration']</li><!--{/if}-->
<!--{/if}-->
</ul>
<!--{/if}-->
$_G['forum_typetemplate']
<!--{else}-->
<ul class="post_box cl">
<!--{if $_G['forum']['threadsorts']['description'][$_G['forum_selectsortid']]}-->
<li class="flex-box mli mtext">
<div class="flex xg1">{lang threadtype_description}</div>
<div class="flex-3 xg1">$_G['forum']['threadsorts']['description'][$_G['forum_selectsortid']]</div>
</li>
<!--{/if}-->
<!--{if $_G['forum']['threadsorts']['expiration'][$_G['forum_selectsortid']]}-->
<li class="flex-box mli mtext">
<div class="flex xg1">{lang threadtype_expiration}</div>
<div class="flex-3 xg1">
<select name="typeexpiration" id="typeexpiration" class="sort_sel">
<option value="259200">{lang three_days}</option>
<option value="432000">{lang five_days}</option>
<option value="604800">{lang seven_days}</option>
<option value="2592000">{lang one_month}</option>
<option value="7776000">{lang three_months}</option>
<option value="15552000">{lang half_year}</option>
<option value="31536000">{lang one_year}</option>
</select>
</div>
</li>
<!--{if $_G['forum_optiondata']['expiration']}--><li class="flex-box mli mtit">{lang valid_before}: $_G['forum_optiondata']['expiration']</li><!--{/if}-->
<!--{/if}-->
<!--{loop $_G['forum_optionlist'] $optionid $option}-->
<li class="flex-box mli mtext">
<div class="flex xg1">$option['title']</div>
<div class="<!--{if $option['unit']}-->flex-2<!--{else}-->flex-3<!--{/if}--> xg1<!--{if $option['type'] == 'image'}--> group_upico<!--{/if}-->" id="select_$option['identifier']">
<!--{if in_array($option['type'], array('number', 'text', 'email', 'calendar', 'image', 'url', 'range', 'upload', 'range'))}-->
<!--{if $option['type'] == 'calendar'}-->
<input type="text" name="typeoption[{$option['identifier']}]" id="typeoption_$option['identifier']" size="$option['inputsize']" onchange="checkoption('$option['identifier']', '$option['required']', '$option['type']')" value="$option['value']" $option['unchangeable'] class="px"/>
<!--{elseif $option['type'] == 'image'}-->
<em class="bg_e" id="sortattach_image_{$option['identifier']}_img"><a href="$option['value']['url']" target="_blank"><img src="{if $option['value']['url']}$option['value']['url']{else}{STATICURL}image/common/nophoto.gif{/if}"></a></em>
</div>
<div class="editpic" style="margin:0;">
<!--{if !($option['unchangeable'] && $option['value'])}-->
<ul>
<li class="up_btn flex">
<a class="" href="javascript:;"><!--{if $option['value']}-->{lang update}<!--{else}-->{lang upload}<!--{/if}--><input type="file" id="sortattach_image_{$option['identifier']}" name="sortattach_image_{$option['identifier']}" class="sortattach_button" accept="image/*"></a>
</li>
</ul>
<input type="hidden" name="typeoption[{$option['identifier']}][aid]" value="$option['value']['aid']" id="sortattach_image_{$option['identifier']}_aid" />
<input type="hidden" name="sortaid_{$option['identifier']}_url" id="sortattach_image_{$option['identifier']}_url" />
<!--{if $option['value']}--><input type="hidden" name="oldsortaid[{$option['identifier']}]" value="$option['value']['aid']" /><!--{/if}-->
<input type="hidden" name="typeoption[{$option['identifier']}][url]" id="sortattach_image_{$option['identifier']}_oldurl" {if $option['value']['url']}value="$option['value']['url']"{/if} />
<!--{/if}-->
<!--{else}-->
<input type="text" name="typeoption[{$option['identifier']}]" id="typeoption_$option['identifier']" class="px" size="$option['inputsize']" onBlur="checkoption('$option['identifier']', '$option['required']', '$option['type']'{if $option[maxnum]}, '$option[maxnum]'{else}, '0'{/if}{if $option['minnum']}, '$option['minnum']'{else}, '0'{/if}{if $option['maxlength']}, '$option['maxlength']'{/if})" value="{if $_G['tid']}$option['value']{else}{if $member_profile[$option['profile']]}$member_profile[$option['profile']]{else}$option['defaultvalue']{/if}{/if}" $option['unchangeable'] />
<!--{/if}-->
<!--{elseif in_array($option['type'], array('radio', 'checkbox', 'select'))}-->
<!--{if $option['type'] == 'select'}-->
<!--{loop $option['value'] $selectedkey $selectedvalue}-->
<!--{if $selectedkey}-->
<script type="text/javascript">
changeselectthreadsort('$selectedkey', $optionid, 'update');
</script>
<!--{else}-->
<select onchange="changeselectthreadsort(this.value, '$optionid');checkoption('$option['identifier']', '$option['required']', '$option['type']')" $option['unchangeable'] class="sort_sel">
<option value="0">{lang please_select}</option>
<!--{loop $option['choices'] $id $value}-->
<!--{if !$value['foptionid']}-->
<option value="$id">$value['content'] <!--{if $value['level'] != 1}-->&raquo;<!--{/if}--></option>
<!--{/if}-->
<!--{/loop}-->
</select>
<!--{/if}-->
<!--{/loop}-->
<!--{if !is_array($option['value'])}-->
<select id="$optionid" onchange="changeselectthreadsort(this.value, '$optionid');" $option['unchangeable'] class="sort_sel">
<option value="0">{lang please_select}</option>
<!--{loop $option['choices'] $id $value}-->
<!--{if !$value['foptionid']}-->
<option value="$id">$value['content'] <!--{if $value['level'] != 1}-->&raquo;<!--{/if}--></option>
<!--{/if}-->
<!--{/loop}-->
</select>
<!--{/if}-->
<!--{elseif $option['type'] == 'radio'}-->
<ul class="flex-box flex-wrap cl">
<!--{loop $option['choices'] $id $value}-->
<li class="flex flex-half"><label><input type="radio" name="typeoption[{$option['identifier']}]" id="typeoption_$option['identifier']" onclick="checkoption('$option['identifier']', '$option['required']', '$option['type']')" value="$id" $option['value'][$id] $option['unchangeable'] class="pr"> $value</label></li>
<!--{/loop}-->
</ul>
<!--{elseif $option['type'] == 'checkbox'}-->
<ul class="flex-box flex-wrap cl">
<!--{loop $option['choices'] $id $value}-->
<li class="flex flex-half"><label><input type="checkbox" name="typeoption[{$option['identifier']}][]" id="typeoption_$option['identifier']" onclick="checkoption('$option['identifier']', '$option['required']', '$option['type']')" value="$id" $option['value'][$id][$id] $option['unchangeable'] class="pc"> $value</label></li>
<!--{/loop}-->
</ul>
<!--{/if}-->
<!--{elseif in_array($option['type'], array('textarea'))}-->
<textarea name="typeoption[{$option['identifier']}]" id="typeoption_$option['identifier']" rows="$option['rowsize']" cols="$option['colsize']" onBlur="checkoption('$option['identifier']', '$option['required']', '$option['type']', 0, 0{if $option[maxlength]}, '$option['maxlength']'{/if})" $option['unchangeable'] class="pt flw_replybox p0 pl5 pt10" placeholder="{$option['title']}">$option['value']</textarea>
<!--{/if}-->
</div>
<!--{if $option['unit']}--><div class="flex xg1"><span class="y">$option['unit']</span></div><!--{/if}-->
</li>
<li class="mli mtit none" id="check{$option['identifier']}"></li>
<!--{if $option['maxnum'] || $option['minnum'] || $option['maxlength'] || $option['unchangeable'] || $option[description]}-->
<li class="flex-box mli mtit">
<!--{if $option['maxnum']}-->
{lang maxnum} $option[maxnum]
<!--{/if}-->
<!--{if $option['minnum']}-->
{lang minnum} $option[minnum]
<!--{/if}-->
<!--{if $option['maxlength']}-->
{lang maxlength} $option[maxlength]
<!--{/if}-->
<!--{if $option['unchangeable']}-->
{lang unchangeable}
<!--{/if}-->
<!--{if $option[description]}-->
$option[description]
<!--{/if}-->
</li>
<!--{/if}-->
<!--{if $option['type'] == 'calendar'}--><li class="flex-box mli mtit"><div class="flex pl5"><span class="z xg1">{lang admin_close_expire_comment}</span></div></li><!--{/if}-->
<!--{/loop}-->
</ul>
<div class="discuz_x cl"></div>
<!--{/if}-->
<script type="text/javascript" reload="1">
var CHECKALLSORT = false;
function warning(obj, msg) {
obj.style.display = '';
obj.innerHTML = '<i class="fico-error fic4 fc-l vm"></i> ' + msg;
obj.className = "mli mtit warning";
if(CHECKALLSORT) {
popup.open(msg, 'alert');
}
}
$(document).on('change', '.sortattach_button', function() {
//alert(this.id);
var id = this.id;
popup.open('<img src="' + IMGDIR + '/imageloading.gif">');
uploadsuccess = function(data) {
if(data == '') {
popup.open('{lang uploadpicfailed}', 'alert');
}
var dataarr = data.split('|');
if(dataarr[0] == 'DISCUZUPLOAD' && dataarr[2] == 0) {
popup.close();
$('#'+id+'_img').html('<a href="{$_G['setting']['attachurl']}forum/'+dataarr[5]+'" target="_blank"><img id="aimg_'+dataarr[3]+'" src="{$_G['setting']['attachurl']}forum/'+dataarr[5]+'" /></a>');
getID(id + '_aid').value = dataarr[3];
getID(id + '_url').value = '{$_G['setting']['attachurl']}forum/'+dataarr[5];
getID(id + '_oldurl').value = '{$_G['setting']['attachurl']}forum/'+dataarr[5];
} else {
var sizelimit = '';
if(dataarr[7] == 'ban') {
sizelimit = '{lang uploadpicatttypeban}';
} else if(dataarr[7] == 'perday') {
sizelimit = '{lang donotcross}'+Math.ceil(dataarr[8]/1024)+'K)';
} else if(dataarr[7] > 0) {
sizelimit = '{lang donotcross}'+Math.ceil(dataarr[7]/1024)+'K)';
}
popup.open(STATUSMSG[dataarr[2]] + sizelimit, 'alert');
}
};
if(typeof FileReader != 'undefined' && this.files[0]) {//note 支持html5上传新特性
$.buildfileupload({
uploadurl:'misc.php?mod=swfupload&operation=upload&type=image&inajax=yes&infloat=yes&simple=2',
files:this.files,
uploadformdata:{uid:"$_G['uid']", hash:"<!--{eval echo md5(substr(md5($_G['config']['security']['authkey']), 8).$_G['uid'])}-->"},
uploadinputname:'Filedata',
maxfilesize:"$swfconfig['max']",
success:uploadsuccess,
error:function() {
popup.open('{lang uploadpicfailed}', 'alert');
}
});
} else {
$.ajaxfileupload({
url:'misc.php?mod=swfupload&operation=upload&type=image&inajax=yes&infloat=yes&simple=2',
data:{uid:"$_G['uid']", hash:"<!--{eval echo md5(substr(md5($_G['config']['security']['authkey']), 8).$_G['uid'])}-->"},
dataType:'text',
fileElementId:'filedata',
success:uploadsuccess,
error: function() {
popup.open('{lang uploadpicfailed}', 'alert');
}
});
}
});
$(document).on('click', '#postsubmit', function() {
CHECKALLSORT = true;
<!--{loop $_G['forum_optionlist'] $optionid $option}-->
if(!checkoption('$option[identifier]', '$option[required]', '$option[type]')) {
return false;
}
<!--{/loop}-->
return true;
});
function xmlobj() {
var obj = new Object();
obj.createXMLDoc = function (xmlstring) {
var xmlobj = false;
if (window.DOMParser && document.implementation && document.implementation.createDocument) {
try {
var domparser = new DOMParser();
xmlobj = domparser.parseFromString(xmlstring, 'text/xml');
} catch (e) {}
} else if (window.ActiveXObject) {
var versions = ["MSXML2.DOMDocument.5.0", "MSXML2.DOMDocument.4.0", "MSXML2.DOMDocument.3.0",
"MSXML2.DOMDocument", "Microsoft.XmlDom"];
for (var i = 0; i < versions.length; i++) {
try {
xmlobj = new ActiveXObject(versions[i]);
if (xmlobj) {
xmlobj.async = false;
xmlobj.loadXML(xmlstring);
}
} catch (e) {}
}
}
return xmlobj;
};
obj.xml2json = function (xmlobj, node) {
var nodeattr = node.attributes;
if (nodeattr != null) {
if (nodeattr.length && xmlobj == null) {
xmlobj = new Object();
}
for (var i = 0; i < nodeattr.length; i++) {
xmlobj[nodeattr[i].name] = nodeattr[i].value;
}
}
var nodetext = "text";
if (node.text == null) {
nodetext = "textContent";
}
var nodechilds = node.childNodes;
if (nodechilds != null) {
if (nodechilds.length && xmlobj == null) {
xmlobj = new Object();
}
for (var i = 0; i < nodechilds.length; i++) {
if (nodechilds[i].tagName != null) {
if (nodechilds[i].childNodes[0] != null && nodechilds[i].childNodes.length <= 1 && (nodechilds[
i].childNodes[0].nodeType == 3 || nodechilds[i].childNodes[0].nodeType == 4)) {
if (xmlobj[nodechilds[i].tagName] == null) {
xmlobj[nodechilds[i].tagName] = nodechilds[i][nodetext];
} else {
if (typeof (xmlobj[nodechilds[i].tagName]) == "object" && xmlobj[nodechilds[i].tagName]
.length) {
xmlobj[nodechilds[i].tagName][xmlobj[nodechilds[i].tagName].length] = nodechilds[i]
[nodetext];
} else {
xmlobj[nodechilds[i].tagName] = [xmlobj[nodechilds[i].tagName]];
xmlobj[nodechilds[i].tagName][1] = nodechilds[i][nodetext];
}
}
} else {
if (nodechilds[i].childNodes.length) {
if (xmlobj[nodechilds[i].tagName] == null) {
xmlobj[nodechilds[i].tagName] = new Object();
this.xml2json(xmlobj[nodechilds[i].tagName], nodechilds[i]);
} else {
if (xmlobj[nodechilds[i].tagName].length) {
xmlobj[nodechilds[i].tagName][xmlobj[nodechilds[i].tagName].length] = new Object();
this.xml2json(xmlobj[nodechilds[i].tagName][xmlobj[nodechilds[i].tagName].length -
1], nodechilds[i]);
} else {
xmlobj[nodechilds[i].tagName] = [xmlobj[nodechilds[i].tagName]];
xmlobj[nodechilds[i].tagName][1] = new Object();
this.xml2json(xmlobj[nodechilds[i].tagName][1], nodechilds[i]);
}
}
} else {
xmlobj[nodechilds[i].tagName] = nodechilds[i][nodetext];
}
}
}
}
}
};
return obj;
}
var xml = new xmlobj();
var xmlpar = xml.createXMLDoc(forum_optionlist);
var forum_optionlist_obj = new Object();
xml.xml2json(forum_optionlist_obj, xmlpar);
function changeselectthreadsort(selectchoiceoptionid, optionid, type) {
if (selectchoiceoptionid == '0') {
return;
}
var soptionid = 's' + optionid;
var sselectchoiceoptionid = 's' + selectchoiceoptionid;
forum_optionlist = forum_optionlist_obj['forum_optionlist'];
var choicesarr = forum_optionlist[soptionid]['schoices'];
var lastcount = 1;
var name = issearch = id = nameid = '';
if (type == 'search') {
issearch = ', \'search\'';
name = ' name="searchoption[' + optionid + '][value]"';
id = 'id="' + forum_optionlist[soptionid]['sidentifier'] + '"';
} else {
name = ' name="typeoption[' + forum_optionlist[soptionid]['sidentifier'] + ']"';
id = 'id="typeoption_' + forum_optionlist[soptionid]['sidentifier'] + '"';
}
if ((choicesarr[sselectchoiceoptionid]['slevel'] == 1 || type == 'search') && choicesarr[sselectchoiceoptionid][
'scount'] == 1) {
nameid = name + ' ' + id;
}
var selectoption = '<select' + nameid + ' class="sort_sel" onchange="changeselectthreadsort(this.value, \'' + optionid +
'\'' + issearch + ');checkoption(\'' + forum_optionlist[soptionid]['sidentifier'] + '\', \'' + forum_optionlist[
soptionid]['srequired'] + '\', \'' + forum_optionlist[soptionid]['stype'] + '\')" ' + ((forum_optionlist[
soptionid]['sunchangeable'] == 1 && type == 'update') ? 'disabled' : '') +
'><option value="0">{lang please_select}</option>';
for (var i in choicesarr) {
nameid = '';
if ((choicesarr[sselectchoiceoptionid]['slevel'] == 1 || type == 'search') && choicesarr[i]['scount'] ==
choicesarr[sselectchoiceoptionid]['scount']) {
nameid = name + ' ' + id;
}
if (choicesarr[i]['sfoptionid'] != '0') {
var patrn1 = new RegExp("^" + choicesarr[i]['sfoptionid'] + "\\.", 'i');
var patrn2 = new RegExp("^" + choicesarr[i]['sfoptionid'] + "$", 'i');
if (selectchoiceoptionid.match(patrn1) == null && selectchoiceoptionid.match(patrn2) == null) {
continue;
}
}
if (choicesarr[i]['scount'] != lastcount) {
if (parseInt(choicesarr[i]['scount']) >= (parseInt(choicesarr[sselectchoiceoptionid]['scount']) + parseInt(
choicesarr[sselectchoiceoptionid]['slevel']))) {
break;
}
selectoption += '</select>' + "\r\n" + '<select' + nameid +
' class="sort_sel" onchange="changeselectthreadsort(this.value, \'' + optionid + '\'' + issearch +
');checkoption(\'' + forum_optionlist[soptionid]['sidentifier'] + '\', \'' + forum_optionlist[soptionid]
['srequired'] + '\', \'' + forum_optionlist[soptionid]['stype'] + '\')" ' + ((forum_optionlist[
soptionid]['sunchangeable'] == 1 && type == 'update') ? 'disabled' : '') +
'><option value="0">{lang please_select}</option>';
lastcount = parseInt(choicesarr[i]['scount']);
}
var patrn1 = new RegExp("^" + choicesarr[i]['soptionid'] + "\\.", 'i');
var patrn2 = new RegExp("^" + choicesarr[i]['soptionid'] + "$", 'i');
var isnext = '';
if (parseInt(choicesarr[i]['slevel']) != 1) {
isnext = '&raquo;';
}
if (selectchoiceoptionid.match(patrn1) != null || selectchoiceoptionid.match(patrn2) != null) {
selectoption += "\r\n" + '<option value="' + choicesarr[i]['soptionid'] + '" selected="selected">' +
choicesarr[i]['scontent'] + isnext + '</option>';
} else {
selectoption += "\r\n" + '<option value="' + choicesarr[i]['soptionid'] + '">' + choicesarr[i]['scontent'] +
isnext + '</option>';
}
}
selectoption += '</select>';
if (type == 'search') {
selectoption += "\r\n" + '<input type="hidden" name="searchoption[' + optionid + '][type]" value="select">';
}
getID('select_' + forum_optionlist[soptionid]['sidentifier']).innerHTML = selectoption;
}
function checkoption(identifier, required, checktype, checkmaxnum, checkminnum, checkmaxlength) {
if (checktype != 'image' && checktype != 'select' && !getID('typeoption_' + identifier) || !getID('check' + identifier)) {
return true;
}
var ce = getID('check' + identifier);
ce.innerHTML = '';
if (checktype == 'select') {
if (required != '0' && (getID('typeoption_' + identifier) == null || getID('typeoption_' + identifier).value == '0')) {
warning(ce, '{lang mob_required_lost}');
return false;
} else if (required == '0' && (getID('typeoption_' + identifier) == null || getID('typeoption_' + identifier).value ==
'0')) {
ce.innerHTML = '<i class="fico-error fic4 fc-l vm"></i> {lang mob_sort_selnext}';
ce.className = "mli mtit warning";
return true;
}
}
if (checktype == 'radio' || checktype == 'checkbox') {
var nodes = getID('typeoption_' + identifier).parentNode.parentNode.parentNode.getElementsByTagName('INPUT');
var nodechecked = false;
for (var i = 0; i < nodes.length; i++) {
if (nodes[i].id == 'typeoption_' + identifier) {
if (nodes[i].checked) {
nodechecked = true;
}
}
}
if (!nodechecked && required != '0') {
warning(ce, '{lang mob_required_lost}');
return false;
}
}
if (checktype == 'image') {
var checkvalue = getID('sortaid_' + identifier).value;
} else {
var checkvalue = getID('typeoption_' + identifier).value.trim();
}
if (required != '0') {
if (checkvalue == '') {
warning(ce, '{lang mob_required_lost}');
return false;
} else {
ce.innerHTML = '<i class="fico-check_right fic4 fc-v vm"></i>';
}
}
if (checkvalue) {
if (checktype == 'email' && !(/^[\-\.\w]+@[\.\-\w]+(\.\w+)+$/.test(checkvalue))) {
warning(ce, '{lang mob_sort_emailerr}');
return false;
} else if ((checktype == 'text' || checktype == 'textarea') && checkmaxlength != '0' && mb_strlen(checkvalue) >
checkmaxlength) {
warning(ce, '{lang mob_sort_toolong}');
return false;
} else if ((checktype == 'number' || checktype == 'range')) {
if (isNaN(checkvalue)) {
warning(ce, '{lang mob_sort_numerr}');
return false;
} else if (checkmaxnum != '0' && parseInt(checkvalue) > parseInt(checkmaxnum)) {
warning(ce, '{lang mob_sort_max}');
return false;
} else if (checkminnum != '0' && parseInt(checkvalue) < parseInt(checkminnum)) {
warning(ce, '{lang mob_sort_min}');
return false;
}
} else if (checktype == 'url' && !(/(http[s]?|ftp):\/\/[^\/\.]+?\..+\w[\/]?$/i.test(checkvalue))) {
warning(ce, '{lang mob_sort_urlerr}');
return false;
}
ce.innerHTML = '<i class="fico-check_right fic4 fc-v vm"></i>';
}
return true;
}
</script>

View File

@@ -0,0 +1,167 @@
<input type="hidden" name="trade" value="yes" />
<input type="hidden" name="item_type" value="1" />
<div class="discuz_x cl"></div>
<ul class="cl">
<li class="flex-box mli mtit"><div class="flex pl5">{lang post_message1}</div></li>
<li class="flex-box mli">
<div class="flex pl5"><span class="z xg1">{lang post_trade_name}</span></div>
<div class="flex-3"><input type="text" name="item_name" id="item_name" class="px oinf" value="$trade['subject']" /></div>
</li>
<li class="flex-box mli">
<div class="flex pl5"><span class="z xg1">{lang post_trade_number}</span></div>
<div class="flex-3"><input type="text" name="item_number" id="item_number" class="px" value="$trade['amount']" /></div>
</li>
<li class="flex-box mli">
<div class="flex">
<select id="item_quality" class="sort_sel pl5" name="item_quality">
<option value="1" {if $trade['quality'] == 1}selected="selected"{/if}>{lang trade_new}</option>
<option value="2" {if $trade['quality'] == 2}selected="selected"{/if}>{lang trade_old}</option>
</select>
</div>
</li>
<label for="transport">
<li class="flex-box mli">
<div class="flex pl5"><span class="z xg1">{lang post_trade_transport}</span></div>
<div class="flex-3">
<select name="transport" id="transport" onchange="getID('logisticssetting').style.display = getID('transport').value == 'virtual' ? 'none' : 'flex'" class="sort_sel">
<option value="virtual" {if $trade['transport'] == 3}selected="selected"{/if}>{lang post_trade_transport_virtual}</option>
<option value="seller" {if $trade['transport'] == 1}selected="selected"{/if}>{lang post_trade_transport_seller}</option>
<option value="buyer" {if $trade['transport'] == 2}selected="selected"{/if}>{lang post_trade_transport_buyer}</option>
<option value="logistics" {if $trade['transport'] == 4}selected="selected"{/if}>{lang trade_type_transport_physical}</option>
<option value="offline" {if $trade['transport'] == 0}selected="selected"{/if}>{lang post_trade_transport_offline}</option>
</select>
</div>
</li>
</label>
<li class="flex-box mli">
<div class="flex pl5"><span class="z xg1">{lang post_trade_price}</span></div>
<div class="flex-3"><input type="text" name="item_price" id="item_price" class="px" value="$trade['price']" placeholder="{lang post_current_price}" /></div>
</li>
<li class="flex-box mli">
<div class="flex pl5"><span class="z xg1"></span></div>
<div class="flex-3"><input type="text" name="item_costprice" id="item_costprice" class="px" value="$trade['costprice']" placeholder="{lang post_original_price}" /></div>
</li>
<!--{if $_G['setting']['creditstransextra'][5] != -1}-->
<li class="flex-box mli">
<div class="flex pl5"><span class="z xg1"></span></div>
<div class="flex-3"><input type="text" name="item_credit" id="item_credit" class="px" value="$trade['credit']" placeholder="{lang post_current_credit}({$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][5]][title]})" /></div>
</li>
<li class="flex-box mli">
<div class="flex pl5"><span class="z xg1"></span></div>
<div class="flex-3"><input type="text" name="item_costcredit" id="item_costcredit" class="px" value="$trade['costcredit']" placeholder="{lang post_original_credit}({$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][5]][title]})" /></div>
</li>
<li class="flex-box mli" id="logisticssetting" style="display:{if !$trade['transport'] || $trade['transport'] == 3}none{/if}">
<div class="flex"><input type="text" name="postage_mail" id="postage_mail" class="px" value="$trade['ordinaryfee']" placeholder="{lang post_trade_transport_mail}" /></div>
<div class="flex"><input type="text" name="postage_express" id="postage_express" class="px" value="$trade['expressfee']" placeholder="{lang post_trade_transport_express}" /></div>
<div class="flex"><input type="text" name="postage_ems" id="postage_ems" class="px" value="$trade['emsfee']" placeholder="EMS" /></div>
</li>
<!--{/if}-->
<li class="flex-box mli">
<div class="flex pl5"><span class="z xg1">{lang post_trade_paymethod}</span></div>
<div class="flex-3">
<select name="paymethod" id="paymethod" onchange="display('tenpayseller')" class="sort_sel">
<!--{if $_G['setting']['ec_tenpay_opentrans_chnid']}--><option value="0" {if $trade['tenpayaccount']}selected{/if}>{lang post_trade_paymethod_online}</option><!--{/if}-->
<option value="1" {if !$trade['tenpayaccount']}selected{/if}>{lang post_trade_paymethod_offline}</option>
</select>
</div>
</li>
<li class="flex-box mli" id="tenpayseller" style="{if !$trade['tenpayaccount']}display:none{/if}">
<div class="flex pl5"><span class="z xg1">{lang post_trade_tenpay_seller}</span></div>
<div class="flex-3"><input type="text" name="tenpay_account" id="tenpay_account" class="px" value="$trade['tenpayaccount']" /></div>
</li>
<li class="flex-box mli">
<div class="flex pl5"><span class="z xg1">{lang post_trade_locus}</span></div>
<div class="flex-3"><input type="text" name="item_locus" id="item_locus" class="px" value="$trade['locus']" /></div>
</li>
<li class="flex-box mli">
<div class="flex pl5"><span class="z xg1">{lang valid_before}</span></div>
<div class="flex-3"><input type="text" name="item_expiration" id="item_expiration" class="px" autocomplete="off" value="$trade['expiration']" /></div>
</li>
<li class="flex-box mli mtit"><div class="flex pl5">{lang threadsort_calendar}</div></li>
<!--{if $allowpostimg}-->
<li class="flex-box mli mt10 mb10 b0">
<div class="flex group_upico">
<em class="bg_e" id="tradeattach_image"><img src="{if $tradeattach['attachment']}$tradeattach['url']/{if $tradeattach['thumb']}{eval echo getimgthumbname($tradeattach['attachment']);}{else}$tradeattach['attachment']{/if}{else}{STATICURL}image/common/nophoto.gif{/if}"></em>
<span>{lang post_trade_picture}</span>
</div>
<div class="editpic" style="margin:0;">
<ul>
<li class="up_btn flex">
<a class="" href="javascript:;"><!--{if $tradeattach['attachment']}-->{lang update}<!--{else}-->{lang upload}<!--{/if}--><input type="file" id="tradeimg" name="tradeimg" class="" accept="image/*"></a>
</li>
</ul>
</div>
</li>
<input type="hidden" name="tradeaid" id="tradeaid" {if $tradeattach['attachment']}value="$tradeattach['aid']" {/if}/>
<input type="hidden" name="tradeaid_url" id="tradeaid_url" />
<!--{/if}-->
<!--{hook/post_trade_extra}-->
</ul>
<div class="discuz_x cl"></div>
<script type="text/javascript" reload="1">
$(document).on('click', '#postsubmit', function() {
if(getID('postform').item_name.value == '') {
showDialog('{lang post_goods_error_message_1}', 'alert', '', function () { getID('postform').item_name.focus() });
return false;
}
if(getID('postform').item_number.value == '') {
showDialog('{lang post_goods_error_message_2}', 'alert', '', function () { getID('postform').item_number.focus() });
return false;
}
if(getID('postform').item_price.value == '' && getID('postform').item_credit.value == '') {
showDialog('{lang post_goods_error_message_3}', 'alert', '', function () { getID('postform').item_price.focus() });
return false;
}
return true;
});
$(document).on('change', '#tradeimg', function() {
popup.open('<img src="' + IMGDIR + '/imageloading.gif">');
uploadsuccess = function(data) {
if(data == '') {
popup.open('{lang uploadpicfailed}', 'alert');
}
var dataarr = data.split('|');
if(dataarr[0] == 'DISCUZUPLOAD' && dataarr[2] == 0) {
popup.close();
$('#tradeattach_image').html('<img id="aimg_'+dataarr[3]+'" src="{$_G['setting']['attachurl']}forum/'+dataarr[5]+'" />');
getID('tradeaid').value = dataarr[3];
getID('tradeaid_url').value = dataarr[5];
} else {
var sizelimit = '';
if(dataarr[7] == 'ban') {
sizelimit = '{lang uploadpicatttypeban}';
} else if(dataarr[7] == 'perday') {
sizelimit = '{lang donotcross}'+Math.ceil(dataarr[8]/1024)+'K)';
} else if(dataarr[7] > 0) {
sizelimit = '{lang donotcross}'+Math.ceil(dataarr[7]/1024)+'K)';
}
popup.open(STATUSMSG[dataarr[2]] + sizelimit, 'alert');
}
};
if(typeof FileReader != 'undefined' && this.files[0]) {//note 支持html5上传新特性
$.buildfileupload({
uploadurl:'misc.php?mod=swfupload&operation=upload&type=image&inajax=yes&infloat=yes&simple=2',
files:this.files,
uploadformdata:{uid:"$_G['uid']", hash:"<!--{eval echo md5(substr(md5($_G['config']['security']['authkey']), 8).$_G['uid'])}-->"},
uploadinputname:'Filedata',
maxfilesize:"$swfconfig['max']",
success:uploadsuccess,
error:function() {
popup.open('{lang uploadpicfailed}', 'alert');
}
});
} else {
$.ajaxfileupload({
url:'misc.php?mod=swfupload&operation=upload&type=image&inajax=yes&infloat=yes&simple=2',
data:{uid:"$_G['uid']", hash:"<!--{eval echo md5(substr(md5($_G['config']['security']['authkey']), 8).$_G['uid'])}-->"},
dataType:'text',
fileElementId:'filedata',
success:uploadsuccess,
error: function() {
popup.open('{lang uploadpicfailed}', 'alert');
}
});
}
});
</script>

View File

@@ -0,0 +1,121 @@
<!--{template common/header}-->
<!--{if empty($_GET['showratetip'])}-->
<!--{if $_GET['action'] == 'rate'}-->
<div class="tip loginbox loginpop p5" id="floatlayout_topicadmin">
<form id="rateform" method="post" autocomplete="off" action="forum.php?mod=misc&action=rate&ratesubmit=yes&infloat=yes&inajax=1">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="tid" value="{$_G['tid']}" />
<input type="hidden" name="pid" value="{$_GET['pid']}" />
<input type="hidden" name="referer" value="{$referer}" />
<input type="hidden" name="handlekey" value="rate">
<h2 class="log_tit" id="return_rate"><a href="javascript:;" onclick="popup.close();"><span class="icon_close y">&nbsp;</span></a>{lang rate}</h2>
<ul class="post_box cl">
<!--{eval $rateselfflag = 0;}-->
<!--{loop $ratelist $id $options}-->
<li class="flex-box mli">
<div class="flex tit">{$_G['setting']['extcredits'][$id]['img']} {$_G['setting']['extcredits'][$id]['title']}</div>
<div class="flex"><input type="text" name="score{$id}" id="score{$id}" value="0" for="rate{$id}_change" class="input show" style="padding:4px 0;" /></div>
<div class="flex y">
<div class="login_select inner b_ok">
<span class="inner">&nbsp;<i class="dm-c-down f_d" style="float:none;"></i>&nbsp;</span>
<select class="select_change" id="rate{$id}"><option>0</option>{echo str_replace(array('<li>','</li>'), array('<option>','</option>'), $options)}</select>
</div>
</div>
</li>
<!--{/loop}-->
<li class="flex-box mli">
<div class="flex tit">{lang reason}</div>
<div class="flex"><input type="text" name="reason" id="reason" for="reason_change" placeholder="{lang user_operation_explain}" class="input show" style="padding:4px 0;" /></div>
<div class="flex y">
<div class="login_select inner b_ok">
<span class="inner">&nbsp;<i class="dm-c-down f_d" style="float:none;"></i>&nbsp;</span>
<!--{eval $selectreason = modreasonselect(1, 'userreasons')}-->
<!--{if $selectreason}-->
<select class="select_change" id="reason"><option value=""></option>$selectreason</select>
<!--{/if}-->
</div>
</div>
</li>
<label for="sendreasonpm">
<li class="flex-box">
<div class="flex tit">{lang admin_pm}</div>
<div class="flex"></div>
<div class="flex y">
<input type="checkbox" name="sendreasonpm" id="sendreasonpm" {if $_G['group']['reasonpm'] == 2 || $_G['group']['reasonpm'] == 3} checked="checked" disabled="disabled"{/if} class="checkbox_key" />
<code class="checkbox checkbox_close"></code>
</div>
</li>
</label>
</ul>
<script>
$(document).on('change', '.select_change', function(){
$('[for="' + $(this).attr('id')+'_change"]').val($(this).find('option:selected').val());
});
</script>
<button name="ratesubmit" type="submit" value="true" class="pn pnc formdialog"><span>{lang confirms}</span></button>
</form>
</div>
<!--{elseif $_GET['action'] == 'removerate'}-->
<div class="tip loginbox loginpop p5" id="floatlayout_topicadmin">
<form id="rateform" method="post" autocomplete="off" action="forum.php?mod=misc&action=removerate&ratesubmit=yes&infloat=yes&inajax=1">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="tid" value="$_G['tid']">
<input type="hidden" name="pid" value="$_GET['pid']">
<input type="hidden" name="referer" value="$referer" />
<input type="hidden" name="handlekey" value="rate">
<h2 class="log_tit" id="return_rate"><a href="javascript:;" onclick="popup.close();"><span class="icon_close y">&nbsp;</span></a>{lang thread_removerate}</h2>
<ul class="post_box cl" style="max-height:200px; overflow-y:auto;">
<li class="flex-box mli">
<div class="flex">&nbsp;</div>
<div class="flex-2 xs1 xg1"><span class="z">{lang username}</span></div>
<div class="flex-2 xs1 xg1">{lang credits}</div>
<div class="flex-3 xs1 xg1"><span class="y">{lang time}</span></div>
</li>
<!--{loop $ratelogs $ratelog}-->
<li class="flex-box mli">
<div class="flex"><input type="checkbox" name="logidarray[]" value="$ratelog['uid'] $ratelog['extcredits'] $ratelog['dbdateline']" /></div>
<div class="flex-2 xs1 xg1"><span class="z"><a href="home.php?mod=space&uid=$ratelog['uid']">$ratelog['username']</a></span></div>
<div class="flex-2 xs1 xg1">{$_G['setting']['extcredits'][$ratelog['extcredits']]['title']} <span class="xi1">$ratelog['scoreview']</span> {$_G['setting']['extcredits'][$ratelog[extcredits]][unit]}</div>
<div class="flex-3 xs1 xg1"><span class="y">$ratelog['dateline']</span></div>
</li>
<!--{if $ratelog['reason']}-->
<li class="flex-box mli">
<div class="flex xs1 xg1"><span class="z">$ratelog['reason']</span></div>
</li>
<!--{/if}-->
<!--{/loop}-->
</ul>
<ul class="post_box cl">
<li class="flex-box mli">
<div class="flex">
<input name="reason" class="input px pxbg b_a pl5" placeholder="{lang admin_operation_explain}" />
</div>
</li>
<label for="sendreasonpm">
<li class="flex-box">
<div class="flex tit">{lang admin_pm}</div>
<div class="flex"></div>
<div class="flex y">
<input type="checkbox" name="sendreasonpm" id="sendreasonpm" class="pc"{if $_G['group']['reasonpm'] == 2 || $_G['group']['reasonpm'] == 3} checked="checked" disabled="disabled"{/if} class="checkbox_key" />
<code class="checkbox checkbox_close"></code>
</div>
</li>
</label>
</ul>
<button class="pn pnc vm formdialog" type="submit" value="true" name="ratesubmit"><span>{lang submit}</span></button>
</form>
</div>
<!--{/if}-->
<!--{else}-->
<div class="tip loginbox loginpop p5" id="floatlayout_topicadmin">
<h2 class="log_tit" id="return_rate"><a href="javascript:;" onclick="popup.close();"><span class="icon_close y">&nbsp;</span></a>{lang board_message}</h2>
<div class="alert_right">
<p>{lang push_succeed}</p>
<p class="alert_btnleft">
<a href="javascript:;" class="xi1 dialog">{lang click_here}</a> {lang rate_thread}
</p>
</div>
<button onclick="popup.close();" id="closebtn" class="pn pnc" type="button" fwin="rate"><strong>{lang close}</strong></button>
</div>
<!--{/if}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,31 @@
<!--{template common/header}-->
<div class="tip loginbox loginpop p5" id="floatlayout_topicadmin">
<h2 class="log_tit" id="return_rate"><a href="javascript:;" onclick="popup.close();"><span class="icon_close y">&nbsp;</span></a>{lang rate_view}</h2>
<ul class="post_box cl" style="max-height:200px; overflow-y:auto;">
<li class="flex-box mli">
<div class="flex-2 xs1 xg1"><span class="z">{lang credits}</span></div>
<div class="flex-2 xs1 xg1"><span class="z">{lang username}</span></div>
<div class="flex-3 xs1 xg1"><span class="y">{lang time}</span></div>
</li>
<!--{loop $loglist $log}-->
<li class="flex-box mli">
<div class="flex-2 xs1 xg1"><span class="z">{$_G['setting']['extcredits'][$log['extcredits']]['title']} $log['score'] {$_G['setting']['extcredits'][$log['extcredits']]['unit']}</span></div>
<div class="flex-2 xs1 xg1"><span class="z">{$log['username']}</span></div>
<div class="flex-3 xs1 xg1"><span class="y">{$log['dateline']}</span></div>
</li>
<!--{if $log['reason']}-->
<li class="flex-box mli">
<div class="flex xs1 xg1"><span class="z">{$log['reason']}</span></div>
</li>
<!--{/if}-->
<!--{/loop}-->
</ul>
<div class="o pns">
{lang total}:
<!--{loop $logcount $id $count}-->
&nbsp;{$_G['setting']['extcredits'][$id][title]} <!--{if $count>0}-->+<!--{/if}-->$count {$_G['setting']['extcredits'][$id][unit]} &nbsp;
<!--{/loop}-->
</div>
</div>
<!--{template common/footer}-->

View File

@@ -0,0 +1,405 @@
<!--{template common/header}-->
<div class="tip loginbox loginpop p5" id="floatlayout_topicadmin">
<!--{if ($_GET['optgroup'] == 1) || ($_GET['optgroup'] == 2) || ($_GET['optgroup'] == 3) || ($_GET['optgroup'] == 4) || ($_GET['optgroup'] == 5)}-->
<form id="moderateform" method="post" autocomplete="off" action="forum.php?mod=topicadmin&action=moderate&optgroup=$optgroup&modsubmit=yes&mobile=2" >
<input type="hidden" name="frommodcp" value="$frommodcp" />
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="fid" value="$_G['fid']" />
<input type="hidden" name="redirect" value="{echo dreferer()}" />
<input type="hidden" name="reason" value="{lang topicadmin_mobile_mod}" />
<!--{if !empty($_GET['listextra'])}--><input type="hidden" name="listextra" value="$_GET['listextra']" /><!--{/if}-->
<!--{loop $threadlist $thread}-->
<input type="hidden" name="moderate[]" value="$thread['tid']" />
<!--{/loop}-->
<!--{if $_GET['optgroup'] == 1}-->
<!--{if count($threadlist) > 1 || empty($defaultcheck['recommend'])}-->
<!--{if $operation == 'stick'}-->
<!--{if $_G['group']['allowstickthread']}-->
<h2 class="log_tit" id="return_stick">{lang modmenu_stickthread}</h2>
<dt id="expirationstick">
<p><input type="text" autocomplete="off" id="expirationstick" name="expirationstick" class="px pxbg" value="$expirationstick" placeholder="{lang mobshezhi}{lang expire}" /></p>
<p>{lang admin_close_expire_comment}</p>
</dt>
<ul class="post_box cl">
<li class="flex-box mli">
<div class="flex tit">{lang modmenu_stickthread}</div>
<div class="flex-2">
<select class="sort_sel" name="sticklevel">
<!--{if $_G['forum']['status'] != 3}-->
<option value="0">{lang none}</option>
<option value="1" $stickcheck[1]>$_G['setting']['threadsticky'][2]</option>
<!--{if $_G['group']['allowstickthread'] >= 2}-->
<option value="2" $stickcheck[2]>$_G['setting']['threadsticky'][1]</option>
<!--{if $_G['group']['allowstickthread'] == 3}-->
<option value="3" $stickcheck[3]>$_G['setting']['threadsticky'][0]</option>
<!--{/if}-->
<!--{/if}-->
<!--{else}-->
<option value="0">{lang no}&nbsp;</option>
<option value="1" $stickcheck[1]>{lang yes}&nbsp;</option>
<!--{/if}-->
</select>
</div>
</li>
<label>
<li class="flex-box mli b0">
<div class="flex tit">{lang confirms}{lang thread_moderations_action}</div>
<div class="flex"></div>
<div class="flex"><span class="y"><input type="checkbox" name="operations[]" class="pc" value="stick" $defaultcheck['stick'] /></span></div>
</li>
</label>
</ul>
<!--{else}-->
<dt>{lang mod_error_invalid}</dt>
<!--{/if}-->
<!--{elseif $operation == 'digest'}-->
<!--{if $_G['group']['allowdigestthread']}-->
<h2 class="log_tit" id="return_digest">{lang modmenu_digestpost}</h2>
<dt id="expirationdigest">
<p><input type="text" autocomplete="off" id="expirationdigest" name="expirationdigest" class="px pxbg" value="$expirationdigest" placeholder="{lang mobshezhi}{lang expire}" /></p>
<p>{lang admin_close_expire_comment}</p>
</dt>
<ul class="post_box cl">
<li class="flex-box mli">
<div class="flex tit">{lang modmenu_digestpost}</div>
<div class="flex-2">
<select class="sort_sel" name="digestlevel">
<option value="0">{lang admin_digest_remove}</option>
<option value="1" $digestcheck[1]>{lang thread_digest} 1</option>
<!--{if $_G['group']['allowdigestthread'] >= 2}-->
<option value="2" $digestcheck[2]>{lang thread_digest} 2</option>
<!--{if $_G['group']['allowdigestthread'] == 3}-->
<option value="3" $digestcheck[3]>{lang thread_digest} 3</option>
<!--{/if}-->
<!--{/if}-->
</select>
</div>
</li>
<label>
<li class="flex-box mli b0">
<div class="flex tit">{lang confirms}{lang thread_moderations_action}</div>
<div class="flex"></div>
<div class="flex"><span class="y"><input type="checkbox" name="operations[]" class="pc" value="digest" $defaultcheck['digest'] /></span></div>
</li>
</label>
</ul>
<!--{else}-->
<dt>{lang mod_error_invalid}</dt>
<!--{/if}-->
<!--{elseif $operation == 'highlight'}-->
<!--{if $_G['group']['allowhighlightthread']}-->
<!--{eval $_G['forum_colorarray'] = array(1=>'#EE1B2E', 2=>'#EE5023', 3=>'#996600', 4=>'#3C9D40', 5=>'#2897C5', 6=>'#2B65B7', 7=>'#8F2A90', 8=>'#EC1282');}-->
<h2 class="log_tit" id="return_stick">{lang modmenu_highlight}</h2>
<dt id="expirationhighlight">
<p><input type="text" autocomplete="off" id="expirationhighlight" name="expirationhighlight" class="px pxbg" value="$expirationhighlight" placeholder="{lang mobshezhi}{lang expire}" /></p>
<p>{lang admin_close_expire_comment}</p>
</dt>
<ul class="post_box cl">
<li class="flex-box dopt mli">
<input type="hidden" id="highlight_style_1" name="highlight_style[1]" value="$stylecheck[1]" />
<input type="hidden" id="highlight_style_2" name="highlight_style[2]" value="$stylecheck[2]" />
<input type="hidden" id="highlight_style_3" name="highlight_style[3]" value="$stylecheck[3]" />
<div class="flex">
<a href="javascript:;" id="highlight_op_1" onclick="switchhl(this, 1)" class="dopt_b{if $stylecheck[1]} cnt{/if}" style="text-indent:0;text-decoration:none;font-weight:700;">B</a>
<a href="javascript:;" id="highlight_op_2" onclick="switchhl(this, 2)" class="dopt_i{if $stylecheck[2]} cnt{/if}" style="text-indent:0;text-decoration:none;font-style:italic;">I</a>
<a href="javascript:;" id="highlight_op_3" onclick="switchhl(this, 3)" class="dopt_l{if $stylecheck[3]} cnt{/if}" style="text-indent:0;text-decoration:underline;">U</a>
</div>
<div class="flex-2">
<select class="sort_sel" id="highlight_color" name="highlight_color">
<option value="0" <!--{if $colorcheck == 0}-->selected="selected"<!--{/if}-->></option>
<!--{loop $_G['forum_colorarray'] $i $coloroptions}-->
<option value="{$i}" style="background:{$coloroptions};color:{$coloroptions};" <!--{if $colorcheck == $i}-->selected="selected"<!--{/if}-->>$coloroptions</option>
<!--{/loop}-->
</select>
</div>
</li>
<label>
<li class="flex-box mli b0">
<div class="flex tit">{lang confirms}{lang thread_moderations_action}</div>
<div class="flex"></div>
<div class="flex"><span class="y"><input type="checkbox" name="operations[]" class="pc" value="highlight" $defaultcheck['highlight'] /></span></div>
</li>
</label>
</ul>
<!--{else}-->
<dt>{lang mod_error_invalid}</dt>
<!--{/if}-->
<!--{/if}-->
<!--{/if}-->
<!--{if $_G['group']['allowrecommendthread'] && !empty($_G['forum']['modrecommend']['open']) && $_G['forum']['modrecommend']['sort'] != 1}-->
<!--{if $operation == 'recommend'}-->
<h2 class="log_tit" id="return_recommend">{lang modmenu_recommend}</h2>
<dt id="expirationrecommend">
<p><input type="text" autocomplete="off" id="expirationrecommend" name="expirationrecommend" class="px pxbg" value="$expirationrecommend" placeholder="{lang mobshezhi}{lang expire}" /></p>
<p>{lang admin_close_expire_comment}</p>
</dt>
<ul class="post_box cl">
<label>
<li class="flex-box mli">
<div class="flex">{lang recommend}</div>
<div class="flex-2"></div>
<div class="flex"><span class="y"><input type="radio" name="isrecommend" class="pr" value="1" checked="checked" /></span></div>
</li>
</label>
<label>
<li class="flex-box mli">
<div class="flex">{lang admin_unrecommend}</div>
<div class="flex-2"></div>
<div class="flex"><span class="y"><input type="radio" name="isrecommend" class="pr" value="0" /></span></div>
</li>
</label>
</ul>
<!--{if $defaultcheck['recommend'] && count($threadlist) == 1}-->
<input type="hidden" name="position" value="1" />
<ul class="post_box cl">
<li class="flex-box mli">
<div class="flex">{lang forum_recommend_reducetitle}</div>
<div class="flex-3"><label for="reducetitle"><input type="text" name="reducetitle" id="reducetitle" class="px" value="$thread['subject']" placeholder="{lang forum_recommend_reducetitle}" /></label></div>
</li>
<!--{if $imgattach}-->
<li class="flex-box mli">
<div class="flex">{lang forum_recommend_image}</div>
<div class="flex-2">
<select name="selectattach" onchange="updateimginfo(this.value)" class="sort_sel">
<option value="">{lang forum_recommend_noimage}</option>
<!--{loop $imgattach $imginfo}-->
<option value="$imginfo[aid]"{if $selectattach == $imginfo[aid]} selected="selected"{/if}>$imginfo[filename]</option>
<!--{/loop}-->
</select>
</div>
<div class="flex cl pt10"><img id="selectimg" src="{STATICURL}image/common/none.gif" height="31" /></div>
</li>
<script type="text/javascript" reload="1">
var imgk = new Array();
<!--{loop $imgattach $imginfo}-->
<!--{eval $a = '\"\'\t\\""\\\''."\\\\";$k = getforumimg($imginfo['aid'], 1, 60, 31);}-->
imgk[{$imginfo['aid']}] = '$k';
<!--{/loop}-->
function updateimginfo(aid) {
if(aid) {
getID('selectimg').src=imgk[aid];
} else {
getID('selectimg').src='{STATICURL}image/common/none.gif';
}
}
<!--{if $selectattach}-->updateimginfo('$selectattach');<!--{/if}-->
</script>
<!--{/if}-->
</ul>
<!--{/if}-->
<div class="mb10 cl"></div>
<!--{/if}-->
<!--{/if}-->
<!--{elseif $_GET['optgroup'] == 2}-->
<!--{if $operation != 'type'}-->
<input type="hidden" name="operations[]" value="move" />
<h2 class="log_tit" id="return_type">{lang modmenu_move}</h2>
<ul class="post_box cl">
<li class="flex-box mli">
<div class="flex tit"><span class="z">{lang admin_target}</span></div>
<div class="flex-2">
<select name="moveto" id="moveto" class="sort_sel" onchange="ajaxget('forum.php?mod=ajax&action=getthreadtypes&fid=' + this.value + '&selectclass=sort_sel', 'threadtypes');if(this.value) {getID('moveext').style.display='';} else {getID('moveext').style.display='none';}">
$forumselect
</select>
</div>
</li>
<li class="flex-box mli">
<div class="flex tit"><span class="z">{lang admin_targettype}</span></div>
<div class="flex-2">
<span id="threadtypes"><select name="threadtypeid" class="sort_sel"><option value="0" /></option></select></span>
</div>
</li>
</ul>
<ul class="post_box cl" id="moveext" style="display:none;">
<label>
<li class="flex-box mli">
<div class="flex"><span class="z">{lang admin_move}</span></div>
<div class="flex"></div>
<div class="flex"><span class="y"><input type="radio" name="type" class="pr" value="normal" checked="checked" /></span></div>
</li>
</label>
<label>
<li class="flex-box mli">
<div class="flex"><span class="z">{lang admin_move_hold}</span></div>
<div class="flex"></div>
<div class="flex"><span class="y"><input type="radio" name="type" class="pr" value="redirect" /></span></div>
</li>
</label>
</ul>
<div class="mb10 cl"></div>
<!--{else}-->
<!--{if $typeselect}-->
<input type="hidden" name="operations[]" value="type" />
<ul class="post_box cl">
<li class="flex-box mli">
<div class="flex">{lang types}</div>
<div class="flex-2">$typeselect</div>
</li>
</ul>
<div class="mb10 cl"></div>
<!--{else}-->
<dt>{lang admin_type_msg}<!--{eval $hiddensubmit = true;}--></dt>
<!--{/if}-->
<!--{/if}-->
<!--{elseif $_GET['optgroup'] == 3}-->
<!--{if $operation == 'delete'}-->
<!--{if $_G['group']['allowdelpost']}-->
<h2 class="log_tit" id="return_delete">{lang admin_delthread_confirm}</h2>
<input name="operations[]" type="hidden" value="delete"/>
<ul class="post_box cl">
<label for="crimerecord">
<li class="flex-box mli">
<div class="flex tit">{lang crimerecord}</div>
<div class="flex"></div>
<div class="flex"><input type="checkbox" name="crimerecord" id="crimerecord" class="pc" /></div>
</li>
</label>
<label>
<li class="flex-box mli b0">
<div class="flex tit">{lang admin_pm}</div>
<div class="flex"></div>
<div class="flex y">
<input type="checkbox" name="sendreasonpm" id="sendreasonpm" {if $_G['group']['reasonpm'] == 2 || $_G['group']['reasonpm'] == 3} checked="checked" disabled="disabled"{/if} class="checkbox_key" />
<code class="checkbox checkbox_close"></code>
</div>
</li>
</label>
</ul>
<div class="mb10 cl"></div>
<!--{else}-->
<dt>{lang admin_delthread_nopermission}</dt>
<!--{/if}-->
<!--{elseif $operation == 'down' || $operation='bump'}-->
<h2 class="log_tit" id="return_bump">{lang modmenu_updown}</h2>
<dt id="bump_expirationli">
<p><input type="text" name="expirationbump" id="expirationbump" class="px pxbg" autocomplete="off" value="" placeholder="{lang mobshezhi}{lang expire}" /></p>
<p>{lang admin_close_expire_comment}</p>
</dt>
<ul class="post_box cl">
<label onclick="switchitemcp('itemcp_bump');">
<li class="flex-box mli">
<div class="flex"><input type="radio" name="operations[]" class="pr" value="bump" checked="checked"/></div>
<div class="flex tit">{lang admin_bump}</div>
<div class="flex"></div>
</li>
</label>
<label onclick="switchitemcp('itemcp_down');">
<li class="flex-box mli">
<div class="flex"><input type="radio" name="operations[]" class="pr" value="down"/></div>
<div class="flex tit">{lang admin_down}</div>
<div class="flex"></div>
</li>
</label>
<label for="sendreasonpm">
<li class="flex-box b0">
<div class="flex tit">{lang admin_pm}</div>
<div class="flex"></div>
<div class="flex y">
<input type="checkbox" name="sendreasonpm" id="sendreasonpm" {if $_G['group']['reasonpm'] == 2 || $_G['group']['reasonpm'] == 3} checked="checked" disabled="disabled"{/if} class="checkbox_key" />
<code class="checkbox checkbox_close"></code>
</div>
</li>
</label>
</ul>
<!--{/if}-->
<!--{elseif $_GET['optgroup'] == 4}-->
<dt>
<p><input type="text" name="expirationclose" id="expirationclose" class="px pxbg" autocomplete="off" value="$expirationclose" placeholder="{lang mobshezhi}{lang expire}" /></p>
<p>{lang admin_close_expire_comment}</p>
</dt>
<ul class="post_box cl">
<label>
<li class="flex-box mli">
<div class="flex tit">{lang admin_open}</div>
<div class="flex"></div>
<div class="flex">
<input type="radio" name="operations[]" class="pr" value="open" $closecheck[0] />
</div>
</li>
</label>
<label>
<li class="flex-box mli b0">
<div class="flex tit">{lang admin_close}</div>
<div class="flex"></div>
<div class="flex">
<input type="radio" name="operations[]" class="pr" value="close" $closecheck[1] />
</div>
</li>
</label>
</ul>
<div class="mb10 cl"></div>
<!--{elseif $_GET['optgroup'] == 5}-->
<!--{if $operation == 'recommend_group'}-->
<h2 class="log_tit" id="return_recommend_group">{lang modmenu_grouprecommend}</h2>
<input type="hidden" name="operations[]" value="recommend_group" />
<ul class="post_box cl">
<li class="flex-box mli">
<div class="flex">{lang admin_target}</div>
<div class="flex-2">
<select id="" name="moveto" class="sort_sel">
$forumselect
</select>
</div>
</li>
</ul>
<div class="mb10 cl"></div>
<!--{/if}-->
<!--{/if}-->
<dd><input type="submit" name="modsubmit" id="modsubmit" value="{lang confirms}" class="formdialog button z"><a href="javascript:;" onclick="popup.close();" class="button y">{lang cancel}</a></dd>
</form>
<!--{else}-->
<dt>{lang admin_threadtopicadmin_error}</dt>
<dd><input type="button" onclick="popup.close();" value="{lang confirms}" /></dd>
<!--{/if}-->
</div>
<script type="text/javascript" reload="1">
<!--{if $operation == 'down' || $operation=='bump'}-->
function switchitemcp(action){
if (action == 'itemcp_bump'){
document.getElementById('bump_expirationli').style.display = 'block';
}else if (action == 'itemcp_down'){
document.getElementById('bump_expirationli').style.display = 'none';
}
}
<!--{elseif $operation == 'highlight'}-->
function switchhl(obj, v) {
if(parseInt(document.getElementById('highlight_style_' + v).value)) {
document.getElementById('highlight_style_' + v).value = 0;
obj.className = obj.className.replace(/ cnt/, '');
} else {
document.getElementById('highlight_style_' + v).value = 1;
obj.className += ' cnt';
}
}
<!--{/if}-->
if(getID('moveto')) {
ajaxget('forum.php?mod=ajax&action=getthreadtypes&fid=' + getID('moveto').value + '&selectclass=sort_sel', 'threadtypes');if(getID('moveto').value) {getID('moveext').style.display='';} else {getID('moveext').style.display='none';}
}
if(getID('typeid')) {
getID('typeid').classList.add('sort_sel');
}
</script>
<!--{if $operation == 'highlight'}-->
<style type="text/css">
.dopt a {
float: left;
margin-right: 3px;
width: 21px !important;
height: 21px;
line-height: 21px;
text-align: center;
}
.dopt_b,.dopt_i,.dopt_l {
border: 1px solid #F1F5FA;
outline: none;
}
.dopt .cnt {
border: 1px solid #999;
background-color: #FFF;
}
</style>
<!--{/if}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,267 @@
<!--{template common/header}-->
<div class="tip loginbox loginpop p5" id="floatlayout_topicadmin">
<!--{if in_array($_GET['action'], array('delpost', 'banpost', 'warn', 'stickreply', 'delcomment', 'restore', 'copy', 'merge', 'refund', 'split', 'live', 'stamp', 'stamplist'))}-->
<form id="topicadminform" method="post" autocomplete="off" action="forum.php?mod=topicadmin&action=$_GET['action']&modsubmit=yes&modclick=yes&mobile=2" >
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="fid" value="$_G['fid']" />
<input type="hidden" name="tid" value="$_G['tid']" />
<input type="hidden" name="page" value="$_G['page']" />
<input type="hidden" name="reason" value="{lang topicadmin_mobile_mod}" />
<!--{if $_GET['action'] == 'delpost'}-->
<h2 class="log_tit" id="return_delpost">{lang delete}</h2>
<dt>
<p>{lang admin_delpost_confirm}</p>
$deleteid
</dt>
<!--{elseif $_GET['action'] == 'delcomment'}-->
<h2 class="log_tit" id="return_delcomment">{lang delete}</h2>
<dt>
<p>{lang topicadmin_delet_comment}</p>
$deleteid
</dt>
<!--{elseif $_GET['action'] == 'restore'}-->
<h2 class="log_tit" id="return_restore">{lang modmenu_restore}</h2>
<dt>
<input type="hidden" name="archiveid" value="$archiveid" />
<p>{lang admin_threadsplit_restore}</p>
</dt>
<!--{elseif $_GET['action'] == 'copy'}-->
<h2 class="log_tit" id="return_copy">{lang modmenu_copy}</h2>
<ul class="post_box cl">
<li class="flex-box mli">
<div class="flex"><span class="z">{lang admin_target}</span></div>
<div class="flex-2">
<select name="copyto" id="copyto" class="sort_sel" onchange="ajaxget('forum.php?mod=ajax&action=getthreadtypes&fid=' + this.value + '&selectclass=sort_sel', 'threadtypes')">
$forumselect
</select>
</div>
</li>
<li class="flex-box mli b0">
<div class="flex"><span class="z">{lang admin_targettype}</span></div>
<div class="flex-2">
<span id="threadtypes"><select name="threadtypeid" class="sort_sel vm"><option value="0" /></option></select></span>
</div>
</li>
</ul>
<!--{elseif $_GET['action'] == 'banpost'}-->
<h2 class="log_tit" id="return_banpost">{lang admin_banpost}</h2>
<dt>
<p>{lang admin_banpost_confirm}</p>
$banid
</dt>
<ul class="post_box cl">
<label>
<li class="flex-box mli">
<div class="flex">{lang admin_banpost}</div>
<div class="flex-2"></div>
<div class="flex"><span class="y"><input type="radio" name="banned" class="pr" value="1" $checkban /></span></div>
</li>
</label>
<label>
<li class="flex-box mli b0">
<div class="flex">{lang admin_unbanpost}</div>
<div class="flex-2"></div>
<div class="flex"><span class="y"><input type="radio" name="banned" class="pr" value="0" $checkunban /></span></div>
</li>
</label>
</ul>
<!--{if ($modpostsnum == 1 || $authorcount == 1) && $crimenum > 0}-->
<dt>
<span class="xg1">{lang topicadmin_crime_banpost_nums}</span>
</dt>
<!--{/if}-->
<!--{elseif $_GET['action'] == 'warn'}-->
<h2 class="log_tit" id="return_warn">{lang topicadmin_warn_add}</h2>
<dt>
<p>{lang admin_warn_confirm}</p>
$warnpid
</dt>
<ul class="post_box cl">
<label>
<li class="flex-box mli">
<div class="flex">{lang topicadmin_warn_add}</div>
<div class="flex-2"></div>
<div class="flex"><span class="y"><input type="radio" name="warned" class="pr" value="1" $checkwarn /></span></div>
</li>
</label>
<label>
<li class="flex-box mli b0">
<div class="flex">{lang topicadmin_warn_delete}</div>
<div class="flex-2"></div>
<div class="flex"><span class="y"><input type="radio" name="warned" class="pr" value="0" $checkunwarn /></span></div>
</li>
</label>
</ul>
<!--{if ($modpostsnum == 1 || $authorcount == 1) && $authorwarnings > 0}-->
<dt><span class="xg1">{lang topicadmin_warn_nums}</span></dt>
<!--{/if}-->
<!--{elseif $_GET['action'] == 'merge'}-->
<h2 class="log_tit" id="return_merge">{lang admin_merge}</h2>
<ul class="post_box cl">
<li class="flex-box mli">
<div class="flex"><span class="z">{lang admin_merge}</span></div>
<div class="flex-2">
<input type="text" name="othertid" id="othertid" class="px" placeholder="tid" />
</div>
</li>
<li class="flex-box mli b0">
<div class="flex-3"><span class="z xg1">{lang admin_merge_tid}</span></div>
</li>
</ul>
<!--{elseif $_GET['action'] == 'refund'}-->
<h2 class="log_tit" id="return_refund">{lang modmenu_restore}</h2>
<ul class="post_box cl">
<li class="flex-box mli">
<div class="flex"><span class="z">{lang pay_buyers}</span></div>
<div class="flex-2">
$payment['payers']
</div>
</li>
<li class="flex-box mli b0">
<div class="flex"><span class="z">{lang pay_author_income}</span></div>
<div class="flex-2">
$payment['income'] {$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][unit]}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][title]}
</div>
</li>
</ul>
<!--{elseif $_GET['action'] == 'split'}-->
<h2 class="log_tit" id="return_split">{lang modmenu_split}</h2>
<ul class="post_box cl">
<li class="flex-box mli">
<div class="flex-3">
<input type="text" name="subject" id="subject" class="px" placeholder="{lang admin_split_newsubject}" />
</div>
</li>
<li class="flex-box mli b0">
<div class="flex-3"><span class="z xg1">{lang admin_split_comment}</span></div>
</li>
</ul>
<dt class="mpt">
<textarea name="split" id="split" class="pt" /></textarea>
</dt>
<!--{elseif $_GET['action'] == 'live'}-->
<h2 class="log_tit" id="return_live">{lang modmenu_live}</h2>
<ul class="post_box cl">
<label>
<li class="flex-box mli">
<div class="flex">
<span class="z">{lang admin_live}</span>
</div>
<div class="flex"></div>
<div class="flex">
<span class="y"><input type="radio" name="live" class="pr" value="1" <!--{if $_G[forum][livetid] != $_G[tid]}-->checked<!--{/if}-->/></span>
</div>
</li>
</label>
<label>
<li class="flex-box mli b0">
<div class="flex">
<span class="z">{lang admin_live_cancle}</span>
</div>
<div class="flex"></div>
<div class="flex">
<span class="y"><input type="radio" name="live" class="pr" value="0" <!--{if $_G[forum][livetid] == $_G[tid]}-->checked<!--{/if}-->/></span>
</div>
</li>
</label>
</ul>
<dt>
<span class="xg1">{lang admin_live_tips}</span>
</dt>
<!--{elseif $_GET['action'] == 'stamp'}-->
<h2 class="log_tit" id="return_stamp">{lang admin_stamp_select}</h2>
<ul class="post_box cl">
<li class="flex-box mli b0">
<div class="flex">
<select name="stamp" id="stamp" class="sort_sel" onchange="updatestampimg()">
<option value="">{lang admin_stamp_none}</option>
<!--{loop $_G['cache']['stamps'] $stampid $stamp}-->
<!--{if $stamp['type'] == 'stamp'}-->
<option value="$stampid"{if $thread[stamp] == $stampid} selected="selected"{/if}>$stamp['text']</option>
<!--{/if}-->
<!--{/loop}-->
</select>
</div>
</li>
</ul>
<script type="text/javascript" reload="1">
if(getID('threadstamp')) {
var oldthreadstamp = getID('threadstamp').innerHTML;
}
var stampurls = new Array();
<!--{loop $_G['cache']['stamps'] $stampid $stamp}-->
stampurls[$stampid] = '$stamp[url]';
<!--{/loop}-->
function updatestampimg() {
if(getID('threadstamp')) {
getID('threadstamp').innerHTML = getID('stamp').value ? '<img src="{STATICURL}image/stamp/' + stampurls[getID('stamp').value] + '">' : '<img src="{STATICURL}image/common/none.gif">';
}
}
</script>
<!--{elseif $_GET['action'] == 'stamplist'}-->
<h2 class="log_tit" id="return_stamplist">{lang admin_stamplist_select}</h2>
<ul class="post_box cl">
<li class="flex-box mli b0">
<div class="flex-3">
<select name="stamplist" id="stamplist" class="sort_sel" onchange="updatestamplistimg()">
<!--{if $thread[icon] >= 0}--><option value="$thread[icon]">{lang admin_stamplist_current}</option><!--{/if}-->
<option value="">{lang admin_stamplist_none}</option>
<!--{loop $_G['cache']['stamps'] $stampid $stamp}-->
<!--{if $stamp['type'] == 'stamplist' && $stamp['icon']}-->
<option value="$stampid"{if $thread['icon'] == $stampid} selected="selected"{/if}>$stamp['text']</option>
<!--{/if}-->
<!--{/loop}-->
</select>
</div>
<div class="flex" id="stamplistprev"></div>
</li>
</ul>
<script type="text/javascript" reload="1">
var stampurls = new Array();
<!--{loop $_G['cache']['stamps'] $stampid $stamp}-->
stampurls[$stampid] = '$stamp[url]';
<!--{/loop}-->
function updatestamplistimg(icon) {
icon = !icon ? getID('stamplist').value : icon;
if(getID('stamplistprev')) {
getID('stamplistprev').innerHTML = icon && icon >= 0 ? '<img src="{STATICURL}image/stamp/' + stampurls[icon] + '">' : '<img src="{STATICURL}image/common/none.gif">';
}
}
<!--{if $thread['icon']}-->
updatestamplistimg($thread['icon']);
<!--{/if}-->
</script>
<!--{elseif $_GET['action'] == 'stickreply'}-->
<h2 class="log_tit" id="return_stickreply">{lang modmenu_stickpost}</h2>
<dt>
$stickpid
</dt>
<ul class="post_box cl">
<label>
<li class="flex-box mli">
<div class="flex-2"><span class="z">{lang admin_stickreply}</span></div>
<div class="flex"><span class="y"><input type="radio" name="stickreply" class="pr" value="1"{if empty($_GET['undo'])} checked="checked"{/if}/></span></div>
</li>
</label>
<label>
<li class="flex-box mli b0">
<div class="flex-2"><span class="z">{lang admin_unstickreply}</span></div>
<div class="flex"><span class="y"><input type="radio" name="stickreply" class="pr" value="0"{if !empty($_GET['undo'])} checked="checked"{/if}/></span></div>
</li>
</label>
</ul>
<!--{/if}-->
<dd><input type="submit" name="modsubmit" id="modsubmit" value="{lang confirms}" class="formdialog button z"><a href="javascript:;" onclick="popup.close();" class="button y">{lang cancel}</a></dd>
</form>
<!--{else}-->
<dt>{lang admin_threadtopicadmin_error}</dt>
<dd><input type="button" onclick="popup.close();" value="{lang confirms}" /></dd>
<!--{/if}-->
</div>
<script type="text/javascript" reload="1">
if(getID('copyto')) {
ajaxget('forum.php?mod=ajax&action=getthreadtypes&fid=' + getID('copyto').value + '&selectclass=sort_sel', 'threadtypes');
}
</script>
<!--{template common/footer}-->

View File

@@ -0,0 +1,186 @@
<!--{template common/header}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2><a href="forum.php?mod=viewthread&tid=$_G['tid']{if $_GET['from']}&from=$_GET['from']{/if}">{lang trade_confirm_buy}</a></h2>
<div class="my"><a href="index.php"><i class="dm-house"></i></a></div>
</div>
<div class="viewthread">
<div class="discuz_x cl"></div>
<div class="txtlist cl"><div class="mtit cl">{lang trade_confirm_buy}</div></div>
<div class="plc p15 cl">
<form method="post" autocomplete="off" id="tradepost" name="tradepost" action="forum.php?mod=trade&action=trade&tid=$_G['tid']&pid=$pid">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<div class="xld cl">
<dl class="cl">
<dd class="m">
<!--{if $trade['aid']}-->
<a href="forum.php?mod=viewthread&do=tradeinfo&tid=$trade['tid']&pid=$trade['pid']"><img src="{echo getforumimg($trade['aid'])}" width="90" /></a>
<!--{else}-->
<a href="forum.php?mod=viewthread&do=tradeinfo&tid=$trade['tid']&pid=$trade['pid']"><div class="nophoto"></div></a>
<!--{/if}-->
</dd>
<dt><a href="forum.php?mod=viewthread&tid=$trade['tid']&do=tradeinfo&pid=$trade['pid']{if !empty($_GET['modthreadkey'])}&modthreadkey=$_GET['modthreadkey']{/if}">$trade['subject']</a></dt>
<dd>
<!--{if $trade[price] > 0}-->
<p class="p">&yen; <em class="xi1">$trade['price']</em></p>
<!--{/if}-->
<!--{if $_G['setting']['creditstransextra'][5] != -1 && $trade['credit']}-->
<p class="{if $trade['price'] > 0}xg1{else}p{/if}"><!--{if $trade['price'] > 0}-->{lang trade_additional} <!--{/if}--><em class="xi1">$trade['credit']</em>&nbsp;{$_G[setting]['extcredits'][$_G['setting']['creditstransextra'][5]]['unit']}{$_G[setting]['extcredits'][$_G['setting']['creditstransextra'][5]]['title']}</p>
<!--{/if}-->
<!--{if $trade['locus']}--><p class="xg1">{lang post_trade_locus}: $trade['locus']</p><!--{/if}-->
<p class="xg1">{lang trade_seller}: <a href="home.php?mod=space&uid=$trade[sellerid]" target="_blank">$trade['seller']</a></p>
</dd>
</dl>
</div>
<ul class="post_box cl">
<li class="flex-box mli">
<div class="flex">{lang trade_credits_total}</div>
<div class="flex-2">
<!--{if $trade['price'] > 0}--><strong id="caculate"></strong>&nbsp;{lang trade_units}&nbsp;&nbsp;<!--{/if}-->
<!--{if $_G['setting']['creditstransextra'][5] != -1 && $trade['credit']}-->{$_G[setting][extcredits][$_G['setting']['creditstransextra'][5]][title]}&nbsp;<strong id="caculatecredit"></strong>&nbsp;{$_G[setting][extcredits][$_G['setting']['creditstransextra'][5]][unit]}&nbsp;<span id="crediterror"></span><!--{/if}-->
</div>
</li>
<li class="flex-box mli">
<div class="flex">{lang trade_nums}</div>
<div class="flex-2">
<input type="text" id="number" name="number" onkeyup="calcsum()" value="1" class="pt" />
</div>
</li>
<li class="flex-box mli">
<div class="flex">{lang post_trade_transport}</div>
<div class="flex-2">
<!--{if $trade['transport'] == 1}--><input type="hidden" name="transport" value="1">{lang post_trade_transport_seller}<!--{/if}-->
<!--{if $trade['transport'] == 2}--><input type="hidden" name="transport" value="2">{lang post_trade_transport_buyer}<!--{/if}-->
<!--{if $trade['transport'] == 3}--><input type="hidden" name="transport" value="3">{lang post_trade_transport_virtual}<!--{/if}-->
<!--{if $trade['transport'] == 4}--><input type="hidden" name="transport" value="4">{lang post_trade_transport_physical}<!--{/if}-->
</div>
</li>
<!--{if $trade['transport'] == 1 or $trade['transport'] == 2 or $trade['transport'] == 4}-->
<li class="flex-box mli mtext">
<!--{if !empty($trade['ordinaryfee'])}-->
<div class="flex-2 xs1">
<label class="pl5"><input class="pr" type="radio" name="fee" value="1" checked="checked" {if $trade['transport'] == 2}onclick="feevalue = $trade['ordinaryfee'];calcsum()"{/if} />{lang post_trade_transport_mail} $trade['ordinaryfee'] {lang payment_unit}</label><!--{if $trade['transport'] == 2}--><script type="text/javascript">feevalue = $trade['ordinaryfee']</script><!--{/if}-->
</div>
<!--{/if}-->
<!--{if !empty($trade['expressfee'])}-->
<div class="flex-2 xs1">
<label class="pl5"><input class="pr" type="radio" name="fee" value="3" checked="checked" {if $trade['transport'] == 2}onclick="feevalue = $trade['expressfee'];calcsum()"{/if} />{lang post_trade_transport_express} $trade['expressfee'] {lang payment_unit}</label><!--{if $trade['transport'] == 2}--><script type="text/javascript">feevalue = $trade['expressfee']</script><!--{/if}-->
</div>
<!--{/if}-->
<!--{if !empty($trade['emsfee'])}-->
<div class="flex-2 xs1">
<label class="pl5"><input class="pr" type="radio" name="fee" value="2" checked="checked" {if $trade['transport'] == 2}onclick="feevalue = $trade['emsfee'];calcsum()"{/if} /> EMS $trade['emsfee'] {lang payment_unit}</label><!--{if $trade['transport'] == 2}--><script type="text/javascript">feevalue = $trade['emsfee']</script><!--{/if}-->
</div>
<!--{/if}-->
</li>
<!--{/if}-->
<li class="flex-box mli">
<div class="flex">{lang trade_paymethod}</div>
<div class="flex-2">
<!--{if !$_G['uid']}-->
<label><input type="hidden" name="offline" value="0" checked="checked" />{lang trade_pay_alipay}</label>
<!--{elseif !$trade['account'] && !$trade['tenpayaccount']}-->
<input type="hidden" name="offline" value="1" checked="checked" />{lang trade_pay_offline}
<!--{else}-->
<label><input type="radio" class="pr" name="offline" value="0" checked="checked" />{lang trade_pay_alipay}</label>
<label class="pl5"><input type="radio" class="pr" name="offline" value="1" />{lang trade_pay_offline}</label>
<!--{/if}-->
</div>
</li>
<!--{if $trade['transport'] != 3}-->
<li class="flex-box mli">
<div class="flex">{lang trade_buyername}</div>
<div class="flex-2">
<input type="text" id="buyername" name="buyername" maxlength="50" value="$lastbuyerinfo['buyername']" class="pt" />
</div>
</li>
<li class="flex-box mli">
<div class="flex">{lang trade_buyercontact}</div>
<div class="flex-2">
<input type="text" id="buyercontact" name="buyercontact" maxlength="100" value="$lastbuyerinfo['buyercontact']" class="pt" />
</div>
</li>
<li class="flex-box mli">
<div class="flex">{lang trade_buyerzip}</div>
<div class="flex-2">
<input type="text" id="buyerzip" name="buyerzip" maxlength="10" value="$lastbuyerinfo['buyerzip']" class="pt" />
</div>
</li>
<li class="flex-box mli">
<div class="flex">{lang trade_buyerphone}</div>
<div class="flex-2">
<input type="text" id="buyerphone" name="buyerphone" maxlength="20" value="$lastbuyerinfo['buyerphone']" class="pt" />
</div>
</li>
<li class="flex-box mli">
<div class="flex">{lang trade_buyermobile}</div>
<div class="flex-2">
<input type="text" id="buyermobile" name="buyermobile" maxlength="20" value="$lastbuyerinfo['buyermobile']" class="pt" />
</div>
</li>
<!--{else}-->
<input type="hidden" name="buyername" value="" />
<input type="hidden" name="buyercontact" value="" />
<input type="hidden" name="buyerzip" value="" />
<input type="hidden" name="buyerphone" value="" />
<input type="hidden" name="buyermobile" value="" />
<!--{/if}-->
</ul>
<div class="tip b0"><dt class="mpt"><textarea id="buyermsg" name="buyermsg" class="px pxbg" placeholder="{lang trade_seller_remark}"></textarea></dt></div>
<dd><button class="pn pnc formdialog" type="submit" id="tradesubmit" name="tradesubmit" value="true"><span>{lang trade_buy_confirm}</span></button></dd>
<!--{if !$_G['uid']}-->
<ul class="post_box cl">
<li class="flex-box mli mtit">{lang trade_guest_alarm}</li>
</ul>
<!--{/if}-->
</form>
</div>
<script type="text/javascript">
zoomstatus = parseInt($_G['setting']['zoomstatus']);
var feevalue = 0;
<!--{if $trade['price'] > 0}-->var price = $trade['price'];<!--{/if}-->
<!--{if $_G['setting']['creditstransextra'][5] != -1 && $trade['credit']}-->var credit = $trade['credit'];var currentcredit = <!--{echo getuserprofile('extcredits'.$_G['setting']['creditstransextra'][5])}-->;<!--{/if}-->
function calcsum() {
<!--{if $trade['price'] > 0}-->getID('caculate').innerHTML = (price * getID('tradepost').number.value + feevalue);<!--{/if}-->
<!--{if $_G['setting']['creditstransextra'][5] != -1 && $trade['credit']}-->
v = (credit * getID('tradepost').number.value + feevalue);
if(v > currentcredit) {
getID('crediterror').innerHTML = '{lang trade_buy_crediterror}';
getID('tradesubmit').disabled = true;
} else {
getID('crediterror').innerHTML = '';
}
getID('caculatecredit').innerHTML = v;
<!--{/if}-->
}
calcsum();
</script>
<!--{if $usertrades}-->
<div class="discuz_x cl"></div>
<div class="txtlist cl"><div class="mtit cl">$trade['seller'] {lang trade_recommended_goods}</div></div>
<div class="plc p15 cl">
<div class="xld cl">
<!--{loop $usertrades $usertrade}-->
<dl class="cl">
<dd class="m">
<a href="forum.php?mod=viewthread&tid=$usertrade['tid']&do=tradeinfo&pid=$usertrade['pid']{if !empty($_GET['modthreadkey'])}&modthreadkey=$_GET['modthreadkey']{/if}" class="tn" style="text-decoration:none !important;">
<!--{if $usertrade['aid']}--><img src="{echo getforumimg($usertrade['aid'])}" width="60" /><!--{else}--><div class="nophoto" style="width:60px;height:60px;line-height:60px;border:1px solid #EEE;"></div><!--{/if}-->
</a>
</dd>
<dt><a href="forum.php?mod=viewthread&tid=$usertrade['tid']&do=tradeinfo&pid=$usertrade['pid']{if !empty($_GET['modthreadkey'])}&modthreadkey=$_GET['modthreadkey']{/if}">$usertrade['subject']</a></dt>
<dd>
<!--{if $usertrade[price] > 0}-->
<p class="p">&yen; <em class="xi1">$usertrade['price']</em></p>
<!--{/if}-->
<!--{if $_G['setting']['creditstransextra'][5] != -1 && $usertrade['credit']}-->
<p class="{if $usertrade['price'] > 0}xg1{else}p{/if}"><!--{if $usertrade['price'] > 0}-->{lang trade_additional} <!--{/if}--><em class="xi1">$usertrade['credit']</em>&nbsp;{$_G[setting]['extcredits'][$_G['setting']['creditstransextra'][5]]['unit']}{$_G[setting]['extcredits'][$_G['setting']['creditstransextra'][5]]['title']}</p>
<!--{/if}-->
</dd>
</dl>
<!--{/loop}-->
</div>
</div>
<!--{/if}-->
</div>
<!--{template common/footer}-->

View File

@@ -0,0 +1,81 @@
<!--{template common/header}-->
<script type="text/javascript" reload="1">
var max_obj = {$_G['group']['tradestick']};
var p = $stickcount;
function checkbox(obj) {
if(obj.checked) {
p++;
for (var i = 0; i < getID('tradeform').elements.length; i++) {
var e = tradeform.elements[i];
if(p == max_obj) {
if(e.name.match('stick') && !e.checked) {
e.disabled = true;
}
}
}
} else {
p--;
for (var i = 0; i < getID('tradeform').elements.length; i++) {
var e = tradeform.elements[i];
if(e.name.match('stick') && e.disabled) {
e.disabled = false;
}
}
}
}
</script>
<div class="tip loginbox loginpop p5" id="floatlayout_tradeorder" style="max-height:400px; overflow-y:scroll;">
<h2 class="log_tit" id="return_tradeorder">{lang trade_displayorder}</h2>
<form id="tradeform" method="post" autocomplete="off" action="forum.php?mod=misc&action=tradeorder&tid=$_G['tid']&tradesubmit=yes&infloat=yes{if !empty($_GET['from'])}&from=$_GET['from']{/if}">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<ul class="post_box cl">
<li class="flex-box mli mtit cl">
<div class="flex">{lang trade_update_stick}</div>
<div class="flex">{lang trade_show_order}</div>
<div class="flex-2">{lang post_trade_name}</div>
</li>
<!--{loop $trades $trade}-->
<li class="flex-box mli cl">
<div class="flex"><input class="pc" type="checkbox" onclick="checkbox(this)" name="stick[{$trade[pid]}]" value="yes" {if $trade['displayorder'] > 0}checked="checked"{elseif $_G['group']['tradestick'] <= $stickcount}disabled="disabled"{/if} /></div>
<div class="flex"><input size="1" name="displayorder[{$trade['pid']}]" value="$trade['displayorderview']" class="px pxs" /></div>
<div class="flex-2"><a href="forum.php?mod=post&action=edit&fid=$thread['fid']&tid=$_G['tid']&pid=$trade['pid']" target="_blank">$trade['subject']</a></div>
</li>
<li class="flex-box mli mtit cl">
<div class="flex pl5">
<span class="z">
{lang post_trade_price}:
<!--{if $trade[price] > 0}-->
$trade['price'] {lang payment_unit}
<!--{/if}-->
<!--{if $trade[credit] > 0}-->
{$_G[setting]['extcredits'][$_G['setting']['creditstransextra'][5]]['title']} $trade['credit'] {$_G[setting]['extcredits'][$_G['setting']['creditstransextra'][5]]['unit']}
<!--{/if}-->
</span>
</div>
</li>
<li class="flex-box mli mtit cl">
<div class="flex pl5">
<span class="z">
{lang trade_remaindays}:
<!--{if $trade['closed']}-->
{lang trade_timeout}
<!--{elseif $trade['expiration'] > 0}-->
{$trade['expiration']}{lang days}{$trade['expirationhour']}{lang trade_hour}
<!--{elseif $trade['expiration'] == -1}-->
{lang trade_timeout}
<!--{/if}-->
</span>
</div>
</li>
<!--{/loop}-->
<li class="flex-box mli mtit cl">{lang trade_update_stickmax} {$_G['group']['tradestick']}</li>
</ul>
<dd class="mt10"><button class="pn pnc formdialog" type="submit" name="tradesubmit" value="true"><span>{lang save}</span></button></dd>
</form>
</div>
<script type="text/javascript" reload="1">
function succeedhandle_$_GET['handlekey'](locationhref) {
location.href = locationhref;
}
</script>
<!--{template common/footer}-->

View File

@@ -0,0 +1,252 @@
<!--{template common/header}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2><a href="forum.php?mod=viewthread&tid=$_G['tid']{if $_GET['from']}&from=$_GET['from']{/if}">{lang trade_viewtrade}</a></h2>
<div class="my"><a href="index.php"><i class="dm-house"></i></a></div>
</div>
<!--{if $_G['forum']['ismoderator']}-->
<script type="text/javascript">var fid = parseInt('$_G[fid]'), tid = parseInt('$_G[tid]');</script>
<script type="text/javascript" src="{$_G['setting']['jspath']}forum_moderate.js?{VERHASH}"></script>
<form method="post" autocomplete="off" name="modactions" id="modactions">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="optgroup" />
<input type="hidden" name="operation" />
<input type="hidden" name="listextra" value="" />
</form>
<!--{/if}-->
<div class="viewthread">
<div class="view_tit">
<a href="forum.php?mod=viewthread&tid=$_G['tid']">
<!--{if $_G['forum_thread']['typeid'] && $_G['forum']['threadtypes']['types'][$_G['forum_thread']['typeid']]}-->
<em>[{$_G['forum']['threadtypes']['types'][$_G['forum_thread']['typeid']]}]</em>
<!--{/if}-->
<!--{if $threadsorts && $_G['forum_thread']['sortid']}-->
<em>[{$_G['forum']['threadsorts']['types'][$_G['forum_thread']['sortid']]}]</em>
<!--{/if}-->
$_G['forum_thread']['subject']
<!--{if $_G['forum_thread']['displayorder'] == -2}--> <span>({lang moderating})</span>
<!--{elseif $_G['forum_thread']['displayorder'] == -3}--> <span>({lang have_ignored})</span>
<!--{elseif $_G['forum_thread']['displayorder'] == -4}--> <span>({lang draft})</span>
<!--{/if}-->
</a>
</div>
<div class="plc cl">
<div class="avatar"><!--{avatar($trade['sellerid'], 'small')}--></div>
<div class="display pi pione">
<ul class="authi">
<li class="mtit">
<span class="y">
<a href="home.php?mod=space&do=pm&subop=view&touid=$post['authorid']"><i class="fico-email fc-p"></i>{lang send_pm}</a>
</span>
<span class="z">
$trade['seller']
</span>
</li>
<li class="mtime">
<span class="y"></span>
<!--{if $_G['setting']['verify']['enabled']}-->
<!--{loop $_G['setting']['verify'] $vid $verify}-->
<!--{if $verify['available'] && $post['verify'.$vid] == 1}-->
<a href="home.php?mod=spacecp&ac=profile&op=verify&vid=$vid" target="_blank"><!--{if $verify['icon']}--><img src="$verify['icon']" class="vm" /><!--{else}-->$verify['title']<!--{/if}--></a>&nbsp;
<!--{/if}-->
<!--{/loop}-->
<!--{/if}-->
</li>
</ul>
<div class="message">
<div class="trade_box">
<em>$trade['subject']</em>
<!--{if !$_G['forum_thread']['is_archived']}-->
<!--{if (($_G['forum']['ismoderator'] && $_G['group']['alloweditpost'] && (!in_array($post['adminid'], array(1, 2, 3)) || $_G['adminid'] < $post['adminid'])) || ($_G['forum']['alloweditpost'] && $_G['uid'] && $post['authorid'] == $_G['uid'])) && !$post['first'] || $_G['forum']['ismoderator'] && $_G['group']['allowdelpost']}-->
<span class="my">
<a href="forum.php?mod=post&action=edit&fid=$_G['fid']&tid=$_G['tid']&pid=$post['pid']{if !empty($_GET['modthreadkey'])}&modthreadkey=$_GET['modthreadkey']{/if}&page=$page" class="my"><i class="fico-edit"></i>{lang edit_trade}</a>
<!--{if $_G['forum']['ismoderator'] && $_G['group']['allowdelpost']}--><span class="y pipe">|</span><a class="my dialog" href="forum.php?mod=topicadmin&action=delpost&fid={$_G['fid']}&tid={$_G['tid']}&operation=&optgroup=&page=&topiclist[]={$post['pid']}">{lang delete}</a>&nbsp;&nbsp;<!--{/if}-->
</span>
<!--{/if}-->
<!--{/if}-->
</div>
<div class="spvimg">
<!--{if $trade['displayorder'] > 0}--><em class="hot">{lang post_trade_sticklist}</em><!--{/if}-->
<!--{if $trade['thumb']}-->
<img src="$trade['thumb']" alt="$trade['subject']" />
<!--{else}-->
<img src="{IMGDIR}/nophotosmall.gif" width="90" height="90" alt="$trade['subject']" />
<!--{/if}-->
</div>
<div>
<ul class="post_box cl">
<li class="flex-box mli">
<div class="flex">{lang trade_type_viewthread}</div>
<div class="flex-3">
<!--{if $trade['quality'] == 1}-->{lang trade_new}<!--{/if}-->
<!--{if $trade['quality'] == 2}-->{lang trade_old}<!--{/if}-->
{lang trade_type_buy}
</div>
</li>
<li class="flex-box mli mtext">
<div class="flex">{lang trade_transport}</div>
<div class="flex-3">
<!--{if $trade['transport'] == 0}-->{lang post_trade_transport_offline}<!--{/if}-->
<!--{if $trade['transport'] == 1}-->{lang post_trade_transport_seller}<!--{/if}-->
<!--{if $trade['transport'] == 2 || $trade['transport'] == 4}-->
<!--{if $trade['transport'] == 4}-->{lang post_trade_transport_physical}<!--{/if}-->
<!--{if !empty($trade['ordinaryfee']) || !empty($trade['expressfee']) || !empty($trade['emsfee'])}-->
<!--{if !empty($trade['ordinaryfee'])}-->{lang post_trade_transport_mail} $trade['ordinaryfee'] {lang payment_unit}<!--{/if}-->
<!--{if !empty($trade['expressfee'])}--> {lang post_trade_transport_express} $trade['expressfee'] {lang payment_unit}<!--{/if}-->
<!--{if !empty($trade['emsfee'])}--> EMS $trade['emsfee'] {lang payment_unit}<!--{/if}-->
<!--{elseif $trade['transport'] == 2}-->
{lang post_trade_transport_none}
<!--{/if}-->
<!--{/if}-->
<!--{if $trade['transport'] == 3}-->{lang post_trade_transport_virtual}<!--{/if}-->
</div>
</li>
<li class="flex-box mli">
<div class="flex">{lang trade_remaindays}</div>
<div class="flex-3">
<!--{if $trade['closed']}-->
<em>{lang trade_timeout}</em>
<!--{elseif $trade['expiration'] > 0}-->
{$trade['expiration']}{lang days}{$trade['expirationhour']}{lang trade_hour}
<!--{elseif $trade['expiration'] == -1}-->
<em>{lang trade_timeout}</em>
<!--{else}-->
&nbsp;
<!--{/if}-->
</div>
</li>
<li class="flex-box mli">
<div class="flex">{lang post_trade_number}</div>
<div class="flex-3">$trade['amount']</div>
</li>
<li class="flex-box mli">
<div class="flex">{lang trade_locus}</div>
<div class="flex-3">$trade['locus']</div>
</li>
<li class="flex-box mli">
<div class="flex">{lang post_trade_buynumber}</div>
<div class="flex-3">$trade['totalitems']</div>
</li>
<!--{if $trade['price'] > 0}-->
<li class="flex-box mli">
<div class="flex"></div>
<div class="flex-3">
<strong>$trade['price']</strong>&nbsp;{lang payment_unit}&nbsp;&nbsp;
<!--{if $_G['setting']['creditstransextra'][5] != -1 && $trade['credit']}-->
<!--{if $trade['price'] > 0}-->{lang trade_additional} <!--{/if}--><strong>$trade['credit']</strong>&nbsp;{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][5]]['unit']}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][5]]['title']}
<!--{/if}-->
</div>
</li>
<!--{/if}-->
<!--{if $trade['costprice'] > 0}-->
<li class="flex-box mli">
<div class="flex"></div>
<div class="flex-3">
<del>$trade['costprice'] {lang payment_unit}</del>
<!--{if $_G['setting']['creditstransextra'][5] != -1 && $trade['costcredit'] > 0}-->
<del><!--{if $trade['costprice'] > 0}-->{lang trade_additional} <!--{/if}-->$trade['costcredit'] {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][5]]['unit']}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][5]]['title']}</del>
<!--{/if}-->
</div>
</li>
<!--{/if}-->
</ul>
<!--{hook/viewthread_tradeinfo_extra_mobile}-->
<!--{if $post['authorid'] != $_G['uid'] && empty($thread['closed']) && $trade['expiration'] > -1}-->
<div class="mt10 mb10 b0">
<dd>
<!--{if $trade['amount']}-->
<a href="forum.php?mod=trade&tid=$post['tid']&pid=$post['pid']" class="button media_tips" {if !$_G['uid']}disable="true"{/if}><span>{lang attachment_buy}</span></a>
<!--{else}-->
<a disabled="yes" class="button media_tips btn_pn_grey"><span>{lang sold_out}</span></a>
<!--{/if}-->
<!--{if $_G['uid']}--><a href="home.php?mod=space&do=pm&subop=view&touid=$post['authorid']" class="button media_tips"><span><!--{if $online}-->{lang on_line}<!--{/if}-->{lang trade_bargain}</span></a><!--{/if}-->
</dd>
</div>
<!--{/if}-->
<div class="mt10 cl">
$post['message']
</div>
<!--{if ($_G['setting']['mobile']['mobilesimpletype'] == 0) && (!$needhiddenreply)}-->
<!--{if $post['attachment']}-->
<div class="quote">
{lang attachment}: <em><!--{if $_G['uid']}-->{lang attach_nopermission}<!--{else}-->{lang attach_nopermission_login}<!--{/if}--></em>
</div>
<!--{elseif $post['imagelist'] || $post['attachlist']}-->
<!--{if $post['imagelist']}-->
<ul class="img_one">{echo showattach($post, 1)}</ul>
<!--{/if}-->
<!--{if $post['attachlist']}-->
<ul class="post_attlist">{echo showattach($post)}</ul>
<!--{/if}-->
<!--{/if}-->
<!--{/if}-->
</div>
</div>
</div>
</div>
<div class="discuz_x cl"></div>
<div class="txtlist cl"><div class="mtit cl">{lang trade_rate}</div></div>
<div class="plc p15 cl">
<ul class="post_box cl">
<li class="flex-box mli">
<div class="flex">{lang trade_seller_real_name}</div>
<div class="flex-3"><span class="z"><!--{if $post['realname']}-->$post['realname']<!--{/if}--></span></div>
</li>
<li class="flex-box mli">
<div class="flex">{lang eccredit_buyerinfo}</div>
<div class="flex-3"><span class="z"><a href="home.php?mod=space&uid=$post[authorid]&do=trade&view=eccredit#sellcredit" target="_blank">$post[buyercredit]&nbsp;<img src="{STATICURL}image/traderank/buyer/$post[buyerrank].gif" border="0" style="vertical-align: middle"></a></span></div>
</li>
<li class="flex-box mli">
<div class="flex">{lang eccredit_sellerinfo}</div>
<div class="flex-3"><span class="z"><a href="home.php?mod=space&uid=$post[authorid]&do=trade&view=eccredit#buyercredit" target="_blank">$post[sellercredit]&nbsp;<img src="{STATICURL}image/traderank/seller/$post[sellerrank].gif" border="0" style="vertical-align: middle"></a></span></div>
</li>
</ul>
</div>
<!--{if $usertrades}-->
<div class="discuz_x cl"></div>
<div class="txtlist cl"><div class="mtit cl">{lang trade_other_goods}</div></div>
<div class="plc p15 cl">
<div class="xld cl">
<!--{loop $usertrades $usertrade}-->
<dl class="cl">
<dd class="m">
<a href="forum.php?mod=viewthread&tid=$usertrade['tid']&do=tradeinfo&pid=$usertrade['pid']{if !empty($_GET['modthreadkey'])}&modthreadkey=$_GET['modthreadkey']{/if}" class="tn" style="text-decoration:none !important;">
<!--{if $usertrade['displayorder'] > 0}--><em class="hot">{lang post_trade_sticklist}</em><!--{/if}-->
<!--{if $usertrade['aid']}--><img src="{echo getforumimg($usertrade['aid'])}" width="60" /><!--{else}--><div class="nophoto" style="width:60px;height:60px;line-height:60px;border:1px solid #EEE;"></div><!--{/if}-->
</a>
</dd>
<dt><a href="forum.php?mod=viewthread&tid=$usertrade['tid']&do=tradeinfo&pid=$usertrade['pid']{if !empty($_GET['modthreadkey'])}&modthreadkey=$_GET['modthreadkey']{/if}">$usertrade['subject']</a></dt>
<dd>
<!--{if $usertrade[price] > 0}-->
<p class="p">&yen; <em class="xi1">$usertrade['price']</em></p>
<!--{/if}-->
<!--{if $_G['setting']['creditstransextra'][5] != -1 && $usertrade['credit']}-->
<p class="{if $usertrade['price'] > 0}xg1{else}p{/if}"><!--{if $usertrade['price'] > 0}-->{lang trade_additional} <!--{/if}--><em class="xi1">$usertrade['credit']</em>&nbsp;{$_G[setting]['extcredits'][$_G['setting']['creditstransextra'][5]]['unit']}{$_G[setting]['extcredits'][$_G['setting']['creditstransextra'][5]]['title']}</p>
<!--{/if}-->
</dd>
</dl>
<!--{/loop}-->
</div>
</div>
<!--{/if}-->
<!--{if $userthreads}-->
<div class="discuz_x cl"></div>
<div class="txtlist cl"><div class="mtit cl">{lang trade_seller_other_goods}</div></div>
<div class="plc p15 cl">
<ul>
<!--{loop $userthreads $userthread}-->
<li><span class="z xg1">[<!--{date($userthread['dateline'], 'n-j')}-->]</span>&nbsp;<a href="forum.php?mod=viewthread&tid=$userthread[tid]">$userthread[subject]</a></li>
<!--{/loop}-->
</ul>
</div>
<!--{/if}-->
</div>
<!--{if !IS_ROBOT && !empty($_G['setting']['lazyload'])}-->
<script type="text/javascript">
new lazyload();
</script>
<!--{/if}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,256 @@
<!--{template common/header}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2><a href="forum.php?mod=viewthread&tid=$_G['tid']{if $_GET['from']}&from=$_GET['from']{/if}">{lang trade_order}</a></h2>
<div class="my"><a href="index.php"><i class="dm-house"></i></a></div>
</div>
<div class="viewthread">
<div class="discuz_x cl"></div>
<div class="txtlist cl"><div class="mtit cl"><!--{if !$tradelog['offline']}-->{lang trade_pay_alipay}<!--{else}-->{lang trade_pay_offline}<!--{/if}--></div></div>
<form method="post" autocomplete="off" id="tradepost" name="tradepost" action="forum.php?mod=trade&orderid=$orderid">
<div class="plc p15 cl">
<!--{if !empty($_GET['modthreadkey']) && daddslashes($_GET['modthreadkey'])}-->
<input type="hidden" name="modthreadkey" value="$_GET['modthreadkey']" />
<!--{/if}-->
<!--{if !empty($_GET['tid']) && daddslashes($_GET['tid'])}-->
<input type="hidden" name="tid" value="$_GET['tid']" />
<!--{/if}-->
<input type="hidden" name="formhash" value="{FORMHASH}" />
<ul class="post_box cl">
<li class="flex-box mli">
<div class="flex">{lang status}</div>
<div class="flex-3"><span class="z">$tradelog['statusview']</span></div>
</li>
<li class="flex-box mli">
<div class="flex"></div>
<div class="flex-3"><span class="z">($tradelog['lastupdate'])</span></div>
</li>
<!--{if $tradelog['offline'] && $offlinenext}-->
<li class="flex-box mli">
<div class="flex">{lang trade_password}</div>
<div class="flex-3"><input id="password" name="password" type="password" class="px" /></div>
</li>
<li class="flex-box mli mtext">
<div class="flex"><textarea id="buyermsg" id="message" name="message" class="px pxbg flw_replybox" placeholder="{lang trade_message} {lang trade_seller_remark_comment}"></textarea></div>
</li>
<li class="flex-box mli mtit">$trade_message</li>
<!--{/if}-->
</ul>
<!--{if $tradelog['offline'] && $offlinenext}-->
<dd class="mt10 cl">
<!--{loop $offlinenext $nextid $nextbutton}-->
<button class="button mb10" type="button" onclick="getID('tradepost').offlinestatus.value = '$nextid';getID('offlinesubmit').click();"><em>$nextbutton</em></button>
<!--{/loop}-->
</dd>
<input type="hidden" name="offlinestatus" value="" />
<input type="submit" id="offlinesubmit" name="offlinesubmit" style="display: none" />
<!--{/if}-->
<!--{if trade_typestatus('successtrades', $tradelog['status']) || trade_typestatus('refundsuccess', $tradelog['status'])}-->
<ul class="post_box cl">
<li class="flex-box mli">
<!--{if $tradelog['ratestatus'] == 3}-->
<div class="flex"></div>
<div class="flex-3">{lang eccredit_post_between}</div>
</li>
<!--{elseif ($_G['uid'] == $tradelog['buyerid'] && $tradelog['ratestatus'] == 1) || ($_G['uid'] == $tradelog['sellerid'] && $tradelog['ratestatus'] == 2)}-->
<div class="flex"></div>
<div class="flex-3">{lang eccredit_post_waiting}</div>
</li>
<!--{else}-->
<!--{if ($_G['uid'] == $tradelog['buyerid'] && $tradelog['ratestatus'] == 2) || ($_G['uid'] == $tradelog['sellerid'] && $tradelog['ratestatus'] == 1)}-->
<div class="flex"></div>
<div class="flex-3">{lang eccredit_post_already}</div>
</li>
<!--{else}-->
</li>
<!--{/if}-->
</ul>
<dd>
<!--{if $_G['uid'] == $tradelog['buyerid']}-->
<a class="button media_tips dialog" href="home.php?mod=spacecp&ac=eccredit&op=rate&orderid=$tradelog['orderid']&type=0">{lang eccredit1}</a>
<!--{elseif $_G['uid'] == $tradelog['sellerid']}-->
<a class="button media_tips dialog" href="home.php?mod=spacecp&ac=eccredit&op=rate&orderid=$tradelog['orderid']&type=1">{lang eccredit1}</a>
<!--{/if}-->
</dd>
<ul class="post_box cl">
<!--{/if}-->
</ul>
<!--{elseif !$tradelog['offline']}-->
<dd>
{lang trade_online_tradeurl}
<!--{if $tradelog['status'] == 0 && $tradelog['buyerid'] == $_G['uid']}-->
<!--{if $tradelog['tenpayaccount']}-->
<button class="pn" type="button" name="" onclick="window.open('forum.php?mod=trade&orderid=$orderid&pay=yes&apitype=tenpay','','')"><span>{lang trade_online_tenpay}</span></button>
<!--{/if}-->
<!--{else}-->
<!--{if $tradelog['paytype'] == 1}-->
<button class="pn" type="button" onclick="window.open('$loginurl', '', '')"><span>{lang trade_order_status}</span></button>
<!--{/if}-->
<!--{if $tradelog['paytype'] == 2}-->
<button class="pn" type="button" onclick="window.open('$loginurl', '', '')"><span>{lang tenpay_trade_order_status}</span></button>
<!--{/if}-->
<!--{/if}-->
</dd>
<!--{/if}-->
</div>
<div class="discuz_x cl"></div>
<div class="txtlist cl"><div class="mtit cl">{lang trade_order}</div></div>
<div class="plc p15 cl">
<ul class="post_box cl">
<li class="flex-box mli">
<div class="flex xs1">{lang post_trade_name}</div>
<div class="flex-3"><a href="forum.php?mod=viewthread&tid=$trade['tid']&do=tradeinfo&pid=$trade['pid']{if !empty($_GET['modthreadkey'])}&modthreadkey=$_GET['modthreadkey']{/if}">$tradelog['subject']</a></div>
</li>
<!--{if $trade['price'] > 0}-->
<li class="flex-box mli">
<div class="flex xs1">{lang post_trade_price}</div>
<div class="flex-3">&yen; <em class="xi1">$tradelog['price']</em>&nbsp;{lang payment_unit}</div>
</li>
<!--{/if}-->
<!--{if $_G['setting']['creditstransextra'][5] != -1 && $tradelog['credit']}-->
<li class="flex-box mli">
<div class="flex xs1"></div>
<div class="flex-3"><!--{if $tradelog['price'] > 0}-->{lang trade_additional} <!--{/if}--><em class="xi1">$tradelog['credit']</em>&nbsp;{$_G[setting]['extcredits'][$_G['setting']['creditstransextra'][5]]['unit']}{$_G[setting]['extcredits'][$_G['setting']['creditstransextra'][5]]['title']}</div>
</li>
<!--{/if}-->
<!--{if $tradelog['status'] == 0}--><li class="flex-box mli mtit">{lang trade_payment_comment}</li><!--{/if}-->
<!--{if $tradelog['locus']}-->
<li class="flex-box mli">
<div class="flex xs1">{lang post_trade_locus}</div>
<div class="flex-3">$tradelog['locus']</div>
</li>
<!--{/if}-->
<li class="flex-box mli">
<div class="flex xs1">{lang trade_seller}</div>
<div class="flex-3"><a href="home.php?mod=space&uid=$tradelog['sellerid']" target="_blank">$tradelog['seller']</a></div>
</li>
<li class="flex-box mli">
<div class="flex xs1">{lang trade_buyer}</div>
<div class="flex-3"><a href="home.php?mod=space&uid=$tradelog['buyerid']" target="_blank">$tradelog['buyer']</a></div>
</li>
<!--{if $tradelog['tradeno']}-->
<li class="flex-box mli">
<div class="flex xs1">{lang trade_order_no}</div>
<div class="flex-3"><a href="$loginurl" class="xg2" target="_blank">$tradelog['tradeno']</a></div>
</li>
<!--{/if}-->
<!--{if $tradelog['status'] == 0 && $tradelog['sellerid'] == $_G['uid']}-->
<li class="flex-box mli">
<div class="flex xs1">{lang trade_baseprice}</div>
<div class="flex-3"><input type="text" id="newprice" name="newprice" value="$tradelog['baseprice']" class="px" /></div>
</li>
<!--{if $_G['setting']['creditstransextra'][5] != -1 && $tradelog[credit]}-->
<li class="flex-box mli">
<div class="flex xs1">{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][5]]['title']}</div>
<div class="flex-2"><input type="text" id="newcredit" name="newcredit" value="$tradelog['basecredit']" class="px" /></div>
<div class="flex"><span class="y xg1">{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][5]]['unit']}</span></div>
</li>
<!--{/if}-->
<!--{/if}-->
<li class="flex-box mli">
<div class="flex xs1">{lang trade_nums}</div>
<div class="flex-2"><!--{if $tradelog['status'] == 0 && $tradelog['buyerid'] == $_G['uid']}--><input type="text" id="newnumber" name="newnumber" value="$tradelog[number]" class="px" /><!--{else}-->$tradelog['number']<!--{/if}--></div>
<div class="flex"><span class="y xg1">{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][5]]['unit']}</span></div>
</li>
<li class="flex-box mli">
<div class="flex xs1">{lang post_trade_transport}</div>
<div class="flex-3">
<!--{if $tradelog['transport'] == 0}-->{lang post_trade_transport_offline}<!--{/if}-->
<!--{if $tradelog['transport'] == 1}-->{lang post_trade_transport_seller}<!--{/if}-->
<!--{if $tradelog['transport'] == 2}-->{lang post_trade_transport_buyer}<!--{/if}-->
<!--{if $tradelog['transport'] == 3}-->{lang post_trade_transport_virtual}<!--{/if}-->
<!--{if $tradelog['transport'] == 4}-->{lang post_trade_transport_physical}<!--{/if}-->
</div>
</li>
<!--{if $tradelog['transport']}-->
<li class="flex-box mli">
<div class="flex xs1">{lang trade_transportfee}</div>
<div class="flex-2"><!--{if $tradelog['status'] == 0 && $tradelog['sellerid'] == $_G['uid']}--><input type="text" name="newfee" value="$tradelog['transportfee']" class="px" placeholder="" /><!--{else}-->$tradelog['transportfee']<!--{/if}--></div>
<div class="flex"><span class="y xg1">{lang payment_unit}</span></div>
</li>
<!--{/if}-->
<!--{if $tradelog['transport'] != 3}-->
<li class="flex-box mli">
<div class="flex xs1">{lang trade_buyername}</div>
<div class="flex-3"><!--{if $tradelog['status'] == 0 && $tradelog['buyerid'] == $_G['uid']}--><input type="text" id="newbuyername" name="newbuyername" value="$tradelog['buyername']" maxlength="50" class="px" /><!--{else}-->$tradelog['buyername']<!--{/if}--></div>
</li>
<li class="flex-box mli">
<div class="flex xs1">{lang trade_buyercontact}</div>
<div class="flex-3"><!--{if $tradelog['status'] == 0 && $tradelog['buyerid'] == $_G['uid']}--><input type="text" id="newbuyercontact" name="newbuyercontact" value="$tradelog['buyercontact']" maxlength="100" class="px" /><!--{else}-->$tradelog['buyercontact']<!--{/if}--></div>
</li>
<li class="flex-box mli">
<div class="flex xs1">{lang trade_buyerzip}</div>
<div class="flex-3"><!--{if $tradelog['status'] == 0 && $tradelog['buyerid'] == $_G['uid']}--><input type="text" id="newbuyerzip" name="newbuyerzip" value="$tradelog['buyerzip']" maxlength="10" class="px" /><!--{else}-->$tradelog['buyerzip']<!--{/if}--></div>
</li>
<li class="flex-box mli">
<div class="flex xs1">{lang trade_buyerphone}</div>
<div class="flex-3"><!--{if $tradelog['status'] == 0 && $tradelog['buyerid'] == $_G['uid']}--><input type="text" id="newbuyerphone" name="newbuyerphone" value="$tradelog['buyerphone']" maxlength="20" class="px" /><!--{else}-->$tradelog['buyerphone']<!--{/if}--></div>
</li>
<li class="flex-box mli">
<div class="flex xs1">{lang trade_buyermobile}</div>
<div class="flex-3"><!--{if $tradelog['status'] == 0 && $tradelog['buyerid'] == $_G['uid']}--><input type="text" id="newbuyermobile" name="newbuyermobile" value="$tradelog['buyermobile']" maxlength="20" class="px" /><!--{else}-->$tradelog['buyermobile']<!--{/if}--></div>
</li>
<!--{else}-->
<input type="hidden" name="newbuyername" value="" />
<input type="hidden" name="newbuyercontact" value="" />
<input type="hidden" name="newbuyerzip" value="" />
<input type="hidden" name="newbuyerphone" value="" />
<input type="hidden" name="newbuyermobile" value="" />
<!--{/if}-->
<li class="flex-box mli mtext">
<div class="flex xs1">{lang trade_seller_remark}</div>
<div class="flex-3"><!--{if $tradelog['status'] == 0 && $tradelog['buyerid'] == $_G['uid']}--><textarea id="newbuyermsg" name="newbuyermsg" rows="5" class="pt">$tradelog['buyermsg']</textarea><!--{else}-->$tradelog['buyermsg']<!--{/if}--></div>
</li>
</ul>
<!--{if $tradelog['status'] == 0 && ($_G['uid'] == $tradelog['sellerid'] || $_G['uid'] == $tradelog['buyerid'])}-->
<dd>
<button class="pn" type="submit" name="tradesubmit" value="true"><span>{lang trade_submit_order}</span></button>
</dd>
<!--{/if}-->
</div>
</form>
<!--{if $tradelog['offline'] && !empty($messagelist)}-->
<div class="discuz_x cl"></div>
<div class="txtlist cl"><div class="mtit cl">{lang trade_message}</div></div>
<div class="plc p15 cl">
<div class="xld xlda">
<!--{loop $messagelist $message}-->
<dl class="bbda cl">
<dd class="m avt"><!--{avatar($message[0], 'small')}--></dd>
<dt><a href="home.php?mod=space&uid=$message[0]" target="_blank">$message[1]</a>&nbsp;<span class="xg1 xw0">$message[2]</span></dt>
<dd>$message[3]</dd>
</dl>
<!--{/loop}-->
</div>
</div>
<!--{/if}-->
<!--{if $usertrades}-->
<div class="discuz_x cl"></div>
<div class="txtlist cl"><div class="mtit cl">$trade['seller'] {lang trade_recommended_goods}</div></div>
<div class="plc p15 cl">
<div class="xld cl">
<!--{loop $usertrades $usertrade}-->
<dl class="cl">
<dd class="m">
<a href="forum.php?mod=viewthread&tid=$usertrade['tid']&do=tradeinfo&pid=$usertrade['pid']{if !empty($_GET['modthreadkey'])}&modthreadkey=$_GET['modthreadkey']{/if}" class="tn" style="text-decoration:none !important;">
<!--{if $usertrade['aid']}--><img src="{echo getforumimg($usertrade['aid'])}" width="60" /><!--{else}--><div class="nophoto" style="width:60px;height:60px;line-height:60px;border:1px solid #EEE;"></div><!--{/if}-->
</a>
</dd>
<dt><a href="forum.php?mod=viewthread&tid=$usertrade['tid']&do=tradeinfo&pid=$usertrade['pid']{if !empty($_GET['modthreadkey'])}&modthreadkey=$_GET['modthreadkey']{/if}">$usertrade['subject']</a></dt>
<dd>
<!--{if $usertrade[price] > 0}-->
<p class="p">&yen; <em class="xi1">$usertrade['price']</em></p>
<!--{/if}-->
<!--{if $_G['setting']['creditstransextra'][5] != -1 && $usertrade['credit']}-->
<p class="{if $usertrade['price'] > 0}xg1{else}p{/if}"><!--{if $usertrade['price'] > 0}-->{lang trade_additional} <!--{/if}--><em class="xi1">$usertrade['credit']</em>&nbsp;{$_G[setting]['extcredits'][$_G['setting']['creditstransextra'][5]]['unit']}{$_G[setting]['extcredits'][$_G['setting']['creditstransextra'][5]]['title']}</p>
<!--{/if}-->
</dd>
</dl>
<!--{/loop}-->
</div>
</div>
<!--{/if}-->
</div>
<!--{template common/footer}-->

View File

@@ -0,0 +1,464 @@
<!--{template common/header}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2><a href="<!--{if $_GET['fromguid'] == 'hot' && $_G['setting']['guidestatus']}-->forum.php?mod=guide&view=hot&page=$_GET['page']<!--{else}-->forum.php?mod=forumdisplay&fid=$_G['fid']&<!--{eval echo rawurldecode($_GET['extra']);}--><!--{/if}-->"><!--{eval echo strip_tags($_G['forum']['name']) ? strip_tags($_G['forum']['name']) : $_G['forum']['name'];}--></a></h2>
<div class="my"><a href="index.php"><i class="dm-house"></i></a></div>
</div>
<!--{hook/viewthread_top_mobile}-->
<div class="viewthread">
<div class="view_tit">
<!--{if $_G['forum_thread']['typeid'] && $_G['forum']['threadtypes']['types'][$_G['forum_thread']['typeid']]}-->
<em>[{$_G['forum']['threadtypes']['types'][$_G['forum_thread']['typeid']]}]</em>
<!--{/if}-->
<!--{if $threadsorts && $_G['forum_thread']['sortid']}-->
<em>[{$_G['forum']['threadsorts']['types'][$_G['forum_thread']['sortid']]}]</em>
<!--{/if}-->
$_G['forum_thread']['subject']
<!--{if $_G['forum_thread']['displayorder'] == -2}--> <span>({lang moderating})</span>
<!--{elseif $_G['forum_thread']['displayorder'] == -3}--> <span>({lang have_ignored})</span>
<!--{elseif $_G['forum_thread']['displayorder'] == -4}--> <span>({lang draft})</span>
<!--{/if}-->
</div>
<!--{eval $postcount = 0;}-->
<!--{loop $postlist $post}-->
<!--{eval $needhiddenreply = ($hiddenreplies && $_G['uid'] != $post['authorid'] && $_G['uid'] != $_G['forum_thread']['authorid'] && !$post['first'] && !$_G['forum']['ismoderator']);}-->
<!--{hook/viewthread_posttop_mobile $postcount}-->
<div class="plc cl" id="pid$post['pid']">
<div class="avatar"><img src="<!--{if !$post['authorid'] || $post['anonymous']}--><!--{avatar(0, 'small', true)}--><!--{else}--><!--{avatar($post['authorid'], 'small', true)}--><!--{/if}-->" /></div>
<div class="display pi<!--{if $post['first']}--> pione<!--{/if}-->">
<ul class="authi">
<li class="mtit">
<span class="y">
<!--{if isset($post['isstick'])}-->
<img src ="{IMGDIR}/settop.png" class="vm" /> {lang from} {$post['number']}{$postnostick}
<!--{elseif $post['number'] == -1}-->
{lang recommend_post}
<!--{else}-->
<!--{if !empty($postno[$post['number']])}-->$postno[$post['number']]<!--{else}-->{$post['number']}{$postno[0]}<!--{/if}-->
<!--{/if}-->
</span>
<span class="z">
<!--{if $post['authorid'] && $post['username'] && !$post['anonymous']}-->
<a href="home.php?mod=space&uid=$post['authorid']">$post['author']</a>
<!--{else}-->
<!--{if !$post['authorid']}-->
<a href="javascript:;">{lang guest} <em>$post['useip']{if $post['port']}:$post['port']{/if}</em></a>
<!--{elseif $post['authorid'] && $post['username'] && $post['anonymous']}-->
<!--{if $_G['forum']['ismoderator']}--><a href="home.php?mod=space&uid=$post['authorid']">{$_G['setting']['anonymoustext']}</a><!--{else}-->{$_G['setting']['anonymoustext']}<!--{/if}-->
<!--{else}-->
$post['author'] <em>{lang member_deleted}</em>
<!--{/if}-->
<!--{/if}-->
</span>
</li>
<li class="mtime">
<!--{if $post['first']}--><span class="y"><i class="dm-eye"></i><em>$_G['forum_thread']['views']</em><i class="dm-chat-s"></i><em>$_G['forum_thread']['allreplies']</em></span><!--{/if}-->
<!--{if $post['first'] && $modmenu['thread']}-->
<em class="mgl"><a href="#moption_$post['pid']" class="popup blue">{lang manage}</a></em>
<div id="moption_$post['pid']" popup="true" class="manage" style="display:none;">
<div class="manage_popup pb10 cl">
<!--{if !$_G['forum_thread']['special']}-->
<a class="button" href="forum.php?mod=post&action=edit&fid=$_G['fid']&tid=$_G['tid']&pid=$post['pid']<!--{if $_G['forum_thread']['sortid']}--><!--{if $post['first']}-->&sortid={$_G['forum_thread']['sortid']}<!--{/if}--><!--{/if}-->{if !empty($_GET['modthreadkey'])}&modthreadkey=$_GET['modthreadkey']{/if}&page=$page">{lang edit}</a>
<!--{/if}-->
<!--{if $_G['forum']['ismoderator']}-->
<!--{if $_G['group']['allowdelpost']}-->
<input type="button" value="{lang modmenu_deletethread}" class="dialog button" href="forum.php?mod=topicadmin&action=moderate&fid={$_G['fid']}&moderate[]={$_G['tid']}&operation=delete&optgroup=3&from={$_G['tid']}">
<!--{/if}-->
<!--{if $_G['group']['allowbumpthread'] && !$_G['forum_thread']['is_archived']}-->
<input type="button" value="{lang modmenu_updown}" class="dialog button" href="forum.php?mod=topicadmin&action=moderate&fid={$_G['fid']}&moderate[]={$_G['tid']}&operation=bump&optgroup=3&from={$_G['tid']}">
<!--{/if}-->
<!--{if $_G['group']['allowstickthread'] && ($_G['forum_thread']['displayorder'] <= 3 || $_G['adminid'] == 1) && !$_G['forum_thread']['is_archived']}-->
<input type="button" value="{lang modmenu_stickthread}" class="dialog button" href="forum.php?mod=topicadmin&action=moderate&fid={$_G['fid']}&moderate[]={$_G['tid']}&operation=stick&optgroup=1&from={$_G['tid']}">
<!--{/if}-->
<!--{if $_G['group']['allowlivethread'] && !$_G['forum_thread']['is_archived']}-->
<input type="button" value="{lang modmenu_live}" class="dialog button" href="forum.php?mod=topicadmin&action=live&fid={$_G['fid']}&tid={$_G['tid']}&topiclist[]={$_G['forum_firstpid']}">
<!--{/if}-->
<!--{if $_G['group']['allowhighlightthread'] && !$_G['forum_thread']['is_archived']}-->
<input type="button" value="{lang modmenu_highlight}" class="dialog button" href="forum.php?mod=topicadmin&action=moderate&fid={$_G['fid']}&moderate[]={$_G['tid']}&operation=highlight&optgroup=1&from={$_G['tid']}">
<!--{/if}-->
<!--{if $_G['group']['allowdigestthread'] && !$_G['forum_thread']['is_archived']}-->
<input type="button" value="{lang modmenu_digestpost}" class="dialog button" href="forum.php?mod=topicadmin&action=moderate&fid={$_G['fid']}&moderate[]={$_G['tid']}&operation=digest&optgroup=1&from={$_G['tid']}">
<!--{/if}-->
<!--{if $_G['group']['allowrecommendthread'] && !empty($_G['forum']['modrecommend']['open']) && $_G['forum']['modrecommend']['sort'] != 1 && !$_G['forum_thread']['is_archived']}-->
<input type="button" value="{lang modmenu_recommend}" class="dialog button" href="forum.php?mod=topicadmin&action=moderate&fid={$_G['fid']}&moderate[]={$_G['tid']}&operation=recommend&optgroup=1&from={$_G['tid']}">
<!--{/if}-->
<!--{if $_G['group']['allowstampthread'] && !$_G['forum_thread']['is_archived']}-->
<input type="button" value="{lang modmenu_stamp}" class="dialog button" href="forum.php?mod=topicadmin&action=stamp&fid={$_G['fid']}&tid={$_G['tid']}&topiclist[]={$_G['forum_firstpid']}">
<!--{/if}-->
<!--{if $_G['group']['allowstamplist'] && !$_G['forum_thread']['is_archived']}-->
<input type="button" value="{lang modmenu_icon}" class="dialog button" href="forum.php?mod=topicadmin&action=stamplist&fid={$_G['fid']}&tid={$_G['tid']}&topiclist[]={$_G['forum_firstpid']}">
<!--{/if}-->
<!--{if $_G['group']['allowclosethread'] && !$_G['forum_thread']['is_archived'] && $_G['forum']['status'] != 3}-->
<input type="button" value="<!--{if !$_G['forum_thread']['closed']}-->{lang modmenu_switch_off}<!--{else}-->{lang modmenu_switch_on}<!--{/if}-->" class="dialog button" href="forum.php?mod=topicadmin&action=moderate&fid={$_G['fid']}&moderate[]={$_G['tid']}&from={$_G['tid']}&optgroup=4">
<!--{/if}-->
<!--{if $_G['group']['allowmovethread'] && !$_G['forum_thread']['is_archived'] && $_G['forum']['status'] != 3}-->
<input type="button" value="{lang modmenu_move}" class="dialog button" href="forum.php?mod=topicadmin&action=moderate&fid={$_G['fid']}&moderate[]={$_G['tid']}&operation=move&optgroup=2&from={$_G['tid']}">
<!--{/if}-->
<!--{if $_G['group']['allowedittypethread'] && !$_G['forum_thread']['is_archived']}-->
<input type="button" value="{lang modmenu_type}" class="dialog button" href="forum.php?mod=topicadmin&action=moderate&fid={$_G['fid']}&moderate[]={$_G['tid']}&operation=type&optgroup=2&from={$_G['tid']}">
<!--{/if}-->
<!--{if !$_G['forum_thread']['special'] && !$_G['forum_thread']['is_archived']}-->
<!--{if $_G['group']['allowcopythread'] && $_G['forum']['status'] != 3}-->
<input type="button" value="{lang modmenu_copy}" class="dialog button" href="forum.php?mod=topicadmin&action=copy&fid={$_G['fid']}&tid={$_G['tid']}&topiclist[]={$_G['forum_firstpid']}">
<!--{/if}-->
<!--{if $_G['group']['allowmergethread'] && $_G['forum']['status'] != 3}-->
<input type="button" value="{lang modmenu_merge}" class="dialog button" href="forum.php?mod=topicadmin&action=merge&fid={$_G['fid']}&tid={$_G['tid']}&topiclist[]={$_G['forum_firstpid']}">
<!--{/if}-->
<!--{if $_G['group']['allowrefund'] && $_G['forum_thread']['price'] > 0}-->
<input type="button" value="{lang modmenu_restore}" class="dialog button" href="forum.php?mod=topicadmin&action=refund&fid={$_G['fid']}&tid={$_G['tid']}&topiclist[]={$_G['forum_firstpid']}">
<!--{/if}-->
<!--{/if}-->
<!--{if $_G['group']['allowsplitthread'] && !$_G['forum_thread']['is_archived'] && $_G['forum']['status'] != 3}-->
<input type="button" value="{lang modmenu_split}" class="dialog button" href="forum.php?mod=topicadmin&action=split&fid={$_G['fid']}&tid={$_G['tid']}&topiclist[]={$_G['forum_firstpid']}">
<!--{/if}-->
<!--{if $_G['group']['allowrepairthread'] && !$_G['forum_thread']['is_archived']}-->
<input type="button" value="{lang modmenu_repair}" class="dialog button" href="forum.php?mod=topicadmin&action=repair&fid={$_G['fid']}&tid={$_G['tid']}&topiclist[]={$_G['forum_firstpid']}">
<!--{/if}-->
<!--{if $_G['forum_firstpid']}-->
<!--{if $_G['group']['allowwarnpost']}-->
<input type="button" value="{lang modmenu_warn}" class="dialog button" href="forum.php?mod=topicadmin&action=warn&fid={$_G['fid']}&tid={$_G['tid']}&topiclist[]={$_G['forum_firstpid']}">
<!--{/if}-->
<!--{if $_G['group']['allowbanpost']}-->
<input type="button" value="{lang modmenu_banthread}" class="dialog button" href="forum.php?mod=topicadmin&action=banpost&fid={$_G['fid']}&tid={$_G['tid']}&topiclist[]={$_G['forum_firstpid']}">
<!--{/if}-->
<!--{/if}-->
<!--{if $_G['group']['allowremovereward'] && $_G['forum_thread']['special'] == 3 && !$_G['forum_thread']['is_archived']}-->
<input type="button" value="{lang modmenu_removereward}" class="dialog button" href="forum.php?mod=topicadmin&action=removereward&fid={$_G['fid']}&tid={$_G['tid']}&topiclist[]={$_G['forum_firstpid']}">
<!--{/if}-->
<!--{if $_G['forum']['status'] == 3 && in_array($_G['adminid'], array('1','2')) && $_G['forum_thread']['closed'] < 1}-->
<input type="button" value="{lang modmenu_grouprecommend}" class="dialog button" href="forum.php?mod=topicadmin&action=moderate&fid={$_G['fid']}&moderate[]={$_G['tid']}&operation=recommend_group&optgroup=5&from={$_G['tid']}">
<!--{/if}-->
<!--{if $_G['group']['allowmanagetag']}-->
<a href="forum.php?mod=tag&op=manage&tid=$_G['tid']" class="dialog button">{lang post_tag}</a>
<!--{/if}-->
<!--{if $_G['group']['alloweditusertag']}-->
<a href="forum.php?mod=misc&action=usertag&tid=$_G['tid']" class="dialog button">{lang usertag}</a>
<!--{/if}-->
<!--{/if}-->
<!--{if $allowpusharticle && $allowpostarticle}-->
<a href="portal.php?mod=portalcp&ac=article&from_idtype=tid&from_id=$_G['tid']" class="dialog button">{lang modmenu_pusharticle}</a>
<!--{/if}-->
<!--{if !empty($post['totalrate']) && $_G['forum']['ismoderator']}-->
<input type="button" value="{lang removerate}" class="dialog button" href="forum.php?mod=misc&action=removerate&tid={$_G['tid']}&pid={$post['pid']}&page={$page}">
<!--{/if}-->
</div>
</div>
<!--{elseif !$post['first'] && $modmenu['post']}-->
<em class="mgl"><a href="#moption_$post['pid']" class="popup">{lang manage}</a></em>
<div id="moption_$post['pid']" popup="true" class="manage" style="display:none">
<div class="manage_popup">
<a class="button" href="forum.php?mod=post&action=edit&fid=$_G['fid']&tid=$_G['tid']&pid=$post['pid']{if !empty($_GET['modthreadkey'])}&modthreadkey=$_GET['modthreadkey']{/if}&page=$page">{lang edit}</a>
<!--{if $_G['group']['allowdelpost']}-->
<input type="button" value="{lang modmenu_deletepost}" class="dialog button" href="forum.php?mod=topicadmin&action=delpost&fid={$_G['fid']}&tid={$_G['tid']}&operation=&optgroup=&page=&topiclist[]={$post['pid']}">
<!--{/if}-->
<!--{if $_G['group']['allowbanpost']}-->
<input type="button" value="{lang modmenu_banpost}" class="dialog button" href="forum.php?mod=topicadmin&action=banpost&fid={$_G['fid']}&tid={$_G['tid']}&operation=&optgroup=&page=&topiclist[]={$post['pid']}">
<!--{/if}-->
<!--{if $_G['group']['allowwarnpost']}-->
<input type="button" value="{lang modmenu_warn}" class="dialog button" href="forum.php?mod=topicadmin&action=warn&fid={$_G['fid']}&tid={$_G['tid']}&operation=&optgroup=&page=&topiclist[]={$post['pid']}">
<!--{/if}-->
<!--{if $_G['forum']['ismoderator'] && $_G['group']['allowstickreply'] || $_G['forum_thread']['authorid'] == $_G['uid']}-->
<input type="button" value="{lang modmenu_stickpost}" class="dialog button" href="forum.php?mod=topicadmin&action=stickreply&fid={$_G['fid']}&tid={$_G['tid']}&operation=&optgroup=&page=&topiclist[]={$post['pid']}">
<!--{/if}-->
<!--{if $_G['forum_thread']['pushedaid'] && $allowpostarticle}-->
<input type="button" value="{lang modmenu_pushplus}" class="dialog button" href="portal.php?mod=portalcp&ac=article&op=pushplus&action=pushplus&fid={$_G['fid']}&tid={$_G['tid']}&operation=&optgroup=&page=&topiclist[]={$post['pid']}&aid={$_G['forum_thread']['pushedaid']}">
<!--{/if}-->
<!--{if !empty($post['totalrate']) && $_G['forum']['ismoderator']}-->
<input type="button" value="{lang removerate}" class="dialog button" href="forum.php?mod=misc&action=removerate&tid={$_G['tid']}&pid={$post['pid']}&page={$page}">
<!--{/if}-->
</div>
</div>
<!--{else}-->
<!--{if (($_G['forum']['ismoderator'] && $_G['group']['alloweditpost'] && (!in_array($post['adminid'], array(1, 2, 3)) || $_G['adminid'] <= $post['adminid'])) || ($_G['forum']['alloweditpost'] && $_G['uid'] && ($post['authorid'] == $_G['uid'] && $_G['forum_thread']['closed'] == 0) && !(!$alloweditpost_status && $edittimelimit && TIMESTAMP - $post['dbdateline'] > $edittimelimit)))}-->
<em class="mgl"><a href="forum.php?mod=post&action=edit&fid={$_G['fid']}&tid={$_G['tid']}&pid={$post['pid']}{if !empty($_GET['modthreadkey'])}&modthreadkey={$_GET['modthreadkey']}{/if}&page={$page}"><!--{if $_G['forum_thread']['special'] == 2 && !$post['message']}-->{lang post_add_aboutcounter}<!--{else}-->{lang edit}<!--{/if}--></a></em>
<!--{elseif $_G['uid'] && $post['authorid'] == $_G['uid'] && $_G['setting']['postappend']}-->
<em class="mgl"><a href="forum.php?mod=misc&action=postappend&tid={$post['tid']}&pid={$post['pid']}&extra={$_GET['extra']}&page={$page}">{lang postappend}</a></em>
<!--{/if}-->
<!--{/if}-->
$post['dateline']
</li>
<!--{if !$post['first'] && $_G['forum_thread']['special'] == 5}-->
<li class="mtime">
<!--{if $post['stand'] == 1}--><em class="f_g"><a class="f_g" href="forum.php?mod=viewthread&tid=$_G['tid']&extra=$_GET['extra']&filter=debate&stand=1">{lang debate_square}</a></em>
<!--{elseif $post['stand'] == 2}--><em class="f_b"><a class="f_b" href="forum.php?mod=viewthread&tid=$_G['tid']&extra=$_GET['extra']&filter=debate&stand=2">{lang debate_opponent}</a></em>
<!--{else}--><a href="forum.php?mod=viewthread&tid=$_G['tid']&extra=$_GET['extra']&filter=debate&stand=0">{lang debate_neutral}</a><!--{/if}-->
<!--{if $post['stand']}-->
<a class="dialog" href="forum.php?mod=misc&action=debatevote&tid=$_G['tid']&pid=$post['pid']" id="voterdebate_$post['pid']">{lang debate_support} $post['voters']</a>
<!--{/if}-->
</li>
<!--{/if}-->
</ul>
<div class="message">
<!--{if $post['warned']}-->
<span class="quote">{lang warn_get}</span>
<!--{/if}-->
<!--{if !$post['first'] && !empty($post['subject']) && (!$needhiddenreply)}-->
<h2><strong>$post['subject']</strong></h2>
<!--{/if}-->
<!--{if $_G['adminid'] != 1 && $_G['setting']['bannedmessages'] & 1 && (($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5) || $post['status'] == -1 || $post['memberstatus'])}-->
<div class="quote">{lang message_banned}</div>
<!--{elseif $_G['adminid'] != 1 && $post['status'] & 1}-->
<div class="quote">{lang message_single_banned}</div>
<!--{elseif $needhiddenreply}-->
<div class="quote">{lang message_ishidden_hiddenreplies}</div>
<!--{elseif $post['first'] && $_G['forum_threadpay']}-->
<!--{template forum/viewthread_pay}-->
<!--{else}-->
<!--{if $_G['setting']['bannedmessages'] & 1 && (($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5))}-->
<div class="quote">{lang admin_message_banned}</div>
<!--{elseif $post['status'] & 1}-->
<div class="quote">{lang admin_message_single_banned}</div>
<!--{/if}-->
<!--{if $post['first'] && $_G['forum_thread']['price'] > 0 && $_G['forum_thread']['special'] == 0}-->
{lang pay_threads}: <strong>$_G['forum_thread']['price'] {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]]['unit']}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]]['title']} </strong> <a href="forum.php?mod=misc&action=viewpayments&tid=$_G['tid']" >{lang pay_view}</a>
<!--{/if}-->
<!--{if $post['first'] && $threadsort && $threadsortshow}-->
<!--{if $threadsortshow['optionlist'] && !($post['status'] & 1) && !$_G['forum_threadpay']}-->
<!--{if $threadsortshow['optionlist'] == 'expire'}-->
{lang has_expired}
<!--{else}-->
<div class="box_ex2 viewsort b_b mb10">
<h4>$_G['forum']['threadsorts']['types'][$_G['forum_thread']['sortid']]</h4>
<!--{loop $threadsortshow['optionlist'] $option}-->
<!--{if $option['type'] != 'info'}-->
$option['title']: <!--{if $option['value']}-->$option['value'] $option['unit']<!--{else}--><span class="fc-s">--</span><!--{/if}--><br />
<!--{/if}-->
<!--{/loop}-->
</div>
<!--{/if}-->
<!--{/if}-->
<!--{/if}-->
<!--{if $post['first']}-->
<!--{if !$_G['forum_thread']['special']}-->
$post['message']
<!--{elseif $_G['forum_thread']['special'] == 1}-->
<!--{template forum/viewthread_poll}-->
<!--{elseif $_G['forum_thread']['special'] == 2}-->
<!--{template forum/viewthread_trade}-->
<!--{elseif $_G['forum_thread']['special'] == 3}-->
<!--{template forum/viewthread_reward}-->
<!--{elseif $_G['forum_thread']['special'] == 4}-->
<!--{template forum/viewthread_activity}-->
<!--{elseif $_G['forum_thread']['special'] == 5}-->
<!--{template forum/viewthread_debate}-->
<!--{elseif $threadplughtml}-->
$threadplughtml
$post['message']
<!--{else}-->
$post['message']
<!--{/if}-->
<!--{else}-->
$post['message']
<!--{/if}-->
<!--{/if}-->
</div>
<!--{if ($_G['setting']['mobile']['mobilesimpletype'] == 0) && (!$needhiddenreply)}-->
<!--{if $post['attachment']}-->
<div class="quote">
{lang attachment}: <em><!--{if $_G['uid']}-->{lang attach_nopermission}<!--{else}-->{lang attach_nopermission_login}<!--{/if}--></em>
</div>
<!--{elseif $post['imagelist'] || $post['attachlist']}-->
<!--{if $post['imagelist']}-->
<ul class="img_one">{echo showattach($post, 1)}</ul>
<!--{/if}-->
<!--{if $post['attachlist']}-->
<ul class="post_attlist">{echo showattach($post)}</ul>
<!--{/if}-->
<!--{/if}-->
<!--{/if}-->
<!--{if $post['first']}-->
<!--{/if}-->
<div id="comment_$post['pid']">
<!--{if $_GET['from'] != 'preview' && $_G['setting']['commentnumber'] && !empty($comments[$post['pid']])}-->
<h3 class="psth xs1"><span class="icon_ring vm"></span>{lang comments}</h3>
<!--{if $totalcomment[$post['pid']]}--><div class="pstl">$totalcomment[$post['pid']]</div><!--{/if}-->
<!--{loop $comments[$post['pid']] $comment}-->
<div class="plc p0 cl" id="commentdetail_{$comment['id']}">
<div class="avatar l0">$comment['avatar']</div>
<div class="display pi">
<ul class="authi">
<li class="mtit">
<span class="y"><!--{if $comment['useip'] && $_G['group']['allowviewip']}-->IP:$comment['useip']{if $comment['port']}:$comment['port']{/if}<!--{/if}--></span>
<span class="z">
<!--{if $comment['authorid']}-->
<a href="home.php?mod=space&uid=$comment['authorid']" class="xi2 xw1">$comment['author']</a>
<!--{else}-->
{lang guest}
<!--{/if}-->
</span>
</li>
<li class="mtime">
<em class="mgl"><!--{if $_G['forum']['ismoderator'] && $_G['group']['allowdelpost']}--><a href="forum.php?mod=topicadmin&action=delcomment&fid={$_G['fid']}&tid={$_G['tid']}&moderate[]={$_G['tid']}&topiclist[]={$comment['id']}&page={$_G['page']}" class="dialog">{lang delete}</a><!--{/if}--></em>
{lang poston} <!--{date($comment['dateline'], 'u')}-->
</li>
<li class="mtxt mt5">$comment['comment']</li>
</ul>
</div>
</div>
<!--{/loop}-->
<!--{if $commentcount[$post['pid']] > $_G['setting']['commentnumber']}--><div id="dumppage"></div><div class="pgs cl"><div class="page"><a href="javascript:;" class="nxt" onclick="ajaxget('forum.php?mod=misc&action=commentmore&tid=$post[tid]&pid=$post[pid]&page=2', 'comment_$post[pid]')">{lang next_page}</a></div></div><!--{/if}-->
<!--{/if}-->
</div>
<!--{if $_GET['from'] != 'preview' && !empty($post['ratelog'])}-->
<h3 class="psth xs1"><span class="icon_ring vm"></span>{lang rate}</h3>
<div id="ratelog_{$post['pid']}">
<!--{if $_G['setting']['ratelogon']}-->
<dd style="margin:0">
<!--{else}-->
<dd>
<!--{/if}-->
<div id="post_rate_$post[pid]"></div>
<!--{if $_G['setting']['ratelogon']}-->
<ul class="post_box cl">
<li class="flex-box mli p0">
<div class="flex-2 xs1 xg1 xw1"><span class="z"><a href="forum.php?mod=misc&action=viewratings&tid=$_G['tid']&pid=$post['pid']" class="dialog" title="{lang rate_view}"> {lang number_of_participants} <span class="xi1"><!--{echo count($postlist[$post['pid']]['totalrate']);}--></span></a></span></div>
<!--{loop $post['ratelogextcredits'] $id $score}-->
<!--{if $score > 0}-->
<div class="flex-2 xs1 xg1 xw1">{$_G['setting']['extcredits'][$id]['title']} <i><span class="xi1">+$score</span></i></div>
<!--{else}-->
<div class="flex-2 xs1 xg1 xw1">{$_G['setting']['extcredits'][$id]['title']} <i><span class="xi1">$score</span></i></div>
<!--{/if}-->
<!--{/loop}-->
<div class="flex-3 xs1 xg1 xw1">{lang reason}</div>
</li>
<!--{loop $post['ratelog'] $uid $ratelog}-->
<li class="flex-box mli p0">
<div class="flex-2 xs1 xg1"><span class="z"><a href="home.php?mod=space&uid=$uid" target="_blank">$ratelog['username']</a></span></div>
<!--{loop $post['ratelogextcredits'] $id $score}-->
<!--{if $ratelog['score'][$id] > 0}-->
<div class="flex-2 xs1 xi1 xw1"> + $ratelog['score'][$id]</div>
<!--{else}-->
<div class="flex-2 xs1 xg1 xw1">$ratelog['score'][$id]</div>
<!--{/if}-->
<!--{/loop}-->
<div class="flex-3 xs1 xg1">$ratelog['reason']</div>
</li>
<!--{/loop}-->
<li class="flex-box mli p0"><div class="flex xs2 xg1 xw1"><a href="forum.php?mod=misc&action=viewratings&tid=$_G['tid']&pid=$post['pid']" title="{lang rate_view}" class="dialog">{lang rate_view}</a></div></li>
</ul>
<!--{else}-->
<div class="forumlist">
<div class="sub-forum mlist4 cl">
<ul class="cl">
<!--{loop $post['ratelog'] $uid $ratelog}-->
<li class="b0">
<span class="micon"><a href="home.php?mod=space&uid=$uid" target="_blank"><!--{echo avatar($uid, 'small');}--></a></span>
<a href="home.php?mod=space&uid=$uid" class="murl"><p class="mtit">$ratelog['username']</p></a>
<!--{loop $ratelog['score'] $id $score}-->
<!--{if $score > 0}-->
<p class="mtit mt0"><em class='xi1'>{$_G['setting']['extcredits'][$id]['title']} + $score $_G['setting']['extcredits'][$id]['unit']</em></p>
<!--{else}-->
<p class="mtit mt0"><span>{$_G['setting']['extcredits'][$id]['title']} $score $_G['setting']['extcredits'][$id]['unit']</span></p>
<!--{/if}-->
<!--{/loop}-->
</li>
<!--{/loop}-->
</ul>
<div class="xs2 xg1 xw1"><a href="forum.php?mod=misc&action=viewratings&tid=$_G['tid']&pid=$post['pid']" title="{lang rate_view}" class="dialog">{lang rate_view}</a></div>
</div>
</div>
<!--{/if}-->
</dd>
</div>
<!--{else}-->
<div id="post_rate_div_{$post['pid']}"></div>
<!--{/if}-->
</div>
<div class="threadlist_foot cl">
<ul>
<!--{if $_G['uid'] && $allowpostreply && !$post['first']}-->
<li><a href="forum.php?mod=post&action=reply&fid={$_G['fid']}&tid={$_G['tid']}&repquote={$post['pid']}&extra={$_GET['extra']}&page={$page}"><i class="dm-chat-s"></i>{lang reply}</a></li>
<!--{/if}-->
<!--{if $_G['group']['raterange'] && $post['authorid']}-->
<li><a href="forum.php?mod=misc&action=rate&tid={$_G['tid']}&pid={$post['pid']}" class="dialog"><i class="dm-heart"></i>{lang rate}</a></li>
<!--{/if}-->
<!--{if $post['invisible'] == 0}-->
<!--{if $allowpostreply && $post['allowcomment'] && (!$thread['closed'] || $_G['forum']['ismoderator'])}--><li><a href="forum.php?mod=misc&action=comment&tid={$post['tid']}&pid={$post['pid']}&extra={$_GET['extra']}&page={$page}{if $_G['forum_thread']['special'] == 127}&special={$specialextra}{/if}" class="dialog"><i class="dm-chat-t"></i>{lang comments}</a></li><!--{/if}-->
<!--{/if}-->
<!--{if !$_G['forum_thread']['special'] && !$rushreply && !$hiddenreplies && $_G['setting']['repliesrank'] && !$post['first'] && !($post['isWater'] && $_G['setting']['filterednovote'])}-->
<li><a href="forum.php?mod=misc&action=postreview&do=support&tid={$_G['tid']}&pid={$post['pid']}&hash={FORMHASH}" class="dialog"><i class="dm-c-up"></i>{lang support_reply} <span id="review_support_{$post['pid']}">{$post['postreview']['support']}</span></a></li>
<li><a href="forum.php?mod=misc&action=postreview&do=against&tid={$_G['tid']}&pid={$post['pid']}&hash={FORMHASH}" class="dialog"><i class="dm-c-down"></i>{lang against_reply} <span id="review_against_{$post['pid']}">{$post['postreview']['against']}</span></a></li>
<!--{/if}-->
<!--{if $post['first']}-->
<!--{if ($_G['group']['allowrecommend'] || !$_G['uid']) && !empty($_G['setting']['recommendthread']['status'])}-->
<!--{if !empty($_G['setting']['recommendthread']['addtext'])}-->
<li><a href="forum.php?mod=misc&action=recommend&do=add&tid={$_G['tid']}&hash={FORMHASH}" class="dialog"><i></i><i class="dm-c-up"></i>{$_G['setting']['recommendthread']['addtext']}<span id="recommendv_add"{if !$_G['forum_thread']['recommend_add']} style="display:none"{/if}>{$_G['forum_thread']['recommend_add']}</span></a></li>
<!--{/if}-->
<!--{if !empty($_G['setting']['recommendthread']['subtracttext'])}-->
<li><a href="forum.php?mod=misc&action=recommend&do=subtract&tid={$_G['tid']}&hash={FORMHASH}" class="dialog"><i></i><i class="dm-c-down"></i>{$_G['setting']['recommendthread']['subtracttext']}<span id="recommendv_subtract"{if !$_G['forum_thread']['recommend_sub']} style="display:none"{/if}>{$_G['forum_thread']['recommend_sub']}</span></a></li>
<!--{/if}-->
<!--{/if}-->
<!--{/if}-->
<!--{hook/viewthread_postfooter_mobile $postcount}-->
</ul>
</div>
</div>
<!--{hook/viewthread_postbottom_mobile $postcount}-->
<!--{eval $postcount++;}-->
<!--{if $post['first']}-->
<div class="discuz_x cl"></div>
<div class="txtlist cl">
<div class="mtit cl">
<!--{if !$rushreply}-->
<!--{if $ordertype != 1}-->
<a href="forum.php?mod=viewthread&tid={$_G['tid']}&extra={$_GET['extra']}&ordertype=1" class="ytxt">{lang post_descview}</a>
<!--{else}-->
<a href="forum.php?mod=viewthread&tid={$_G['tid']}&extra={$_GET['extra']}&ordertype=2" class="ytxt">{lang post_ascview}</a>
<!--{/if}-->
<!--{/if}-->
<!--{if !IS_ROBOT && !$_GET['authorid'] && !$_G['forum_thread']['archiveid']}-->
<a href="forum.php?mod=viewthread&tid={$_G['tid']}&page={$page}&authorid={$_G['forum_thread']['authorid']}" rel="nofollow" class="ytxt">{lang viewonlyauthorid}</a>
<!--{elseif !$_G['forum_thread']['archiveid']}-->
<a href="forum.php?mod=viewthread&tid={$_G['tid']}&page={$page}" rel="nofollow" class="ytxt">{lang thread_show_all}</a>
<!--{/if}-->
{lang all}{lang reply}<!--{if $_G['forum_thread']['allreplies']}--><em>{$_G['forum_thread']['allreplies']}</em><!--{/if}-->
</div>
</div>
<!--{if !$_G['forum_thread']['allreplies']}-->
<div class="view_reply cl"><i class="dm-sofa"></i>{lang mobnoreply}</div>
<!--{/if}-->
<!--{/if}-->
<!--{/loop}-->
</div>
$multipage
<!--{hook/viewthread_bottom_mobile}-->
<div class="foot foot_reply flex-box cl">
<a href="forum.php?mod=post&action=reply&fid={$_G['fid']}&tid={$_G['tid']}&reppost={$_G['forum_firstpid']}&page={$page}" class="flex"><i class="dm-chat-s"></i>{lang reply}</a>
<!--{if helper_access::check_module('favorite')}-->
<a href="home.php?mod=spacecp&ac=favorite&type=thread&id={$_G['tid']}" class="dialog flex mx"><i class="dm-star"></i><!--{if $_G['forum_thread']['favtimes']}-->{$_G['forum_thread']['favtimes']}<!--{/if}-->{lang favorite}</a>
<!--{/if}-->
<!--{if helper_access::check_module('follow')}-->
<a href="home.php?mod=spacecp&ac=follow&op=relay&tid={$_G['tid']}&from=forum" class="dialog flex mx"><i class="fico-launch"></i><!--{if $_G['forum_thread']['relay']}-->{$_G['forum_thread']['relay']}<!--{/if}-->{lang thread_realy}</a>
<!--{/if}-->
<!--{if helper_access::check_module('share')}-->
<a href="home.php?mod=spacecp&ac=share&type=thread&id={$_G['tid']}" class="dialog flex mx"><i class="dm-star"></i><!--{if $_G['forum_thread']['sharetimes']}-->{$_G['forum_thread']['sharetimes']}<!--{/if}-->{lang thread_share}</a>
<!--{/if}-->
<!--{if !$_G['forum']['disablecollect'] && helper_access::check_module('collection')}-->
<a href="forum.php?mod=collection&action=edit&op=addthread&tid={$_G['tid']}" class="dialog flex mx"><i class="fico-collection"></i><!--{if $post['releatcollectionnum']}-->{$post['releatcollectionnum']}<!--{/if}-->{lang collection}</a>
<!--{/if}-->
</div>
<div class="foot_height_view"></div>
<script type="text/javascript">
$('.favbtn').on('click', function() {
var obj = $(this);
$.ajax({
type:'POST',
url:obj.attr('href') + '&handlekey=favbtn&inajax=1',
data:{'favoritesubmit':'true', 'formhash':'{FORMHASH}'},
dataType:'xml',
})
.success(function(s) {
popup.open(s.lastChild.firstChild.nodeValue);
evalscript(s.lastChild.firstChild.nodeValue);
})
.error(function() {
window.location.href = obj.attr('href');
popup.close();
});
return false;
});
</script>
<a href="javascript:;" class="scrolltop bottom"></a>
<!--{eval $nofooter = true;}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,145 @@
<div id="postmessage_$post['pid']" class="postmessage">$post['message']</div>
<div class="activity cl">
<!--{if $activity['thumb']}--><img src="$activity['thumb']" class="vm"><!--{else}--><img src="{IMGDIR}/nophoto.gif" width="230" height="230" class="vm"><!--{/if}-->
<dl>
<dt><span class="mtit">{lang activity_type}:</span>$activity['class']</dt>
<dt><span class="mtit">{lang activity_starttime}:</span>
<!--{if $activity['starttimeto']}-->
{lang activity_start_between}
<!--{else}-->
$activity['starttimefrom']
<!--{/if}-->
</dt>
<dt><span class="mtit">{lang activity_space}:</span>$activity['place']</dt>
<dt><span class="mtit">{lang gender}:</span>
<!--{if $activity['gender'] == 1}-->
{lang male}
<!--{elseif $activity['gender'] == 2}-->
{lang female}
<!--{else}-->
{lang unlimited}
<!--{/if}-->
</dt>
<!--{if $activity['cost']}-->
<dt><span class="mtit">{lang activity_payment}:</span>$activity['cost'] {lang payment_unit}</dt>
<!--{/if}-->
<!--{if !$_G['forum_thread']['is_archived']}-->
<dt><span class="mtit">{lang activity_already}:</span>
<em>$allapplynum</em> {lang activity_member_unit}
<!--{if $post['invisible'] == 0 && ($_G['forum_thread']['authorid'] == $_G['uid'] || (in_array($_G['group']['radminid'], array(1, 2)) && $_G['group']['alloweditactivity']) || ( $_G['group']['radminid'] == 3 && $_G['forum']['ismoderator'] && $_G['group']['alloweditactivity']))}-->
<a href="forum.php?mod=misc&action=activityapplylist&tid=$_G['tid']&pid=$post['pid']{if $_GET['from']}&from=$_GET['from']{/if}" class="my dialog">{lang manage}</a>
<!--{/if}-->
</dt>
<!--{if $activity['number']}-->
<dt><span class="mtit">{lang activity_about_member}:</span>
$aboutmembers {lang activity_member_unit}
</dt>
<!--{/if}-->
<!--{if $activity['expiration']}-->
<dt><span class="mtit">{lang post_closing}:</span>$activity['expiration']</dt>
<!--{/if}-->
<dt>
<!--{if $post['invisible'] == 0}-->
<!--{if $applied && $isverified < 2}-->
<p class="quote"><!--{if !$isverified}-->{lang activity_wait}<!--{else}-->{lang activity_join_audit}<!--{/if}--></p>
<!--{if !$activityclose}-->
<!--{/if}-->
<!--{elseif !$activityclose}-->
<!--{if $isverified != 2}-->
<!--{else}-->
<p>
<input value="{lang complete_data}" name="ijoin" id="ijoin" />
</p>
<!--{/if}-->
<!--{/if}-->
<!--{/if}-->
</dt>
</dl>
<!--{/if}-->
</div>
<!--{if $_G['uid'] && !$activityclose && (!$applied || $isverified == 2)}-->
<div id="activityjoin" class="activity cl">
<dt>{lang activity_join}</dt>
<!--{if $_G['forum']['status'] == 3 && helper_access::check_module('group') && $isgroupuser != 'isgroupuser'}-->
<dt>{lang activity_no_member}<a href="forum.php?mod=group&action=join&fid=$_G['fid']">{lang activity_join_group}</a></dt>
<!--{else}-->
<form name="activity" id="activity" method="post" autocomplete="off" action="forum.php?mod=misc&action=activityapplies&fid=$_G['fid']&tid=$_G['tid']&pid=$post['pid']{if $_GET['from']}&from=$_GET['from']{/if}&mobile=2" >
<input type="hidden" name="formhash" value="{FORMHASH}" />
<!--{if $_G['setting']['activitycredit'] && $activity['credit'] && !$applied}--><dt class="mtxt">{lang activity_need_credit} $activity['credit'] {$_G['setting']['extcredits'][$_G['setting']['activitycredit']]['title']}</dt><!--{/if}-->
<!--{if $activity['cost']}-->
<p class="quote">{lang activity_paytype} <label><input class="pr" type="radio" value="0" name="payment" id="payment_0" checked="checked" />{lang activity_pay_myself}</label> <label><input class="pr" type="radio" value="1" name="payment" id="payment_1" />{lang activity_would_payment} <input name="payvalue" size="3" /> {lang payment_unit}</label></p>
<!--{/if}-->
<!--{if !empty($activity['ufield']['userfield'])}-->
<!--{loop $activity['ufield']['userfield'] $fieldid}-->
<!--{if $settings[$fieldid]['available']}-->
<dt>
<span class="mtxt">$settings[$fieldid]['title']<span class="mx">*</span></span>
$htmls[$fieldid]
</dt>
<!--{/if}-->
<!--{/loop}-->
<!--{/if}-->
<!--{if !empty($activity['ufield']['extfield'])}-->
<!--{loop $activity['ufield']['extfield'] $extname}-->
$extname<input type="text" name="$extname" maxlength="200" class="txt" value="{if !empty($ufielddata)}$ufielddata['extfield'][$extname]{/if}" />
<!--{/loop}-->
<!--{/if}-->
<dt>
<span class="mtxt">{lang leaveword}</span>
<textarea name="message" maxlength="200" class="px">$applyinfo['message']</textarea>
</dt>
<div class="join_btn cl">
<!--{if $_G['setting']['activitycredit'] && $activity['credit'] && checklowerlimit(array('extcredits'.$_G['setting']['activitycredit'] => '-'.$activity['credit']), $_G['uid'], 1, 0, 1) !== true}-->
<dt class="mtxt">{$_G['setting']['extcredits'][$_G['setting']['activitycredit']]['title']} {lang not_enough}$activity['credit']</dt>
<!--{else}-->
<input type="hidden" name="activitysubmit" value="true">
<em id="return_activityapplies"></em>
<button type="submit" class="formdialog pn">{lang submit}</button>
<!--{/if}-->
</div>
</form>
<script type="text/javascript">
function succeedhandle_activityapplies(locationhref, message) {
showDialog(message, 'notice', '', 'location.href="' + locationhref + '"');
}
</script>
<!--{/if}-->
</div>
<!--{elseif $_G['uid'] && !$activityclose && $applied}-->
<div id="activityjoincancel" class="activity cl">
<dt>{lang activity_join_cancel}</dt>
<form name="activity" method="post" autocomplete="off" action="forum.php?mod=misc&action=activityapplies&fid=$_G['fid']&tid=$_G['tid']&pid=$post['pid']{if $_GET['from']}&from=$_GET['from']{/if}">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<dt>
<span class="mtxt">{lang leaveword}</span>
<input type="text" name="message" maxlength="200" class="px" value="" />
</dt>
<div class="join_btn cl">
<button type="submit" name="activitycancel" value="true" class="formdialog pn mt5">{lang submit}</button>
</div>
</form>
</div>
<!--{/if}-->
<!--{if $applylist}-->
<div class="activity cl">
<dt>{lang activity_new_join} ($applynumbers {lang activity_member_unit})</dt>
<table class="mbox" cellpadding="5" cellspacing="5">
<tr>
<th class="ma">{lang mod_option_moduser}</th>
<!--{if $activity['cost']}-->
<th class="mb">{lang activity_payment}</th>
<!--{/if}-->
<th class="mc">{lang activity_jointime}</th>
</tr>
<!--{loop $applylist $apply}-->
<tr>
<td class="ma"><a href="home.php?mod=space&uid=$apply['uid']">$apply['username']</a></td>
<!--{if $activity['cost']}-->
<td class="mb"><!--{if $apply['payment'] >= 0}-->$apply['payment'] {lang payment_unit}<!--{else}-->{lang activity_self}<!--{/if}--></td>
<!--{/if}-->
<td class="mc">$apply['dateline']</td>
</tr>
<!--{/loop}-->
</table>
</div>
<!--{/if}-->

View File

@@ -0,0 +1,307 @@
<!--{template common/header}-->
<style type="text/css">
.postalbum { background-color:#343434; display:none; height:100%; overflow:hidden; padding:0 0 1px 0; position:absolute; top:0; width:100%; z-index:80; }
.postalbum_h { height:50px; left:0; line-height:50px; position:absolute; top:0px; width:100%; z-index:90; opacity:0.7; background:black; }
.postalbum_h a:link, a:visited, a:hover { color:white; }
.postalbum_h_back { position:absolute; left:13px; top:0px; height:25px; width:60px; font-size:14px; z-index:90; color:white; }
.postalbum_h_back i { margin-right:3px; }
.postalbum_h_picnum { position:absolute; right:10px; top:0px; height:25px; width:105px; z-index:90; color:white; }
.postalbum_c { height:100%; position:relative; z-index:-1; display:-webkit-box; display:-moz-box; display:-o-box; display:box; -webkit-transition:all 350ms linear; -moz-transition:all 350ms linear; -o-transition:all 350ms linear; transition:all 350ms linear; }
.postalbum_u { border-radius:3px 3px 3px 3px; text-align:center; }
.postalbum_i { margin-bottom:-3px; max-width:100%; vertical-align:middle; visibility:hidden; }
</style>
<!--{eval $curaidkey = 0;}-->
<!--{eval $count = count($imglist['aid']);}-->
<!--{if $_GET['aid']}-->
<!--{loop $imglist['aid'] $k $aid}-->
<!--{if $_GET['aid'] == $aid}-->
<!--{eval $curaidkey = $k;break;}-->
<!--{/if}-->
<!--{/loop}-->
<!--{/if}-->
<div class="postalbum">
<div class="postalbum_h">
<a href="forum.php?mod=viewthread&tid=$_G['tid']&page=$_G['page']" class="postalbum_h_back"><i class="dm-c-left z"></i>{lang return}</a>
<span class="postalbum_h_picnum">{lang numheader} <span id="curpic"><!--{eval echo $curaidkey + 1}--></span> {lang unitpaper} / {lang numtotal} $count {lang unitpaper}</span>
</div>
<ul class="postalbum_c">
<!--{loop $imglist['url'] $key $imgurl}-->
<li class="postalbum_u" id="u_$key">
<img class="postalbum_i" load="0" id="img_$key" <!--{if $curaidkey == $key}-->src="$imgurl"<!--{/if}--> zsrc="$imgurl" orig="$imglist['url'][$key]"/>
</li>
<!--{/loop}-->
</ul>
</div>
<script type="text/javascript">
(function() {
var support3d = ("WebKitCSSMatrix" in window && "m11" in new WebKitCSSMatrix());
var curkey = $curaidkey;
var count = $count;
var imglist = new Array();
imglist['url'] = [<!--{echo dimplode($imglist['url']);}-->];
var width = window.innerWidth;
var height = document.documentElement.clientHeight;
$('.postalbum').css({'display':'block', 'height':height + 'px'});
$('.postalbum_u').css({'height':height + 'px', 'width':width + 'px'});
$('.postalbum_i').css({'max-height':'100%', 'visibility':'visible'});
if(support3d) {
$('.postalbum_c').css({'line-height':height + 'px', 'width':width * count + 'px'});
slidmoving('-' + curkey * width);
} else {
$('.postalbum_c').css({'display':'block', 'height':height * count + 'px'});
$('.postalbum_c').css({'top': '-' + curkey * height + 'px'});
}
var position = {};
var status = true;
var posalbum_touch_interval = 0;
var postalbum_timeoutid = null;
touchaction = function(postalbum, postalbum_u, fun) {
postalbum.on('touchstart', postalbum_u, function(e) {
e = mygetnativeevent(e);
position.x1 = e.touches[0].pageX;
position.y1 = e.touches[0].pageY;
position.hori = true;
status = true;
}).on('touchmove', postalbum_u, function(e) {
status = false;
e = mygetnativeevent(e);
position.x2 = e.touches[0].pageX;
position.y2 = e.touches[0].pageY;
position.distx = position.x2 - position.x1;
position.disty = position.y2 - position.y2;
if(Math.abs(position.distx) < 2 * Math.abs(position.disty)) {
position.hori = false;
} else {
e.preventDefault();
}
}).on('touchend', postalbum_u, function(e) {
e = mygetnativeevent(e);
if(position.x2 && Math.abs(position.distx) > 30 && position.hori && !status) {
var swipedire = position.distx > 0 ? 'right' : 'left';
fun.call(this, swipedire, e);
} else if(status) {
postalbum_touch_interval = new Date().getTime();
if(!postalbum_timeoutid) {
postalbum_timeoutid = setTimeout(function() {
var interval = new Date().getTime() - postalbum_touch_interval;
if(interval >= 250) {
fun.call(this, 'tap', e);
}
postalbum_touch_interval = 0;
postalbum_timeoutid = null;
}, 250);
}
}
});
};
var curkeyimg = $('#img_' + curkey);
curkeyimg.css({'-webkit-transition':'all 200ms', '-moz-transition':'all 200ms', '-o-transition':'all 200ms', 'transition':'all 200ms'});
imgchange(curkeyimg, 1, 0, 0);
setTimeout(function() {
fiximgmove(curkeyimg);
}, 350);
var imgscale = 1;
var oldscalex = 0;
var oldscaley = 0;
var newscalex = 0;
var newscaley = 0;
var imgmovestatus = false;
var touch_interval = 0;
var timeoutid = null;
var imgtouchpos = {};
$('.postalbum_u').on('touchstart', '.postalbum_i', function(e) {
if(!imgmovestatus) {
return;
}
e = mygetnativeevent(e);
imgtouchpos.x1 = e.touches[0].pageX;
imgtouchpos.y1 = e.touches[0].pageY;
}).on('touchmove', '.postalbum_i', function(e) {
if(!imgmovestatus) {
return;
}
e = mygetnativeevent(e);
imgtouchpos.x2 = e.touches[0].pageX;
imgtouchpos.y2 = e.touches[0].pageY;
imgtouchpos.distx = imgtouchpos.x2 - imgtouchpos.x1;
imgtouchpos.disty = imgtouchpos.y2 - imgtouchpos.y1;
newscalex = imgtouchpos.distx / imgscale + oldscalex;
newscaley = imgtouchpos.disty / imgscale + oldscaley;
imgchange($('#img_' + curkey), imgscale, newscalex, newscaley);
}).on('touchend', '.postalbum_i', function(e) {
touch_interval = new Date().getTime();
if(!timeoutid) {
timeoutid = setTimeout(function() {
var interval = new Date().getTime() - touch_interval;
var obj = $('#img_' + curkey);
if(interval < 250) {
imgscale = imgscale == 1 ? 2 : 1;
imgmovestatus = (imgscale == 1) ? false : true;
if(imgmovestatus) {
obj.attr('src', obj.attr('orig'));
}
imgchange(obj, imgscale, newscalex, newscaley);
setTimeout(function() {
fiximgmove(obj);
}, 250);
} else {
if(imgmovestatus) {
oldscalex = newscalex;
oldscaley = newscaley;
fiximgmove(obj);
}
}
touch_interval = 0;
timeoutid = null;
}, 250);
}
});
function imgchange(img, scale, x, y) {
if(!img[0]) {
return;
}
scale = scale || 1;
x = x || 0;
y = y || 0;
img.css('-webkit-transform', 'scale(' + scale + ')');
img.css('-moz-transform', 'scale(' + scale + ')');
img.css('-o-transform', 'scale(' + scale + ')');
img.css('transform', 'scale(' + scale + ')');
var pimg = img.parent();
var translatetxt = (support3d ? "translate3d": "translate") + "(" + x * scale + "px, " + y * scale + "px" + (support3d ? ", 0px)": ")");
pimg.css('-webkit-transform', translatetxt);
pimg.css('-moz-transform', translatetxt);
pimg.css('-o-transform', translatetxt);
pimg.css('transform', translatetxt);
}
function fiximgmove(imgobj) {
var offset = imgobj.offset();
var movex = imgobj.width() * imgscale - width;
var movey = imgobj.height() * imgscale - height;
if(movey > 0) {
var yoffset = offset.top - $('.postalbum').offset().top;
if(yoffset > 0) {
oldscaley = oldscaley - yoffset / imgscale;
} else {
if(yoffset + imgobj.height() * imgscale - height < 0) {
oldscaley = oldscaley - (yoffset + imgobj.height() * imgscale - height) / imgscale;
}
}
} else {
oldscaley = 0;
}
if(movex > 0) {
if(offset.left > 0) {
oldscalex = oldscalex - offset.left / imgscale;
} else {
if(offset.left + imgobj.width() * imgscale - width < 0) {
oldscalex = oldscalex - (offset.left + imgobj.width() * imgscale - width) / imgscale;
}
}
} else {
oldscalex = 0;
}
if(imgscale < 1) {
imgscale = 1;
}
newscalex = oldscalex;
newscaley = oldscaley;
imgchange(imgobj, imgscale, oldscalex, oldscaley);
}
var headerstatus = true;
touchaction($('.postalbum'), '.postalbum_u', function(swipedire, touchevent) {
if(imgmovestatus) {
return;
}
switch(swipedire) {
case 'left':
if(curkey >= count - 1) {
popup.open('{lang lastpic}', 'alert');
} else {
for(var i=0; i<3; i++) {
if(!$('#img_' + (curkey + i)).attr('src')) {
$('#img_' + (curkey + i)).attr('src', $('#img_'+(curkey + i)).attr('zsrc'));
}
}
curkey++;
if(support3d) {
slidmoving('-' + curkey * width);
} else {
$('.postalbum_c').css({'top': '-' + curkey * height + 'px'});
}
$('#curpic').text(curkey + 1);
}
break;
case 'right':
if(curkey <= 0) {
popup.open('{lang firstpic}', 'alert');
} else {
for(var i=-3; i<0; i++) {
if(!$('#img_' + (curkey + i)).attr('src')) {
$('#img_' + (curkey + i)).attr('src', $('#img_'+(curkey + i)).attr('zsrc'));
}
}
curkey--;
if(support3d) {
slidmoving('-' + curkey * width);
} else {
$('.postalbum_c').css({'top': '-' + curkey * height + 'px'});
}
$('#curpic').text(curkey + 1);
}
break;
case 'tap':
var obj = $('.postalbum_h');
var top = headerstatus ? 0 : 44;
adjust = function() {
setTimeout(function() {
if(top == 0 && headerstatus == false) {
headerstatus = true;
} else if(top == 44 && headerstatus == true) {
headerstatus = false;
} else if(headerstatus == false) {
top--;
obj.css('top', '-' + top + 'px');
adjust();
} else {
top++;
obj.css('top', '-' + top + 'px');
adjust();
}
}, 10);
}
adjust();
break;
}
});
function slidmoving(distx) {
$('.postalbum_c').css('-webkit-transform', 'translate3d('+ distx + 'px, 0, 0)');
$('.postalbum_c').css('-moz-transform', 'translate3d('+ distx + 'px, 0, 0)');
$('.postalbum_c').css('-o-transform', 'translate3d('+ distx + 'px, 0, 0)');
$('.postalbum_c').css('transform', 'translate3d('+ distx + 'px, 0, 0)');
return true;
}
})();
</script>
<!--{eval $nofooter = true;}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,53 @@
<div id="postmessage_$post['pid']" class="postmessage">$post['message']</div>
<div class="debate mt10 cl">
<!--{if $debate['umpire']}-->
<!--{if $debate['umpirepoint']}-->
<div class="debate_box cl">
<p>
<!--{if $debate['winner']}-->
<!--{if $debate['winner'] == 1}-->
<strong>{lang debate_square}{lang debate_winner}</strong>
<!--{elseif $debate['winner'] == 2}-->
<strong>{lang debate_opponent}{lang debate_winner}</strong>
<!--{else}-->
<strong>{lang debate_draw}</strong>
<!--{/if}-->
<!--{/if}-->
</p>
<p>{lang debate_comment_dateline}: $debate['endtime']</p>
<!--{if $debate['umpirepoint']}--><p>{lang debate_umpirepoint}: $debate['umpirepoint']</p><!--{/if}-->
<!--{if $debate['bestdebater']}--><p>{lang debate_bestdebater}: $debate['bestdebater']</p><!--{/if}-->
</div>
<!--{/if}-->
<!--{/if}-->
<div class="debate_box cl">
<strong>{lang debate_square_point} ($debate['affirmvotes'])<em>{lang debater}: $debate['affirmdebaters']</em></strong>
<p>$debate['affirmpoint']</p>
<!--{if !$_G['forum_thread']['is_archived']}-->
<dd class="flex-box cl">
<div class="flex cl"><a href="forum.php?mod=misc&action=debatevote&tid=$_G['tid']&stand=1" id="affirmbutton" class="dialog pns">{lang debate_support}</a></div>
<div class="flex cl"><a href="forum.php?mod=post&action=reply&fid=$_G['fid']&tid=$_G['tid']&stand=1{if $_GET['from']}&from=$_GET['from']{/if}" class="pns y" style="float: right;">{lang debate_join}</a></div>
</dd>
<!--{/if}-->
</div>
<div class="debate_box cl">
<strong>{lang debate_opponent_point} ($debate['negavotes'])<em>{lang debater}: $debate['negadebaters']</em></strong>
<p>$debate['negapoint']</p>
<!--{if !$_G['forum_thread']['is_archived']}-->
<dd class="flex-box cl">
<div class="flex cl"><a href="forum.php?mod=misc&action=debatevote&tid=$_G['tid']&stand=2" id="negabutton" class="dialog pns">{lang debate_support}</a></div>
<div class="flex cl"><a href="forum.php?mod=post&action=reply&fid=$_G['fid']&tid=$_G['tid']&stand=2{if $_GET['from']}&from=$_GET['from']{/if}" class="pns y" style="float: right;">{lang debate_join}</a></div>
</dd>
<!--{/if}-->
</div>
<!--{if $debate['endtime']}-->
<div class="endtime">{lang endtime}: $debate['endtime'] <!--{if $debate['umpire']}-->{lang debate_umpire}: $debate['umpire']<!--{/if}--></div>
<!--{/if}-->
<!--{if $debate['umpire'] && $_G['username'] && $debate['umpire'] == $_G['member']['username']}-->
<!--{if $debate['remaintime'] && !$debate['umpirepoint']}-->
<button type="button" class="pn dialog" href="forum.php?mod=misc&action=debateumpire&tid=$_G['tid']&pid=$post['pid']{if $_GET['from']}&from=$_GET['from']{/if}"><span>{lang debate_umpire_end}</span></button>
<!--{elseif TIMESTAMP - $debate['dbendtime'] < 3600}-->
<button type="button" class="pn dialog" href="forum.php?mod=misc&action=debateumpire&tid=$_G['tid']&pid=$post['pid']{if $_GET['from']}&from=$_GET['from']{/if}"><span>{lang debate_umpirepoint_edit}</span></button>
<!--{/if}-->
<!--{/if}-->
</div>

View File

@@ -0,0 +1,195 @@
<!--{eval $_G['forum_thread']['special'] = 0;}-->
<!-- main postlist start -->
<!--{eval $needhiddenreply = ($hiddenreplies && $_G['uid'] != $post['authorid'] && $_G['uid'] != $_G['forum_thread']['authorid'] && !$post['first'] && !$_G['forum']['ismoderator']);}-->
<div class="plc cl">
<span class="avatar"><img src="<!--{avatar($post['authorid'], 'small', true)}-->" style="width:32px;height:32px;" /></span>
<div class="pi">
<ul class="authi">
<li class="grey">
<em>
<!--{if isset($post['isstick'])}-->
<img src ="{IMGDIR}/settop.png" class="vm" /> {lang from} {$post['number']}{$postnostick}
<!--{elseif $post['number'] == -1}-->
{lang recommend_post}
<!--{else}-->
<!--{if !empty($postno[$post['number']])}-->$postno[$post['number']]<!--{else}-->{$post['number']}{$postno[0]}<!--{/if}-->
<!--{/if}-->
</em><b>
<!--{if $post['authorid'] && $post['username'] && !$post['anonymous']}-->
<a href="home.php?mod=space&uid=$post['authorid']" class="blue">$post['author']</a></b>
<!--{if $post['authorid'] != $_G['uid'] && $_G['uid']}-->
<a href="forum.php?mod=post&action=reply&fid=$_G['fid']&tid=$_G['tid']&repquote=$post['pid']&extra=$_GET['extra']&page=$page" class="xg1">{lang reply}</a>
<!--{/if}-->
<!--{else}-->
<!--{if !$post['authorid']}-->
<a href="javascript:;">{lang guest} <em>$post['useip']{if $post['port']}:$post['port']{/if}</em></a>
<!--{elseif $post['authorid'] && $post['username'] && $post['anonymous']}-->
<!--{if $_G['forum']['ismoderator']}--><a href="home.php?mod=space&uid=$post['authorid']" target="_blank">{$_G['setting']['anonymoustext']}</a><!--{else}-->{$_G['setting']['anonymoustext']}<!--{/if}-->
<!--{else}-->
$post['author'] <em>{lang member_deleted}</em>
<!--{/if}-->
<!--{/if}-->
</li>
<li class="grey rela">
$post['dateline']
</li>
</ul>
<div class="message">
<!--{if $post['warned']}-->
<span class="grey quote">{lang warn_get}</span>
<!--{/if}-->
<!--{if !$post['first'] && !empty($post['subject'])}-->
<h2><strong>$post['subject']</strong></h2>
<!--{/if}-->
<!--{if $_G['adminid'] != 1 && $_G['setting']['bannedmessages'] & 1 && (($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5) || $post['status'] == -1 || $post['memberstatus'])}-->
<div class="grey quote">{lang message_banned}</div>
<!--{elseif $_G['adminid'] != 1 && $post['status'] & 1}-->
<div class="grey quote">{lang message_single_banned}</div>
<!--{elseif $needhiddenreply}-->
<div class="grey quote">{lang message_ishidden_hiddenreplies}</div>
<!--{elseif $post['first'] && $_G['forum_threadpay']}-->
<!--{template forum/viewthread_pay}-->
<!--{else}-->
<!--{if $_G['setting']['bannedmessages'] & 1 && (($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5))}-->
<div class="grey quote">{lang admin_message_banned}</div>
<!--{elseif $post['status'] & 1}-->
<div class="grey quote">{lang admin_message_single_banned}</div>
<!--{/if}-->
<!--{if $_G['forum_thread']['price'] > 0 && $_G['forum_thread']['special'] == 0}-->
{lang pay_threads}: <strong>$_G['forum_thread']['price'] {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]]['unit']}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]]['title']} </strong> <a href="forum.php?mod=misc&action=viewpayments&tid=$_G['tid']" >{lang pay_view}</a>
<!--{/if}-->
<!--{if $post['first'] && $threadsort && $threadsortshow}-->
<!--{if $threadsortshow['optionlist'] && !($post['status'] & 1) && !$_G['forum_threadpay']}-->
<!--{if $threadsortshow['optionlist'] == 'expire'}-->
{lang has_expired}
<!--{else}-->
<div class="box_ex2 viewsort">
<h4>$_G['forum']['threadsorts']['types'][$_G['forum_thread']['sortid']]</h4>
<!--{loop $threadsortshow['optionlist'] $option}-->
<!--{if $option['type'] != 'info'}-->
$option['title']: <!--{if $option['value']}-->$option['value'] $option['unit']<!--{else}--><span class="xg1">--</span><!--{/if}--><br />
<!--{/if}-->
<!--{/loop}-->
</div>
<!--{/if}-->
<!--{/if}-->
<!--{/if}-->
<!--{if $post['first']}-->
<!--{if !$_G['forum_thread']['special']}-->
$post['message']
<!--{elseif $_G['forum_thread']['special'] == 1}-->
<!--{template forum/viewthread_poll}-->
<!--{elseif $_G['forum_thread']['special'] == 2}-->
<!--{template forum/viewthread_trade}-->
<!--{elseif $_G['forum_thread']['special'] == 3}-->
<!--{template forum/viewthread_reward}-->
<!--{elseif $_G['forum_thread']['special'] == 4}-->
<!--{template forum/viewthread_activity}-->
<!--{elseif $_G['forum_thread']['special'] == 5}-->
<!--{template forum/viewthread_debate}-->
<!--{elseif $threadplughtml}-->
$threadplughtml
$post['message']
<!--{else}-->
$post['message']
<!--{/if}-->
<!--{else}-->
$post['message']
<!--{/if}-->
<!--{/if}-->
</div>
<!--{if $_G['setting']['mobile']['mobilesimpletype'] == 0}-->
<!--{if $post['attachment']}-->
<div class="grey quote">
{lang attachment}: <em><!--{if $_G['uid']}-->{lang attach_nopermission}<!--{else}-->{lang attach_nopermission_login}<!--{/if}--></em>
</div>
<!--{elseif $post['imagelist'] || $post['attachlist']}-->
<!--{if $post['imagelist']}-->
<ul class="img_one">{echo showattach($post, 1)}</ul>
<!--{/if}-->
<!--{if $post['attachlist']}-->
<ul class="post_attlist">{echo showattach($post)}</ul>
<!--{/if}-->
<!--{/if}-->
<!--{/if}-->
<!--{if $_GET['from'] != 'preview' && !empty($post['ratelog'])}-->
<h3 class="psth xs1"><span class="icon_ring vm"></span>{lang rate}</h3>
<dl id="ratelog_$post[pid]" class="rate{if !empty($_G['cookie']['ratecollapse'])} rate_collapse{/if}">
<!--{if $_G['setting']['ratelogon']}-->
<dd style="margin:0">
<!--{else}-->
<dt>
<!--{if !empty($postlist[$post[pid]]['totalrate'])}-->
<strong><a href="forum.php?mod=misc&action=viewratings&tid=$_G['tid']&pid=$post['pid']" class="dialog"><!--{echo count($postlist[$post['pid']]['totalrate']);}--></a></strong>
<p><a href="forum.php?mod=misc&action=viewratings&tid=$_G['tid']&pid=$post['pid']" class="dialog">{lang rate_view}</a></p>
<!--{/if}-->
</dt>
<dd>
<!--{/if}-->
<div id="post_rate_$post['pid']"></div>
<!--{if $_G['setting']['ratelogon']}-->
<table class="ratl">
<tr>
<th class="xw1" width="120"><a href="forum.php?mod=misc&action=viewratings&tid=$_G['tid']&pid=$post['pid']" class="dialog"> {lang number_of_participants} <span class="xi1"><!--{echo count($postlist[$post['pid']]['totalrate']);}--></span></a></th>
<!--{loop $post['ratelogextcredits'] $id $score}-->
<!--{if $score > 0}-->
<th class="xw1" width="80">{$_G['setting']['extcredits'][$id]['title']} <i><span class="xi1">+$score</span></i></th>
<!--{else}-->
<th class="xw1" width="80">{$_G['setting']['extcredits'][$id]['title']} <i><span class="xi1">$score</span></i></th>
<!--{/if}-->
<!--{/loop}-->
<th>
<a href="javascript:;" onclick="toggleRatelogCollapse('ratelog_$post[pid]', this);" class="y xi2 op"><!--{if !empty($_G['cookie']['ratecollapse'])}-->{lang open}<!--{else}-->{lang pack}<!--{/if}--></a>
<i class="txt_h">{lang reason}</i>
</th>
</tr>
<tbody class="ratl_l">
<!--{loop $post['ratelog'] $uid $ratelog}-->
<tr id="rate_{$post[pid]}_{$uid}">
<td>
<a href="home.php?mod=space&uid=$uid" target="_blank"><!--{echo avatar($uid, 'small');}--></a> <a href="home.php?mod=space&uid=$uid" target="_blank">$ratelog[username]</a>
</td>
<!--{loop $post['ratelogextcredits'] $id $score}-->
<!--{if $ratelog['score'][$id] > 0}-->
<td class="xi1"> + $ratelog[score][$id]</td>
<!--{else}-->
<td class="xg1">$ratelog[score][$id]</td>
<!--{/if}-->
<!--{/loop}-->
<td class="xg1">$ratelog[reason]</td>
</tr>
<!--{/loop}-->
</tbody>
</table>
<p class="ratc">
<a href="forum.php?mod=misc&action=viewratings&tid=$_G['tid']&pid=$post['pid']" class="xi2 dialog">{lang rate_view}</a>
</p>
<!--{else}-->
<ul class="cl">
<!--{loop $post['ratelog'] $uid $ratelog}-->
<li>
<p id="rate_{$post[pid]}_{$uid}" onmouseover="showTip(this)" tip="<strong>$ratelog['reason']</strong>&nbsp;
<!--{loop $ratelog['score'] $id $score}-->
<!--{if $score > 0}-->
<em class='xi1'>{$_G['setting']['extcredits'][$id]['title']} + $score $_G['setting']['extcredits'][$id]['unit']</em>
<!--{else}-->
<span>{$_G['setting']['extcredits'][$id]['title']} $score $_G['setting']['extcredits'][$id]['unit']</span>
<!--{/if}-->
<!--{/loop}-->" class="mtn mbn"><a href="home.php?mod=space&uid=$uid" target="_blank" class="avt"><!--{echo avatar($uid, 'small');}--></a></p>
<p><a href="home.php?mod=space&uid=$uid" target="_blank">$ratelog['username']</a></p>
</li>
<!--{/loop}-->
</ul>
<!--{/if}-->
</dd>
</dl>
<!--{else}-->
<div id="post_rate_div_$post['pid']"></div>
<!--{/if}-->
</div>
</div>
<!-- main postlist end -->

View File

@@ -0,0 +1,17 @@
<!--{if $thread['freemessage']}-->
<div id="postmessage_$pid" class="t_f">$thread['freemessage']</div>
<!--{/if}-->
<!--{if (!defined('IN_ARCHIVER') || (defined('IN_ARCHIVER') && !constant('IN_ARCHIVER')))}-->
<div class="locked">
<a href="forum.php?mod=misc&action=pay&tid=$_G['tid']&pid=$post['pid']{if !empty($_GET['from'])}&from=$_GET['from']{/if}" class="y viewpay dialog">{lang pay}</a>
<em class="right">
<!--{if $thread['payers']}-->{lang have} $thread['payers'] {lang people_buy}&nbsp; <!--{/if}-->
</em>
<!--{if $_G['forum_thread']['price'] > 0}-->{lang pay_comment}<!--{/if}-->
<!--{if $thread['endtime']}--><br />{lang pay_free_time}<!--{/if}-->
</div>
<!--{else}-->
<!--{if $thread['payers']}-->{lang have} $thread['payers'] {lang people_buy}&nbsp; <!--{/if}-->
<!--{if $_G['forum_thread']['price'] > 0}-->{lang pay_comment} <a href="../forum.php?mod=misc&action=pay&tid=$_G['tid']&pid=$post['pid']{if !empty($_GET['from'])}&from=$_GET['from']{/if}">{lang pay}</a><!--{/if}-->
<!--{if $thread['endtime']}--><br />{lang pay_free_time}<!--{/if}-->
<!--{/if}-->

View File

@@ -0,0 +1,76 @@
<div id="postmessage_$post['pid']" class="postmessage">$post['message']</div>
<div class="poll cl">
<form id="poll" name="poll" method="post" autocomplete="off" action="forum.php?mod=misc&action=votepoll&fid=$_G['fid']&tid=$_G['tid']&pollsubmit=yes{if $_GET['from']}&from=$_GET['from']{/if}&quickforward=yes&mobile=2" >
<input type="hidden" name="formhash" value="{FORMHASH}" />
<div class="poll_txt">
<!--{if $multiple}-->{lang poll_multiple}{lang thread_poll}<!--{if $maxchoices}-->: ( {lang poll_more_than} )<!--{/if}--><!--{else}-->{lang poll_single}{lang thread_poll}<!--{/if}--><!--{if $visiblepoll && $_G['group']['allowvote']}--> , {lang poll_after_result}<!--{/if}-->, {lang poll_voterscount}
</div>
<!--{if $_G['forum_thread']['remaintime']}-->
<div class="poll_txt">
{lang poll_count_down}:
<!--{if $_G['forum_thread']['remaintime'][0]}-->$_G['forum_thread']['remaintime'][0] {lang days} <!--{/if}-->
<!--{if $_G['forum_thread']['remaintime'][1]}-->$_G['forum_thread']['remaintime'][1] {lang poll_hour} <!--{/if}-->
$_G['forum_thread']['remaintime'][2] {lang poll_minute}
</div>
<!--{elseif $expiration && $expirations < TIMESTAMP}-->
<div class="poll_txt">{lang poll_end}</div>
<!--{/if}-->
<!--{if !$visiblepoll && ($overt || $_G['adminid'] == 1 || $thread['authorid'] == $_G['uid']) && $post['invisible'] == 0}-->
<div class="poll_txt"><a href="forum.php?mod=misc&action=viewvote&tid=$_G['tid']" class="dialog">{lang poll_view_voters}</a></div>
<!--{/if}-->
<div class="poll_box">
<!--{if $isimagepoll}-->
<!--{loop $polloptions $key $option}-->
<!--{eval $imginfo=$option['imginfo'];}-->
<p>
<!--{if $imginfo}-->
<a href="javascript:;" class="mimg vm">
<img src="$imginfo['small']" alt="$imginfo['filename']" />
</a>
<!--{else}-->
<a href="javascript:;" class="mimg vm"><img src="{STATICURL}image/common/nophoto.gif" alt="$imginfo['filename']" /></a>
<!--{/if}-->
<!--{if $_G['group']['allowvote']}-->
<input type="$optiontype" id="option_$key" name="pollanswers[]" value="$option['polloptionid']" {if $_G['forum_thread']['is_archived']}disabled="disabled"{/if} />
<!--{/if}-->
<label for="option_$key">$key.$option['polloption']</label>
<!--{if !$visiblepoll}-->
<em style="color:#$option['color']" class="y">$option['percent']% ($option['votes']{lang debate_poll})</em>
<!--{/if}-->
</p>
<hr class="l">
<!--{/loop}-->
</tr>
<!--{else}-->
<!--{loop $polloptions $key $option}-->
<p>
<!--{if $_G['group']['allowvote']}-->
<input type="$optiontype" id="option_$key" name="pollanswers[]" value="$option['polloptionid']" {if $_G['forum_thread']['is_archived']}disabled="disabled"{/if} />
<!--{/if}-->
<label for="option_$key">$key.$option['polloption']</label>
<!--{if !$visiblepoll}-->
<em style="color:#$option['color']" class="y">$option['percent']% ($option['votes']{lang debate_poll})</em>
<!--{/if}-->
</p>
<hr class="l">
<!--{/loop}-->
<!--{/if}-->
<!--{if $_G['group']['allowvote'] && !$_G['forum_thread']['is_archived']}-->
<input type="submit" name="pollsubmit" id="pollsubmit" value="{lang submit}" class="formdialog btn_pn" />
<!--{if $overt}-->
<span class="xg2">{lang poll_msg_overt}</span>
<!--{/if}-->
<!--{elseif !$allwvoteusergroup}-->
<!--{if !$_G['uid']}-->
<span class="xi1">{lang poll_msg_allwvote_user}</span>
<!--{else}-->
<span class="xi1">{lang poll_msg_allwvoteusergroup}</span>
<!--{/if}-->
<!--{elseif !$allowvotepolled}-->
<span class="xi1">{lang poll_msg_allowvotepolled}</span>
<!--{elseif !$allowvotethread}-->
<span class="xi1">{lang poll_msg_allowvotethread}</span>
<!--{/if}-->
</div>
</form>
</div>

View File

@@ -0,0 +1,49 @@
<!--{template common/header}-->
<div class="tip loginbox loginpop p5" id="floatlayout_viewvote" style="max-height:400px; overflow-y:scroll;">
<h2 class="log_tit" id="return_viewvote">{lang poll_voters}</h2>
<ul class="post_box cl">
<li class="flex-box mli">
<div class="flex">
<select id="polloptionid" class="sort_sel" onchange="changepolloptionid(this.value);">
<!--{loop $polloptions $options}-->
<option value="$options['polloptionid']"{if $options['polloptionid'] == $polloptionid} selected="selected"{/if}>$options['polloption']</option>
<!--{/loop}-->
</select>
</div>
</li>
</ul>
<!--{if !$voterlist}-->
<dt>{lang none}</dt>
<!--{else}-->
<ul class="post_box flex-box flex-wrap cl">
<!--{loop $voterlist $voter}-->
<li class="flex flex-half mli">
<div class="xs1"><a href="home.php?mod=space&uid=$voter[uid]" target="_blank">$voter['username']</a></div>
</li>
<!--{/loop}-->
</ul>
<!--{/if}-->
</div>
<div class="c cl mbn">$multipage</div>
</div>
<script type="text/javascript" reload="1">
function changepolloptionid(id) {
popup.open('<img src="' + IMGDIR + '/imageloading.gif">');
$.ajax({
type : 'GET',
url : 'forum.php?mod=misc&action=viewvote&tid=$_G[tid]&polloptionid='+ id + '&inajax=1',
dataType : 'xml'
})
.success(function(s) {
popup.open(s.lastChild.firstChild.nodeValue);
evalscript(s.lastChild.firstChild.nodeValue);
})
.error(function() {
window.location.href = 'forum.php?mod=misc&action=viewvote&tid=$_G[tid]';
popup.close();
});
return false;
}
</script>
<!--{template common/footer}-->

View File

@@ -0,0 +1,30 @@
<div class="reward cl">
<!--{if $_G['forum_thread']['price'] > 0 && !$_G['forum_thread']['is_archived']}-->
<a href="forum.php?mod=post&action=reply&fid=$_G['fid']&tid=$_G['tid']{if $_GET['from']}&from=$_GET['from']{/if}" class="mhd pns">{lang reward_answer}</a>
<!--{/if}-->
<div class="reward_txt">{lang thread_reward}<strong>$rewardprice</strong>{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][2]]['unit']}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][2]]['title']} {if $_G['forum_thread']['price'] > 0}<span>{lang unresolved}</span>{elseif $_G['forum_thread']['price'] < 0}<span>{lang resolved}</span>{/if}</div>
</div>
<!--{if $bestpost}-->
<div class="rwdbst">
<h3><a href="forum.php?mod=redirect&goto=findpost&ptid=$bestpost['tid']&pid=$bestpost['pid']">{lang view_full_content}</a>{lang reward_bestanswer}</h3>
<div class="pstl">
<div class="muser">
$bestpost['avatar']
<a href="home.php?mod=space&uid=$bestpost['authorid']">$bestpost['author']</a>
</div>
<div class="mtxt"><!--{if $hiddenreplies && $_G['uid'] != $bestpost['authorid'] && $_G['uid'] != $_G['forum_thread']['authorid'] && !$_G['forum']['ismoderator']}-->{lang message_ishidden_hiddenreplies}<!--{else}-->$bestpost[message]<!--{/if}--></div>
</div>
</div>
<!--{/if}-->
<!--{if $post['attachment']}-->
<div class="quote">{lang attachment}: <em><!--{if $_G['uid']}-->{lang attach_nopermission}<!--{else}-->{lang attach_nopermission_login}<!--{/if}--></em></div>
<!--{elseif $post['imagelist'] || $post['attachlist']}-->
<!--{if $post['imagelist']}-->
{echo showattach($post, 1)}
<!--{/if}-->
<!--{if $post['attachlist']}-->
{echo showattach($post)}
<!--{/if}-->
<!--{/if}-->
<!--{eval $post['attachment'] = $post['imagelist'] = $post['attachlist'] = '';}-->
<div id="postmessage_$post['pid']" class="postmessage">$post['message']</div>

View File

@@ -0,0 +1,82 @@
<!--{if count($trades) > 1 || ($_G['uid'] == $_G['forum_thread']['authorid'] || $_G['group']['allowedittrade'])}-->
<!--{if !$post['message'] && (($_G['forum']['ismoderator'] && $_G['group']['alloweditpost'] && (!in_array($post['adminid'], array(1, 2, 3)) || $_G['adminid'] <= $post['adminid'])) || ($_G['forum']['alloweditpost'] && $_G['uid'] && ($post['authorid'] == $_G['uid'] && $_G['forum_thread']['closed'] == 0)))}-->
<div class="trade_box">
<a href="forum.php?mod=post&action=reply&fid=$_G['fid']&tid=$_G['tid']&firstpid=$post['pid']&addtrade=yes{if !empty($_GET['from'])}&from=$_GET['from']{/if}">{lang viewthread_trade_message2}</a>
</div>
<!--{else}-->
$post['message']
<!--{/if}-->
<div class="trade_box">
<em>{lang post_trade_totalnumber}: $tradenum</em>
<!--{if !$post['message'] && (($_G['forum']['ismoderator'] && $_G['group']['alloweditpost'] && (!in_array($post['adminid'], array(1, 2, 3)) || $_G['adminid'] <= $post['adminid'])) || ($_G['forum']['alloweditpost'] && $_G['uid'] && ($post['authorid'] == $_G['uid'] && $_G['forum_thread']['closed'] == 0)))}-->
<span class="my"><a href="forum.php?mod=post&action=edit&fid=$_G['fid']&tid=$_G['tid']&pid=$post['pid']{if !empty($_GET['modthreadkey'])}&modthreadkey=$_GET['modthreadkey']{/if}&page=$page" class="my">{lang post_add_aboutcounter}</a></span>
<!--{/if}-->
<a href="forum.php?mod=misc&action=tradeorder&tid=$_G['tid']{if !empty($_GET['from'])}&from=$_GET['from']{/if}" class="my pl5 dialog">{lang trade_displayorder}</a>
<!--{if $_G['uid'] == $_G['forum_thread']['authorid']}-->
<!--{if $_G['group']['allowposttrade']}-->
<span class="y pipe">|</span><a href="forum.php?mod=post&action=reply&fid=$_G['fid']&tid=$_G['tid']&firstpid=$post['pid']&addtrade=yes{if !empty($_GET['from'])}&from=$_GET['from']{/if}" class="my pl5">+ {lang trade_add_post}</a>
<!--{/if}-->
<!--{/if}-->
</div>
<!--{if $_G['uid'] == $_G['forum_thread']['authorid']}-->
<a href="home.php?mod=space&uid=$_G['uid']&do=trade&view=tradelog" class="button media_tips btn_pn_orange">{lang my_trade_stat}</a>
<!--{/if}-->
<!--{/if}-->
<!--{if $tradenum}-->
<!--{if $trades}-->
<!--{loop $trades $key $trade}-->
<div id="trade$trade['pid']" class="trade_box">
<div class="media_tips xs3">
<a href="forum.php?mod=viewthread&do=tradeinfo&tid=$_G['tid']&pid=$trade['pid']{if !empty($_GET['modthreadkey'])}&modthreadkey=$_GET['modthreadkey']{/if}">
<!--{if $trade['displayorder'] > 0}--><em class="hot">{lang post_trade_sticklist}</em><!--{/if}-->
<!--{if $trade['thumb']}-->
<img src="$trade['thumb']" alt="$trade['subject']" />
<!--{else}-->
<img src="{IMGDIR}/nophotosmall.gif" width="90" height="90" />
<!--{/if}-->
</a>
</div>
<div>
<a href="forum.php?mod=viewthread&do=tradeinfo&tid=$_G['tid']&pid=$trade['pid']{if !empty($_GET['modthreadkey'])}&modthreadkey=$_GET['modthreadkey']{/if}"><h4 class="media_tips xs3">$trade['subject']</h4></a>
<dl>
<dt>{lang trade_type_viewthread}:
<!--{if $trade['quality'] == 1}-->{lang trade_new}<!--{/if}-->
<!--{if $trade['quality'] == 2}-->{lang trade_old}<!--{/if}-->
{lang trade_type_buy}
</dt>
<dt>{lang trade_remaindays}:
<!--{if $trade['closed']}-->
<em>{lang trade_timeout}</em>
<!--{elseif $trade['expiration'] > 0}-->
{$trade['expiration']}{lang days}{$trade['expirationhour']}{lang trade_hour}
<!--{elseif $trade['expiration'] == -1}-->
<em>{lang trade_timeout}</em>
<!--{else}-->
&nbsp;
<!--{/if}-->
</dt>
</dl>
<div>
<!--{if $trade['price'] > 0}-->
<strong>$trade['price']</strong>&nbsp;{lang payment_unit}&nbsp;&nbsp;
<!--{/if}-->
<!--{if $_G['setting']['creditstransextra'][5] != -1 && $trade['credit']}-->
<!--{if $trade['price'] > 0}-->{lang trade_additional} <!--{/if}--><strong>$trade['credit']</strong>&nbsp;{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][5]]['unit']}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][5]]['title']}
<!--{/if}-->
<p class="xg1">
<!--{if $trade['costprice'] > 0}-->
<del>$trade['costprice'] {lang payment_unit}</del>
<!--{/if}-->
<!--{if $_G['setting']['creditstransextra'][5] != -1 && $trade['costcredit'] > 0}-->
<del><!--{if $trade['costprice'] > 0}-->{lang trade_additional} <!--{/if}-->$trade['costcredit'] {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][5]]['unit']}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][5]]['title']}</del>
<!--{/if}-->
</p>
</div>
</div>
</div>
<!--{/loop}-->
<!--{/if}-->
<div id="postmessage_$post['pid']">$post['counterdesc']</div>
<!--{else}-->
<div class="locked">{lang trade_nogoods}</div>
<!--{/if}-->

View File

@@ -0,0 +1,55 @@
<!--{template common/header}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2><!--{eval echo strip_tags($_G['forum']['name']) ? strip_tags($_G['forum']['name']) : $_G['forum']['name'];}--></h2>
<div class="my"><a href="forum.php?mod=post&action=newthread&fid={$_G['fid']}"><i class="dm-edit"></i></a></div>
</div>
<!--{hook/forumdisplay_top_mobile}-->
<!--{if $action != 'create'}-->
<!--{if $_G['page'] == 1}-->
<div class="forumdisplay-top cl">
<h2>
<!--{if strstr($_G['forum']['icon'],'groupicon.gif')}-->
<svg width="48" height="50"><path fill="#{if $val['folder']}fdc910{else}c9c9c9{/if}" d="M48 20C48 9 37.3 0 24 0S0 8.9 0 20s10.7 20 24 20c2.4 0 4.7-.3 6.8-.8L42 44l-2.8-8.5C44.6 31.8 48 26.2 48 20z"/></svg>
<!--{else}-->
<img src="$_G['forum']['icon']" />
<!--{/if}-->
<!--{if helper_access::check_module('group') && $status != 'isgroupuser'}-->
<!--{if $status != 2 && $status != 3 && $status != 5}-->
<form action="forum.php?mod=group&action=join&fid=$_G['fid']" id="groupjoinform_$_G['fid']" method="post" autocomplete="off">
<input type="hidden" name="formhash" value="{FORMHASH}">
<input type="hidden" name="groupjoin" value="1">
<button type="submit" class="formdialog button"><em>{lang group_join_group}</em></button>
</form>
<!--{/if}-->
<!--{else}-->
<form action="forum.php?mod=group&action=out&fid=$_G['fid']" id="groupoutform_$_G['fid']" method="post" autocomplete="off">
<input type="hidden" name="formhash" value="{FORMHASH}">
<input type="hidden" name="groupexit" value="1">
<button type="submit" class="formdialog button"><em>{lang group_exit}</em></button>
</form>
<!--{if helper_access::check_module('favorite')}-->
<span class="pipe y">&nbsp;</span>
<a href="home.php?mod=spacecp&ac=favorite&type=group&id={$_G['forum']['fid']}&handlekey=favoriteforum&formhash={FORMHASH}" id="a_favorite" class="dialog">{lang favorite}<span id="number_favorite" {if !$_G['forum']['favtimes']} style="display:none;"{/if}> +{$_G['forum']['favtimes']}</span></a>
<!--{/if}-->
<!--{/if}-->
$_G['forum']['name']
</h2>
<p><a href="javascript:;">{lang threads}</a><span> {$_G['forum']['threads']}</span><a href="forum.php?mod=group&action=memberlist&fid=$_G['fid']">{lang member}<span> {$_G['forum']['membernum']}</span></a></p>
<!--{if $_G['forum']['description']}--><p class="mt5">{$_G['forum']['description']}</p><!--{/if}-->
</div>
<!--{/if}-->
<!--{/if}-->
<!--{if $action == 'index' && $status != 2 && $status != 3}-->
<!--{eval dheader("location: forum.php?mod=forumdisplay&action=list&fid=$_G[fid]");exit; }-->
<!--{elseif $action == 'list'}-->
<!--{template group/group_list}-->
<!--{elseif $action == 'memberlist'}-->
<!--{template group/group_memberlist}-->
<!--{elseif $action == 'create'}-->
<!--{template group/group_create}-->
<!--{elseif $action == 'manage'}-->
<!--{template group/group_manage}-->
<!--{/if}-->
<!--{subtemplate common/footer}-->

View File

@@ -0,0 +1,96 @@
<div class="setbox cl" id="creatgroup">
<div class="bodybox p10">
<div class="quote">
<p>{lang group_you_have}</p>
<!--{if $_G['setting']['groupmod']}--><p class="tSnHeZyW0WlB">{lang group_create_mod}</p><!--{/if}-->
</div>
</div>
<form method="post" autocomplete="off" name="groupform" id="groupform" action="forum.php?mod=group&action=create&inajax=1">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="referer" value="{echo dreferer()}" />
<input type="hidden" name="handlekey" value="creategroup" />
<input type="hidden" name="tab" value="groupmanage" />
<ul class="bodybox post_box mt15 cl">
<li class="flex-box mli">
<div class="tit">{lang group_name}<span class="f_g">*</span></div>
<div class="flex input"><input type="text" id="name" autocomplete="off" name="name"></div>
</li>
<li class="flex-box mli">
<div class="tit">{lang group_category}<span class="f_g">*</span></div>
<div class="flex">
<select name="parentid" id="parentid" onchange="group_ajaxget('forum.php?mod=ajax&action=secondgroup&fupid='+ this.value);" class="sort_sel">
<option value="">{lang choose_please}</option>
$groupselect[first]
</select>
</div>
</li>
<li class="flex-box mli" id="secondgroup" style="display:none;">
<div class="tit">{lang group_category}<span class="f_g">*</span></div>
<div id="linkage" class="flex">
<select name="fup" id="fup" class="sort_sel">
<option value="">{lang choose_please}</option>
{$groupselect['second']}
</select>
</div>
</li>
<li class="tit">{lang group_description} </li>
<li class="cl">
<textarea name="descriptionnew" id="descriptionmessage" rows="5" placeholder="{lang group_description}" class="pxs"></textarea>
</li>
<li class="flex-box mli">
<div class="tit">{lang group_perm_visit} :</div>
<div class="flex">
<select name="gviewperm" id="gviewperm" class="sort_sel">
<option value="1" selected="selected" >{lang group_perm_all_user}</option>
<option value="0" >{lang group_perm_member_only}</option>
</select>
</div>
</li>
<li class="flex-box mli">
<div class="tit">{lang group_join_type} :</div>
<div class="flex">
<select name="jointype" id="jointype" class="sort_sel">
<option value="0" selected="selected" >{lang group_join_type_free}</option>
<option value="2" >{lang group_join_type_moderate}</option>
<option value="1" >{lang group_join_type_invite}</option>
</select>
</div>
</li>
</ul>
<div class="mt5 p10">
<input type="hidden" name="createsubmit" value="true">
<button type="submit" class="formdialog flex pn">{lang create}</button>
</div>
</form>
</div>
<script type="text/javascript">
function preview(id){
var file=$('#'+id).val();
var arr=file.split('\\');
var name=arr[arr.length-1];
$('#'+id+'_name').html(name);
}
function show(id){
if($('#'+id).css('display')=='none'){
$('#'+id).css('display', '');
}else{
$('#'+id).css('display', 'none');
}
}
function group_ajaxget(url) {
$.ajax({
type:'GET',
url: url + '&inajax=1' ,
dataType:'xml',
}).success(function(s) {
var sencondgroup = s.lastChild.firstChild.nodeValue.replace("class=\"ps\"", "class=\"sort_sel\"");
$('#linkage').html(sencondgroup);
$('#secondgroup').css('display', '');
return;
});
}
</script>
<!--{eval $nofooter = true;}-->
<!--{block footerplus}--><div class="O1JmykD4eNwe"></div><!--{/block}-->

View File

@@ -0,0 +1,27 @@
<div class="dhnav_box">
<div id="dhnav">
<div id="dhnav_li">
<ul class="flex-box">
<li class="flex mon"><a href="forum.php?mod=forumdisplay&action=list&fid=$_G['fid']">{lang forum_viewall}</a></li>
<li class="flex"><a href="forum.php?mod=group&action=memberlist&fid=$_G['fid']">{lang group_member_list}</a></li>
<!--{if $_G['forum']['ismoderator']}--><li class="flex"><a href="forum.php?mod=group&action=manage&fid=$_G['fid']">{lang group_admin}</a></li><!--{/if}-->
</ul>
</div>
</div>
</div>
<!--{if $groupfeedlist}-->
<div class="home_feed cl">
<ul class="home_feed_item cl">
<!--{loop $groupfeedlist $values}-->
<div class="home_feed_ecs cl">
<a href="home.php?mod=space&uid={$values['uid']}" class="mimg"><!--{avatar($values['uid'], 'small')}--></a>
<!--{loop $values $value}-->
<!--{subtemplate home/space_feed_li}-->
<!--{/loop}-->
</div>
<!--{/loop}-->
</ul>
</div>
<!--{else}-->
<div class="home_feed cl">{lang group_no_latest_feeds}</p></div>
<!--{/if}-->

View File

@@ -0,0 +1,163 @@
<div class="dhnav_box">
<div id="dhnav">
<div id="dhnav_li">
<ul class="flex-box">
<li class="flex mon"><a href="forum.php?mod=forumdisplay&action=list&fid=$_G['fid']">{lang forum_viewall}</a></li>
<li class="flex"><a href="forum.php?mod=group&action=memberlist&fid=$_G['fid']">{lang group_member_list}</a></li>
<!--{if $_G['forum']['ismoderator']}--><li class="flex"><a href="forum.php?mod=group&action=manage&fid=$_G['fid']">{lang group_admin}</a></li><!--{/if}-->
</ul>
</div>
</div>
</div>
<!--{if $_G['forum']['threadtypes']}-->
<div class="dhnavs_box">
<div id="dhnavs">
<div id="dhnavs_li">
<ul class="swiper-wrapper">
<!--{if $_G['forum']['threadtypes']}-->
<!--{if $_G['forum']['threadtypes']}-->
<!--{loop $_G['forum']['threadtypes']['types'] $id $name}-->
<li class="swiper-slide{if $_GET['typeid'] == $id} mon{/if}"><a href="forum.php?mod=forumdisplay&fid=$_G['fid']&filter=typeid&typeid=$id$forumdisplayadd['typeid']{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">$name</a></li>
<!--{/loop}-->
<!--{/if}-->
<!--{/if}-->
<!--{if $_G['forum']['threadsorts']}-->
<!--{loop $_G['forum']['threadsorts']['types'] $id $name}-->
<!--{if $_GET['sortid'] == $id}-->
<li class="swiper-slide mon"><a href="forum.php?mod=forumdisplay&fid=$_G['fid']{if $_GET['typeid']}&filter=typeid&typeid=$_GET['typeid']{/if}{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">$name</a></li>
<!--{else}-->
<li class="swiper-slide"><a href="forum.php?mod=forumdisplay&fid=$_G['fid']&filter=sortid&sortid=$id$forumdisplayadd['sortid']{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">$name</a></li>
<!--{/if}-->
<!--{/loop}-->
<!--{/if}-->
</ul>
</div>
</div>
</div>
<script>
if($("#dhnavs_li .mon").length > 0) {
var discuz_nav = $("#dhnavs_li .mon").offset().left + $("#dhnavs_li .mon").width() >= $(window).width() ? $("#dhnavs_li .mon").index() : 0;
}else{
var discuz_nav = 0;
}
new Swiper('#dhnavs_li', {
freeMode : true,
slidesPerView : 'auto',
initialSlide : discuz_nav,
onTouchMove: function(swiper){
Discuz_Touch_on = 0;
},
onTouchEnd: function(swiper){
Discuz_Touch_on = 1;
},
});
</script>
<!--{/if}-->
<form class="searchform" method="post" autocomplete="off" action="search.php?mod=group&srchfid=$_G['fid']">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<div class="search flex-box">
<input value="$keyword" autocomplete="off" class="mtxt flex" name="srchtxt" id="scform_srchtxt" value="" placeholder="{lang mobsearchtxt}">
<input type="hidden" name="searchsubmit" value="yes"><input type="submit" value="{lang search}" class="mbtn" id="scform_submit">
</div>
<!--{eval $policymsgs = $p = '';}-->
<!--{loop $_G['setting']['creditspolicy']['search'] $id $policy}-->
<!--{block policymsg}--><!--{if $_G['setting']['extcredits'][$id]['img']}-->$_G['setting']['extcredits'][$id]['img'] <!--{/if}-->$_G['setting']['extcredits'][$id]['title'] $policy $_G['setting']['extcredits'][$id]['unit']<!--{/block}-->
<!--{eval $policymsgs .= $p.$policymsg;$p = ', ';}-->
<!--{/loop}-->
<!--{if $policymsgs}--><p>{lang search_credit_msg}</p><!--{/if}-->
</form>
<div class="threadlist_box<!--{if ((in_array($thread['displayorder'], array(1, 2, 3, 4)))) && $_G['page'] == 1}--> mt10<!--{/if}--> cl">
<div class="threadlist cl">
<ul>
<!--{if $_G['forum_threadcount']}-->
<!--{eval $threadlist_data = get_attach($_G['forum_threadlist']);}-->
<!--{loop $_G['forum_threadlist'] $key $thread}-->
<!--{if !$_G['setting']['mobile']['forum']['displayorder3'] && $thread['displayorder'] > 0}-->
{eval continue;}
<!--{/if}-->
<!--{if $thread['displayorder'] > 0 && !$displayorder_thread}-->
{eval $displayorder_thread = 1;}
<!--{/if}-->
<!--{if $thread['moved']}-->
<!--{eval $thread['tid']=$thread['closed'];}-->
<!--{/if}-->
<!--{if in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
<li class="list_top">
<a href="forum.php?mod=viewthread&tid=$thread['tid']&extra=$extra">
<!--{if in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
<span class="micon">{lang mobzhiding}</span>
<!--{/if}-->
<em $thread['highlight']>{$thread['subject']}</em>
</a>
</li>
<!--{else}-->
<li class="list">
<!--{hook/forumdisplay_thread_mobile $key}-->
<div class="threadlist_top cl">
<a href="home.php?mod=space&uid={$thread['authorid']}" class="mimg"><img src="<!--{avatar($thread['authorid'], 'middle', true)}-->"></a>
<div class="muser">
<h3><a href="home.php?mod=space&uid={$thread['authorid']}" class="mmc">{$thread['author']}</a></h3>
<span class="mtime">{$thread['dateline']}</span>
</div>
</div>
<a href="forum.php?mod=viewthread&tid=$thread['tid']&extra=$extra">
<div class="threadlist_tit cl">
<!--{if $thread['folder'] == 'lock'}-->
<span class="micon lock">{lang closed_thread}</span>
<!--{elseif $thread['special'] == 1}-->
<span class="micon">{lang thread_poll}</span>
<!--{elseif $thread['special'] == 2}-->
<span class="micon">{lang thread_trade}</span>
<!--{elseif $thread['special'] == 3}-->
<span class="micon">{lang thread_reward}</span>
<!--{elseif $thread['special'] == 4}-->
<span class="micon">{lang thread_activity}</span>
<!--{elseif $thread['special'] == 5}-->
<span class="micon">{lang thread_debate}</span>
<!--{/if}-->
<!--{if $thread['attachment'] == 2 && $_G['setting']['mobile']['mobilesimpletype'] == 1}-->
<span class="micon">{lang mobtu}</span>
<!--{/if}-->
<!--{if in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
<span class="micon top">{lang thread_sticky}</span>
<!--{/if}-->
<!--{if $thread['digest'] > 0}-->
<span class="micon digest">{lang thread_digest}</span>
<!--{/if}-->
<em $thread['highlight']>{$thread['subject']}</em>
</div>
</a>
<a href="forum.php?mod=viewthread&tid=$thread['tid']&extra=$extra"><div class="threadlist_mes cl">{$threadlist_data[$thread['tid']]['message']}</div></a>
<!--{if $threadlist_data[$thread['tid']]['attachment']}-->
<!--{eval $attach_on = 0;}-->
<a href="forum.php?mod=viewthread&tid=$thread['tid']&extra=$extra">
<div class="{if count($threadlist_data[$thread['tid']]['attachment']) == 1}threadlist_imgs1 {elseif count($threadlist_data[$thread['tid']]['attachment']) == 2} threadlist_imgs threadlist_imgs2{else} threadlist_imgs{/if} cl">
<ul>
<!--{loop $threadlist_data[$thread['tid']]['attachment'] $value}-->
<!--{eval $attach_on++; if($attach_on > 9) break;}-->
<li><!--{if count($threadlist_data[$thread['tid']]['attachment']) > 9 && $attach_on == 9}--><em>{echo count($threadlist_data[$thread['tid']]['attachment'])}{lang mobtu}</em><!--{/if}--><img src="$value" class="vm"></li>
<!--{/loop}-->
</ul>
</div>
</a>
<!--{/if}-->
<div class="threadlist_foot cl">
<ul>
<!--{if $thread['typeid']}-->
<li class="mr"><a href="forum.php?mod=forumdisplay&fid=$thread['fid']&filter=typeid&typeid=$thread['typeid']">#{$_G['forum']['threadtypes']['types'][$thread['typeid']]}</a></li>
<!--{/if}-->
<li><i class="dm-eye-fill"></i>{$thread['views']}</li>
<li><i class="dm-chat-s-fill"></i>{$thread['replies']}</li>
</ul>
</div>
</li>
<!--{/if}-->
<!--{/loop}-->
<!--{else}-->
<h4>{lang forum_nothreads}</h4>
<!--{/if}-->
</ul>
</div>
$multipage
</div>

View File

@@ -0,0 +1,382 @@
<div class="dhnav_box">
<div id="dhnav">
<div id="dhnav_li">
<ul class="flex-box">
<li class="flex"><a href="forum.php?mod=forumdisplay&action=list&fid=$_G['fid']">{lang forum_viewall}</a></li>
<li class="flex"><a href="forum.php?mod=group&action=memberlist&fid=$_G['fid']">{lang group_member_list}</a></li>
<!--{if $_G['forum']['ismoderator']}--><li class="flex mon"><a href="forum.php?mod=group&action=manage&fid=$_G['fid']">{lang group_admin}</a></li><!--{/if}-->
</ul>
</div>
</div>
</div>
<div class="dhnavs_box">
<div id="dhnavs">
<div id="dhnavs_li">
<ul class="swiper-wrapper">
<li class="swiper-slide{if $_GET['op'] == 'group'} mon{/if}"><a href="forum.php?mod=group&action=manage&op=group&fid=$_G['fid']">{lang group_setup}</a></li>
<!--{if !empty($groupmanagers[$_G[uid]]) || $_G['adminid'] == 1}-->
<li class="swiper-slide{if $_GET['op'] == 'checkuser'} mon{/if}"><a href="forum.php?mod=group&action=manage&op=checkuser&fid=$_G['fid']">{lang group_member_moderate}</a></li>
<li class="swiper-slide{if $_GET['op'] == 'manageuser'} mon{/if}"><a href="forum.php?mod=group&action=manage&op=manageuser&fid=$_G['fid']">{lang group_member_management}</a></li>
<!--{/if}-->
<!--{if $_G['forum']['founderuid'] == $_G['uid'] || $_G['adminid'] == 1}-->
<li class="swiper-slide{if $_GET['op'] == 'threadtype'} mon{/if}"><a href="forum.php?mod=group&action=manage&op=threadtype&fid=$_G['fid']">{lang group_threadtype}</a></li>
<li class="swiper-slide{if $_GET['op'] == 'demise'} mon{/if}"><a href="forum.php?mod=group&action=manage&op=demise&fid=$_G['fid']">{lang group_demise}</a></li>
<!--{/if}-->
</ul>
</div>
</div>
</div>
<script>
if($("#dhnavs_li .mon").length > 0) {
var discuz_nav = $("#dhnavs_li .mon").offset().left + $("#dhnavs_li .mon").width() >= $(window).width() ? $("#dhnavs_li .mon").index() : 0;
}else{
var discuz_nav = 0;
}
new Swiper('#dhnavs_li', {
freeMode : true,
slidesPerView : 'auto',
initialSlide : discuz_nav,
onTouchMove: function(swiper){
Discuz_Touch_on = 0;
},
onTouchEnd: function(swiper){
Discuz_Touch_on = 1;
},
});
</script>
<!--{if $_GET['op'] == 'group'}-->
<form enctype="multipart/form-data" action="forum.php?mod=group&action=manage&op=group&fid={$_G['fid']}" name="manage" method="post" autocomplete="off" accept-charset="utf-8" onsubmit="document.charset='utf-8';">
<input type="hidden" value="{FORMHASH}" name="formhash" id="formhash" />
<input type="hidden" value="group_handle" name="handlekey" />
<div class="setbox cl">
<ul class="bodybox post_box cl">
<!--{if !empty($specialswitch['allowchangename']) && ($_G['uid'] == $_G['forum']['founderuid'] || $_G['adminid'] == 1)}-->
<li class="flex-box mli">
<div class="tit">{lang group_name} :</div>
<div class="flex input"><input type="text" id="name" autocomplete="off" name="name" value="$_G[forum][name]"></div>
</li>
<!--{/if}-->
<!--{if !empty($specialswitch['allowchangetype']) && ($_G['uid'] == $_G['forum']['founderuid'] || $_G['adminid'] == 1)}-->
<li class="flex-box mli">
<div class="tit">{lang group_category} :</div>
<div class="flex">
<select name="parentid" id="parentid" onchange="group_ajaxget('forum.php?mod=ajax&action=secondgroup&fupid='+ this.value);" class="sort_sel">
$groupselect[first]
</select>
</div>
</li>
<li class="flex-box mli" id="secondgroup" {if !$groupselect['second']}style="display:none"{/if}>
<div class="tit">{lang group_category} :</div>
<div id="linkage" class="flex">
<select name="fup" id="fup" class="sort_sel">
$groupselect[second]
</select>
</div>
</li>
<!--{/if}-->
<!--{if !empty($_G['group']['allowupbanner']) || $_G['adminid'] == 1}-->
<li class="flex-box">
<div class="flex group_upico">
<em class="bg_e"><img src="$_G[forum][icon]?{TIMESTAMP}"></em>
<span>{lang group_icon}</span>
</div>
<div class="editpic" style="margin:0;">
<ul>
<li class="up_btn flex">
<a class="" href="javascript:;">{lang upload_pic}<input type="file" id="iconnew" name="iconnew" class="" accept="image/*"></a>
</li>
</ul>
</div>
</li>
<li class="flex-box">
<div class="flex group_upico">
<em class="bg_e"><img src="{if $_G['forum']['banner']}$_G[forum][banner]?{TIMESTAMP}{else}{STATICURL}image/common/groupicon.gif{/if}"></em>
<span>{lang group_image}</span>
</div>
<div class="editpic" style="margin:0;">
<ul>
<li class="up_btn flex">
<a class="" href="javascript:;">{lang upload_pic}<input type="file" id="bannernew" name="bannernew" class="" accept="image/*"></a>
</li>
</ul>
</div>
</li>
<!--{/if}-->
<li class="tit">{lang group_description} </li>
<li class="cl">
<textarea name="descriptionnew" id="descriptionmessage" rows="5" placeholder="" class="pxs">$_G['forum']['descriptionnew']</textarea>
</li>
<li class="flex-box mli">
<div class="tit">{lang group_perm_visit} :</div>
<div class="flex">
<select name="gviewpermnew" id="gviewperm" class="sort_sel">
<option value="1" {if $_G['forum']['gviewperm']=='1'}selected="selected"{/if}>{lang group_perm_all_user}</option>
<!--{if in_array($_G[adminid], array(1))}-->
<option value="0" {if $_G['forum']['gviewperm']=='0'}selected="selected"{/if}>{lang group_perm_member_only}</option>
<!--{/if}-->
</select>
</div>
</li>
<li class="flex-box mli">
<div class="tit">{lang group_join_type} :</div>
<div class="flex">
<select name="jointypenew" id="jointype" class="sort_sel">
<option value="0" {if $_G['forum']['jointype']=='0'}selected="selected"{/if}>{lang group_join_type_free}</option>
<!--{if in_array($_G[adminid], array(1))}-->
<option value="2" {if $_G['forum']['jointype']=='2'}selected="selected"{/if}>{lang group_join_type_moderate}</option>
<option value="1" {if $_G['forum']['jointype']=='1'}selected="selected"{/if}>{lang group_join_type_invite}</option>
<!--{if !empty($specialswitch['allowclosegroup'])}-->
<option value="-1" {if $_G['forum']['jointype']=='-1'}selected="selected"{/if}>{lang close}</option>
<!--{/if}-->
<!--{/if}-->
</select>
</div>
</li>
</ul>
</div>
<div class="mt5 p10">
<input type="hidden" name="groupmanage" value="true">
<button type="submit" class="formdialog pn" value="1">{lang submit}</button>
</div>
</form>
<!--{elseif $_GET['op'] == 'checkuser'}-->
<!--{if $checkusers}-->
<div class="forumlist cl">
<div class="subnavs_box">
<div id="subnavs_btn">
<ul class="y cl">
<li><a href="forum.php?mod=group&action=manage&op=checkuser&fid={$_G['fid']}&checkall=1" class="mon dialog">{lang pass_all}</a></li>
<li><a href="forum.php?mod=group&action=manage&op=checkuser&fid={$_G['fid']}&checkall=2" class="mon dialog">{lang ignore_all}</a></li>
</ul>
</div>
</div>
<ul class="sub-forum imglist mt0 cl">
<!--{loop $checkusers $uid $user}-->
<li>
<span class="mimg"><a href="home.php?mod=space&uid={$user['uid']}&do=profile"><!--{echo avatar($user['uid'],'middle')}--></a></span>
<p class="mtit">
<a href="home.php?mod=space&uid={$user['uid']}&do=profile">$user[username]</a>
</p>
<p class="mtxt">
$user['joindateline']
<a href="forum.php?mod=group&action=manage&op=checkuser&fid={$_G['fid']}&uid={$user['uid']}&checktype=1" class="mico dialog">{lang pass}</a>
<a href="forum.php?mod=group&action=manage&op=checkuser&fid={$_G['fid']}&uid={$user['uid']}&checktype=2" class="mico dialog">{lang ignore}</a>
</p>
</li>
<!--{/loop}-->
</ul>
</div>
<!--{if $multipage}-->$multipage<!--{/if}-->
<!--{/if}-->
<!--{elseif $_GET['op'] == 'manageuser'}-->
<!--{if $_G['forum']['membernum'] > 300}-->
<form action="forum.php?mod=group&action=manage&op=manageuser&fid={$_G['fid']}&mobile=2" method="post" accept-charset="utf-8" onsubmit="document.charset='utf-8';">
<div class="search flex-box">
<input type="text" placeholder="{lang enter_member_user}" value="" id="groupsearch" name="srchuser" class="mtxt flex">
<button class="mbtn" type="submit"><i class="dm-search"></i></button>
</div>
</form>
<!--{/if}-->
<form action="forum.php?mod=group&action=manage&op=manageuser&fid={$_G['fid']}&manageuser=true" name="manageuser" id="manageuser" method="post" autocomplete="off" >
<input type="hidden" value="{FORMHASH}" name="formhash" />
<input type="hidden" value="0" name="targetlevel" id="targetlevel" />
<div class="imglist cl">
<!--{if $adminuserlist}-->
<div class="subtit"><h2>{lang group_admin_member}</h2></div>
<ul>
<!--{loop $adminuserlist $user}-->
<li>
<!--{if $_G['adminid'] == 1 || ($_G['uid'] != $user['uid'] && ($_G['uid'] == $_G['forum']['founderuid'] || $user['level'] > $groupuser['level']))}-->
<label for="u{$user['uid']}" class="mtime y"><input type="checkbox" name="muid[{$user['uid']}]" value="$user['level']" /></label>
<!--{/if}-->
<a href="home.php?mod=space&uid=$user['uid']&do=profile">
<img src="{avatar($user['uid'],'middle',true)}" class="mimg" />
$user['username']
</a>
</li>
<!--{/loop}-->
</ul>
<!--{/if}-->
<!--{if $staruserlist || $userlist}-->
<div class="subtit"><h2>{$langplus[groups]}{lang member}</h2></div>
<ul id="alist" class="nObqVn9cPpJL">
<!--{if $staruserlist}-->
<!--{loop $staruserlist $user}-->
<li>
<!--{if $_G['adminid'] == 1 || $user['level'] > $groupuser['level']}-->
<label for="u{$user['uid']}" class="mtime y"><input type="checkbox" name="muid[{$user[uid]}]" value="$user[level]" /></label>
<!--{/if}-->
<a href="home.php?mod=space&uid=$user['uid']&do=profile">
<img src="{avatar($user['uid'],'middle',true)}" class="mimg" />
$user['username']
</a>
</li>
<!--{/loop}-->
<!--{/if}-->
<!--{if $userlist}-->
<!--{loop $userlist $user}-->
<li>
<!--{if $_G['adminid'] == 1 || $user['level'] > $groupuser['level']}-->
<label for="u{$user['uid']}" class="mtime y"><input type="checkbox" name="muid[{$user[uid]}]" value="$user[level]" /></label>
<!--{/if}-->
<a href="home.php?mod=space&uid=$user[uid]&do=profile">
<img src="{avatar($user['uid'],'middle',true)}" class="mimg" />
$user[username]
</a>
</li>
<!--{/loop}-->
<!--{/if}-->
</ul>
<!--{/if}-->
</div>
<div class="foot flex-box" id="group_manage_userlist">
<ul class="swiper-wrapper">
<!--{loop $mtype $key $name}-->
<!--{if $_G['forum']['founderuid'] == $_G['uid'] || $key > $groupuser['level'] || $_G['adminid'] == 1}-->
<li class="swiper-slide z"><button type="button" name="manageuser" value="true" class="pns" onclick="groupManageUser('{$key}')">$name</button></li>
<!--{/if}-->
<!--{/loop}-->
</ul>
</div>
</form>
<!--{if $multipage}-->$multipage<!--{/if}-->
<!--{elseif $_GET['op'] == 'threadtype'}-->
<form id="threadtypeform" action="forum.php?mod=group&action=manage&op=threadtype&fid={$_G['fid']}" autocomplete="off" method="post" name="threadtypeform" accept-charset="utf-8" onsubmit="document.charset='utf-8';">
<input type="hidden" value="{FORMHASH}" name="formhash" />
<input type="hidden" name="tab" value="groupmanage"/>
<div class="setbox bodybox post_box cl">
<ul>
<li class="flex-box mli cl">
<div class="tit">{lang threadtype_turn_on} :</div>
<div class="flex checkbox"><input type="checkbox" name="threadtypesnew[status]" onclick="setstatus()" value="1" id="status" {if $_G['forum']['threadtypes']['status']=='1'}checked="checked"{/if}/></div>
</li>
</ul>
<ul id="threadtypest"{if !$_G['forum']['threadtypes']['status']} style="display:none"{/if}>
<li class="flex-box mli cl">
<div class="tit">{lang threadtype_required} :</div>
<div class="flex checkbox"><input type="checkbox" name="threadtypesnew[required]" value="1" {if $_G['forum']['threadtypes']['required']=='1'}checked="checked"{/if}/></div>
</li>
<li class="flex-box mli cl">
<div class="tit">{lang threadtype_prefix} :</div>
<div class="flex checkbox"><input type="checkbox" name="threadtypesnew[prefix]" value="1" {if $_G['forum']['threadtypes']['prefix']=='1'}checked="checked"{/if}/></div>
</li>
</ul>
<div id="threadtypes" {if !$_G['forum']['threadtypes']['status']}style="display:none"{/if}>
<ul>
<li class="flex-box tit cl">{lang threadtype}</li>
<li class="flex-box cl">
<div class="tit">{lang delete}</div>
<div class="tit">{lang enable}</div>
<div class="tit">{lang displayorder}</div>
<div class="flex">{lang threadtype_name}</div>
<div class="y"><a href="javascript:;" onclick="addrow('threadtype')" class="link">{lang threadtype_add}</a></div>
</li>
</ul>
<ul id="threadtype">
<!--{if $threadtypes}-->
<!--{loop $threadtypes $val}-->
<li class="flex-box cl">
<div class="tit"><input type="checkbox" name="threadtypesnew[options][delete][]" value="{$val['typeid']}" /></div>
<div class="tit"><input type="checkbox" name="threadtypesnew[options][enable][{$val['typeid']}]" value="1" {$val['enablechecked']} /></div>
<div class="tit"><input type="text" name="threadtypesnew[options][displayorder][{$val['typeid']}]" value="{$val['displayorder']}" style="width:40px;" /></div>
<div class="flex"><input type="text" name="threadtypesnew[options][name][{$val['typeid']}]" value="{$val['name']}" /></div>
</li>
<!--{/loop}-->
<!--{/if}-->
</ul>
</div>
</div>
<div class="mt5 p10">
<input type="hidden" name="groupthreadtype" value="true">
<button type="submit" class="formdialog flex pn">{lang submit}</button>
</div>
</form>
<!--{eval $addrowdirect = count($threadtypes);}-->
<!--{elseif $_GET['op'] == 'demise'}-->
<form action="forum.php?mod=group&action=manage&op=demise&fid={$_G['fid']}" name="groupdemise" method="post">
<input type="hidden" value="{FORMHASH}" name="formhash" />
<input type="hidden" name="tab" value="groupmanage"/>
<!--{if $groupmanagers}-->
<div class="bodybox setbox p15 cl">
{lang group_demise_comment}
{lang group_demise_notice}
</div>
<div class="imglist cl">
<div class="subtit"><h2>{lang transfer_group_to} :</h2></div>
<ul>
<!--{loop $groupmanagers $user}-->
<li>
<!--{if $user['uid'] != $_G['uid']}-->
<label for="u{$user['uid']}" class="y"><input type="radio" name="suid" value="{$user['uid']}" /></label>
<!--{else}-->
<label for="u{$user['uid']}" class="y"><input type="radio" name="suid" value="{$user['uid']}" /></label>
<!--{/if}-->
<a href="home.php?mod=space&uid={$user['uid']}&do=profile">
<img src="{avatar($user['uid'],'middle',true)}" class="mimg" />
$user[username]
</a>
</li>
<!--{/loop}-->
</ul>
</div>
<div class="bodybox setbox mt10 p10 cl"><div class="flex-box input cl"><input type="password" name="grouppwd" placeholder="{lang group_input_password}" class="mtxt flex" /></div></div>
<div class="mt5 p10">
<input type="hidden" name="groupdemise" value="true">
<button type="submit" class="formdialog flex pn">{lang submit}</button>
</div>
</form>
<!--{else}-->
<div class="setbox cl">{lang group_no_admin_member}</div>
<!--{/if}-->
<!--{/if}-->
<!--{if $_GET['op'] == 'group'}-->
<!--{elseif $_GET['op'] == 'manageuser'}-->
<script type="text/javascript" id="script_groupManageUser">
function groupManageUser(targetlevel_val) {
document.getElementById('targetlevel').value = targetlevel_val;
document.getElementById('manageuser').submit();
}
gmu_nav = 0;
new Swiper('#group_manage_userlist', {
freeMode : true,
initialSlide : gmu_nav,
slidesPerView : 'auto',
onTouchMove: function(swiper){
Discuz_Touch_on = 0;
},
onTouchEnd: function(swiper){
Discuz_Touch_on = 1;
},
});
</script>
<!--{elseif $_GET['op'] == 'threadtype'}-->
<script type="text/JavaScript" id="script_groupthreadtype" reload="1">
var addrowdirect = $addrowdirect;
var typenumlimit = $typenumlimit;
function addrow(id){
if(addrowdirect>=typenumlimit){
alert('{lang group_threadtype_limit_1}'+typenumlimit+'{lang group_threadtype_limit_2}');
}else{
var row ='<li class="flex-box cl"><div class="tit"><input type="checkbox" disabled="disabled" /></div><div class="tit"><input type="checkbox" name="newenable[]" checked="checked" value="1" /></div><div class="tit"><input type="text" name="newdisplayorder[]" value="0" style="width:40px;" /></div><div class="flex"><input type="text" name="newname[]" placeholder="{lang threadtype_name}"/></div></li>';
$('#'+id).append(row);
addrowdirect++;
}
}
function setstatus(){
if($("#status").attr("checked") == 'checked'){
$("#status").attr("checked",false);
$("#threadtypest").css({'display':'none'});
$("#threadtypes").css({'display':'none'});
}else{
$("#status").attr("checked","checked");
$("#threadtypest").css({'display':''});
$("#threadtypes").css({'display':''});
}
}
</script>
<!--{/if}-->
<!--{eval $nofooter = true;}-->

View File

@@ -0,0 +1,55 @@
<div class="dhnav_box">
<div id="dhnav">
<div id="dhnav_li">
<ul class="flex-box">
<li class="flex"><a href="forum.php?mod=forumdisplay&action=list&fid=$_G['fid']">{lang forum_viewall}</a></li>
<li class="flex mon"><a href="forum.php?mod=group&action=memberlist&fid=$_G['fid']">{lang group_member_list}</a></li>
<!--{if $_G['forum']['ismoderator']}--><li class="flex"><a href="forum.php?mod=group&action=manage&fid=$_G['fid']">{lang group_admin}</a></li><!--{/if}-->
</ul>
</div>
</div>
</div>
<!--{if $op == 'alluser'}-->
<div class="imglist cl">
<!--{if $adminuserlist}-->
<div class="subtit cl">
<h2>{lang group_admin_member}</h2>
</div>
<ul class="mt0 cl">
<!--{loop $adminuserlist $user}-->
<li>
<span class="mimg"><a href="home.php?mod=space&uid={$user['uid']}&do=profile"><img src="{avatar($user['uid'],'middle',true)}" /></a></span>
<p class="mtit">{$user['username']}</p>
</li>
<!--{/loop}-->
</ul>
<!--{/if}-->
<!--{if $staruserlist || $alluserlist}-->
<div class="subtit cl">
<h2>{$_G['setting']['navs'][3]['navname']}{lang member}</h2>
</div>
<ul class="mt0 cl">
<!--{if $staruserlist}-->
<!--{loop $staruserlist $user}-->
<li>
<span class="mimg"><a href="home.php?mod=space&uid={$user['uid']}&do=profile"><img src="{avatar($user['uid'],'middle',true)}" /></a></span>
<p class="mtit"><a href="home.php?mod=space&uid={$user['uid']}&do=profile">{$user['username']}<em class="dm-star-fill group_memberlist_star"></em></a></p>
<p class="mtxt">{echo dgmdate($user['joindateline'], 'u')}</p>
</li>
<!--{/loop}-->
<!--{/if}-->
<!--{if $alluserlist}-->
<!--{loop $alluserlist $user}-->
<li>
<span class="mimg"><a href="home.php?mod=space&uid={$user['uid']}&do=profile"><img src="{avatar($user['uid'],'middle',true)}" /></a></span>
<p class="mtit"><a href="home.php?mod=space&uid={$user['uid']}&do=profile">{$user['username']}</a></p>
<p class="mtxt">{echo dgmdate($user['joindateline'], 'u')}</p>
</li>
<!--{/loop}-->
<!--{/if}-->
</ul>
<!--{/if}-->
</div>
<!--{/if}-->
<!--{if $multipage}-->$multipage<!--{/if}-->

View File

@@ -0,0 +1,145 @@
<!--{template common/header}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2>{$_G[username]}{lang somebody_group}</h2>
<div class="my"></div>
</div>
<div class="dhnav_box">
<div id="dhnav">
<div id="dhnav_li">
<ul class="flex-box">
<li class="flex{if $actives['groupthread']} mon{/if}"><a href="group.php?mod=my&view=groupthread">{lang group_thread}</a></li>
<li class="flex{if $actives['mythread']} mon{/if}"><a href="group.php?mod=my&view=mythread">{lang my_thread}</a></li>
<li class="flex{if $actives['join']} mon{/if}"><a href="group.php?mod=my&view=join">{lang my_join}</a></li>
<li class="flex{if $actives['manager']} mon{/if}"><a href="group.php?mod=my&view=manager">{lang my_manage}</a></li>
</ul>
</div>
</div>
</div>
<!--{if $view == 'groupthread' || $view == 'mythread'}-->
<!--{if $usergroups['grouptype']}-->
<div class="dhnavs_box">
<div id="dhnavs">
<div id="dhnavs_li">
<ul class="swiper-wrapper">
<li class="swiper-slide{if empty($typeid)} mon{/if}"><a href="group.php?mod=my&view={$view}">{lang all}</a></li>
<!--{loop $usergroups['grouptype'] $type}-->
<li class="swiper-slide{if $typeid == $type['fid']} mon{/if}"><a href="group.php?mod=my&view={$view}{if $typeid != $type['fid']}&typeid={$type['fid']}{/if}">{$type['name']}</a></li>
<!--{/loop}-->
</ul>
</div>
</div>
</div>
<script>
if($("#dhnavs_li .mon").length > 0) {
var discuz_nav = $("#dhnavs_li .mon").offset().left + $("#dhnavs_li .mon").width() >= $(window).width() ? $("#dhnavs_li .mon").index() : 0;
}else{
var discuz_nav = 0;
}
new Swiper('#dhnavs_li', {
freeMode : true,
slidesPerView : 'auto',
initialSlide : discuz_nav,
onTouchMove: function(swiper){
Discuz_Touch_on = 0;
},
onTouchEnd: function(swiper){
Discuz_Touch_on = 1;
},
});
</script>
<!--{/if}-->
<!--{if $attentionthread}-->
<div class="threadlist_box cl">
<!--{loop $attentionthread $groupid $threads}-->
<div class="threadlist cl">
<h2 class="mt10 cl">{$usergroups['groups'][$groupid]}<a href="forum.php?mod=group&fid=$groupid" class="y">{lang more}</a></h2>
<ul>
<!--{loop $threads $tid $thread}-->
<li class="list">
<a href="forum.php?mod=viewthread&tid=$tid&extra=$extra">
<div class="threadlist_tit cl">
<em>{$thread['subject']}</em>
</div>
</a>
<div class="threadlist_mes cl">
<span><!--{if $thread['lastposter']}-->$thread[lastposter]<!--{else}-->{$_G['setting']['anonymoustext']}<!--{/if}--></span>
<span>$thread[lastpost]</span>
</div>
<div class="threadlist_foot cl">
<ul>
<li class="mr"><a href="forum.php?mod=forumdisplay&fid=$thread['fid']">#{$thread['groupname']}</a></li>
<li><i class="dm-eye-fill"></i>{$thread['views']}</li>
<li><i class="dm-chat-s-fill"></i>{$thread['replies']}</li>
</ul>
</div>
</li>
<!--{/loop}-->
</ul>
</div>
<!--{/loop}-->
</div>
<!--{/if}-->
<!--{if $groupthreadlist}-->
<div class="threadlist_box cl">
<div class="threadlist cl">
<h2 class="mt10 cl"><!--{if $view == 'groupthread'}-->{lang last_topic_in_group}<!--{else}-->{lang my_last_topic_in_group}<!--{/if}--></h2>
<ul>
<!--{loop $groupthreadlist $tid $thread}-->
<li class="list">
<a href="forum.php?mod=viewthread&tid=$tid&extra=$extra">
<div class="threadlist_tit cl">
<em>{$thread['subject']}</em>
</div>
</a>
<div class="threadlist_mes cl">
<span><!--{if $thread['lastposter']}-->$thread[lastposter]<!--{else}-->{$_G['setting']['anonymoustext']}<!--{/if}--></span>
<span>$thread[lastpost]</span>
</div>
<div class="threadlist_foot cl">
<ul>
<li class="mr"><a href="forum.php?mod=forumdisplay&fid=$thread['fid']">#{$thread['groupname']}</a></li>
<li><i class="dm-eye-fill"></i>{$thread['views']}</li>
<li><i class="dm-chat-s-fill"></i>{$thread['replies']}</li>
</ul>
</div>
</li>
<!--{/loop}-->
</ul>
</div>
<!--{/if}-->
<!--{if !$attentionthread && !$groupthreadlist}-->
<div class="threadlist_box cl">{lang no_related_posts}</div>
<!--{/if}-->
<!--{elseif $view == 'manager' || $view == 'join'}-->
<!--{if $grouplist}-->
<div class="forumlist mt10 cl">
<div class="sub-forum mlist1 cl">
<ul>
<!--{loop $grouplist $groupid $group}-->
<li>
<span class="micon"><a href="forum.php?mod=forumdisplay&action=list&fid={$group['fid']}"><img src="{if strstr($group['icon'],'groupicon.gif')}{STATICURL}image/mobile/touch/forum.png{else}{$group['icon']}{/if}" alt="{$group['name']}"></a></span>
<a href="forum.php?mod=forumdisplay&action=list&fid={$group['fid']}" class="murl">
<p class="mtit">$group['name']</p>
<!--{if $group['description']}-->
<p class="mtxt">$group['description']</p>
<!--{else}-->
<p class="mtxt">{lang threads} {$group[threads]}</p>
<!--{/if}-->
</a>
</li>
<!--{/loop}-->
</ul>
</div>
</div>
<!--{if $multipage}-->$multipage<!--{/if}-->
<!--{else}-->
<div class="forumlist cl">{lang no_group_join}</div>
<!--{/if}-->
<!--{/if}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,99 @@
<!--{template common/header}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2>{$_G['setting']['navs'][3]['navname']}</h2>
<div class="my"><a href="forum.php?mod=group&action=create"><i class="dm-plus-c"></i></a></div>
</div>
<div class="tabs flex-box cl">
<a href="javascript:;" class="flex ttab mon">{lang recommend_group}</a>
<a href="javascript:;" class="flex ttab">{lang all}{$_G['setting']['navs'][3]['navname']}</a>
<a href="group.php?mod=my" class="flex">{lang my_group}</a>
</div>
<div id="tabs-box" class="swiper-container cl">
<div class="swiper-wrapper">
<div class="swiper-slide">
<div class="forumlist mt10 cl">
<div class="sub-forum mlist1 cl">
<ul>
<!--{loop dunserialize($_G['setting']['group_recommend']) $val}-->
<li>
<span class="micon">
<a href="forum.php?mod=forumdisplay&action=list&fid={$val['fid']}">
<!--{if strstr($val['icon'],'groupicon.gif')}-->
<svg width="48" height="44" alt="$val['name']"><path fill="#{if $val['folder']}fdc910{else}c9c9c9{/if}" d="M48 20C48 9 37.3 0 24 0S0 8.9 0 20s10.7 20 24 20c2.4 0 4.7-.3 6.8-.8L42 44l-2.8-8.5C44.6 31.8 48 26.2 48 20z"/></svg>
<!--{else}-->
<img src="{$val['icon']}" alt="{$val['name']}">
<!--{/if}-->
</a>
</span>
<a href="forum.php?mod=forumdisplay&action=list&fid={$val['fid']}" class="murl">
<p class="mtit">$val['name']</p>
<!--{if $val['description']}-->
<p class="mtxt">$val['description']</p>
<!--{/if}-->
</a>
</li>
<!--{/loop}-->
</ul>
</div>
</div>
</div>
<div class="swiper-slide">
<!--{loop $first $groupid $group}-->
<!--{if $group['groupnum'] > 0}-->
<div class="forumlist cl">
<div class="subforumshow cl">
<!--{if $group['groupnum'] > 0}--><span class="y mnum"><a href="group.php?gid=$groupid">{lang more}</a></span><!--{/if}-->
<h2><a href="group.php?gid=$groupid">{$group['name']}</a></h2>
</div>
<ul class="sub-forum mlist4 cl">
<!--{if $lastupdategroup[$groupid]}-->
<!--{eval $i = 1;}-->
<!--{loop $lastupdategroup[$groupid] $val}-->
<!--{if $i < 13}-->
<li>
<a href="forum.php?mod=forumdisplay&action=list&fid={$val['fid']}">
<span class="micon">
<!--{if strstr($val['icon'],'groupicon.gif')}-->
<svg width="48" height="44" alt="$val['name']"><path fill="#{if $val['folder']}fdc910{else}c9c9c9{/if}" d="M48 20C48 9 37.3 0 24 0S0 8.9 0 20s10.7 20 24 20c2.4 0 4.7-.3 6.8-.8L42 44l-2.8-8.5C44.6 31.8 48 26.2 48 20z"/></svg>
<!--{else}-->
<img src="{$val['icon']}" alt="{$val['name']}">
<!--{/if}-->
</span>
<p class="mtit">{$val['name']}</p>
</a>
</li>
<!--{/if}-->
<!--{eval $i++;}-->
<!--{/loop}-->
<!--{/if}-->
</ul>
</div>
<!--{/if}-->
<!--{/loop}-->
</div>
</div>
</div>
<script type="text/javascript">
window.onload = function() {
var tabsSwiper = new Swiper('#tabs-box', {
speed: 500,
on: {
slideChangeTransitionStart: function() {
$(".tabs .mon").removeClass('mon');
$(".tabs a").eq(this.activeIndex).addClass('mon');
}
}
})
$(".tabs a.ttab").on('click', function(e) {
e.preventDefault()
$(".tabs .mon").removeClass('mon')
$(this).addClass('mon')
tabsSwiper.slideTo($(this).index())
})
}
</script>
<!--{template common/footer}-->

View File

@@ -0,0 +1,70 @@
<!--{template common/header}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2><a href="group.php?{if $gid}gid{/if}{if $sgid}sgid{/if}={$curtype['fid']}">{$curtype['name']}</a></h2>
<div class="my"><a href="forum.php?mod=group&action=create"><i class="dm-plus-c"></i></a></div>
</div>
<!--{if $typelist}-->
<div class="dhnavs_box">
<div id="dhnavs">
<div id="dhnavs_li">
<ul class="swiper-wrapper">
<!--{loop $typelist $fid $type}-->
<li class="swiper-slide{if $sgid == $fid} mon{/if}"><a href="group.php?sgid={$fid}">{$type['name']}</a></li>
<!--{/loop}-->
</ul>
</div>
</div>
</div>
<script>
if($("#dhnavs_li .mon").length > 0) {
var discuz_nav = $("#dhnavs_li .mon").offset().left + $("#dhnavs_li .mon").width() >= $(window).width() ? $("#dhnavs_li .mon").index() : 0;
}else{
var discuz_nav = 0;
}
new Swiper('#dhnavs_li', {
freeMode : true,
slidesPerView : 'auto',
initialSlide : discuz_nav,
onTouchMove: function(swiper){
Discuz_Touch_on = 0;
},
onTouchEnd: function(swiper){
Discuz_Touch_on = 1;
},
});
</script>
<!--{/if}-->
<!--{if $list}-->
<div class="forumlist mt10 cl">
<div class="sub-forum mlist1 cl">
<ul>
<!--{loop $list $fid $val}-->
<li>
<span class="micon">
<a href="forum.php?mod=forumdisplay&action=list&fid={$val['fid']}">
<!--{if strstr($val['icon'],'groupicon.gif')}-->
<svg width="48" height="44" alt="$val['name']"><path fill="#{if $val['folder']}fdc910{else}c9c9c9{/if}" d="M48 20C48 9 37.3 0 24 0S0 8.9 0 20s10.7 20 24 20c2.4 0 4.7-.3 6.8-.8L42 44l-2.8-8.5C44.6 31.8 48 26.2 48 20z"/></svg>
<!--{else}-->
<img src="{$val['icon']}" alt="{$val['name']}">
<!--{/if}-->
</a>
</span>
<a href="forum.php?mod=forumdisplay&action=list&fid={$val['fid']}" class="murl">
<p class="mtit">$val['name']</p>
<!--{if $val['description']}-->
<p class="mtxt">$val['description']</p>
<!--{else}-->
<p class="mtxt">$val['threads'] <span>{lang threads}</span></p>
<!--{/if}-->
</a>
</li>
<!--{/loop}-->
</ul>
</div>
</div>
<!--{else}-->
<div class="forumlist"><div class="sub-forum mlist1 cl"><ul><li>{lang group_category_no_groups}</li></ul></div></div>
<!--{/if}-->
<!--{if $multipage}-->$multipage<!--{/if}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,297 @@
<!--{template common/header}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2><!--{if in_array($do, array('following'))}-->{lang follow_add}<!--{elseif in_array($do, array('follower'))}-->{lang follow_follower}<!--{else}-->{lang follow}<!--{/if}--></h2>
</div>
<!--{if in_array($do, array('feed', 'view'))}-->
<div class="dhnv flex-box cl">
<a href="home.php?mod=follow&view=follow" class="flex{if $_GET['view'] == 'follow' || $_GET['view'] == ''} mon{/if}">{lang follow_following}</a>
<a href="home.php?mod=follow&view=special" class="flex{if $_GET['view'] == 'special'} mon{/if}">{lang follow_special_following}</a>
<a href="home.php?mod=follow&view=other" class="flex{if $_GET['view'] == 'other'} mon{/if}">{lang follow_hall}</a>
</div>
<!--{/if}-->
<div class="bodybox threadlist_box p10 cl">
<!--{if in_array($do, array('feed', 'view'))}-->
<!--{if helper_access::check_module('follow') && ( $do == 'feed' || ( $do == 'view' && $viewself))}-->
<!--{if $do == 'feed'}-->
<div class="stat cl">
<ul class="flex-box">
<li class="flex"><em>$space['feeds']</em><a href="home.php?mod=space&uid=$uid">{lang follow}</a></li>
<li class="flex"><em>$space['following']</em><a href="home.php?mod=follow&do=following&uid=$uid">{lang follow_add}</a></li>
<li class="flex"><em>$space['follower']</em><a href="home.php?mod=follow&do=follower&uid=$uid">{lang follow_follower}</a></li>
</ul>
</div>
<!--{/if}-->
<!--{/if}-->
<!--{if in_array($do, array('feed', 'view'))}-->
<!--{if !empty($list['feed'])}-->
<div class="threadlist cl">
<ul id="followlist">
<!--{subtemplate home/follow_feed_li}-->
</ul>
<!--{if is_array($list['feed']) && count($list['feed']) > 19 && ($archiver || $primary)}-->
<div id="loadingfeed" class="flw_more"><a href="javascript:;" onclick="loadmore();return false;" class="flw_loadmore pn">{lang follow_more}</a></div>
<!--{else}-->
<div id="loadingfeed"></div>
<!--{/if}-->
<iframe id="downloadframe" name="downloadframe" width="0" height="0" marginwidth="0" frameborder="0" src="about:blank"></iframe>
<script type="text/javascript">
function succeedhandle_attachpay(url, msg, values) {
hideWindow('attachpay');
window.location.href = url;
}
</script>
<!--{if is_array($list['feed']) && count($list['feed']) > 19 && ($archiver || $primary)}-->
<script type="text/javascript">
var scrollY = 0;
var page = 2;
var feedInfo = {scrollY: 0, archiver: $archiver, primary: $primary, query: true, scrollNum:1};
var loadingfeed = $('#loadingfeed');
function loadmore() {
var currentScroll = document.documentElement.scrollTop || document.body.scrollTop;
var sHeight = document.documentElement.scrollHeight;
if(currentScroll >= scrollY && currentScroll > (sHeight/5-5) && (feedInfo.primary ||feedInfo.archiver) && feedInfo.query) {
feedInfo.query = false;
var archiver = 0;
if(feedInfo.primary) {
archiver = 0;
} else if(feedInfo.archiver) {
archiver = 1;
}
var url = 'home.php?mod=spacecp&ac=follow&op=getfeed&archiver='+archiver+'&page='+page+'&inajax=1'<!--{if $do == 'feed'}-->+'&viewtype=$view'<!--{elseif $do == 'view'}-->+'&uid=$uid&banavatar=1'<!--{/if}-->;
$.ajax({
url : url,
data : null,
dataType : "xml",
cache: false,
success : function(s) {
if($.trim(s.childNodes[0].textContent) == 'false') {
if(!archiver) {
feedInfo.primary = false;
loadmore();
page = 1;
} else {
feedInfo.archiver = false;
page = 1;
}
} else {
$('#followlist').append($.trim(s.childNodes[0].textContent));
}
if(!feedInfo.primary && !feedInfo.archiver) {
loadingfeed.removeClass('flw_more');
loadingfeed.html('');
}
feedInfo.query = true;
}
});
page++;
if(feedInfo.scrollNum) {
feedInfo.scrollNum--;
} else if(!feedInfo.scrollNum) {
window.onscroll = null;
}
}
scrollY = currentScroll;
}
window.onload = function() {
scrollY = document.documentElement.scrollTop || document.body.scrollTop;
window.onscroll = loadmore;
}
</script>
<!--{/if}-->
</div>
<!--{else}-->
<div class="emp">
<h4>
<!--{if $viewself}-->{lang follow_following_null}<!--{else}-->{lang follow_no_content}<!--{/if}-->
<!--{if $do == 'feed' && $view == 'special'}-->
<div class="mtw hm xg1">
{lang follow_add_special_tip}<a href="home.php?mod=follow&do=following&uid=$uid" class="xi2">{lang follow_add_special_following}</a>
</div>
<!--{/if}-->
</h4>
<!--{if !empty($recommend) && $showrecommend && $view != 'special'}-->
<!--{eval $showrecommend = false;}-->
<div class="imglist cl">
<div class="subtit p0 cl">
<h2>{lang follow_recommend}</h2>
</div>
<ul class="cl">
<!--{loop $recommend $ruid $rusername}-->
<li>
<span class="mimg"><a href="home.php?mod=space&uid=$ruid" class="avt" c="1" shref="home.php?mod=space&uid=$ruid"><!--{avatar($ruid, 'small')}--></a></span>
<p class="mtit">{$rusername}</p>
<!--{if helper_access::check_module('follow')}-->
<a class="mico z" id="a_followmod_{$ruid}" href="home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&fuid=$ruid&from=block" onclick="ajaxget(this.href);doane(event);" style="text-decoration: none !important;">{lang follow_add}</a>
<!--{/if}-->
</li>
<!--{/loop}-->
</ul>
</div>
<!--{/if}-->
</div>
<!--{/if}-->
<!--{/if}-->
<!--{elseif in_array($do, array('following', 'follower'))}-->
<!--{if $list}-->
<div class="xld xlda">
<!--{loop $list $fuid $fuser}-->
<dl class="b_b cl">
<!--{if $do=='following'}-->
<dd class="m avt"><a href="home.php?mod=space&uid=$fuser['followuid']" target="_blank"><!--{avatar($fuser['followuid'], 'middle')}--></a></dd>
<dt class="y">
<!--{if $viewself}-->
<p class="xw0"><a id="a_followmod_{$fuser['followuid']}" href="home.php?mod=spacecp&ac=follow&op=del&fuid=$fuser['followuid']" class="flw_btn_unfo dialog">{lang follow_del}</a></p>
<!--{elseif $fuser['followuid'] != $_G['uid']}-->
<!--{if $fuser['mutual']}-->
<p class="xw0"><!--{if $fuser['mutual'] > 0}--><span class="z flw_status_2">{lang follow_follower_mutual}</span><span class="pipe">|</span><!--{else}--><span class="z flw_status_1">{lang did_not_follow_to_me}</span><span class="pipe">|</span><!--{/if}--><a id="a_followmod_{$fuser['followuid']}" href="home.php?mod=spacecp&ac=follow&op=del&fuid=$fuser['followuid']" class="flw_btn_unfo dialog">{lang follow_del}</a></p>
<!--{elseif helper_access::check_module('follow')}-->
<p class="xw0"><a id="a_followmod_{$fuser['followuid']}" href="home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&fuid=$fuser['followuid']" class="flw_btn_fo dialog">{lang follow_add}</a></p>
<!--{/if}-->
<!--{/if}-->
</dt>
<dt><a href="home.php?mod=space&uid=$fuser['followuid']" class="xs2">$fuser['fusername']</a>&nbsp;<span class="xg1 xs1 xw0"><!--{if $fuser['bkname']}-->$fuser['bkname']<!--{/if}--></dt>
<dd><!--{if !empty($fuser['recentnote'])}--><p><span class="xg1">{lang follow_recent_note}: </span>$fuser['recentnote']</p><!--{/if}--></dd>
<dd><p>
<!--{if $memberprofile[$fuid]['residecountry'] || $memberprofile[$fuid]['resideprovince'] || $memberprofile[$fuid]['residecity']}-->{lang comefrom}: $memberprofile[$fuid]['residecountry'] $memberprofile[$fuid]['resideprovince'] $memberprofile[$fuid]['residecity'] &nbsp;<!--{/if}-->
{lang follow_follower}: <a href="home.php?mod=follow&do=follower&uid=$fuser['followuid']"><strong class="xi2" id="followernum_$fuser['followuid']">$memberinfo[$fuid]['follower']</strong></a>{lang person} &nbsp;
{lang follow_add}: <a href="home.php?mod=follow&do=following&uid=$fuser['followuid']"><strong class="xi2">$memberinfo[$fuid]['following']</strong></a>{lang person} &nbsp;
<!--{if $viewself && $fuser[followuid] != $_G['uid']}-->
<span class="pipe">|</span>
<a href="home.php?mod=spacecp&ac=follow&op=bkname&fuid=$fuser['followuid']&handlekey=followbkame_$fuser['followuid']" id="fbkname_$fuser['followuid']" class="dialog"><!--{if $fuser['bkname']}-->{lang follow_mod_bkname}<!--{else}-->{lang follow_add_bkname}<!--{/if}--></a>
<!--{if helper_access::check_module('follow')}-->
<span class="pipe">|</span>
<a id="a_specialfollow_{$fuser['followuid']}" href="home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&special={if $fuser['status'] == 1}2{else}1{/if}&fuid=$fuser['followuid']" class="dialog"><!--{if $fuser['status'] == 1}-->{lang follow_del_special_following}<!--{else}-->{lang follow_add_special_following}<!--{/if}--></a>
<!--{/if}-->
<!--{/if}-->
</p></dd>
<!--{else}-->
<dd class="m avt"><a href="home.php?mod=space&uid=$fuser['uid']" target="_blank"><!--{avatar($fuser['uid'], 'middle')}--></a></dd>
<dt class="y">
<!--{if $fuser['uid'] != $_G['uid']}-->
<!--{if $fuser['mutual']}-->
<p class="xw0"><!--{if $fuser['mutual'] > 0}--><span class="z flw_status_2">{lang follow_follower_mutual}</span><span class="pipe">|</span><!--{else}--><span class="z flw_status_1">{lang did_not_follow_to_me}</span><span class="pipe">|</span><!--{/if}--><a id="a_followmod_{$fuser['uid']}" href="home.php?mod=spacecp&ac=follow&op=del&fuid=$fuser['uid']" class="flw_btn_unfo dialog">{lang follow_del}</a></p>
<!--{elseif helper_access::check_module('follow')}-->
<p class="xw0"><a id="a_followmod_{$fuser['uid']}" href="home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&fuid=$fuser['uid']" class="flw_btn_fo dialog">{lang follow_add}</a></p>
<!--{/if}-->
<!--{/if}-->
</dt>
<dt><a href="home.php?mod=space&uid=$fuser['uid']" target="_blank">$fuser['username']</a></dt>
<dd><!--{if !empty($fuser['recentnote'])}--><p><span class="xg1">{lang follow_recent_note}: </span>$fuser['recentnote']</p><!--{/if}--></dd>
<dd><p>
<!--{if $memberprofile[$fuid]['residecountry'] || $memberprofile[$fuid]['resideprovince'] || $memberprofile[$fuid]['residecity']}-->{lang comefrom}: $memberprofile[$fuid]['residecountry'] $memberprofile[$fuid]['resideprovince'] $memberprofile[$fuid]['residecity'] &nbsp;<!--{/if}-->
{lang follow_follower}: <a href="home.php?mod=follow&do=follower&uid=$fuser['uid']"><strong class="xi2" id="followernum_$fuser['uid']">$memberinfo[$fuid]['follower']</strong></a>{lang person} &nbsp;
{lang follow_add}: <a href="home.php?mod=follow&do=following&uid=$fuser['uid']"><strong class="xi2">$memberinfo[$fuid]['following']</strong></a>{lang person}
</p></dd>
<!--{/if}-->
</dl>
<!--{/loop}-->
</div>
<!--{if !empty($multi)}--><div>$multi</div><!--{/if}-->
<br/>
<!--{else}-->
<div id="nofollowmsg">
<div class="flw_thread">
<ul>
<li class="flw_article">
<div class="emp">
<h4>
<!--{if $viewself}-->
<!--{if $do=='following'}-->
{lang follow_you_following_none}<a href="home.php?mod=follow&view=other" class="xi2">{lang follow_hall}</a>{lang follow_fetch_interested_user}
<!--{else}-->
{lang follow_you_follower_none1}<a href="home.php?mod=follow" class="xi2">{lang follow_add_feed}</a>{lang follow_you_follower_none2}
<!--{/if}-->
<!--{else}-->
<!--{if $do=='following'}-->
{lang follow_user_following_none}
<!--{else}-->
{lang follow_user_follower_none}
<!--{/if}-->
<!--{/if}-->
</h2>
</div>
</li>
</ul>
</div>
</div>
<!--{/if}-->
<!--{/if}-->
</div>
<script type="text/javascript">
var boxflag = {};
var parentReplyId = '';
function quickreply(fid, tid, feedid) {
$('#relaybox_'+feedid).css('display','none');
var replyboxid = 'replybox_'+feedid;
if(parentReplyId && parentReplyId != feedid) {
var oldbox = $('#replybox_'+parentReplyId);
oldbox.html = '';
oldbox.css('display','none');
}
if($(replyboxid).css('display') == 'block' && boxflag[replyboxid]) {
$('#replybox_'+feedid).css('display','none');
} else {
boxflag[replyboxid] = true;
ajaxget('forum.php?mod=ajax&action=quickreply&tid='+tid+'&fid='+fid+'&handlekey=qreply_'+feedid+'&feedid='+feedid, replyboxid);
$('#replybox_'+feedid).css('display','block');
}
parentReplyId = feedid;
}
function quickrelay(feedid, tid) {
$('#replybox_'+feedid).css('display', 'none');
var replyboxid = 'relaybox_'+feedid;
if($(replyboxid).css('display') == 'block') {
$('#relaybox_'+feedid).css('display','none');
} else {
ajaxget('home.php?mod=spacecp&ac=follow&op=relay&feedid='+feedid+'&tid='+tid+'&handlekey=qrelay_'+feedid, replyboxid);
$('#relaybox_'+feedid).css('display','block');
}
}
function replybox_close(feedid) {
$('#'+feedid).css('display','none');
}
function changefeed(tid, pid, flag, obj) {
var o = obj.parentNode;
for(var i = 0; i < 4; i++) {
if(o.id.indexOf('original_content_') == -1) {
o = o.parentNode;
} else {
break;
}
}
ajaxget('forum.php?mod=ajax&action=getpostfeed&inajax=1&tid='+tid+'&pid='+pid+'&type=changefeed&flag='+flag, o.id);
}
</script>
<!--{if $showguide && $do == 'feed'}-->
<style type="text/css">
.widthauto #nv_menu { width: 95%; }
.widthauto #nv_menu div { position: absolute;left: 50%;margin-left: -472px;width:944px; }
</style>
<div id="nv_menu" style="display:none;">
<div>
<img src="{IMGDIR}/flw_guide.png" alt="" />
<button class="pn pnc" style="margin: -50px 0 20px 430px;" onclick="hideMenu()"><span>{lang follow_i_know}</span></button>
</div>
</div>
<!--{/if}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,70 @@
<!--{eval $carray = array();}-->
<!--{eval $beforeuser = 0;}-->
<!--{eval $hiddennum = 0;}-->
<!--{loop $list['feed'] $feed}-->
<!--{eval $content = $list['content'][$feed['tid']];}-->
<!--{eval $thread = $list['threads'][$content['tid']];}-->
<!--{if !empty($thread) && $thread['displayorder'] >= 0 || !empty($feed['note'])}-->
<li class="list cl{if $lastviewtime && $feed[dateline] > $lastviewtime} unread{/if}" id="feed_li_$feed['feedid']">
<div class="threadlist_top cl">
<a href="home.php?mod=space&uid=$feed['uid']" class="mimg"><!--{avatar($feed['uid'],'small')}--></a>
<div class="muser">
<h3><a href="home.php?mod=space&uid={$thread['authorid']}" class="mmc">{$feed['username']}</a></h3>
<span class="mtime">
<!--{if $feed['uid'] == $_G['uid'] || $_G['adminid'] == 1}-->
<em class="mgl y"><a href="home.php?mod=spacecp&ac=follow&feedid=$feed['feedid']&op=delete" id="c_delete_$feed['feedid']" class="dialog color">{lang delete}</a></em>
<!--{/if}-->
<!--{eval echo dgmdate($feed['dateline'], 'u');}-->
</span>
</div>
</div>
<div class="flw_article" {if $_GET['do'] == 'view' || $_GET['banavatar']}style="margin-left:0"{/if}>
<!--{if $feed['note']}-->
<div class="flw_quotenote xs2 pbw">
$feed['note']
</div>
<div class="flw_quote">
<!--{/if}-->
<!--{if !empty($thread) && $thread['displayorder'] >= 0}-->
<div class="wx pbn">
<!--{if isset($carray[$feed['cid']])}-->
<a href="javascript:;" onclick="vieworiginal(this, 'original_content_$feed[feedid]');return false;" class="flw_readfull y xw0 xs1 xi2">+ {lang follow_open_feed}</a>
<!--{/if}-->
<!--{if $thread['fid'] != $_G['setting']['followforumid']}-->
<a href="forum.php?mod=viewthread&tid=$content['tid']&extra=page%3D1" target="_blank">$thread['subject']</a>
<!--{/if}-->
</div>
<div class="flw_content pbm cl" id="original_content_$feed['feedid']" {if isset($carray[$feed['cid']])} style="display: none"{/if}>
$content['content']
<!--{if $thread['special'] && $thread['fid'] != $_G['setting']['followforumid']}-->
<br/>
<a href="forum.php?mod=viewthread&tid=$content['tid']&extra=page%3D1" target="_blank">{lang follow_special_thread_tip}</a>
<!--{/if}-->
</div>
<div class="txtlist flw_foot cl">
<!--{if $feed['note']}--><a href="home.php?mod=space&uid=$feed['uid']" class="flw_zbus">$thread['author']</a> {lang follow_post_by_time} <!--{date($thread['dateline'])}-->&nbsp;<!--{/if}-->
<div class="mtit cl">
<!--{if $thread['fid'] != $_G['setting']['followforumid'] && $_G['cache']['forums'][$thread['fid']]['name']}--><a href="forum.php?mod=forumdisplay&fid=$thread['fid']" class="ztxt">#{$_G['cache']['forums'][$thread['fid']]['name']}</a><!--{/if}-->
<!--{if helper_access::check_module('follow')}--><a href="javascript:;" id="relay_$feed['feedid']" onclick="quickrelay($feed['feedid'], $thread['tid']);" class="ytxt">{lang follow_reply}($content['relay'])</a>&nbsp;<!--{/if}-->
<a href="javascript:;" onclick="quickreply($thread['fid'], $thread['tid'], $feed['feedid'])" class="ytxt">{lang reply}($thread['replies'])</a>
</div>
</div>
<!--{else}-->
<div class="pbm c cl" id="original_content_$feed['feedid']" {if isset($carray[$feed['cid']])} style="display: none"{/if}>
{lang follow_thread_deleted}
</div>
<!--{/if}-->
<!--{if $feed['note']}--></div><!--{/if}-->
</div>
<div id="replybox_$feed['feedid']" class="flw_replybox cl" style="display: none;"></div>
<div id="relaybox_$feed['feedid']" class="flw_replybox cl" style="display: none;"></div>
</li>
<!--{else}-->
<!--{eval $hiddennum++;}-->
<!--{/if}-->
<!--{if !isset($carray[$feed['cid']])}-->
<!--{eval $carray[$feed['cid']] = $feed['cid'];}-->
<!--{/if}-->
<!--{/loop}-->

View File

@@ -0,0 +1,45 @@
<div class="flw_hd">
<!--{if helper_access::check_module('follow')}-->
<div class="tns">
<table cellspacing="0" cellpadding="0">
<tr>
<th>
<p><a href="home.php?mod=follow&uid=$uid&do=view" class="xi2 xw1">$space['feeds']</a></p>
<span><a href="home.php?mod=follow&uid=$uid&do=view" class="xi2">{lang follow}</a></span>
</th>
<th>
<p><a href="home.php?mod=follow&do=following&uid=$uid" class="xi2 xw1">$space['following']</a></p>
<span><a href="home.php?mod=follow&do=following&uid=$uid" class="xi2">{lang follow_add}</a></span>
</th>
<td>
<p><a href="home.php?mod=follow&do=follower&uid=$uid" id="followernum_$uid" class="xi2 xw1">$space['follower']</a></p>
<span><a href="home.php?mod=follow&do=follower&uid=$uid" id="followernum_$uid" class="xi2">{lang follow_follower}</a></span>
</td>
</tr>
</table>
</div>
<!--{/if}-->
<!--{if !$viewself}-->
<div class="mtm o cl">
<div id="followflag" {if !isset($flag[$_G['uid']])}style="display: none"{/if}>
<!--{if helper_access::check_module('follow')}-->
<a href="home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&special={if $flag[$_G['uid']]['status'] == 1}2{else}1{/if}&fuid=$uid&from=head" class="{if $flag[$_G['uid']]['status'] == 1}flw_specialunfo{else}flw_specialfo{/if}" id="specialflag_$uid" onclick="ajaxget(this.href);doane(event);"><!--{if $flag[$_G['uid']]['status'] == 1}-->{lang follow_del_special_following}<!--{else}-->{lang follow_add_special_following}<!--{/if}--></a>
<!--{/if}-->
<!--{if $flag[$_G['uid']]['mutual']}-->
<span class="z flw_status_2">{lang follow_follower_mutual}</span>
<!--{else}-->
<span class="z flw_status_1">{lang follow_followed},</span>
<!--{/if}-->
<a id="a_followmod_{$uid}" href="home.php?mod=spacecp&ac=follow&op=del&fuid=$uid&from=head" onclick="ajaxget(this.href);doane(event);" class="xi2">{lang follow_del}</a>
</div>
<div id="unfollowflag" {if isset($flag[$_G['uid']])}style="display: none"{/if}>
<!--{if isset($flag[$uid])}-->
<span class="z flw_status_1">{lang follow_user_followed}</span>
<!--{/if}-->
<!--{if helper_access::check_module('follow')}-->
<a id="a_followmod_{$uid}" href="home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&fuid=$uid&from=head" onclick="ajaxget(this.href);doane(event);" class="flw_btn_fo">{lang follow_add}</a>
<!--{/if}-->
</div>
</div>
<!--{/if}-->
</div>

View File

View File

@@ -0,0 +1,31 @@
<!--{template common/header}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2>
{lang password_authentication}
</h2>
<div class="my">
<a href="index.php"><i class="dm-house"></i></a>
</div>
</div>
<div class="loginbox">
<form method="post" autocomplete="off" id="invalueform" name="invalueform" action="home.php?mod=misc&ac=inputpwd">
<input type="hidden" name="refer" value="{$_SERVER['REQUEST_URI']}" />
<!--{if isset($invalue['blogid'])}-->
<input type="hidden" name="blogid" value="{$invalue['blogid']}" />
<!--{/if}-->
<!--{if isset($invalue['albumid'])}-->
<input type="hidden" name="albumid" value="{$invalue['albumid']}" />
<!--{/if}-->
<input type="hidden" name="pwdsubmit" value="true" />
<input type="hidden" name="formhash" value="{FORMHASH}" />
<div class="login_from">
<ul>
<li>{lang enter_password}</li>
<li><input type="password" class="px" value="" name="viewpwd"></li>
</ul>
</div>
<div class="btn_login"><button value="true" name="submit" type="submit" class="formdialog pn">{lang submit}</button></div>
</form>
</div>
<!--{template common/footer}-->

View File

@@ -0,0 +1,46 @@
<!--{template common/header}-->
<!--{eval $friendsname = array(1 => '{lang friendname_1}',2 => '{lang friendname_2}',3 => '{lang friendname_3}',4 => '{lang friendname_4}');}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2>{lang album}</h2>
</div>
<div class="dhnv flex-box cl">
<a href="home.php?mod=space&do=album&view=me" class="flex{if $_GET['view'] == 'me'} mon{/if}">{lang my_album}</a>
<a href="home.php?mod=space&do=album&view=we" class="flex{if $_GET['view'] == 'we'} mon{/if}">{lang friend_album}</a>
<a href="home.php?mod=space&do=album&view=all" class="flex{if $_GET['view'] == 'all'} mon{/if}">{lang view_all}</a>
</div>
<div class="album_list">
<!--{if $count}-->
<ul class="album_ul cl">
<!--{loop $list $key $value}-->
<!--{eval $pwdkey = 'view_pwd_album_'.$value['albumid'];}-->
<li>
<div class="album_pic c">
<a href="home.php?mod=space&uid=$value['uid']&do=album&id=$value['albumid']">
<!--{if $value['pic']}--><img src="$value['pic']"/><!--{/if}-->
<p><!--{if $value['albumname']}-->$value['albumname']<!--{else}-->{lang default_album}<!--{/if}--></p>
</a>
</div>
</li>
<!--{/loop}-->
</ul>
<!--{if $multi}--><div class="pgs cl mtm">$multi</div><!--{/if}-->
<!--{else}-->
<div class="threadlist_box cl">
<h4>{lang no_album}</h4>
</div>
<!--{/if}-->
</div>
<script type="text/javascript">
function fuidgoto(fuid) {
var parameter = fuid != '' ? '&fuid='+fuid : '';
window.location.href = 'home.php?mod=space&do=album&view=we'+parameter;
}
</script>
<!--{template common/footer}-->

View File

@@ -0,0 +1,31 @@
<!--{eval $_G['home_tpl_titles'] = array(getstr($pic['title'], 60, 0, 0, 0, -1), $album['albumname'], '{lang album}');}-->
<!--{eval $friendsname = array(1 => '{lang friendname_1}',2 => '{lang friendname_2}',3 => '{lang friendname_3}',4 => '{lang friendname_4}');}-->
<!--{template common/header}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2>$sequence / $album['picnum']</h2>
<div class="my"><a href="index.php"><i class="dm-house"></i></a></div>
</div>
<div class="album_tbmu">
<div class="album_tbmu_box pic">
<div id="photo_pic" class="c{if $pic['magicframe']} magicframe magicframe$pic['magicframe']{/if}">
<a href="home.php?mod=space&uid=$pic['uid']&do=$do&picid=$nextid"><img src="$pic['pic']" id="pic" class="vm" /></a>
<div class="tbmu" id="pic_block">
<a href="home.php?mod=space&uid=$pic['uid']&do=$do&picid=$upid" class="z">{lang previous_pic}</a>
<a href="home.php?mod=space&uid=$pic['uid']&do=$do&picid=$nextid" id="nextlink" class="y">{lang next_pic}</a>
</div>
</div>
<div class="album_inof">
<p id="a_set_title" class="albim_pic_title"><!--{if $pic['title']}-->$pic['title']<!--{else}--><!--{eval echo substr($pic['filename'], 0, strrpos($pic['filename'], '.'));}--><!--{/if}--></p>
<p class="album_at">
{lang upload_at} <!--{date($pic['dateline'])}--> ($pic['size'])
</p>
</div>
</div>
</div>
<!--{template common/footer}-->

View File

@@ -0,0 +1,41 @@
<!--{template common/header}-->
<!--{eval $_G['home_tpl_titles'] = array($album['albumname'], '{lang album}');}-->
<!--{eval $friendsname = array(1 => '{lang friendname_1}',2 => '{lang friendname_2}',3 => '{lang friendname_3}',4 => '{lang friendname_4}');}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2>{lang album}</h2>
</div>
<div class="album_view">
<div class="album_view_top cl">
<div class="album_name">
<div class="albumname z">$album['albumname']</div>
<span><!--{if $album['picnum']}-->{lang total} $album['picnum'] {lang album_pics}<!--{/if}--></span>
<!--{if ($_G['uid'] == $album['uid'] || checkperm('managealbum')) && $album['albumid'] > 0}-->
<a href="home.php?mod=spacecp&ac=album&op=delete&albumid=$album['albumid']&uid=$album['uid']&handlekey=delalbumhk_{$album['albumid']}" id="album_delete_$album['albumid']" class="dialog y">{lang delete}</a>
<!--{/if}-->
</div>
<div class="album_depict">$album['depict']</div>
</div>
<div class="album_view_list album_list">
<!--{if $count}-->
<ul id="waterfall" class="waterfall album_ul cl">
<!--{loop $list $key $value}-->
<li>
<div class="album_pic c">
<a href="home.php?mod=space&uid=$value['uid']&do=$do&picid=$value['picid']"><!--{if $value['pic']}--><img src="$value['pic']" alt="" /><!--{/if}--></a><!--{if $value[status] == 1}--><p>({lang moderate_need})</p><!--{/if}-->
</div>
</li>
<!--{/loop}-->
</ul>
<!--{if $multi}--><div class="pgs cl mtm">$multi</div><!--{/if}-->
<!--{else}-->
<div class="threadlist_box cl">
<h4>{lang no_album}</h4>
</div>
<!--{/if}-->
</div>
</div>
<!--{template common/footer}-->

View File

@@ -0,0 +1,147 @@
<!--{template common/header}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2>{lang blog}</h2>
<!--{if helper_access::check_module('blog') && $space[self]}-->
<div class="my"><a href="home.php?mod=spacecp&ac=blog" title="{lang post_new_blog}"><i class="dm-edit"></i></a></div>
<!--{/if}-->
</div>
<div class="dhnv flex-box cl">
<a href="home.php?mod=space&do=$do&view=we" class="flex{if $_GET['view'] == 'we'} mon{/if}">{lang friend_blog}</a>
<!--{if $space['self']}-->
<a href="home.php?mod=space&do=$do&view=me" class="flex{if $_GET['view'] == 'me'} mon{/if}">{lang my_blog}</a>
<!--{else}-->
<a href="home.php?mod=space&do=$do&view=me&uid={$uid}" class="flex{if $_GET['view'] == 'me' && !$space['self']} mon{/if}">{$navtitle}</a>
<!--{/if}-->
<a href="home.php?mod=space&do=$do&view=all" class="flex{if $_GET['view'] == 'all'} mon{/if}">{lang view_all}</a>
</div>
<!--{if $_GET['view'] == 'all'}-->
<div class="dhnavs_box">
<div id="dhnavs">
<div id="dhnavs_li">
<ul class="swiper-wrapper">
<li class="swiper-slide{if $orderactives['dateline']} mon{/if}"><a href="home.php?mod=space&do=blog&view=all">{lang newest_blog}</a></li>
<li class="swiper-slide{if $orderactives['hot']} mon{/if}"><a href="home.php?mod=space&do=blog&view=all&order=hot">{lang recommend_blog}</a></li>
<!--{if $category}-->
<!--{loop $category $value}-->
<li class="swiper-slide{if $_GET['catid'] == $value['catid']} mon{/if}">
<a href="home.php?mod=space&do=blog&catid={$value['catid']}&view=all&order={$_GET['order']}">{$value['catname']}</a>
</li>
<!--{/loop}-->
<!--{/if}-->
</ul>
</div>
</div>
</div>
<script>
if($("#dhnavs_li .mon").length > 0) {
var discuz_nav = $("#dhnavs_li .mon").offset().left + $("#dhnavs_li .mon").width() >= $(window).width() ? $("#dhnavs_li .mon").index() : 0;
}else{
var discuz_nav = 0;
}
new Swiper('#dhnavs_li', {
freeMode : true,
slidesPerView : 'auto',
initialSlide : discuz_nav,
onTouchMove: function(swiper){
Discuz_Touch_on = 0;
},
onTouchEnd: function(swiper){
Discuz_Touch_on = 1;
},
});
</script>
<!--{/if}-->
<!--{if $_GET['view'] == 'me' && $classarr}-->
<div class="dhnavs_box">
<div id="dhnavs">
<div id="dhnavs_li">
<ul class="swiper-wrapper">
<!--{loop $classarr $classid $classname}-->
<li class="swiper-slide{if $_GET['classid'] == $classid} mon{/if}"><a href="home.php?mod=space&uid={$space['uid']}&do=blog&classid={$classid}&view=me">{$classname}</a></li>
<!--{/loop}-->
</ul>
</div>
</div>
</div>
<script>
if($("#dhnavs_li .mon").length > 0) {
var discuz_nav = $("#dhnavs_li .mon").offset().left + $("#dhnavs_li .mon").width() >= $(window).width() ? $("#dhnavs_li .mon").index() : 0;
}else{
var discuz_nav = 0;
}
new Swiper('#dhnavs_li', {
freeMode : true,
slidesPerView : 'auto',
initialSlide : discuz_nav,
onTouchMove: function(swiper){
Discuz_Touch_on = 0;
},
onTouchEnd: function(swiper){
Discuz_Touch_on = 1;
},
});
</script>
<!--{/if}-->
<div class="threadlist_box cl">
<div class="threadlist cl">
<!--{if $list}-->
<ul>
<!--{loop $list $k $blog}-->
<li class="list cl">
<div class="threadlist_top cl">
<a href="home.php?mod=space&uid={$blog['uid']}&do=profile" class="avatar mimg z">
<!--{avatar($blog['uid'],'small')}-->
</a>
<div class="muser cl">
<h3>
<a href="home.php?mod=space&uid={$blog['uid']}&do=profile" id="author_{$blog['blogid']}" class="mmc">$blog['username']</a>
</h3>
<div class="mtime">
<span>{$blog['dateline']}</span>
<div class="doing_listgl y">
<!--{if $_GET['view'] == 'me'}-->
<!--{if $blog['uid'] == $_G['uid']}-->
<a href="home.php?mod=spacecp&ac=blog&blogid={$blog['blogid']}&op=delete&handlekey=delbloghk_{$blog['blogid']}" id="blog_delete_{$blog['blogid']}" class="y dialog">{lang delete}</a>
<a href="home.php?mod=spacecp&ac=blog&blogid={$blog['blogid']}&op=stick&stickflag=1&handlekey=stickbloghk_{$blog['blogid']}" id="blog_stick_{$blog['blogid']}" class="y dialog">{lang stick}</a>
<a href="home.php?mod=spacecp&ac=blog&blogid={$blog['blogid']}&op=edit" class="y">{lang edit}</a>
<!--{/if}-->
<!--{/if}-->
</div>
</div>
</div>
</div>
<a href="home.php?mod=space&uid={$blog['uid']}&do=blog&id={$blog['blogid']}">
<div class="threadlist_tit cl">
<!--{if $blog['catid']}-->
<span>[{$category[$blog['catid']]['catname']}]</span>
<!--{/if}-->
<!--{if $_GET['view'] == 'me' && $blog['classid']}-->
<span>[{$classarr[$blog['classid']]}]</span>
<!--{/if}-->
{$blog['subject']}
</div>
<div class="threadlist_mes cl">
{$blog['message']}
</div>
</a>
</li>
<!--{/loop}-->
<!--{if $multi}-->
<div class="pgs cl mtm">$multi</div>
<!--{/if}-->
</ul>
<!--{else}-->
<div class="threadlist_box mt10 cl">
<h4>{lang no_related_blog}</h4>
</div>
<!--{/if}-->
</div>
</div>
<!--{template common/footer}-->

View File

@@ -0,0 +1,104 @@
<!--{template common/header}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2>{lang blog}</h2>
<!--{if helper_access::check_module('blog') && $space['self']}-->
<div class="my"><a href="home.php?mod=spacecp&ac=blog" title="{lang post_new_blog}"><i class="dm-edit"></i></a></div>
<!--{/if}-->
</div>
<div class="viewthread">
<div class="view_tit">
<!--{if $classarr['classname']}-->
<em>[<a href="home.php?mod=space&uid=$blog['uid']&do=blog&classid=$blog['classid']&view=me">{$classarr['classname']}</a>]</em>
<!--{/if}-->
<!--{if $blog[catname]}-->
<em>[<a href="home.php?mod=space&do=blog&view=all&catid=$blog['catid']">$blog['catname']</a>]</em>
<!--{/if}-->
$blog['subject']
<!--{if $blog['status'] == 1}--><span>({lang pending})</span><!--{/if}-->
</div>
<div class="plc cl">
<div class="avatar"><img src="<!--{if !$blog['uid']}--><!--{avatar(0, 'small', true)}--><!--{else}--><!--{avatar($blog['uid'], 'small', true)}--><!--{/if}-->" /></div>
<div class="display pi pione">
<ul class="authi">
<li class="mtit">
<span class="y">
<!--{if $blog['friend']}-->
{$friendsname[$blog[friend]]}
<!--{/if}-->
</span>
<span class="z">
<!--{if $space['uid']}-->
<a href="home.php?mod=space&uid=$space['uid']">$space['username']</a>
<!--{/if}-->
</span>
</li>
<li class="mtime">
<span class="y"><i class="dm-eye"></i><em>$blog['viewnum']</em><i class="dm-chat-s"></i><em>$blog['replynum']</em></span>
<!--{date($blog['dateline'])}-->
</li>
</ul>
<div class="message">
$blog[message]
</div>
</div>
<div class="threadlist_foot cl">
<ul>
<!--{if helper_access::check_module('favorite')}-->
<li><a href="home.php?mod=spacecp&ac=favorite&type=blog&id=$blog['blogid']&spaceuid=$blog[uid]&handlekey=favoritebloghk_{$blog['blogid']}" id="a_favorite" class="dialog">{lang favorite}</a></li>
<!--{/if}-->
<!--{if helper_access::check_module('share')}--><li><a href="home.php?mod=spacecp&ac=share&type=blog&id=$blog['blogid']&handlekey=sharebloghk_{$blog['blogid']}" id="a_share" class="dialog">{lang share}</a></li><!--{/if}-->
<!--{if helper_access::check_module('friend')}--><li><a href="misc.php?mod=invite&action=blog&id=$blog['blogid']" id="a_invite" class="dialog">{lang invite}</a></li><!--{/if}-->
<!--{if $_G[uid] == $blog[uid] || checkperm('manageblog')}-->
<li><a href="home.php?mod=spacecp&ac=blog&blogid=$blog['blogid']&op=edit">{lang edit}</a></li>
<li><a href="home.php?mod=spacecp&ac=blog&blogid=$blog['blogid']&op=delete&handlekey=delbloghk_{$blog['blogid']}" id="blog_delete_$blog['blogid']" class="dialog">{lang delete}</a></li>
<!--{/if}-->
</ul>
</div>
</div>
<div class="discuz_x cl"></div>
<div class="doing_list_box threadlist cl">
<div class="txtlist">
<div class="mtit cl">
{lang blog_comment}
</div>
</div>
<ul>
<!--{loop $list $k $value}-->
<!--{template home/space_comment_li}-->
<!--{/loop}-->
</ul>
</div>
<!--{if !$blog[noreply] && helper_access::check_module('blog')}-->
<div class="discuz_x cl"></div>
<form id="quickcommentform_{$id}" action="home.php?mod=spacecp&ac=comment" method="post" autocomplete="off" onsubmit="ajaxpost('quickcommentform_{$id}', 'return_qcblog_$id');doane(event);">
<div class="post_from post_box">
<ul class="cl">
<li class="mtext">
<!--{if $_G['uid'] || $_G['group']['allowcomment']}-->
<textarea id="comment_message" onkeydown="ctrlEnter(event, 'commentsubmit_btn');" name="message" placeholder="{lang content_area}" rows="3" class="pt" fwin="reply"></textarea>
<!--{/if}-->
</li>
<li class="mtext">
<!--{template common/seccheck}-->
</li>
</ul>
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="referer" value="home.php?mod=space&uid=$blog['uid']&do=$do&id=$id" />
<input type="hidden" name="id" value="$id" />
<input type="hidden" name="idtype" value="blogid" />
<input type="hidden" name="handlekey" value="qcblog_{$id}" />
<input type="hidden" name="commentsubmit" value="true" />
<input type="hidden" name="quickcomment" value="true" />
<span id="return_qcblog_{$id}"></span>
</div>
<div class="post_btn"><button type="submit" name="commentsubmit_btn"value="true" id="commentsubmit_btn" class="pn{if !$_G['uid'] && !$_G['group']['allowcomment']} formdialog{/if}"><strong>{lang comment}</strong></button></div>
</form>
<!--{/if}-->
<!--{if $multi}--><div class="pgs cl mbm">$multi</div><!--{/if}-->
</div>
<!--{template common/footer}-->

View File

@@ -0,0 +1,67 @@
<li id="comment_$value['cid']_li" class="doing_list_li list cl">
<div class="threadlist_top cl">
<!--{if $value['author']}-->
<a href="home.php?mod=space&uid=$value['authorid']&do=profile" class="avatar mimg z">
<!--{avatar($value['authorid'], 'small')}-->
</a>
<!--{else}-->
<a href="javascript:;" class="avatar mimg z">
<img src="{STATICURL}image/magic/hidden.gif" alt="hidden" />
</a>
<!--{/if}-->
<div class="muser cl">
<h3>
<!--{if $value['author']}-->
<a href="home.php?mod=space&uid=$value['authorid']&do=profile" id="author_$value['cid']" class="mmc">{$value['author']}</a>
<!--{else}-->
$_G['setting']['anonymoustext']
<!--{/if}-->
</h3>
<div class="mtime">
<span><!--{date($value['dateline'])}--><!--{if $value['status'] == 1}--><b>({lang moderate_need})</b><!--{/if}--></span>
<div class="doing_listgl y">
<!--{if $value['authorid']!=$_G['uid'] && ($value['idtype'] != 'uid' || $space['self']) && $value['author']}-->
<a href="home.php?mod=spacecp&ac=comment&op=reply&cid=$value['cid']&feedid=$feedid&handlekey=replycommenthk_{$value['cid']}" id="c_$value['cid']_reply" class="y doing_gl dialog">{lang reply}</a>
<!--{/if}-->
<!--{if $_G['uid']}-->
<!--{if $value['authorid']==$_G['uid']}-->
<a href="home.php?mod=spacecp&ac=comment&op=edit&cid=$value['cid']&handlekey=editcommenthk_{$value['cid']}" id="c_$value['cid']_edit" class="y doing_gl{if $_G['uid']} dialog{/if}">{lang edit}</a>
<!--{/if}-->
<!--{if $value['authorid']==$_G['uid'] || $value['uid']==$_G['uid'] || checkperm('managecomment')}-->
<a href="home.php?mod=spacecp&ac=comment&op=delete&cid=$value['cid']&handlekey=delcommenthk_{$value['cid']}" id="c_$value['cid']_delete" class="y doing_gl{if $_G['uid']} dialog{/if}">{lang delete}</a>
<!--{/if}-->
<!--{/if}-->
</div>
</div>
</div>
</div>
<div id="comment_$value['cid']" class="do_comment{if $value['magicflicker']} magicflicker{/if}"><!--{if $value['status'] == 0 || $value['authorid'] == $_G['uid'] || $_G[adminid] == 1}-->$value['message']<!--{else}--> {lang moderate_not_validate} <!--{/if}--></div>
<div class="wall_magic_list cl">
<div class="y xw0">
<!--{if $value['authorid'] != $_G['uid'] && $value['author'] == "" && $_G['magic']['reveal']}-->
<a id="a_magic_reveal_{$value['cid']}" href="home.php?mod=magic&mid=reveal&idtype=cid&id=$value['cid']" class="y magic_doodle dialog"><img src="{STATICURL}image/magic/reveal.small.gif" alt="reveal" />{$_G['magic']['reveal']}</a>
<!--{/if}-->
<!--{hook/global_space_comment_op_mobile $k}-->
<!--{if $_G['setting']['magicstatus'] && $do != 'share'}-->
<!--{if $value['authorid'] == $_G['uid'] && !empty($_G['setting']['magics']['flicker'])}-->
<!--{if $value['magicflicker']}-->
<a id="a_magic_flicker_{$value['cid']}" href="home.php?mod=spacecp&ac=magic&op=cancelflicker&idtype=cid&id=$value['cid']&handlekey=cfhk_{$value['cid']}" class="y magic_doodle dialog"><img src="{STATICURL}image/magic/flicker.small.gif" alt="flicker" class="vm" />{lang cancel}{$_G['setting']['magics']['flicker']}</a>
<!--{else}-->
<a id="a_magic_flicker_{$value['cid']}" href="home.php?mod=magic&mid=flicker&idtype=cid&id=$value['cid']" class="y magic_doodle dialog"><img src="{STATICURL}image/magic/flicker.small.gif" alt="flicker" class="vm" />{$_G['setting']['magics']['flicker']}</a>
<!--{/if}-->
<!--{/if}-->
<!--{if $value['authorid'] == $_G['uid'] && !empty($_G['setting']['magics']['anonymouspost']) && $value['author']}-->
<a id="a_magic_anonymouspost_{$value['cid']}" href="home.php?mod=magic&mid=anonymouspost&idtype=cid&id=$value['cid']" class="y magic_doodle dialog"><img src="{STATICURL}image/magic/anonymouspost.small.gif" alt="flicker" class="vm" />{$_G['setting']['magics']['anonymouspost']}</a>
<!--{/if}-->
<!--{if !empty($_G['setting']['magics']['namepost']) && !$value['author']}-->
<a id="a_magic_namepost_{$value['cid']}" href="home.php?mod=magic&mid=namepost&idtype=cid&id=$value['cid']" class="y magic_doodle dialog"><img src="{STATICURL}image/magic/namepost.small.gif" alt="flicker" class="vm" />{$_G['setting']['magics']['namepost']}</a>
<!--{/if}-->
<!--{/if}-->
</div>
</div>
<!--{hook/global_comment_bottom_mobile}-->
</li>

View File

@@ -0,0 +1,73 @@
<!--{template common/header}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2>{lang doing}</h2>
</div>
<div class="dhnv flex-box cl">
<a href="home.php?mod=space&do=$do&view=we" class="flex{if $_GET['view'] == 'we'} mon{/if}">{lang me_friend_doing}</a>
<a href="home.php?mod=space&do=$do&view=me" class="flex{if $_GET['view'] == 'me'} mon{/if}">{lang doing_view_me}</a>
<a href="home.php?mod=space&do=$do&view=all" class="flex{if $_GET['view'] == 'all'} mon{/if}">{lang view_all}</a>
</div>
<div class="doing_list threadlist_box cl">
<!--{if helper_access::check_module('doing')}-->
<!--{template home/space_doing_form}-->
<!--{/if}-->
<div class="doing_list_box threadlist cl">
<!--{if $dolist}-->
<ul>
<!--{loop $dolist $dv}-->
<li class="doing_list_li list cl">
<!--{eval $doid = $dv['doid'];}-->
<!--{eval $_GET['key'] = $key = random(8);}-->
<div class="threadlist_top cl">
<!--{if empty($diymode)}-->
<a href="home.php?mod=space&uid=$dv['uid']&do=profile" class="avatar mimg z">
<!--{avatar($dv['uid'],'small')}-->
</a>
<!--{/if}-->
<div class="muser cl">
<h3>
<!--{if empty($diymode)}-->
<a href="home.php?mod=space&uid=$dv['uid']&do=profile" id="author_$value['cid']" class="mmc">$dv['username']</a>
<!--{/if}-->
</h3>
<div class="mtime">
<span><!--{date($dv['dateline'], 'u')}--></span>
<div class="doing_listgl y">
<!--{if $dv['uid']==$_G['uid']}-->
<a href="home.php?mod=spacecp&ac=doing&op=delete&doid=$doid&id=$dv['id']&handlekey=doinghk_{$doid}_$dv['id']" id="{$key}_doing_delete_{$doid}_{$dv['id']}" class="y doing_gl{if $_G['uid']} dialog{/if}">{lang delete}</a>
<!--{/if}-->
<!--{if helper_access::check_module('doing')}-->
<a href="home.php?mod=spacecp&ac=doing&op=docomment&handlekey=msg_0&doid=$doid&id=0&key=$key" class="y doing_gl{if $_G['uid']} dialog{/if}">{lang reply}</a>
<!--{/if}-->
</div>
</div>
</div>
</div>
<div id="comment_$value['cid']"class="do_comment{if $value['magicflicker']} magicflicker{/if}">$dv[message]<!--{if $dv['status'] == 1}--> <span style="font-weight: bold;">({lang moderate_need})</span><!--{/if}--></div>
<div id="{$key}dl{$doid}" class="do_comment">
<!--{eval $list = $clist[$doid];}-->
<div class="quote" id="{$key}_$doid"{if empty($list) || !$showdoinglist[$doid]} style="display:none;"{/if}>
<span id="{$key}_form_{$doid}_0"></span>
<!--{template home/space_doing_li}-->
</div>
</li>
<!--{/loop}-->
<!--{if $multi}-->
<div class="pgs cl mtm">$multi</div>
<!--{/if}-->
</ul>
<!--{else}-->
<div class="threadlist_box mt10 cl">
<h4>{lang doing_no_replay}</h4>
</div>
<!--{/if}-->
</div>
</div>
<!--{template common/footer}-->

View File

@@ -0,0 +1,27 @@
<div id="moodfm" class="moodfm">
<form method="post" autocomplete="off" id="mood_addform" action="home.php?mod=spacecp&ac=doing&view=$_GET['view']">
<div class="moodfm_post">
<div class="moodfm_text">
<textarea name="message" id="message" class="xg1" placeholder="{$defaultstr}" rows="3"></textarea>
</div>
<div class="moodfm_f">
<div class="moodfm_btn">
<button type="submit" name="add" id="add" class="pgsbtn button">{lang publish}</button>
</div>
<!--{if $_G['group']['maxsigsize']}-->
<div class="moodfm_signature">
<label for="to_sign">
<input type="checkbox" name="to_signhtml" id="to_sign" class="pc" value="1" />
<span>{lang doing_update_personal_signature}</span>
</label>
</div>
<!--{/if}-->
</div>
</div>
<input type="hidden" name="addsubmit" value="true" />
<input type="hidden" name="refer" value="$theurl" />
<input type="hidden" name="topicid" value="$topicid" />
<input type="hidden" name="formhash" value="{FORMHASH}" />
</form>
</div>

View File

@@ -0,0 +1,16 @@
<!--{if $list}-->
<ul>
<!--{loop $list $value}-->
<!--{if $value[uid]}-->
<li class="ptn pbn{$value['class']}" style="$value['style']">
<a href="home.php?mod=space&uid=$value[uid]" class="lit">$value[username]</a>: $value[message] <span class="xg1"><!--{date($value['dateline'], 'n-j H:i')}--></span>
<!--{if $value[uid]==$_G[uid] || $dv['uid']==$_G[uid] || checkperm('managedoing')}-->
<a href="home.php?mod=spacecp&ac=doing&op=delete&doid=$value['doid']&id=$value['id']&handlekey=doinghk_{$value['doid']}_$value['id']" id="{$_GET['key']}_doing_delete_{$value['doid']}_{$value['id']}" class="dialog">{lang delete}</a>
<!--{/if}-->
<div id="{$_GET['key']}_form_{$value['doid']}_{$value['id']}"></div>
</li>
<!--{/if}-->
<!--{/loop}-->
</ul>
<!--{/if}-->
<div class="tri"></div>

View File

@@ -0,0 +1,151 @@
{eval
$space_uid = $space['uid'];
$filter = array( 'common' => '{lang have_posted}', 'save' => '{lang draft}', 'close' => '{lang closed}', 'aduit' => '{lang pending}', 'recyclebin' => '{lang recyclebin}');
$_G['home_tpl_spacemenus'][] = "<a href=\"home.php?mod=space&uid=$space_uid&do=thread&view=me\">{lang credit_rating}</a>";
}
<!--{template common/header}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2><a href="home.php?mod=space&uid=$space['uid']&do=trade&view=me">{lang trade}{lang credit_rating}</a></h2>
<div class="my"><a href="index.php"><i class="dm-house"></i></a></div>
</div>
<!--{if $space['self']}-->
<div class="dhnav_box">
<div id="dhnav">
<div id="dhnav_li">
<ul class="swiper-wrapper">
<li class="swiper-slide"><a href="home.php?mod=space&do=trade&view=we">{lang friend_trade}</a></li>
<li class="swiper-slide"><a href="home.php?mod=space&do=trade&view=me">{lang my_trade}</a></li>
<li class="swiper-slide"><a href="home.php?mod=space&do=trade&view=tradelog">{lang trade_log}</a></li>
<li class="swiper-slide mon"><a href="home.php?mod=space&do=trade&view=eccredit">{lang credit_rating}</a></li>
<!--{if $_G['group']['allowposttrade']}-->
<!--{if $_G['setting']['tradeforumid']}-->
<li class="swiper-slide"><a href="forum.php?mod=post&action=newthread&fid=$_G['setting']['tradeforumid']&special=2">{lang create_new_trade}</a></li>
<!--{else}-->
<li class="swiper-slide"><a href="forum.php?mod=misc&action=nav&special=2">{lang create_new_trade}</a></li>
<!--{/if}-->
<!--{/if}-->
</ul>
</div>
</div>
</div>
<script>
if($("#dhnav_li .mon").length > 0) {
var discuz_nav = $("#dhnav_li .mon").offset().left + $("#dhnav_li .mon").width() >= $(window).width() ? $("#dhnav_li .mon").index() : 0;
}else{
var discuz_nav = 0;
}
new Swiper('#dhnav_li', {
freeMode : true,
slidesPerView : 'auto',
initialSlide : discuz_nav,
onTouchMove: function(swiper){
Discuz_Touch_on = 0;
},
onTouchEnd: function(swiper){
Discuz_Touch_on = 1;
},
});
</script>
<!--{else}-->
<!--{if $_GET['view']=='me'}-->
<!--{eval $actives['onlyuser'] = true;}-->
<!--{/if}-->
<div class="dhnavs_box">
<div id="dhnavs">
<div id="dhnavs_li">
<ul class="swiper-wrapper">
<!--{if $space['uid'] > 0}-->
<li class="swiper-slide"><a href="home.php?mod=space&do=trade&view=onlyuser">{lang sale_of_goods}</a></li>
<li class="swiper-slide"><a href="home.php?mod=space&do=trade&view=eccredit">{lang credit_rating}</a></li>
<!--{/if}-->
</ul>
</div>
</div>
</div>
<!--{/if}-->
<div class="bodybox cl">
<div class="flex-box p10 cl">
<div class="flex">{lang eccredit_buyerpercent}: $sellerpercent%;</div>
<div class="flex">{lang eccredit_sellerpercent}: $buyerpercent%;</div>
<div class="flex">{lang regdate}: $member['regdate']</div>
</div>
<div class="discuz_x cl"></div>
<div class="cl">
<ul class="post_box cl">
<li class="flex-box mli mtit cl">{lang eccredit_sellerinfo} $member[sellercredit] <img src="{STATICURL}image/traderank/seller/$member['sellerrank'].gif" class="vm" /></li>
<li class="flex-box mli mtit cl">
<div class="flex"></div>
<div class="flex-2"><span class="y">{lang eccredit_1month}</span></div>
<div class="flex-2"><span class="y">{lang eccredit_6month}</span></div>
<div class="flex-2"><span class="y">{lang eccredit_total}</span></div>
</li>
<li class="flex-box mli cl">
<div class="flex xs1"><img src="{STATICURL}image/traderank/good.gif" width="14" height="16" class="vm" /> <span style="color:red">{lang eccredit_good}</span></div>
<div class="flex-2"><span class="y">$caches['sellercredit']['thismonth']['good']</span></div>
<div class="flex-2"><span class="y">$caches['sellercredit']['halfyear']['good']</span></div>
<div class="flex-2"><span class="y">$caches['sellercredit']['all']['good']</span></div>
</li>
<li class="flex-box mli cl">
<div class="flex xs1"><img src="{STATICURL}image/traderank/soso.gif" width="14" height="16" class="vm" /> <span style="color:green">{lang eccredit_soso}</span></div>
<div class="flex-2"><span class="y">$caches['sellercredit']['thismonth']['soso']</span></div>
<div class="flex-2"><span class="y">$caches['sellercredit']['halfyear']['soso']</span></div>
<div class="flex-2"><span class="y">$caches['sellercredit']['all']['soso']</span></div>
</li>
<li class="flex-box mli cl">
<div class="flex xs1"><img src="{STATICURL}image/traderank/bad.gif" width="14" height="16" class="vm" /> {lang eccredit_bad}</div>
<div class="flex-2"><span class="y">$caches['sellercredit']['thismonth']['bad']</span></div>
<div class="flex-2"><span class="y">$caches['sellercredit']['halfyear']['bad']</span></div>
<div class="flex-2"><span class="y">$caches['sellercredit']['all']['bad']</span></div>
</li>
<li class="flex-box mli cl">
<div class="flex xs1">{lang eccredit_total}</div>
<div class="flex-2"><span class="y">$caches['sellercredit']['thismonth']['total']</span></div>
<div class="flex-2"><span class="y">$caches['sellercredit']['halfyear']['total']</span></div>
<div class="flex-2"><span class="y">$caches['sellercredit']['all']['total']</span></div>
</li>
</ul>
<div class="discuz_x cl"></div>
<ul class="post_box cl">
<li class="flex-box mli mtit cl">{lang eccredit_buyerinfo} $member['buyercredit'] <img src="{STATICURL}image/traderank/buyer/$member['buyerrank'].gif" class="vm" /></li>
<li class="flex-box mli mtit cl">
<div class="flex"></div>
<div class="flex-2"><span class="y">{lang eccredit_1month}</span></div>
<div class="flex-2"><span class="y">{lang eccredit_6month}</span></div>
<div class="flex-2"><span class="y">{lang eccredit_total}</span></div>
</li>
<li class="flex-box mli cl">
<div class="flex xs1"><img src="{STATICURL}image/traderank/good.gif" width="14" height="16" class="vm" /> <span style="color:red">{lang eccredit_good}</span></div>
<div class="flex-2"><span class="y">$caches['buyercredit']['thismonth']['good']</span></div>
<div class="flex-2"><span class="y">$caches['buyercredit']['halfyear']['good']</span></div>
<div class="flex-2"><span class="y">$caches['buyercredit']['all']['good']</span></div>
</li>
<li class="flex-box mli cl">
<div class="flex xs1"><img src="{STATICURL}image/traderank/soso.gif" width="14" height="16" class="vm" /> <span style="color:green">{lang eccredit_soso}</span></div>
<div class="flex-2"><span class="y">$caches['buyercredit']['thismonth']['soso']</span></div>
<div class="flex-2"><span class="y">$caches['buyercredit']['halfyear']['soso']</span></div>
<div class="flex-2"><span class="y">$caches['buyercredit']['all']['soso']</span></div>
</li>
<li class="flex-box mli cl">
<div class="flex xs1"><img src="{STATICURL}image/traderank/bad.gif" width="14" height="16" class="vm" /> {lang eccredit_bad}</div>
<div class="flex-2"><span class="y">$caches['buyercredit']['thismonth']['bad']</span></div>
<div class="flex-2"><span class="y">$caches['buyercredit']['halfyear']['bad']</span></div>
<div class="flex-2"><span class="y">$caches['buyercredit']['all']['bad']</span></div>
</li>
<li class="flex-box mli cl">
<div class="flex xs1">{lang eccredit_total}</div>
<div class="flex-2"><span class="y">$caches['buyercredit']['thismonth']['total']</span></div>
<div class="flex-2"><span class="y">$caches['buyercredit']['halfyear']['total']</span></div>
<div class="flex-2"><span class="y">$caches['buyercredit']['all']['total']</span></div>
</li>
</ul>
<div class="discuz_x cl"></div>
<div id="ajaxrate"></div>
<!--{if $_G['uid']}-->
<script type="text/javascript">ajaxget('home.php?mod=spacecp&ac=eccredit&op=list&uid=$uid', 'ajaxrate');var explainmenu='ajax_explain_menu';</script>
<!--{/if}-->
</div>
</div>
<!--{template common/footer}-->

View File

@@ -0,0 +1,78 @@
<!--{template common/header}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2>{lang myfavorite}</h2>
<div class="my"><a href="index.php"><i class="dm-house"></i></a></div>
</div>
<div class="dhnv flex-box cl" id="dhnav_li">
<ul class="swiper-wrapper">
<a href="home.php?mod=space&uid={$_G['uid']}&do=favorite&view=me" class="swiper-slide flex<!--{if !in_array($_GET['type'], array('thread','forum','group','blog','album','article'))}--> mon<!--{/if}-->">{lang favorite_all}</a>
<!--{if helper_access::check_module('forum')}-->
<a href="home.php?mod=space&uid={$_G['uid']}&do=favorite&view=me&type=thread" class="swiper-slide flex<!--{if $_GET['type'] == 'thread'}--> mon<!--{/if}-->">{lang favorite_thread}</a>
<a href="home.php?mod=space&uid={$_G['uid']}&do=favorite&view=me&type=forum" class="swiper-slide flex<!--{if $_GET['type'] == 'forum'}--> mon<!--{/if}-->">{lang favorite_forum}</a>
<!--{/if}-->
<!--{if helper_access::check_module('group')}-->
<a href="home.php?mod=space&uid={$_G['uid']}&do=favorite&view=me&type=group" class="swiper-slide flex<!--{if $_GET['type'] == 'group'}--> mon<!--{/if}-->">{lang favorite_group}</a>
<!--{/if}-->
<!--{if helper_access::check_module('blog')}-->
<a href="home.php?mod=space&uid={$_G['uid']}&do=favorite&view=me&type=blog" class="swiper-slide flex<!--{if $_GET['type'] == 'blog'}--> mon<!--{/if}-->">{lang favorite_blog}</a>
<!--{/if}-->
<!--{if helper_access::check_module('album')}-->
<a href="home.php?mod=space&uid={$_G['uid']}&do=favorite&view=me&type=album" class="swiper-slide flex<!--{if $_GET['type'] == 'album'}--> mon<!--{/if}-->">{lang favorite_album}</a>
<!--{/if}-->
<!--{if helper_access::check_module('portal')}-->
<a href="home.php?mod=space&uid={$_G['uid']}&do=favorite&view=me&type=article" class="swiper-slide flex<!--{if $_GET['type'] == 'article'}--> mon<!--{/if}-->">{lang favorite_article}</a>
<!--{/if}-->
<!--{hook/space_favorite_nav_extra_mobile}-->
</ul>
</div>
<script>
if($("#dhnav_li .mon").length > 0) {
var discuz_nav = $("#dhnav_li .mon").offset().left + $("#dhnav_li .mon").width() >= $(window).width() ? $("#dhnav_li .mon").index() : 0;
}else{
var discuz_nav = 0;
}
new Swiper('#dhnav_li', {
freeMode : true,
slidesPerView : 'auto',
initialSlide : discuz_nav,
onTouchMove: function(swiper){
Discuz_Touch_on = 0;
},
onTouchEnd: function(swiper){
Discuz_Touch_on = 1;
},
});
</script>
<!--{if $_GET['type'] == 'forum'}-->
<!--{if $list}-->
<div class="findbox mt10 cl">
<ul>
<!--{loop $list $k $value}-->
<li class="sclist"><a href="home.php?mod=spacecp&ac=favorite&op=delete&favid=$k" class="dialog mdel"><i class="dm-error"></i></a><a href="$value['url']">{$value['icon']}{$value['title']}</a></li>
<!--{/loop}-->
</ul>
</div>
<!--{else}-->
<div class="threadlist_box mt10 cl">
<h4>{lang no_favorite_yet}</h4>
</div>
<!--{/if}-->
<!--{else}-->
<!--{if $list}-->
<div class="findbox mt10 cl">
<ul>
<!--{loop $list $k $value}-->
<li class="sclist"><a href="home.php?mod=spacecp&ac=favorite&op=delete&favid=$k" class="dialog mdel"><i class="dm-error"></i></a><a href="$value['url']">{$value['icon']}{$value['title']}</a></li>
<!--{/loop}-->
</ul>
</div>
<!--{else}-->
<div class="threadlist_box mt10 cl">
<h4>{lang no_favorite_yet}</h4>
</div>
<!--{/if}-->
<!--{/if}-->
{$multi}
<!--{eval $nofooter = true;}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,38 @@
<div class="home_feed_c cl">
<div class="home_feed_title">
<!--{if $value['uid'] && empty($_G['home']['tpl']['hidden_more'])}-->
<a href="home.php?mod=spacecp&ac=feed&op=menu&feedid=$value['feedid']" class="o{if $_G['uid'] == $value['uid']} del{/if} dialog" id="a_feed_menu_$value['feedid']" title="{if $_G['uid'] != $value['uid']}{lang shield_feed}{else}{lang delete_feed}{/if}" style="display:none;">{lang menu}</a>
<!--{/if}-->
<p>
$value['title_template']
<!--{if $value['new']}--><span style="color:red;">New</span> <!--{/if}-->
<span><!--{date($value['dateline'], 'u')}--></span>
</p>
</div>
<!--{if $value['image_1']}-->
<img src="$value['image_1']" class="{if $value['body_template']}mbn{else}mbm{/if}" />
<!--{/if}-->
<!--{if $value['image_2']}-->
<img src="$value['image_2']" class="{if $value['body_template']}mbn{else}mbm{/if}" />
<!--{/if}-->
<!--{if $value['image_3']}-->
<img src="$value['image_3']" class="{if $value['body_template']}mbn{else}mbm{/if}" />
<!--{/if}-->
<!--{if $value['image_4']}-->
<img src="$value['image_4']" class="{if $value['body_template']}mbn{else}mbm{/if}" />
<!--{/if}-->
<!--{if $value['body_template']}-->
<div class="home_mess">$value['body_template']</div>
<!--{/if}-->
<!--{if $value['body_data']['player']}-->
{$value['body_data']['player']}
<!--{/if}-->
<!--{if $user_list[$value['hash_data']]}-->
<p>{lang other_participants}:<!--{eval echo implode(', ', $user_list[$value['hash_data']]);}--></p>
<!--{/if}-->
<!--{if trim(str_replace('&nbsp;', '', $value['body_general']))}-->
<div class="quote{if $value['image_1']} z{/if}"><blockquote>$value['body_general']</blockquote></div>
<!--{/if}-->
</div>

View File

@@ -0,0 +1,45 @@
<!--{template common/header}-->
<div class="header cl">
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
<h2><!--{if empty($_G['setting']['sessionclose']) && $a_actives['onlinemember']}-->{lang online_member}<!--{elseif $a_actives['visitor']}-->{lang my_visitor}<!--{elseif $a_actives['trace']}-->{lang my_trace}<!--{else}-->{lang my_friends}<!--{/if}--></h2>
<div class="my"><a href="index.php"><i class="dm-house"></i></a></div>
</div>
<div class="dhnv flex-box cl">
<a href="home.php?mod=space&do=friend" class="flex<!--{if $a_actives['me']}--> mon<!--{/if}-->">{lang my_friends}</a>
<!--{if empty($_G['setting']['sessionclose'])}-->
<a href="home.php?mod=space&do=friend&view=online&type=member" class="flex<!--{if $a_actives['onlinemember']}--> mon<!--{/if}-->">{lang online_member}</a>
<!--{/if}-->
<a href="home.php?mod=space&do=friend&view=visitor" class="flex<!--{if $a_actives['visitor']}--> mon<!--{/if}-->">{lang my_visitor}</a>
<a href="home.php?mod=space&do=friend&view=trace" class="flex<!--{if $a_actives['trace']}--> mon<!--{/if}-->">{lang my_trace}</a>
</div>
<!--{if $space['self']}-->
<!--{if $list}-->
<div id="friend_ul" class="imglist mt10 cl">
<ul>
<!--{loop $list $key $value}-->
<!--{if $value['username'] == ''}-->
<li>
<span class="mimg"><a href="home.php?mod=space&uid=$value['uid']"><img src="{STATICURL}image/magic/hidden.gif"></a></span>
<p class="mtit"><a href="javascript:;"><span>{lang anonymity}</span></a></p>
</li>
<!--{else}-->
<li>
<span class="mimg"><a href="home.php?mod=space&uid=$value['uid']"><img src="<!--{avatar($value['uid'], 'small', true)}-->"></a></span>
<p class="mtit">
<!--{if $_GET['view'] == 'me'}-->
<a href="home.php?mod=spacecp&ac=friend&op=ignore&uid=$value['uid']&handlekey=delfriendhk_{$value['uid']}" id="a_ignore_$key" class="dialog mico">{lang delete}</a>
<!--{/if}-->
<a href="home.php?mod=space&do=pm&subop=view&touid=$value['uid']" class="mico">{lang send_pm}</a>
<a href="home.php?mod=space&uid=$value['uid']"><span{eval g_color($value['groupid']);}>$value['username']</span></a>
</p>
<p class="mtxt"><i class="dm-chat-s"></i>$value['recentnote']</p>
</li>
<!--{/if}-->
<!--{/loop}-->
</ul>
</div>
<!--{if $multi}-->$multi<!--{/if}-->
<!--{/if}-->
<!--{/if}-->
<!--{eval $nofooter = true;}-->
<!--{template common/footer}-->

Some files were not shown because too many files have changed in this diff Show More