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,30 @@
<!--{template common/header}-->
<!--{if $applylist}-->
<h2>{lang activity_new_join} ($activity[applynumber] {lang activity_member_unit})</h2>
<table class="dt">
<tr>
<th width="140">&nbsp;</th>
<th>{lang leaveword}</th>
<!--{if $activity['cost']}-->
<th width="60">{lang activity_payment}</th>
<!--{/if}-->
<th width="110">{lang activity_jointime}</th>
</tr>
<!--{loop $applylist $apply}-->
<tr>
<td>
<a target="_blank" href="home.php?mod=space&uid=$apply[uid]" class="ratl vm"><!--{echo avatar($apply['uid'], 'small')}--></a>
<a target="_blank" href="home.php?mod=space&uid=$apply[uid]">$apply[username]</a>
</td>
<td><!--{if $apply[message]}--><p>$apply[message]</p><!--{/if}--></td>
<!--{if $activity['cost']}-->
<td><!--{if $apply[payment] >= 0}-->$apply[payment] {lang payment_unit}<!--{else}-->{lang activity_self}<!--{/if}--></td>
<!--{/if}-->
<td>$apply[dateline]</td>
</tr>
<!--{/loop}-->
</table>
<!--{/if}-->
<br \>
<div class="pgs mbm cl">$multi</div>
<!--{template common/footer}-->

View File

@@ -0,0 +1,108 @@
<!--{template common/header}-->
<!--{if empty($_GET['infloat'])}-->
<div id="pt" class="bm cl">
<div class="z"><a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em> $navigation</div>
</div>
<div id="ct" class="wp cl">
<div class="mn">
<div class="bm bw0">
<!--{/if}-->
<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}"{if !empty($_GET['infloat']) && empty($_GET['from'])} onsubmit="ajaxpost('applylistform', 'return_$_GET['handlekey']', 'return_$_GET['handlekey']', 'onerror');return false;"{/if} style="width: 590px;">
<div class="f_c">
<h3 class="flb">
<em id="return_$_GET['handlekey']"><!--{if $isactivitymaster}-->{lang activity_applylist_manage}<!--{else}-->{lang activity_applylist}<!--{/if}--></em>
<span>
<!--{if !empty($_GET['infloat'])}--><a href="javascript:;" class="flbc" onclick="hideWindow('$_GET['handlekey']')" title="{lang close}">{lang close}</a><!--{/if}-->
</span>
</h3>
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="operation" value="" />
<!--{if !empty($_GET['infloat'])}--><input type="hidden" name="handlekey" value="$_GET['handlekey']" /><!--{/if}-->
<div class="c floatwrap">
<table class="list" cellspacing="0" cellpadding="0" style="table-layout: fixed;">
<thead>
<tr>
<!--{if $isactivitymaster}--><th width="25">&nbsp;</th><!--{/if}-->
<th width="105">{lang activity_join_members}</th>
<th>{lang leaveword}</th>
<th width="70">{lang extension_project}</th>
<!--{if $activity['cost']}-->
<th width="70">{lang activity_payment}</th>
<!--{/if}-->
<th width="70">{lang activity_jointime}</th>
<!--{if $isactivitymaster}--><th width="70">{lang status}</th><!--{/if}-->
</tr>
</thead>
<!--{loop $applylist $apply}-->
<tr>
<!--{if $isactivitymaster}-->
<td>
<!--{if $apply[uid] != $_G[uid]}-->
<input type="checkbox" name="applyidarray[]" class="pc" value="$apply[applyid]" />
<!--{else}-->
<input type="checkbox" class="pc" disabled="disabled" />
<!--{/if}-->
</td>
<!--{/if}-->
<td>
<a target="_blank" href="home.php?mod=space&uid=$apply[uid]">$apply[username]</a>
<!--{if $apply[uid] != $_G[uid]}-->
<a href="home.php?mod=spacecp&ac=pm&op=showmsg&handlekey=showmsg_$apply[uid]&touid=$apply[uid]&pmid=0&daterange=2" onclick="hideMenu('aplayuid{$apply[uid]}_menu');showWindow('sendpm', this.href)" title="{lang send_pm}"><i class="fico-email fc-n"></i></a>
<!--{/if}-->
</td>
<td><!--{if $apply[message]}-->$apply[message]<!--{/if}--></td>
<td>
<!--{if $apply[ufielddata]}-->
<div><a href="javascript:;" id="actl_$apply[uid]" class="showmenu" onmouseover="showMenu({'ctrlid':this.id, 'pos':'34!'});">{lang views}</a></div>
<div id="actl_$apply[uid]_menu" class="p_pop p_opt actl_pop" style="display:none;"><ul>$apply[ufielddata]</ul></div>
<!--{else}-->
{lang no_informations}
<!--{/if}-->
</td>
<!--{if $activity['cost']}-->
<td><!--{if $apply[payment] >= 0}-->$apply[payment] {lang payment_unit}<!--{else}-->{lang activity_self}<!--{/if}--></td>
<!--{/if}-->
<td>$apply[dateline]</td>
<!--{if $isactivitymaster}-->
<td><!--{if $apply[verified] == 1}-->
<i class="fico-valid fc-v vm" title="{lang activity_allow_join}"></i>{lang activity_allow_join}
<!--{elseif $apply[verified] == 2}-->
{lang activity_do_replenish}
<!--{else}-->
{lang activity_cant_audit}
<!--{/if}-->
</td>
<!--{/if}-->
</tr>
<!--{/loop}-->
</table>
</div>
</div>
<!--{if $isactivitymaster}-->
<div class="o pns">
<label{if !empty($_GET['infloat'])} class="z"{/if}><input class="pc" type="checkbox" name="chkall" onclick="checkall(this.form, 'applyid')" />{lang checkall} </label>
<label>{lang activity_ps}: <input name="reason" class="px vm" size="25" /> </label>
<button class="pn pnc vm" type="submit" value="true" name="applylistsubmit"><span>{lang confirm}</span></button>
<button class="pn vm" type="submit" value="true" name="applylistsubmit" onclick="$('applylistform').operation.value='replenish';"><span>{lang to_improve}</span></button>
<button class="pn vm" type="submit" value="true" name="applylistsubmit" onclick="$('applylistform').operation.value='notification';"><span>{lang send_notification}</span></button>
<button class="pn vm" type="submit" value="true" name="applylistsubmit" onclick="$('applylistform').operation.value='delete';"><span>{lang activity_refuse}</span></button>
</div>
<!--{/if}-->
</form>
<!--{if !empty($_GET['infloat'])}-->
<script type="text/javascript" reload="1">
function succeedhandle_$_GET['handlekey'](locationhref) {
ajaxget('forum.php?mod=viewthread&tid=$_G[tid]&viewpid=$_GET[pid]', 'post_$_GET[pid]');
hideWindow('$_GET['handlekey']');
}
</script>
<!--{/if}-->
<!--{if empty($_GET['infloat'])}-->
</div>
</div>
</div>
<!--{/if}-->
<!--{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,82 @@
<!--{subtemplate common/header_ajax}-->
<!--{if $_GET['action'] == 'quickclear'}-->
<div class="tm_c">
<h3 class="flb">
<em id="return_$_GET['handlekey']">{lang quickclear}</em>
<span>
<a href="javascript:;" class="flbc" onclick="hideWindow('$_GET['handlekey']')" title="{lang close}">{lang close}</a>
</span>
</h3>
<form id="qclearform" method="post" autocomplete="off" action="forum.php?mod=ajax&action=quickclear&inajax=1" onsubmit="ajaxpost(this.id, 'return_$_GET['handlekey']', 'return_$_GET['handlekey']');return false;">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="uid" value="$uid" />
<input type="hidden" name="redirect" value="{echo dreferer()}" />
<input type="hidden" name="qclearsubmit" value="1" />
<input type="hidden" name="handlekey" value="$_GET['handlekey']" />
<div class="c">
<ul>
<li><label><input type="checkbox" name="operations[]" class="pc" value="avatar" />{lang quickclear_avatar}</label></li>
<li><label><input type="checkbox" name="operations[]" class="pc" value="sightml" />{lang quickclear_sightml}</label></li>
<li><label><input type="checkbox" name="operations[]" class="pc" value="customstatus" />{lang quickclear_customstatus}</label></li>
</ul>
<br />
<!--{if $crimenum_avatar > 0}-->
<div style="clear: both; text-align: right;">{lang quickclear_crime_avatar_nums}</div>
<!--{/if}-->
<!--{if $crimenum_sightml > 0}-->
<div style="clear: both; text-align: right;">{lang quickclear_crime_sightml_nums}</div>
<!--{/if}-->
<!--{if $crimenum_customstatus > 0}-->
<div style="clear: both; text-align: right;">{lang quickclear_crime_customstatus_nums}</div>
<!--{/if}-->
<div class="tpclg">
<h4 class="cl"><a onclick="showselect(this, 'reason', 'reasonselect')" class="dpbtn" href="javascript:;">^</a><span>{lang admin_reason}:</span></h4>
<p>
<textarea id="reason" name="reason" class="pt" onkeyup="seditor_ctlent(event, '$(\'modsubmit\').click();')" rows="3"></textarea>
<ul id="reasonselect" style="display: none"><!--{echo modreasonselect()}--></ul>
</p>
</div>
</div>
<p class="o">
<label for="sendreasonpm"><input type="checkbox" name="sendreasonpm" id="sendreasonpm" class="pc"{if $_G['group']['reasonpm'] == 2 || $_G['group']['reasonpm'] == 3} checked="checked" disabled="disabled"{/if} />{lang admin_pm}</label>
<button type="submit" name="modsubmit" id="modsubmit" class="pn pnc" value="true"><strong>{lang submit}</strong></button>
</p>
</form>
</div>
<!--{elseif $_GET['action'] == 'setnav'}-->
<div class="tm_c">
<h3 class="flb">
<em id="return_$_GET['handlekey']">$navtitle</em>
<span>
<a href="javascript:;" class="flbc" onclick="hideWindow('$_GET['handlekey']')" title="{lang close}">{lang close}</a>
</span>
</h3>
<form id="setnav" method="post" autocomplete="off" action="forum.php?mod=ajax&action=setnav&type=$type&do=$do" onsubmit="ajaxpost('setnav', 'message_setnav', 'message_setnav');return false;">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="type" value="$type" />
<input type="hidden" name="funcsubmit" value="1" />
<input type="hidden" name="handlekey" value="$_GET['handlekey']" />
<div class="c" id="message_setnav">
<!--{if $do == 'open'}-->
<ul>
<!--{if !in_array($type, array('wall', 'friend', 'medal', 'magic', 'favorite'))}-->
<li><label><input type="checkbox" name="location[header]" class="pc" value="1" />{lang main_nav}</label></li>
<!--{/if}-->
<!--{if $type != 'forum'}-->
<li><label><input type="checkbox" name="location[quick]" class="pc" value="1" />{lang quick_nav}</label></li>
<!--{/if}-->
</ul>
<!--{else}-->
$closeprompt
<!--{/if}-->
</div>
<p class="o pns">
<input type="submit" name="funcsubmit_btn" class="btn" value="{lang confirms}">
</p>
</form>
</div>
<!--{/if}-->
<!--{subtemplate common/footer_ajax}-->

View File

@@ -0,0 +1,15 @@
<!--{template common/header_ajax}-->
<!--{eval $i = 0;}-->
<table cellspacing="2" cellpadding="2" class="imgl"><tr>
<!--{loop $photolist $photo}-->
<!--{eval $i++;}-->
<td valign="bottom" width="25%">
<a href="javascript:;"><img src="$photo[thumburl]" title="$photo[filename]" onclick="wysiwyg ? insertText('<img src=\'$photo[url]\' border=0 style=\'max-width:400px\'/>', false) : insertText('[img]$photo[url][/img]', <!--{echo strlen($photo[url]) + 11}-->, 0);doane(event);" onload="thumbImg(this, 1)" width="110" style="height:auto" _width="110" _height="110"></a>
</td>
<!--{if $i % 4 == 0 && isset($photolist[$i])}--></tr><tr><!--{/if}-->
<!--{/loop}-->
<!--{if ($imgpad = $i % 4) > 0}--><!--{echo str_repeat('<td width="25%"></td>', 4 - $imgpad);}--><!--{/if}-->
</tr></table>
<div class="pgs cl">$multi</div>
<!--{template common/footer_ajax}-->

View File

@@ -0,0 +1,57 @@
<table cellpadding="0" cellspacing="0" summary="post_attachbody" border="0" width="100%">
<!--{loop $attachlist $attach}-->
<tbody id="attach_$attach[aid]">
<tr>
<td class="attswf">
<p id="attach$attach[aid]">
<span>$attach[filetype] <a href="javascript:;" class="xi2" id="attachname$attach[aid]" isimage="{if $attach['isimage']}1{else}0{/if}" onclick="{if $attach['isimage']}insertAttachimgTag('$attach[aid]');hideMenu('attach_preview_$attach[aid]_menu'){else}insertAttachTag('$attach[aid]'){/if};doane(event);" title="{lang upload_msg}" {if $attach['isimage']}onmouseout="hideMenu('attach_preview_$attach[aid]_menu');" onmouseover="showMenu({'ctrlid':this.id,'menuid':'attach_preview_$attach[aid]_menu','pos':'!'});"{/if}>{$attach[filename]}</a></span>
<!--{if $_G['setting']['allowattachurl']}-->
<a href="javascript:;" class="atturl" title="{lang e_attach_url}" onclick="insertText('attach://$attach[aid].{echo fileext($attach[filenametitle])}');doane(event);"><img src="{IMGDIR}/attachurl.gif" /></a>
<!--{if ($attachmcode = parseattachmedia($attach))}--><a href="javascript:;" class="atturl" title="{lang e_attach_mediacode}" onclick="insertText('$attachmcode');doane(event);"><img src="{IMGDIR}/attachmediacode.gif" /></a><!--{/if}-->
<!--{/if}-->
<!--{if $attach['pid']}-->
<input type="hidden" name="attachupdate[{$attach[aid]}]" id="attachupdate{$attach[aid]}" size="2" />&nbsp;
<!--{if !empty($allowuploadnum)}--><a href="javascript:;" onclick="uploadWindow(function (aid, url, name){$('attachupdate$attach[aid]').value = aid;$('attachname$attach[aid]').title = '';$('attachname$attach[aid]').innerHTML = name;$('attachname$attach[aid]').onmouseover=null}, 'file');return false;">{lang update}</a><!--{/if}-->
<!--{/if}-->
</p>
<span id="attachupdate$attach[aid]"></span>
<!--{if $attach['isimage']}-->
<div id="attach_preview_$attach[aid]_menu" class="attach_preview" style="display:none"><img src="{echo getforumimg($attach[aid], 1, 300, 300, 'fixnone')}&ramdom={echo random(5)}" id="image_$attach[aid]" cwidth="{if $attach[width] < 300}$attach[width]{else}300{/if}"/></div>
<!--{/if}-->
<!--{if $_GET[result] == 'simple'}-->
<input type="hidden" name="attachnew[{$attach[aid]}][description]" value="" />
<input type="hidden" name="attachnew[{$attach[aid]}][readperm]" value="" />
<input type="hidden" name="attachnew[{$attach[aid]}][price]" value="" />
<!--{/if}-->
</td>
<!--{if $_GET[result] != 'simple'}-->
<td class="atds"><input type="text" name="attachnew[{$attach[aid]}][description]" class="px" value="$attach[description]" size="6" /></td>
<!--{if $_G['group']['allowsetattachperm']}-->
<td class="attv">
<!--{if $_G['cache']['groupreadaccess']}-->
<select class="ps" name="attachnew[{$attach[aid]}][readperm]" id="readperm" style="width:90px">
<option value="">{lang unlimited}</option>
<!--{loop $_G['cache']['groupreadaccess'] $val}-->
<option value="$val[readaccess]" title="{lang readperm}: $val[readaccess]"{if $attach[readperm] == $val[readaccess]} selected{/if}>$val[grouptitle]</option>
<!--{/loop}-->
<option value="255"{if $attach[readperm] == 255} selected{/if}>{lang highest_right}</option>
</select>
<!--{/if}-->
</td>
<!--{/if}-->
<!--{if $_G['group']['maxprice']}--><td class="attpr"><input type="text" name="attachnew[{$attach[aid]}][price]" class="px" value="$attach[price]" size="1" /></td><!--{/if}-->
<!--{/if}-->
<td class="attc"><a href="javascript:;" class="d" onclick="delAttach($attach[aid],{if !$attach[pid]}1{else}0{/if});return false;" title="{lang e_attach_del}">{lang e_attach_del}</a></td>
</tr>
</tbody>
<!--{/loop}-->
</table>
<!--{if $_G[inajax]}-->
<script type="text/javascript" reload="1">
ATTACHNUM['attachunused'] += <!--{echo count($attachlist)}-->;
updateattachnum('attach');
if($('attachlimitnotice')) {
ajaxget('forum.php?mod=ajax&action=updateattachlimit&fid=' + fid, 'attachlimitnotice');
}
</script>
<!--{/if}-->

View File

@@ -0,0 +1,48 @@
<!--{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']" onclick="showWindow(this.id, this.href, 'get', 0);" class="flw_delete">{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,45 @@
<!--{template common/header_ajax}-->
<div id="flsrchdiv">
<div class="mbm">{lang search_forum}: <input type="text" class="px vm" onkeyup="forumlistsearch(this.value)" /></div>
<ul class="jump_bdl cl">
<li>
<p class="bbda xg1">{lang forumlist_allforum}</p>
<!--{loop $forumlist $upfid $gdata}-->
<!--{if $gdata['sub']}-->
<p class="xw1{if $_GET['jfid'] == $upfid} a{/if}"><a href="forum.php?gid=$upfid">$gdata['name']</a></p>
<!--{loop $gdata['sub'] $subfid $name}-->
<p class="sub{if $_GET['jfid'] == $subfid} a{/if}"><a href="forum.php?mod=forumdisplay&fid=$subfid">$name</a></p>
<!--{loop $gdata['child'][$subfid] $childfid $name}-->
<p class="child{if $_GET['jfid'] == $childfid} a{/if}"><a href="forum.php?mod=forumdisplay&fid=$childfid">$name</a></p>
<!--{/loop}-->
<!--{/loop}-->
<!--{/if}-->
<!--{/loop}-->
</li>
<li>
<p class="bbda xg1">{lang forumlist_recent}</p>
<!--{loop $visitedforums $fid $forumname}-->
<p{if $_GET['jfid'] == $fid} class="a"{/if}><a href="forum.php?mod=forumdisplay&fid=$fid">$forumname</a></p>
<!--{/loop}-->
</li>
<li>
<p class="bbda xg1">{lang forumlist_myfav}</p>
<!--{loop $favforums $forum}-->
<p{if $_GET['jfid'] == $forum[id]} class="a"{/if}><a href="forum.php?mod=forumdisplay&fid=$forum[id]">$forum['title']</a></p>
<!--{/loop}-->
</li>
</ul>
</div>
<script type="text/javascript">
function forumlistsearch(srch) {
srch = srch.toLowerCase();
var p = $('flsrchdiv').getElementsByTagName('p');
for(var i = 0;i < p.length;i++){
p[i].style.display = p[i].innerText.toLowerCase().indexOf(srch) !== -1 ? '' : 'none';
}
}
</script>
<!--{template common/footer_ajax}-->

View File

@@ -0,0 +1,47 @@
<!--{if $imagelist}-->
<!--{if $_GET[type] != 'single'}-->
<!--{eval $i = 0;}-->
<table cellspacing="2" cellpadding="2" class="imgl"><tr>
<!--{/if}-->
<!--{loop $imagelist $image}-->
<!--{eval $i++;}-->
<!--{if $_GET[type] != 'single'}-->
<td valign="bottom" id="image_td_$image[aid]" width="25%">
<!--{/if}-->
<a href="javascript:;" title="$image[filename]" id="imageattach$image[aid]"><img src="{echo getforumimg($image[aid], 1, 300, 300, 'fixnone')}" id="image_$image[aid]" onclick="insertAttachimgTag('$image[aid]');doane(event);" width="{if $image[width] < 110}$image[width]{else}110{/if}" cwidth="{if $image[width] < 300}$image[width]{else}300{/if}" /></a>
<p class="mtn mbn xi2">
<!--{if $attach['pid']}-->
<input type="hidden" name="attachupdate[{$image[aid]}]" id="attachupdate{$image[aid]}" size="2" />&nbsp;
<a href="javascript:;" onclick="uploadWindow(function (aid, url, name){$('attachupdate$image[aid]').value = aid;ajaxget('forum.php?mod=ajax&action=getimage&aid=' + aid, 'imageattach$image[aid]');}, 'image');return false;">{lang update}</a>
<span class="pipe">|</span>
<!--{/if}-->
<a href="javascript:;" onclick="delImgAttach($image[aid],{if !$attach[pid]}1{else}0{/if});return false;">{lang e_attach_del}</a>
</p>
<p class="imgf">
<!--{if $image['description']}-->
<input type="text" name="attachnew[{$image[aid]}][description]" class="px xg2" value="$image[description]" id="image_desc_$image[aid]" />
<!--{else}-->
<input type="text" class="px xg2" value="{lang description}" onclick="this.style.display='none';$('image_desc_$image[aid]').style.display='';$('image_desc_$image[aid]').focus();" />
<input type="text" name="attachnew[{$image[aid]}][description]" class="px" style="display: none" id="image_desc_$image[aid]" />
<!--{/if}-->
</p>
<!--{if helper_access::check_module('album') && $_G['group']['allowupload']}-->
<p class="mtn"><!--{if !$attach[pid]}--><input type="hidden" class="pc" id="albumaid_$image[aid]" name="albumaid[]" value="" /><label for="albumaidchk_$image[aid]"><input id="albumaidchk_$image[aid]" type="checkbox" class="pc" onclick="$('albumaid_$image[aid]').value=this.checked?this.value:''" value="$image[aid]" />{lang save_to_album}</label><!--{/if}--></p>
<!--{/if}-->
</td>
<!--{if $_GET[type] != 'single' && $i % 4 == 0 && isset($imagelist[$i])}--></tr><tr><!--{/if}-->
<!--{/loop}-->
<!--{if $_GET[type] != 'single'}-->
<!--{if ($imgpad = $i % 4) > 0}--><!--{echo str_repeat('<td width="25%"></td>', 4 - $imgpad);}--><!--{/if}-->
</tr></table>
<!--{/if}-->
<!--{if $_G[inajax]}-->
<script type="text/javascript" reload="1">
ATTACHNUM['imageunused'] += <!--{echo count($imagelist)}-->;
updateattachnum('image');
if($('attachlimitnotice')) {
ajaxget('forum.php?mod=ajax&action=updateattachlimit&fid=' + fid, 'attachlimitnotice');
}
</script>
<!--{/if}-->
<!--{/if}-->

View File

@@ -0,0 +1,52 @@
<!--{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>
<table cellspacing="0" cellspacing="0">
<tr>
<td><span class="flw_autopt"><textarea name="message" id="postmessage_{$_GET[tid]}_{$_GET['feedid']}" class="pts" cols="80" rows="4" onkeyup="resizeTx(this);" onkeydown="resizeTx(this);" onpropertychange="resizeTx(this);" oninput="resizeTx(this);"></textarea></span><button type="submit" id="postsubmit" class="pgsbtn" value="true" name="{if $_GET[action] == 'newthread'}topicsubmit{elseif $_GET[action] == 'reply'}replysubmit{/if}"><span>{lang reply}</span></button></td>
<!--{if helper_access::check_module('follow')}-->
<td style="vertical-align: top;"><label class="ptn y"><input type="checkbox" name="adddynamic" class="pr" value="1" />{lang post_meanwhile_relay}</label></td>
<!--{/if}-->
</tr>
</table>
<!--{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"><!--{subtemplate common/seccheck}--></div>
<!--{/if}-->
</form>
<ul id="newreply_{$_GET[tid]}_{$_GET['feedid']}">
<!--{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="display('replybox_{$_GET['feedid']}')" class="y xg1">&uarr; {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,7 @@
<!--{template common/header}-->
<!--{if !empty($groupselect['second'])}-->
<select id="fup" name="fup" class="ps">
$groupselect[second]
</select>
<!--{/if}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,35 @@
<!--{template common/header_ajax}-->
<script type="text/javascript">
if(!isUndefined(checkForumnew_handle)) {
clearTimeout(checkForumnew_handle);
}
<!--{if $threadlist}-->
if($('separatorline')) {
var table = $('separatorline').parentNode;
} else {
var table = $('forum_' + $fid);
}
var newthread = [];
<!--{eval $i = 0;}-->
<!--{loop $threadlist $thread}-->
{block icon}<a href="forum.php?mod=viewthread&tid=$thread[icontid]&{if $_GET['archiveid']}archiveid={$_GET['archiveid']}&{/if}extra=$extra" title="{if $thread['displayorder'] == 1}{lang thread_type1} - {/if}{if $thread['displayorder'] == 2}{lang thread_type2} - {/if}{if $thread['displayorder'] == 3}{lang thread_type3} - {/if}{if $thread['displayorder'] == 4}{lang thread_type4} - {/if}{if $thread[folder] == 'lock'}{lang closed_thread} - {/if}{if $thread['special'] == 1}{lang thread_poll} - {/if}{if $thread['special'] == 2}{lang thread_trade} - {/if}{if $thread['special'] == 3}{lang thread_reward} - {/if}{if $thread['special'] == 4}{lang thread_activity} - {/if}{if $thread['special'] == 5}{lang thread_debate} - {/if}{if $thread[folder] == "new"}{lang have_newreplies} - {/if}{lang target_blank}" target="_blank"><!--{if $thread[folder] == 'lock'}--><i class="fico-lock fic6 fc-s"></i><!--{elseif $thread['special'] == 1}--><i class="fico-vote fic6 fc-l"></i><!--{elseif $thread['special'] == 2}--><i class="fico-cart fic6 fc-l"></i><!--{elseif $thread['special'] == 3}--><i class="fico-reward fic6 fc-l"></i><!--{elseif $thread['special'] == 4}--><i class="fico-group fic6 fc-l"></i><!--{elseif $thread['special'] == 5}--><i class="fico-vs fic6 fc-l"></i><!--{elseif in_array($thread['displayorder'], array(1, 2, 3, 4))}--><i class="tpin tpin{$thread[displayorder]}"><svg width="18" height="18"><path d="M9 0l9 9H14v9H4V9H0z"></path></svg></i><!--{else}--><i class="fico-thread fic6 fc-l"></i><!--{/if}--></a>{/block}
newthread[{$i}] = {'tid':$thread[tid], 'thread': {'icn':{'className':'icn','val':'$icon'}<!--{if $_G['forum']['ismoderator']}-->, 'o':{'className':'o','val':'<input type="checkbox" value="{$thread[tid]}" name="moderate[]" onclick="tmodclick(this)">'}<!--{/if}--> ,'common':{'className':'new fn','val':'{if !$_G['setting']['forumdisplaythreadpreview']}<a class="tdpre y" href="javascript:void(0);" onclick="javascript:previewThread(\'$thread[tid]\', \'$thread[id]\');">{lang preview}</a>{/if}$thread[threadurl]'}, 'author':{'className':'by','val':'<cite>$thread[authorurl]</cite><em><span>{$thread[dateline]}</span></em>'}, 'num':{'className':'num','val':'<a href="forum.php?mod=viewthread&tid={$thread[tid]}">{$thread[replies]}</a><em>{$thread[views]}</em>'}, 'lastpost':{'className':'by','val':'<cite>$thread[lastposterurl]</cite><em><a href="forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost#lastpost">{$thread[lastpost]}</a></em>'}}};
<!--{eval $i++;}-->
<!--{/loop}-->
removetbodyrow(table, 'forumnewshow');
for(var i = 0; i < newthread.length; i++) {
if(newthread[i].tid) {
addtbodyrow(table, ['tbody', 'newthread'], ['normalthread_', 'normalthread_'], 'separatorline', newthread[i]);
}
}
function readthread(tid) {
if($("checknewthread_"+tid)) {
$("checknewthread_"+tid).className = "";
}
}
<!--{elseif !$threadlist && $_GET['uncheck'] == 2}-->
showDialog('{lang none_newthread}', 'notice', null, null, 0, null, null, null, null, 3);
<!--{/if}-->
checkForumnew_handle = setTimeout(function () {checkForumnew('{$fid}', '{$_G[timestamp]}');}, checkForumtimeout);
</script>
<!--{template common/footer_ajax}-->

View File

@@ -0,0 +1,53 @@
<!--{template common/header}-->
<script type="text/javascript" src="{$_G['setting']['jspath']}forum_viewthread.js?{VERHASH}"></script>
<script type="text/javascript">zoomstatus = parseInt($_G['setting']['zoomstatus']);var imagemaxwidth = '{$_G['setting']['imagemaxwidth']}';</script>
<div id="pt" class="bm cl">
<div class="z">
<a href="./" class="nvhm" title="{lang homepage}">$_G['setting']['bbname']</a><em>&rsaquo;</em>
{lang announcement}
</div>
</div>
<div id="ct" class="ct2_a wp cl">
<div class="mn">
<div class="bm bw0">
<div id="annofilter"></div>
<!--{loop $announcelist $ann}-->
<div id="announce$ann[id]_c" class="umh{if $messageid != $ann[id]} umn{/if}">
<h3 onclick="toggle_collapse('announce$ann[id]', 1, 1);">$ann[subject]<em>($ann[starttime])</em></h3>
<div class="umh_act">
<p class="umh_cb"><a href="javascript:;" onclick="toggle_collapse('announce$ann[id]', 1, 1);">[ {lang open} ]</a></p>
</div>
</div>
<div id="announce$ann[id]" class="um" style="display: none">
<p class="mbn">{lang author}: <a href="home.php?mod=space&username=$ann[authorenc]" class="xi2">$ann[author]</a></p>
$ann[message]
</div>
<!--{/loop}-->
</div>
</div>
<div class="appl">
<div class="tbn">
<h2 class="mt bbda">{lang announcement}</h2>
<ul id="annonav">
<li class="cl{if empty($_GET[m])} a{/if}"><a href="forum.php?mod=announcement">{lang all}</a></li>
<!--{loop $months $month}-->
<li class="cl{if $_GET[m] == $month[0].$month[1]} a{/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>
<script type="text/javascript">
<!--{if !empty($annid)}-->
toggle_collapse('announce$annid', 1, 1);
<!--{/if}-->
var a = $('annonav').getElementsByTagName('li');
for(var i = 0, len = a.length; i < len; i++) {
if(a[i].className.indexOf(' a') != -1) {
var str = a[i].innerText || a[i].textContent;
$('annofilter').innerHTML = '<h1 class="mt">' + str + '</h1>';
break;
}
}
</script>
<!--{template common/footer}-->

View File

@@ -0,0 +1,85 @@
<!--{template common/header}-->
<!--{if empty($_GET['infloat'])}-->
<div id="pt" class="bm cl">
<div class="z"><a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em> $navigation</div>
</div>
<div id="ct" class="wp cl">
<div class="mn">
<div class="bm bw0">
<!--{/if}-->
<form id="attachpayform" method="post" autocomplete="off" action="forum.php?mod=misc&action=attachpay&tid={$_G[tid]}{if !empty($_GET['infloat'])}&paysubmit=yes&infloat=yes" onsubmit="ajaxpost('attachpayform', 'return_$_GET['handlekey']', 'return_$_GET['handlekey']', 'onerror');return false;"{else}"{/if}>
<div class="f_c">
<h3 class="flb">
<em id="return_$_GET['handlekey']">{lang pay_attachment}</em>
<span>
<!--{if !empty($_GET['infloat'])}--><a href="javascript:;" class="flbc" onclick="hideWindow('$_GET['handlekey']')" title="{lang close}">{lang close}</a><!--{/if}-->
</span>
</h3>
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="referer" value="{echo dreferer()}" />
<input type="hidden" name="aid" value="$aid" />
<!--{if !empty($_GET['infloat'])}--><input type="hidden" name="handlekey" value="$_GET['handlekey']" /><!--{/if}-->
<div class="c">
<table class="list" cellspacing="0" cellpadding="0" style="width: 400px">
<tr>
<td>{lang author}</td>
<td><!--{if empty($attach['uid'])}-->$attach['author']<!--{else}--><a href="home.php?mod=space&uid=$attach['uid']">$attach['author']</a><!--{/if}--></td>
</tr>
<tr>
<td>{lang attachment}</td>
<td><div style="overflow:hidden">$attach[filename] <!--{if $attach['description']}-->($attach[description])<!--{/if}--></div></td>
</tr>
<tr>
<td>{lang price}({$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]})</td>
<td>$attach[price] {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][unit]}</td>
</tr>
<!--{if $status != 1}-->
<tr>
<td>{lang pay_author_income}({$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]})</td>
<td>$attach[netprice] {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][unit]}</td>
</tr>
<tr>
<td>{lang pay_balance}({$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]})</td>
<td>$balance {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][unit]}</td>
</tr>
<!--{/if}-->
<!--{if $status == 1}-->
<tr>
<td>&nbsp;</td>
<td>{lang status_insufficient}</td>
</tr>
<!--{elseif $status == 2}-->
<tr>
<td>&nbsp;</td>
<td>{lang status_download}, <a href="forum.php?mod=attachment&aid=$aidencode" target="_blank">{lang download}</a></td>
</tr>
<!--{/if}-->
</table>
</div>
<div class="o pns">
<!--{if $status != 1}-->
<label><input name="buyall" type="checkbox" class="pc" value="yes" />{lang buy_all_attch}</label>
<button class="pn pnc" type="submit" name="paysubmit" value="true"><span><!--{if $status == 0}-->{lang pay_attachment}<!--{else}-->{lang free_buy}<!--{/if}--></span></button>
<!--{/if}-->
<button class="pn pnc" type="button" onclick="hideWindow('$_GET['handlekey']');"><span>{lang close}</span></button>
</div>
</div>
</form>
<!--{if !empty($_GET['infloat'])}-->
<script type="text/javascript" reload="1">
function succeedhandle_$_GET['handlekey'](locationhref) {
ajaxget('forum.php?mod=viewthread&tid=$attach[tid]&viewpid=$attach[pid]', 'post_$attach[pid]');
hideWindow('$_GET['handlekey']');
showCreditPrompt();
}
</script>
<!--{/if}-->
<!--{if empty($_GET['infloat'])}-->
</div>
</div>
</div>
<!--{/if}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,46 @@
<!--{template common/header}-->
<!--{if empty($_GET['infloat'])}-->
<div id="pt" class="bm cl">
<div class="z"><a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em> $navigation</div>
</div>
<div id="ct" class="wp cl">
<div class="mn">
<div class="bm bw0">
<!--{/if}-->
<div class="f_c">
<h3 class="flb">
<em id="return_$_GET['handlekey']">{lang pay_view}</em>
<span>
<!--{if !empty($_GET['infloat'])}--><a href="javascript:;" class="flbc" onclick="hideWindow('$_GET['handlekey']')" title="{lang close}">{lang close}</a><!--{/if}-->
</span>
</h3>
<div class="c floatwrap">
<table class="list" cellspacing="0" cellpadding="0"{if empty($_GET['infloat'])} style="margin: 0;"{/if}>
<tr>
<th>{lang username}</th>
<th>{lang time}</th>
<th>{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]}</th>
</tr>
<!--{if $loglist}-->
<!--{loop $loglist $log}-->
<tr>
<td><a href="home.php?mod=space&uid=$log[uid]">$log[username]</a></td>
<td>$log[dateline]</td>
<td>{$log[$extcreditname]} {$_G[setting][extcredits][$_G[setting][creditstransextra][1]][unit]}</td>
</tr>
<!--{/loop}-->
<!--{else}-->
<tr><td colspan="3"><div class="emp">{lang attachment_buy_not}</div></td></tr>
<!--{/if}-->
</table>
</div>
</div>
<!--{if empty($_GET['infloat'])}-->
</div>
</div>
</div>
<!--{/if}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,76 @@
<!--{template common/header}-->
<div id="pt" class="bm cl">
<div class="z">
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em>
<a href="forum.php?mod=collection">{lang collection}</a> <em>&rsaquo;</em>
<!--{if $op == 'edit'}-->
<a href="forum.php?mod=collection&action=view&ctid={$_G['collection']['ctid']}">{$_G['collection']['name']}</a> <em>&rsaquo;</em>
{lang collection_edit}
<!--{else}-->
{lang collection_create}
<!--{/if}-->
</div>
</div>
<script>
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>
<div id="ct" class="wp cl">
<div class="bm">
<div class="bm_h">
<h2>
<!--{if $op == 'edit'}-->
{lang collection_edit}
<!--{else}-->
{lang collection_create}
<!--{/if}-->
</h2>
</div>
<div class="bm_c">
<form action="forum.php?mod=collection&action=edit" onsubmit="return checklen();" method="POST">
<table cellspacing="0" cellpadding="0" class="tfm">
<tr>
<th>{lang collection_title}</th>
<td><input type="text" value="{$_G['collection']['name']}" name="title" id="formtitle" class="px" /></td>
</tr>
<tr>
<th>{lang collection_desc}</th>
<td><textarea name="desc" id="formdesc" rows="10" class="pt">{$_G['collection']['desc']}</textarea></td>
</tr>
<tr>
<th>{lang collection_keywords}</th>
<td>
<input type="text" value="{$_G['collection']['keyword']}" name="keyword" id="formkeyword" class="px" />
<p class="xg1">{lang collection_keywords_desc}</p>
</td>
</tr>
<tr>
<th></th>
<td>
<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}" />
<button type="submit" name="collectionsubmit" class="pn pnc" value="submit"><span><!--{if $op == 'edit'}-->{lang collection_edit}<!--{else}-->{lang collection_create}<!--{/if}--></span></button>
<!--{if $op != 'edit'}-->
<span class="xg1">{lang collection_remain_tips}</span>
<!--{/if}-->
</td>
</tr>
</table>
</form>
</div>
</div>
</div>
<!--{template common/footer}-->

View File

@@ -0,0 +1,45 @@
<!--{template common/header}-->
<div id="pt" class="bm cl">
<div class="z">
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em>
<a href="forum.php?mod=collection">{lang collection}</a> <em>&rsaquo;</em>
<a href="forum.php?mod=collection&amp;op=all">{lang collection_all}</a>
</div>
</div>
<div id="ct" class="wp cl">
<div class="bm">
<div class="tb tb_h cl">
<!--{subtemplate forum/collection_nav}-->
</div>
<div class="tbmu cl">
<div class="y">
<!--{if $_G['setting']['search']['collection']['status'] && ($_G['group']['allowsearch'] & 64 || $_G['adminid'] == 1)}-->
<form action="forum.php?mod=collection&amp;op=search" method="post">
<input type="text" name="kw" class="px vm" />
<button type="submit" value="submit" class="pn vm"><span>{lang search}</span></button>
</form>
<!--{/if}-->
</div>
<!--{if $op != 'search'}-->
<a href="forum.php?mod=collection&amp;op=all"{if !in_array($orderby, array('threadnum', 'commentnum', 'follownum'))} class="a"{/if}>{lang collection_sortby_update}</a>
<span class="pipe">|</span>
<a href="forum.php?mod=collection&amp;op=all&amp;order=threadnum"{if $orderby == 'threadnum'} class="a"{/if}>{lang collection_sortby_threadnum}</a>
<span class="pipe">|</span>
<a href="forum.php?mod=collection&amp;op=all&amp;order=commentnum"{if $orderby == 'commentnum'} class="a"{/if}>{lang collection_sortby_coomentnum}</a>
<span class="pipe">|</span>
<a href="forum.php?mod=collection&amp;op=all&amp;order=follownum"{if $orderby == 'follownum'} class="a"{/if}>{lang collection_sortby_follownum}</a>
<!--{else}-->
{lang search}
<!--{/if}-->
</div>
<div class="bm_c">
<!--{hook/collection_index_top}-->
<!--{subtemplate forum/collection_list}-->
<!--{hook/collection_index_bottom}-->
</div>
</div>
$multipage
<br /><br />
</div>
<!--{template common/footer}-->

View File

@@ -0,0 +1,122 @@
<!--{template common/header}-->
<div id="pt" class="bm cl">
<div class="z">
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em>
<a href="forum.php?mod=collection">{lang collection}</a> <em>&rsaquo;</em>
<a href="forum.php?mod=collection&action=view&ctid=$ctid">{$_G['collection']['name']}</a> <em>&rsaquo;</em>
{lang collection_commentlist}
</div>
</div>
<script type="text/javascript" src="{$_G[setting][jspath]}home_friendselector.js?{VERHASH}"></script>
<script type="text/javascript">
var fs;
var clearlist = 0;
</script>
<div id="ct" class="wp cl">
<div class="bm bml pbn">
<div class="bm_h cl">
<a href="forum.php?mod=collection&action=view&ctid={$_G['collection']['ctid']}" class="y pn"><span class="xi2">&laquo; {lang collection_backcollection}</span></a>
<h1 class="xs2">
<a href="forum.php?mod=collection&action=view&ctid={$_G['collection']['ctid']}">{$_G['collection']['name']}</a>
</h1>
</div>
<div class="bm_c">
<div title="$avgrate" class="pbn xg1 cl">
<!--{if $_G['collection']['ratenum'] > 0}-->
<span class="clct_ratestar"><span class="star star$star">&nbsp;</span></span>
&nbsp;{lang collection_totalrates}
<!--{else}-->
{lang collection_norate}
<!--{/if}-->
</div>
<div>{$_G['collection']['desc']}</div>
</div>
</div>
<!--{if $_G['collection']['commentnum'] > 0}-->
<div class="bm">
<!--{if $permission}-->
<form action="forum.php?mod=collection&action=comment&op=del" method="POST">
<!--{/if}-->
<div class="tb tb_h cl">
<ul>
<li class="a"><a href="forum.php?mod=collection&action=view&op=comment&ctid={$_G['collection']['ctid']}">{lang collection_commentlist}</a></li>
<li><a href="forum.php?mod=collection&action=view&op=followers&ctid={$_G['collection']['ctid']}">{lang collection_followlist}</a></li>
<!--{hook/collection_nav_extra}-->
</ul>
</div>
<div class="bm_c xld xlda">
<!--{loop $commentlist $comment}-->
<dl class="bbda cl">
<dd class="m avt"><a href="home.php?mod=space&uid=$comment['uid']"><!--{avatar($comment['uid'], 'small')}--></a></dd>
<dt>
<!--{if $permission}-->
<span class="y"><input type="checkbox" value="$comment[cid]" name="delcomment[]" /></span>
<!--{/if}-->
<a href="home.php?mod=space&uid={$comment['uid']}" c="1">$comment[username]</a>
<span class="xg1 xw0">$comment[dateline]</span>
</dt>
<!--{if $comment[rate]}-->
<dd class="cl"><span class="clct_ratestar"><span class="star star$comment[rateimg]">&nbsp;</span></span></dd>
<!--{/if}-->
<dd>$comment[message]</dd>
</dl>
<!--{/loop}-->
</div>
<div class="bm_c cl">
<!--{if $permission}-->
<input type="hidden" value="{$ctid}" name="ctid" />
<input type="hidden" name="formhash" id="formhash" value="{FORMHASH}" />
<button type="submit" class="pn pnc"><span>{lang delete}</span></button>
<!--{/if}-->
<!--{if $multipage}-->$multipage<!--{/if}-->
</div>
<!--{if $permission}--></form><!--{/if}-->
<div class="pgs mtm cl"></div>
</div>
<!--{/if}-->
<!--{if $_G['group']['allowcommentcollection']}-->
<div class="bm">
<form action="forum.php?mod=collection&action=comment&ctid={$_G['collection']['ctid']}" method="POST">
<div class="bm_h">
<h2>{lang collection_ratecollection}</h2>
</div>
<div class="bm_c {if $memberrate}bbda{/if}">
<!--{if !$memberrate}-->
<div class="cl">
<input type="hidden" name="ratescore" id="ratescore" />
<span class="clct_ratestar">
<span class="btn">
<a href="javascript:;" onmouseover="rateStarHover('clct_ratestar_star',1)" onmouseout="rateStarHover('clct_ratestar_star',0)" onclick="rateStarSet('clct_ratestar_star',1,'ratescore')">1</a>
<a href="javascript:;" onmouseover="rateStarHover('clct_ratestar_star',2)" onmouseout="rateStarHover('clct_ratestar_star',0)" onclick="rateStarSet('clct_ratestar_star',2,'ratescore')">2</a>
<a href="javascript:;" onmouseover="rateStarHover('clct_ratestar_star',3)" onmouseout="rateStarHover('clct_ratestar_star',0)" onclick="rateStarSet('clct_ratestar_star',3,'ratescore')">3</a>
<a href="javascript:;" onmouseover="rateStarHover('clct_ratestar_star',4)" onmouseout="rateStarHover('clct_ratestar_star',0)" onclick="rateStarSet('clct_ratestar_star',4,'ratescore')">4</a>
<a href="javascript:;" onmouseover="rateStarHover('clct_ratestar_star',5)" onmouseout="rateStarHover('clct_ratestar_star',0)" onclick="rateStarSet('clct_ratestar_star',5,'ratescore')">5</a>
</span>
<span id="clct_ratestar_star" class="star star$memberrate"></span>
</span>
</div>
<!--{/if}-->
<div class="pbn">
<textarea name="message" rows="4" class="pt" style="width: 94%"></textarea>
</div>
<div><button type="submit" class="pn pnc"><span>{lang collection_comment_submit}</span></button></div>
</div>
<!--{if $memberrate}-->
<div class="bm_c ptn pbn cl">
<span class="z">{lang collection_rated}&nbsp;</span>
<span class="clct_ratestar"><span class="star star$memberrate"></span></span>
</div>
<!--{/if}-->
</form>
</div>
<!--{/if}-->
</div>
</div>
<!--{template common/footer}-->

View File

@@ -0,0 +1,15 @@
<!--{template common/header}-->
<h3 class="flb">
<em>{lang collection_comment_thread}</em>
<span><a href="javascript:;" onclick="hideWindow('$_GET['handlekey']');" class="flbc" title="{lang close}">{lang close}</a></span>
</h3>
<form action="forum.php?mod=collection&action=comment&ctid={$ctid}" method="POST">
<div class="c">
<textarea name="message" class="pt" cols="60" rows="5">{lang collection_comment_specthread}
</textarea>
</div>
<div class="o pns">
<button type="submit" class="pn pnc"><span>{lang collection_comment_submit}</span></button>
</div>
</form>
<!--{template common/footer}-->

View File

@@ -0,0 +1,61 @@
<!--{template common/header}-->
<div id="pt" class="bm cl">
<div class="z">
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em>
<a href="forum.php?mod=collection">{lang collection}</a> <em>&rsaquo;</em>
<a href="forum.php?mod=collection&action=view&ctid=$ctid">{$_G['collection']['name']}</a> <em>&rsaquo;</em>
{lang collection_followlist}
</div>
</div>
<script type="text/javascript" src="{$_G[setting][jspath]}home_friendselector.js?{VERHASH}"></script>
<script type="text/javascript">
var fs;
var clearlist = 0;
</script>
<div id="ct" class="wp cl">
<div class="bm bml pbn">
<div class="bm_h cl">
<a href="forum.php?mod=collection&action=view&ctid={$_G['collection']['ctid']}" class="y pn"><span class="xi2">&laquo; {lang collection_backcollection}</span></a>
<h1 class="xs2">
<a href="forum.php?mod=collection&action=view&ctid={$_G['collection']['ctid']}">{$_G['collection']['name']}</a>
</h1>
</div>
<div class="bm_c">
<div title="$avgrate" class="pbn xg1 cl">
<!--{if $_G['collection']['ratenum'] > 0}-->
<span class="clct_ratestar"><span class="star star$star">&nbsp;</span></span>
&nbsp;{lang collection_totalrates}
<!--{else}-->
{lang collection_norate}
<!--{/if}-->
</div>
<div>{$_G['collection']['desc']}</div>
</div>
</div>
<div class="bm">
<div class="tb tb_h cl">
<ul>
<li><a href="forum.php?mod=collection&action=view&op=comment&ctid={$_G['collection']['ctid']}">{lang collection_commentlist}</a></li>
<li class="a"><a href="forum.php?mod=collection&action=view&op=followers&ctid={$_G['collection']['ctid']}">{lang collection_followlist}</a></li>
</ul>
</div>
<!--{if $followers}-->
<div class="bm_c">
<ul class="ml mls cl">
<!--{loop $followers $follower}-->
<li>
<a href="home.php?mod=space&uid=$follower[uid]" class="avt"><!--{avatar($follower['uid'], 'small')}--></a>
<p><a href="home.php?mod=space&uid=$follower[uid]">$follower[username]</a></p>
</li>
<!--{/loop}-->
</ul>
</div>
<!--{else}-->
<p class="emp">{lang no_content}</p>
<!--{/if}-->
<!--{if $multipage}--><div class="bm_c cl">$multipage</div><!--{/if}-->
</div>
</div>
<!--{template common/footer}-->

View File

@@ -0,0 +1,24 @@
<!--{template common/header}-->
<div id="pt" class="bm cl">
<div class="z">
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em>
<a href="forum.php?mod=collection">{lang collection}</a> <em>&rsaquo;</em>
<a href="forum.php?mod=collection">{lang collection_recommended}</a>
</div>
</div>
<div id="ct" class=" wp cl">
<div class="bm">
<div class="tb tb_h cl">
<!--{subtemplate forum/collection_nav}-->
</div>
<div class="bm_c">
<!--{hook/collection_index_top}-->
<!--{subtemplate forum/collection_list}-->
<!--{hook/collection_index_bottom}-->
</div>
</div>
$multipage
<br /><br />
</div>
<!--{template common/footer}-->

View File

@@ -0,0 +1,83 @@
<!--{template common/header}-->
<h3 class="flb">
<em>{lang collection_invite}</em>
<span><a href="javascript:;" onclick="hideWindow('$_GET['handlekey']');" class="flbc" title="{lang close}">{lang close}</a></span>
</h3>
<form action="forum.php?mod=collection&action=edit&op=invite&ctid={$ctid}" method="post">
<div class="c">
<table cellspacing="0" cellpadding="0" class="tfm pmform mtm">
<tr>
<th><label for="username">{lang collection_username}</label></th>
<td>
<div class="cl">
<div class="un_selector px z cl" onclick="$('username').focus();">
<input type="text" name="username" id="username" autocomplete="off" />
</div>
<a href="javascript:;" id="showSelectBox" class="z mtn xi2 showmenu" onclick="showMenu({'showid':this.id, 'duration':3, 'pos':'34!'});fs.showPMFriend('showSelectBox_menu','selectorBox', this);" title="{lang collection_selectfriend}">{lang collection_selectfriend}</a>
</div>
<style type="text/css">
.pmform{}.pmform .px{width:308px;}
.pmform .tedt{width:316px;}
.un_selector{height:auto;cursor:text;overflow:hidden;}
.un_selector input{width:95px;height:19px;border-width:0;outline:none;}
.ie6 .un_selector input,.ie7 .un_selector input{height:17px;}
.un_selector #subject{width:308px;}
.un_selector span{float:left;margin:1px 2px 1px 0;width:100px;height:19px;line-height:19px;background:#F7F6ED;color:#369;overflow:hidden;}
.un_selector em{padding-left:5px;width:80px;}
.un_selector .x{float:right;width:15px;height:19px;overflow:hidden;text-align:center;}
.un_selector .x:before{content:"\d7";display:inline-block;width:15px;}
.un_selector .x:hover{background:#369;color:#F7F6ED;}a.appendmb,a.appendmb span{height:25px;line-height:25px !important;}.pmfrndl{position:absolute;margin-top:3px;padding:4px;width:120px;border:solid #DDD;border-width:0 1px 1px;background:#FFF;}.ie6 .pmfrndl,.ie7 .pmfrndl{margin-top:4px;}.pmfrndl li{display:inline;}.pmfrndl a{display:block;padding:4px 2px;color:#369;}.pmfrndl a:hover{text-decoration:none;}.pmfrndl a.a{background:#E5EDF2;}#showSelectBox_menu{padding:10px;width:300px;white-space:nowrap;}#selBox{margin:0 -10px 10px;padding-left:10px;height:110px;border:solid #CDCDCD;border-width:1px 0;overflow-y:auto;}.unfold,.fold{float:right;padding-left:10px;background:url({STATICURL}image/common/arrwd.gif) no-repeat 0 50%;cursor:pointer;outline:none;}
.fold{background-image:url({STATICURL}image/common/arrow_top.gif);}
</style>
<script type="text/javascript">
var random='{TIMESTAMP}';
var page = 1;
var gid = -1;
var showNum = 0;
var haveFriend = true;
function getUser(pageId, gid) {
page = parseInt(pageId);
gid = isUndefined(gid) ? -1 : parseInt(gid);
var x = new Ajax();
x.get('home.php?mod=spacecp&ac=friend&op=getinviteuser&inajax=1&page='+ page + '&gid=' + gid + '&' + Math.random(), function(s) {
var data = eval('('+s+')');
var singlenum = parseInt(data['singlenum']);
var maxfriendnum = parseInt(data['maxfriendnum']);
fs.addDataSource(data, clearlist);
haveFriend = singlenum && singlenum == 20 ? true : false;
if(singlenum && fs.allNumber < 20 && fs.allNumber < maxfriendnum && maxfriendnum > 20 && haveFriend) {
page++;
getUser(page);
}
});
}
function selector() {
var parameter = {'searchId':'username', 'showId':'friends', 'formId':'', 'showType':3, 'handleKey':'fs', 'selBox':'selectorBox', 'selBoxMenu':'showSelectBox_menu', 'maxSelectNumber':'20', 'selectTabId':'selectNum', 'unSelectTabId':'unSelectTab', 'maxSelectTabId':'remainNum'};
fs = new friendSelector(parameter);
var listObj = $('selBox');
listObj.onscroll = function() {
clearlist = 0;
if(this.scrollTop >= this.scrollHeight/5) {
page++;
gid = isUndefined(gid) ? -1 : parseInt(gid);
if(haveFriend) {
getUser(page, gid);
}
}
}
getUser(page);
}
selector();
</script>
</td>
</tr>
</table>
</div>
<div class="o pns">
<span class="z">{lang collection_max_invite}</span>
<input type="hidden" name="formhash" id="formhash" value="{FORMHASH}" />
<button type="submit" value="submit" name="submitaddthread" class="pn pnc"><span>{lang invite}</span></button>
</div>
</form>
<!--{template common/footer}-->

View File

@@ -0,0 +1,59 @@
<!--{if is_array($collectiondata) && count($collectiondata) > 0}-->
<div class="clct_list cl">
<!--{loop $collectiondata $collectionvalues}-->
<div class="xld xlda cl">
<dl>
<dd class="m hm">
<a href="forum.php?mod=collection&action=view&ctid={$collectionvalues['ctid']}{if $op}&fromop={$op}{/if}{if $tid}&fromtid={$tid}{/if}">
<strong class="xi2" {if {$collectionvalues['displaynum']} > 999999}style="font-size: 10px;"{/if}>{$collectionvalues['displaynum']}</strong>
<span style="color: #FFF"><!--{if $orderby=='commentnum'}-->{lang collection_commentnum}<!--{elseif $orderby=='follownum'}-->{lang collection_follow}<!--{else}-->{lang collection_threadnum}<!--{/if}--></span>
</a>
</dd>
<dt class="xw1">
<!--{if $op == 'my'}-->
<!--{if $collectionvalues['uid'] == $_G['uid']}-->
<span class="ctag ctag0">{lang collection_mycreate}</span>
<!--{elseif is_array($twctid) && in_array($collectionvalues['ctid'], $twctid)}-->
<span class="ctag ctag1">{lang collection_myteam}</span>
<!--{else}-->
<span class="ctag ctag2">{lang collection_mysubscribe}</span>
<!--{/if}-->
<!--{/if}-->
<div>
<a href="forum.php?mod=collection&action=view&ctid={$collectionvalues['ctid']}{if $op}&fromop={$op}{/if}{if $tid}&fromtid={$tid}{/if}" class="xi2" {if $collectionvalues['updated'] && $op == 'my'}style='color:red;'{/if}>{$collectionvalues['name']}</a>
<!--{if $collectionvalues['arraykeyword']}-->
<span class="ctag_keyword">
<!--{eval $keycount=0;}-->
<!--{loop $collectionvalues['arraykeyword'] $unique_keyword}-->
{if $keycount},&nbsp;{/if}<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" target="_blank" class="xi2">$unique_keyword</a>
<!--{eval $keycount++;}-->
<!--{/loop}-->
</span>
<!--{/if}-->
</div>
</dt>
<dd>
<p>{$collectionvalues['shortdesc']}</p>
<p>
<!--{if $orderby=='commentnum'}-->
{lang collection_follow} {$collectionvalues['follownum']}, {lang collection_threadnum} {$collectionvalues['threadnum']}
<!--{elseif $orderby=='follownum'}-->
{lang collection_threadnum} {$collectionvalues['threadnum']}, {lang collection_commentnum} {$collectionvalues['commentnum']}
<!--{else}-->
{lang collection_follow} {$collectionvalues['follownum']}, {lang collection_commentnum} {$collectionvalues['commentnum']}
<!--{/if}-->
</p>
<p class="xg1"><a href="home.php?mod=space&uid=$collectionvalues['uid']">{$collectionvalues['username']}</a> {lang collection_createtime}, {lang collection_lastupdate} {$collectionvalues['lastupdate']}</p>
<p>
<!--{if $collectionvalues['lastpost']}-->
{lang collection_lastthread} <a href="forum.php?mod=viewthread&tid={$collectionvalues['lastpost']}" class="xi2">{$collectionvalues['lastsubject']}</a>
<!--{/if}-->
</p>
</dd>
</dl>
</div>
<!--{/loop}-->
</div>
<!--{else}-->
<div class="emp">{lang collection_nocollection}</div>
<!--{/if}-->

View File

@@ -0,0 +1,22 @@
<!--{template common/header}-->
<div id="pt" class="bm cl">
<div class="z">
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em>
<a href="forum.php?mod=collection">{lang collection}</a> <em>&rsaquo;</em>
<a href="forum.php?mod=collection&amp;op=my">{lang collection_my}</a>
</div>
</div>
<div id="ct" class="wp cl">
<div class="bm">
<div class="tb tb_h cl">
<!--{subtemplate forum/collection_nav}-->
</div>
<div class="bm_c">
<!--{hook/collection_index_top}-->
<!--{subtemplate forum/collection_list}-->
<!--{hook/collection_index_bottom}-->
</div>
</div>
</div>
<!--{template common/footer}-->

View File

@@ -0,0 +1,10 @@
<ul>
<!--{if helper_access::check_module('collection')}-->
<li class="y o"><a href="forum.php?mod=collection&amp;action=edit">{lang collection_create}</a></li>
<!--{/if}-->
<li{if !$op && !$tid} class="a"{/if}><a href="forum.php?mod=collection">{lang collection_recommended}</a></li>
<li{if $op == 'all'} class="a"{/if}><a href="forum.php?mod=collection&amp;op=all">{lang collection_all}</a></li>
<li{if $op == 'my'} class="a"{/if}><a href="forum.php?mod=collection&amp;op=my">{lang collection_my}</a></li>
<!--{if !$op && $tid}--><li class="a"><a href="forum.php?mod=collection&amp;tid=$tid">{lang collection_nav_related}</a></li><!--{/if}-->
<!--{hook/collection_nav_extra}-->
</ul>

View File

@@ -0,0 +1,18 @@
<!--{template common/header}-->
<h3 class="flb">
<em>{lang collection_recommend}</em>
<span><a href="javascript:;" onclick="hideWindow('$_GET['handlekey']');" class="flbc" title="{lang close}">{lang close}</a></span>
</h3>
<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">
<div class="c">
{lang collection_recommend_thread_url}
<input type="text" value="" name="threadurl" style="width: 400px;" class="px" />
</div>
<div class="o pns">
<button type="submit" class="pn pnc"><span>{lang collection_recommend_submit}</span></button>
</div>
<input type="hidden" value="{FORMHASH}" name="formhash" />
<input type="hidden" name="inajax" value="1">
<input type="hidden" name="handlekey" value="$_GET['handlekey']">
</form>
<!--{template common/footer}-->

View File

@@ -0,0 +1,127 @@
<!--{template common/header}-->
<h3 class="flb">
<em>{lang collection}</em>
<span><a href="javascript:;" onclick="hideWindow('$_GET['handlekey']');" class="flbc" title="{lang close}">{lang close}</a></span>
</h3>
<script>
var remaincreateable = $reamincreatenum;
var titlelimit = '$titlelimit';
var requirecreate = false;
var createnow = false;
var reasonlimit = '$reasonlimit';
function succeedhandle_createcollection(url, msg, collectiondata) {
$("createbutton").disabled = false;
if(collectiondata['ctid']) {
$("selectCollection").options[$("selectCollection").length] = new Option($("newcollection").value, collectiondata['ctid'], true, true);
$("collectionlist").style.display='';
remaincreateable--;
if(remaincreateable <= 0) {
$("allowcreate").style.display='none';
} else {
$("reamincreatenum").innerHTML = remaincreateable;
}
display('createcollection');
$("submitnewtitle").value = $("newcollection").value = '';
}
$("nocreate").innerHTML = '';
if(requirecreate == true) {
$("createRemainTips").style.display='';
$("createbutton").style.display='';
$("newcollection").style.width='';
requirecreate = false;
if(createnow == true) {
setTimeout('$("btn_submitaddthread").click();', 101);
}
createnow = false;
}
}
function ajaxcreatecollection() {
if(!$("newcollection").value) {
showError('{lang collection_fill_entire}');
return false;
}
if(mb_strlen($("newcollection").value) > titlelimit) {
showError({lang collection_title_exceed});
return false;
}
$("createbutton").disabled = true;
$("submitnewtitle").value = $("newcollection").value;
ajaxpost('fastcreateform', 'fastcreatereturn', 'fastcreatereturn', 'onerror');
}
function checkreasonlen() {
if(mb_strlen($("formreason").value) > reasonlimit) {
showError({lang collection_reason_exceed});
return false;
}
if(requirecreate == true) {
createnow = true;
ajaxcreatecollection();
return false;
} else {
$("createRemainTips").style.display='';
$("createbutton").style.display='';
$("newcollection").style.width='';
}
return true;
}
</script>
<form action="forum.php?mod=collection&action=edit&op=addthread" method="post" onsubmit="update_collection();ajaxpost(this.id, 'form_addcollectionthread');" id="form_addcollectionthread" name="form_addcollectionthread">
<div class="c">
<div id="collectionlist" {if $reamincreatenum > 0 && count($allowcollections) <= 0}style="display:none;"{/if}>
<p>{lang collection_select}</p>
<select name="ctid" id="selectCollection" style="width: 280px;">
<!--{loop $collections $collection}-->
<!--{if !is_array($tidcollections) || !in_array($collection['ctid'], $tidcollections)}-->
<option value="$collection['ctid']">$collection['name']</option>
<!--{/if}-->
<!--{/loop}-->
</select>
</div>
<div id="allowcreate" {if $reamincreatenum <= 0}style="display:none;"{/if}>
<span id="nocreate"><!--{if !$collections}-->{lang collection_select_nocollection}<!--{/if}--></span>
<div class="mtm ntc_l">{lang collection_select_remain} <a href="javascript:;" onclick="display('createcollection');if($('createcollection').style.display!='none') {$('newcollection').focus();}" class="xi2" id="createRemainTips">{lang collection_create}</a></div>
</div>
<div id="createcollection" class="ptm vm" style="display:none">
{lang collection_title} <input type="text" value="" id="newcollection" class="px" /> <button type="button" id="createbutton" name="createbutton" onclick="javascript:ajaxcreatecollection();" class="pn pnc"><span>{lang collection_create}</span></button>
</div>
<div class="ptm">
<p class="pbn">{lang collection_addreason}</p>
<textarea name="reason" id="formreason" cols="50" rows="2" class="pt"></textarea>
</div>
</div>
<div class="o pns">
<a href="forum.php?mod=collection&op=my" target="_blank" class="z xi2">{lang collection_view_mine}</a>
<!--{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" />
<button type="submit" name="submitaddthread" id="btn_submitaddthread" onclick="return checkreasonlen();" class="pn pnc"><span>{lang collection_addbtn}</span></button>
</div>
</form>
<div style="display:none;">
<form action="forum.php?mod=collection&action=edit&op=add" method="post" id="fastcreateform">
<input type="hidden" name="formhash" id="formhash" value="{FORMHASH}" />
<input type="hidden" name="collectionsubmit" value="1" />
<input type="hidden" name="submitcollection" value="1" />
<input type="hidden" name="title" id="submitnewtitle" value="" />
</form>
</div>
<span id="fastcreatereturn"></span>
<!--{if $reamincreatenum > 0 && count($allowcollections) <= 0}-->
<script>
var random = <!--{echo TIMESTAMP}-->;
requirecreate = true;
$("createRemainTips").style.display='none';
$("createbutton").style.display='none';
$("newcollection").style.width='204px';
display('createcollection');
</script>
<!--{/if}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,381 @@
<!--{template common/header}-->
<div id="pt" class="bm cl">
<div class="z">
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em>
<a href="forum.php?mod=collection{if $fromop}&op={$fromop}{/if}{if $fromtid}&tid={$fromtid}{/if}">{lang collection}</a> <em>&rsaquo;</em>
<!--{if !$op}-->
{$_G['collection']['name']}
<!--{elseif $op == 'related'}-->
<a href="forum.php?mod=collection&action=view&ctid={$ctid}&fromop={$fromop}&fromtid={$fromtid}">{$_G['collection']['name']}</a> <em>&rsaquo;</em>
{lang collection_cloud_link}
<!--{/if}-->
</div>
</div>
<script type="text/javascript" src="{$_G[setting][jspath]}home_friendselector.js?{VERHASH}"></script>
<script type="text/javascript">
var fs;
var clearlist = 0;
var followstatus = <!--{if $collectionfollowdata['ctid']}-->1<!--{else}-->0<!--{/if}-->;
function succeedhandle_addComment(url, msg, commentdata) {
$("btnCommentSubmit").disabled='';
showDialog(msg, 'right', '', 'location.href="' + url + '"', null, null, null, null, null, null, 3);
}
function errorhandle_addComment(msg, commentdata) {
$("btnCommentSubmit").disabled='';
showError(msg);
}
function succeedhandle_followcollection(url, msg, collectiondata) {
if(collectiondata['status'] == 1) { //关注成功
followstatus = 1;
$("followlink").innerHTML = '<i class="u">{lang collection_unfollow}</i>';
$("followlink").href = followcollectionurl();
$("rightcolfollownum").innerHTML = $("follownum_display").innerHTML = parseInt($("follownum_display").innerHTML) + 1;
} else if(collectiondata['status'] == 2) { //取消关注成功
followstatus = 0;
$("followlink").innerHTML = '<i>{lang collection_follow}</i>';
$("followlink").href = followcollectionurl();
$("rightcolfollownum").innerHTML = $("follownum_display").innerHTML = parseInt($("follownum_display").innerHTML) - 1;
}
}
function errorhandle_followcollection(msg, collectiondata) {
showError(msg);
}
function followcollectionurl() {
return 'forum.php?mod=collection&action=follow&op='+(followstatus ? 'unfo': 'follow')+'&ctid={$_G['collection']['ctid']}&formhash={FORMHASH}';
}
</script>
<div id="username_menu" style="display: none;">
<ul id="friends" class="pmfrndl"></ul>
</div>
<div class="p_pof" id="showSelectBox_menu" unselectable="on" style="display:none;">
<div class="pbm">
<select class="ps" onchange="clearlist=1;getUser(1, this.value)">
<option value="-1">{lang collection_inviteallfriend}</option>
<!--{loop $friendgrouplist $groupid $group}-->
<option value="$groupid">$group</option>
<!--{/loop}-->
</select>
</div>
<div id="selBox" class="ptn pbn">
<ul id="selectorBox" class="xl xl2 cl"></ul>
</div>
<div class="cl">
<button type="button" class="y pn" onclick="fs.showPMFriend('showSelectBox_menu','selectorBox', $('showSelectBox'));doane(event)"><span>{lang close}</span></button>
</div>
</div>
<div id="ct" class="ct2 wp cl">
<div class="mn">
<div class="bm bml pbn">
<div class="bm_h cl">
<h1 class="xs2 z">
<a href="forum.php?mod=collection&action=view&ctid={$_G['collection']['ctid']}">{$_G['collection']['name']}</a>
</h1>
<div class="clct_flw">
<strong class="xi1" id="follownum_display">{$_G['collection']['follownum']}</strong>
<!--{if $_G['group']['allowfollowcollection'] && $_G['collection']['uid'] != $_G['uid']}-->
<!--{if !$collectionfollowdata['ctid']}-->
<a href="javascript;" id="followlink" onclick="ajaxget(followcollectionurl());doane(event);"><i>{lang collection_follow}</i></a>
<!--{else}-->
<a href="javascript;" id="followlink" onclick="ajaxget(followcollectionurl());doane(event);"><i class="u">{lang collection_unfollow}</i></a>
<!--{/if}-->
<!--{else}-->
<i>{lang collection_follow}</i>
<!--{/if}-->
</div>
</div>
<div class="bm_c">
<div class="cl">
<div class="ptn y">
<!--{hook/collection_viewoptions}-->
<!--{if $permission}-->
<a href="forum.php?mod=collection&action=edit&op=invite&ctid=$ctid" id="k_invite" onclick="showWindow(this.id, this.href, 'get', 0);" class="xi2">{lang collection_invite_team}</a>
<span class="pipe">|</span>
<a href="forum.php?mod=collection&action=edit&op=edit&ctid={$_G['collection']['ctid']}&formhash={FORMHASH}" class="xi2">{lang edit}</a>
<span class="pipe">|</span>
<a href="forum.php?mod=collection&action=edit&op=remove&ctid={$_G['collection']['ctid']}&formhash={FORMHASH}" onclick="showDialog('{lang collection_delete_confirm}','confirm','','window.location=\''+this.href+'\';');return false;" class="xi2">{lang delete}</a>
<!--{/if}-->
<!--{if $_G['uid']!=$_G['collection']['uid']}-->
<!--{if $permission}-->
<span class="pipe">|</span>
<!--{/if}-->
<a href="forum.php?mod=collection&action=comment&op=recommend&ctid=$ctid" id="k_recommened" onclick="showWindow(this.id, this.href, 'get', 0);" class="xi2">{lang collection_recommend}</a>
<!--{/if}-->
<!--{if $isteamworkers}-->
<span id="exitpipe" class="pipe">|</span>
<span><a href="forum.php?mod=collection&action=edit&op=removeworker&ctid={$_G['collection']['ctid']}&uid={$_G['uid']}&formhash={FORMHASH}" onclick="showDialog('{lang collection_exit_team_confirm}','confirm','','window.location=\''+this.href+'\';');return false;" class="xi2">{lang collection_exit_team}</a></span>
<!--{/if}-->
</div>
<div title="$avgrate" class="ptn pbn xg1 cl">
<!--{if $_G['collection']['ratenum'] > 0}-->
<span class="clct_ratestar"><span class="star star$star">&nbsp;</span></span>
&nbsp;{lang collection_totalrates}
<!--{else}-->
{lang collection_norate}
<!--{/if}-->
</div>
</div>
<div class="mbn cl">
<!--{if $_G['collection']['arraykeyword']}-->
<p class="mbn">
{lang collection_keywords}
<!--{loop $_G['collection']['arraykeyword'] $unique_keyword}-->
<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" target="_blank" class="xi2">$unique_keyword</a>&nbsp;
<!--{/loop}-->
</p>
<!--{/if}-->
<p>
{lang collection_creator}<a href="home.php?mod=space&uid={$_G['collection']['uid']}" class="xi2" c="1">{$_G['collection']['username']}</a>
<!--{if $collectionteamworker}-->
<span class="pipe">|</span>
{lang collection_teamworkers}
<!--{loop $collectionteamworker $collectionworker}-->
<span id="k_worker_uid_{$collectionworker['uid']}">
<a href="home.php?mod=space&uid={$collectionworker['uid']}" c="1" class="xi2">{$collectionworker['username']}</a>&nbsp;
<!--{if $permission}-->
<a href="forum.php?mod=collection&action=edit&op=removeworker&ctid={$_G['collection']['ctid']}&uid={$collectionworker['uid']}&formhash={FORMHASH}" onclick="showDialog('{lang collection_delete_worker}','confirm','','ajaxget(\''+this.href+'\',\'k_worker_uid_{$collectionworker['uid']}\')');return false;" class="xi2">[{lang delete}]</a>&nbsp;
<!--{/if}-->
</span>
<!--{/loop}-->
<!--{/if}-->
</p>
</div>
<div>{$_G['collection']['desc']}</div>
</div>
</div>
<!--{hook/collection_view_top}-->
<!--{if !$op}-->
<div class="tl bm">
<!--{if $threadlist}-->
<!--{if $permission}-->
<form action="forum.php?mod=collection&action=edit&op=delthread" method="POST">
<!--{/if}-->
<div class="th">
<table cellspacing="0" cellpadding="0">
<tr>
<td class="icn">&nbsp;</td>
<!--{if $permission}--><td class="o"><label class="z" onclick="checkall(this.form, 'delthread')"><input class="pc" type="checkbox" name="chkall" title="{lang checkall}" /></label></td><!--{/if}-->
<td class="common">{lang collection_thread}</td>
<td class="by">{lang author}</td>
<td class="num">{lang replies}</td>
<td class="by">{lang lastpost}</td>
</tr>
</table>
</div>
<div class="bm_c">
<table cellspacing="0" cellpadding="0">
<!--{loop $collectiontids $thread}-->
<tr>
<td class="icn">
<!--{if $thread['special'] == 1}-->
<i class="fico-vote fic6 fc-n" title="{lang thread_poll}"></i>
<!--{elseif $thread['special'] == 2}-->
<i class="fico-cart fic6 fc-n" title="{lang thread_trade}"></i>
<!--{elseif $thread['special'] == 3}-->
<i class="fico-reward fic6 fc-n" title="{lang thread_reward}"></i>
<!--{elseif $thread['special'] == 4}-->
<i class="fico-group fic6 fc-n" title="{lang thread_activity}"></i>
<!--{elseif $thread['special'] == 5}-->
<i class="fico-vs fic6 fc-n" title="{lang thread_debate}"></i>
<!--{elseif in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
<i class="tpin tpin{$thread[displayorder]}" title="$_G[setting][threadsticky][3-$thread[displayorder]]"><svg width="18" height="18"><path d="M9 0l9 9H14v9H4V9H0z"></path></svg></i>
<!--{else}-->
<i class="fico-thread fic6 fc-n"></i>
<!--{/if}-->
</td>
<!--{if $permission}-->
<td class="o"><input type="checkbox" value="$thread[tid]" name="delthread[]" class="pc" /></td>
<!--{/if}-->
<th{if $thread['reason']} title="{lang collection_recommended_reason}: $thread['reason']"{/if}>
<a href="forum.php?mod=viewthread&tid=$thread[tid]{if !$memberrate AND $_G['uid']}&ctid=$ctid{/if}" target="_blank" class="xst {if $thread[updatedthread]}xw1 xi2{/if}" title="$thread['htmlsubject']">$thread['cutsubject']</a>
<!--{if $thread['readperm']}--> - [{lang readperm} <span class="xw1">$thread[readperm]</span>]<!--{/if}-->
<!--{if $thread['price'] > 0}-->
<!--{if $thread['special'] == '3'}-->
- <span style="color: #C60">[{lang thread_reward} <span class="xw1">$thread[price]</span> {$_G[setting][extcredits][$_G['setting']['creditstransextra'][2]][unit]}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][2]][title]}]</span>
<!--{else}-->
- [{lang price} <span class="xw1">$thread[price]</span> {$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][unit]}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][title]}]
<!--{/if}-->
<!--{elseif $thread['special'] == '3' && $thread['price'] < 0}-->
- [{lang reward_solved}]
<!--{/if}-->
<!--{if $thread['attachment'] == 2}-->
<i class="fico-image fic4 fc-p fnmr vm" title="{lang attach_img}"></i>
<!--{elseif $thread['attachment'] == 1}-->
<i class="fico-attachment fic4 fc-p fnmr vm" title="{lang attachment}"></i>
<!--{/if}-->
<!--{if $thread['digest'] > 0 && $filter != 'digest'}-->
<span class="tbox tdigest">{lang thread_digest}$thread[digest]</span>
<!--{/if}-->
</th>
<td class="by">
<cite>
<!--{if $thread['authorid'] && $thread['author']}-->
<a href="home.php?mod=space&uid=$thread[authorid]" c="1">$thread[author]</a>
<!--{else}-->
{$_G['setting']['anonymoustext']}
<!--{/if}-->
</cite>
<em class="xi1">$thread[dateline]</em>
</td>
<td class="num">
<a href="forum.php?mod=viewthread&tid=$thread[tid]" class="xi2">$thread[replies]</a>
<em>$thread[views]</em>
</td>
<td class="by">
<cite><!--{if $thread['lastposter']}--><a href="{if $thread[digest] != -2}home.php?mod=space&username=$thread[lastposterenc]{else}forum.php?mod=viewthread&tid=$thread[tid]&page={echo max(1, $thread[pages]);}{/if}" c="1">$thread[lastposter]</a><!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
<em><a href="{if $thread[digest] != -2}forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost$highlight#lastpost{else}forum.php?mod=viewthread&tid=$thread[tid]&page={echo max(1, $thread[pages]);}{/if}">$thread[lastpost]</a></em>
</td>
</tr>
<!--{/loop}-->
</table>
</div>
<!--{if $permission}-->
<div class="bm_c cl">
<input type="hidden" value="{$ctid}" name="ctid" />
<input type="hidden" name="formhash" id="formhash" value="{FORMHASH}" />
<button type="submit" class="pn pnc"><span>{lang delete}</span></button>
</div>
</form>
<!--{/if}-->
<!--{else}-->
<div class="emp hm">
<!--{if $search_status && $isteamworkers && $permission}-->
{lang collection_cloud_search}
<!--{else}-->
{lang no_content}
<!--{/if}-->
</div>
<!--{/if}-->
<!--{hook/collection_threadlistbottom}-->
</div>
<!--{if $multipage}--><div class="pgs mtm cl">$multipage</div><br /><!--{/if}-->
<!--{elseif $op == 'related'}-->
<!--{hook/collection_relatedop}-->
<!--{/if}-->
<!--{if $_G['collection']['commentnum'] > 0}-->
<div class="bm">
<div class="bm_h">
<span class="y"><a href="forum.php?mod=collection&action=view&op=comment&ctid=$ctid" class="xi2">{lang collection_allcomment}</a></span>
<h2>{lang collection_newcomment}</h2>
</div>
<div class="bm_c">
<!--{loop $commentlist $comment}-->
<div class="pbn">
<a href="home.php?mod=space&uid={$comment['uid']}" class="xi2 xw1" c="1">$comment[username]</a>
<span class="xg1">$comment[dateline]:</span>
</div>
<div class="pbm">
<!--{if trim($comment[message])}--><p{if $comment[rateimg]} class="mbn"{/if}>$comment[message]</p><!--{/if}-->
<!--{if $comment[rateimg]}-->
<span class="clct_ratestar"><span class="star star$comment[rateimg]"></span></span><br />
<!--{/if}-->
</div>
<!--{/loop}-->
</div>
</div>
<!--{/if}-->
<!--{if $_G['group']['allowcommentcollection']}-->
<div class="bm">
<form action="forum.php?mod=collection&action=comment&ctid={$_G['collection']['ctid']}" method="POST" onsubmit="$('btnCommentSubmit').disabled=true;ajaxpost(this.id, 'ajaxreturn');" id="form_addComment" name="form_addComment">
<div class="bm_h">
<h2>{lang collection_ratecollection}</h2>
</div>
<div class="bm_c {if $memberrate}bbda{/if}">
<!--{if !$memberrate}-->
<div class="cl">
<input type="hidden" name="ratescore" id="ratescore" />
<span class="clct_ratestar">
<span class="btn">
<a href="javascript:;" onmouseover="rateStarHover('clct_ratestar_star',1)" onmouseout="rateStarHover('clct_ratestar_star',0)" onclick="rateStarSet('clct_ratestar_star',1,'ratescore')">1</a>
<a href="javascript:;" onmouseover="rateStarHover('clct_ratestar_star',2)" onmouseout="rateStarHover('clct_ratestar_star',0)" onclick="rateStarSet('clct_ratestar_star',2,'ratescore')">2</a>
<a href="javascript:;" onmouseover="rateStarHover('clct_ratestar_star',3)" onmouseout="rateStarHover('clct_ratestar_star',0)" onclick="rateStarSet('clct_ratestar_star',3,'ratescore')">3</a>
<a href="javascript:;" onmouseover="rateStarHover('clct_ratestar_star',4)" onmouseout="rateStarHover('clct_ratestar_star',0)" onclick="rateStarSet('clct_ratestar_star',4,'ratescore')">4</a>
<a href="javascript:;" onmouseover="rateStarHover('clct_ratestar_star',5)" onmouseout="rateStarHover('clct_ratestar_star',0)" onclick="rateStarSet('clct_ratestar_star',5,'ratescore')">5</a>
</span>
<span id="clct_ratestar_star" class="star star$memberrate"></span>
</span>
</div>
<!--{/if}-->
<div class="pbn">
<textarea name="message" rows="4" class="pt" style="width: 94%"></textarea>
</div>
<div><button type="submit" class="pn pnc" id="btnCommentSubmit"><span>{lang collection_comment_submit}</span></button></div>
</div>
<!--{if $memberrate}-->
<div class="bm_c ptn pbn cl">
<span class="z">{lang collection_rated}&nbsp;</span>
<span class="clct_ratestar"><span class="star star$memberrate"></span></span>
</div>
<!--{/if}-->
<input type="hidden" name="inajax" value="1">
<input type="hidden" name="handlekey" value="k_addComment">
</form>
</div>
<!--{/if}-->
<!--{hook/collection_view_bottom}-->
</div>
<div class="sd">
<div class="bm bml tns">
<table cellspacing="0" cellpadding="4">
<tr>
<th>
<p>{$_G['collection']['threadnum']}</p>{lang collection_threadnum}
</th>
<th>
<p>{$_G['collection']['commentnum']}</p>{lang collection_commentnum}
</th>
<td>
<p><span id="rightcolfollownum">{$_G['collection']['follownum']}</span></p>{lang collection_follow}
</td>
</tr>
</table>
</div>
<!--{if $followers}-->
<div class="bm">
<div class="bm_h">
<span class="y"><a href="forum.php?mod=collection&action=view&op=followers&ctid=$ctid" class="xi2">{lang collection_allfollowers}</a></span>
<h2>{lang collection_newfollowers}</h2>
</div>
<div class="bm_c">
<ul class="ml mls cl">
<!--{loop $followers $follower}-->
<li>
<a href="home.php?mod=space&uid=$follower[uid]" class="avt"><!--{avatar($follower['uid'], 'small')}--></a>
<p><a href="home.php?mod=space&uid=$follower[uid]" c="1">$follower[username]</a></p>
</li>
<!--{/loop}-->
</ul>
</div>
</div>
<!--{/if}-->
<!--{if $userCollections}-->
<div class="bm">
<div class="bm_h">
<h2>{lang collection_creators}</h2>
</div>
<div class="bm_c">
<!--{loop $userCollections $ucollection}-->
<div class="pbn">
<a href="forum.php?mod=collection&action=view&ctid={$ucollection['ctid']}" class="xi2 xw1">$ucollection[name]</a>
</div>
<div class="pbm">
{lang collection_threadnum} $ucollection[threadnum], {lang collection_follow} $ucollection[follownum], {lang collection_commentnum} $ucollection[commentnum]
</div>
<!--{/loop}-->
</div>
</div>
<!--{/if}-->
<!--{hook/collection_side_bottom}-->
</div>
</div>
<span id='ajaxreturn' style='display:none;'></span>
<!--{template common/footer}-->

View File

@@ -0,0 +1,80 @@
<!--{template common/header}-->
<!--{if empty($_GET['infloat'])}-->
<div id="ct" class="wp cl">
<div class="mn">
<div class="bm bw0">
<!--{/if}-->
<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" onsubmit="{if !empty($_GET['infloat'])}ajaxpost('commentform', 'return_$_GET['handlekey']', 'return_$_GET['handlekey']', 'onerror');return false;{/if}">
<div class="f_c">
<h3 class="flb">
<em id="return_$_GET['handlekey']">{lang comments}</em>
<span>
<!--{if !empty($_GET['infloat'])}--><a href="javascript:;" class="flbc" onclick="hideWindow('$_GET['handlekey']')" title="{lang close}">{lang close}</a><!--{/if}-->
</span>
</h3>
<input type="hidden" name="formhash" id="formhash" value="{FORMHASH}" />
<input type="hidden" name="handlekey" value="$_GET['handlekey']" />
<div class="c">
<div class="tedt">
<div class="bar cm">
<!--{eval $seditor = array('comment', array('bold', 'color'));}-->
<!--{subtemplate common/seditor}-->
<span id="itemdiv"></span>
</div>
<div class="area">
<textarea rows="2" cols="50" name="message" id="commentmessage" onKeyUp="strLenCalc(this, 'checklen')" onKeyDown="seditor_ctlent(event, '$(\'commentsubmit\').click();')" class="pt" style="overflow: auto"></textarea>
</div>
<script type="text/javascript" reload="1">
<!--{if $commentitem}-->
var items = itemrow = itemcmm = '';
<!--{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}-->
items += '<input type="hidden" id="itemc_$i" name="commentitem[$item]" value="" />';
itemrow = '<span id="itemt_$i" class="z xg1 cur1" title="{lang comment_give_ip}" onclick="itemdisable($i)">&nbsp;$item</span>';
itemstar = '';
<!--{loop $items $j}-->
itemstar += '<em class="itms_$j" onclick="itemclk($i, $j)" onmouseover="itemop($i, $j)" onmouseout="itemset($i)" title="$itemlang[$j]($j)"></em>';
<!--{/loop}-->
itemrow += '<span id="item_$i" class="z cmstar">' + itemstar + '</span>';
<!--{eval $i++;}-->
<!--{if !$cmm}-->items += itemrow;<!--{else}-->itemcmm += '<div class="cl cmm" style="margin:5px">' + itemrow + '</div>';<!--{/if}-->
<!--{elseif !$cmm}-->
items += '<span class="z" id="itemmore" onmouseover="showMenu({\'ctrlid\':this.id,\'pos\':\'13\'})">&nbsp;&raquo; {lang more}</span>';
<!--{eval $cmm = 1;}-->
<!--{/if}-->
<!--{/loop}-->
$('itemdiv').innerHTML = items;
if(itemcmm) {
cmmdiv = document.createElement('div');
cmmdiv.id = 'itemmore_menu';
cmmdiv.style.display = 'none';
cmmdiv.className = 'p_pop';
cmmdiv.innerHTML = itemcmm;
$('append_parent').appendChild(cmmdiv);
}
<!--{/if}-->
$('commentmessage').focus();
</script>
</div>
<div id="seccheck_comment">
<!--{if $secqaacheck || $seccodecheck}-->
<!--{subtemplate forum/seccheck_post}-->
<!--{/if}-->
</div>
</div>
</div>
<div class="o pns cl{if empty($_GET['infloat'])} mtm{/if}">
<button type="submit" id="commentsubmit" class="pn pnc z" 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>
<span class="y">{lang comment_message1} <strong id="checklen">200</strong> {lang comment_message2}</span>
</div>
</form>
<!--{if empty($_GET['infloat'])}-->
</div>
</div>
</div>
<!--{/if}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,31 @@
<!--{template common/header}-->
<!--{if $comments}-->
<h3 class="psth cm">{lang comments}</h3>
<!--{if $totalcomment}--><div class="pstl">$totalcomment</div><!--{/if}-->
<!--{loop $comments $comment}-->
<div class="pstl">
<div class="psta">
$comment[avatar]&nbsp;
<!--{if $comment['authorid']}-->
<a href="home.php?mod=space&uid=$comment[authorid]" class="xi2 xw1">$comment[author]</a>
<!--{else}-->
{lang guest}
<!--{/if}-->
</div>
<div class="psti">
&nbsp;$comment[comment]&nbsp;
<!--{if $comment[rpid]}-->
<a href="forum.php?mod=redirect&goto=findpost&pid=$comment[rpid]&ptid=$_G[tid]" class="xi2">{lang detail}</a>
<a href="forum.php?mod=post&action=reply&fid=$_G[fid]&tid=$_G[tid]&reppost=$comment[rpid]&extra=$_GET[extra]&page=$page{if $_GET[from]}&from=$_GET[from]{/if}" class="xi2" onclick="showWindow('reply', this.href)">{lang reply}</a>
<!--{/if}-->
<span class="xg1">
{lang poston} $comment[dateline]
<!--{if $comment['useip'] && $_G['group']['allowviewip']}-->&nbsp;IP:$comment[useip]{if $comment[port]}:$comment[port]{/if}<!--{/if}-->
<!--{if $_G['forum']['ismoderator'] && $_G['group']['allowdelpost']}-->&nbsp;<a href="javascript:;" onclick="modaction('delcomment', $comment[id])">{lang delete}</a><!--{/if}-->
</span>
</div>
</div>
<!--{/loop}-->
<!--{/if}-->
<div class="pgs mbm cl">$multi</div>
<!--{template common/footer}-->

View File

@@ -0,0 +1,85 @@
<!--{template common/header}-->
<div id="pt" class="bm cl">
<div class="z">
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em>
<a href="forum.php?mod=misc&action=showdarkroom">{lang darkroom}</a>
</div>
</div>
<div style="margin:10px 0;">
<table id="darkroomtable" summary="{lang darkroom}" cellspacing="0" cellpadding="0" class="bm dt">
<tr>
<th class="xw1" style="width:105px;">{lang username}</th>
<th class="xw1" style="width:135px;">{lang crime_action}</th>
<th class="xw1" style="width:155px;">{lang expire_dateline}</th>
<th class="xw1" style="width:155px;">{lang crime_dateline}</th>
<th class="xw1">{lang crime_reason}</th>
</tr>
<!--{if $crimelist}-->
<!--{eval $i = 0;}-->
<!--{loop $crimelist $crime}-->
<!--{eval $i++;}-->
<tr id="darkroomuid_$crime[uid]" {if $i % 2 == 0} class="alt"{/if}>
<td><a href="home.php?mod=space&uid=$crime[uid]" target="_blank">$crime[username]</a></td>
<td>$crime[action]</td>
<td>$crime[groupexpiry]</td>
<td>$crime[dateline]</td>
<td>$crime[reason]</td>
</tr>
<!--{/loop}-->
</table>
<!--{if $dataexist == 1}-->
<div class="bm bw0 pgs cl">
<span class="pgb y"><div class="pg"><a href="javascript:;" class="nxt" id="darkroommore" cid="$cid">{lang more}</a></div></span>
</div>
<!--{/if}-->
<!--{else}-->
<tr>
<td colspan="6" align="center">{lang darkroom_no_users}</td>
</tr>
</table>
<!--{/if}-->
</div>
<script type="text/javascript">
(function() {
if($('darkroommore')) {
$('darkroommore').onclick = function() {
var obj = this;
var cid = parseInt(obj.getAttribute('cid').valueOf());
var url = 'forum.php?mod=misc&action=showdarkroom&cid=' + cid + '&t=' + parseInt((+new Date()/1000)/(Math.random()*1000));
var table = $('darkroomtable');
var tablerows = table.rows.length;
obj.style.display = 'none';
var x = new Ajax('JSON');
x.getJSON(url, function(s) {
if(s && s.message) {
var smsg = s.message.split('|');
if(smsg[0] == 1) {
obj.setAttribute('cid', smsg[1]);
obj.style.display = 'block';
}
var list = s.data;
for(i in list) {
if($('darkroomuid_' + list[i].uid)) {
continue;
}
var newtr = table.insertRow(tablerows);
if(tablerows % 2 == 0) {
newtr.className = 'alt';
}
newtr.insertCell(0).innerHTML = '<a href="home.php?mod=space&uid=' + list[i].uid + '" target="_blank">' + list[i].username + '</a>';
newtr.insertCell(1).innerHTML = list[i].action;
newtr.insertCell(2).innerHTML = list[i].groupexpiry;
newtr.insertCell(3).innerHTML = list[i].dateline;
newtr.insertCell(4).innerHTML = list[i].reason;
tablerows++;
}
}
});
};
}
})();
</script>
<!--{template common/footer}-->

View File

@@ -0,0 +1,80 @@
<!--{template common/header}-->
<!--{if empty($_GET['infloat'])}-->
<div id="pt" class="bm cl">
<div class="z"><a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em> $navigation</div>
</div>
<div id="ct" class="wp cl">
<div class="mn">
<div class="bm bw0">
<!--{/if}-->
<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}>
<div class="f_c">
<h3 class="flb">
<em id="return_$_GET['handlekey']">{lang debate_umpirecomment}</em>
<span>
<!--{if !empty($_GET['infloat'])}--><a href="javascript:;" class="flbc" onclick="hideWindow('$_GET['handlekey']')" title="{lang close}">{lang close}</a><!--{/if}-->
</span>
</h3>
<input type="hidden" name="formhash" id="formhash" value="{FORMHASH}" />
<!--{if !empty($_GET['infloat'])}--><input type="hidden" name="handlekey" value="$_GET['handlekey']" /><!--{/if}-->
<div class="c">
<table class="tfm" cellspacing="0" cellpadding="0">
<tr>
<th>{lang debate_winner}</th>
<td>
<label class="lb"><input type="radio" name="winner" value="1" class="pr" $winnerchecked[1] id="winner1" />{lang debate_square}</label>
<label class="lb"><input type="radio" name="winner" value="2" class="pr" $winnerchecked[2] id="winner2" />{lang debate_opponent}</label>
<label class="lb"><input type="radio" name="winner" value="3" class="pr" $winnerchecked[3] id="winner3" />{lang debate_draw}</label>
</td>
</tr>
<tr>
<th><label for="bestdebater">{lang debate_bestdebater}</label></th>
<td>
<p>
<select onchange="$('bestdebater').value=this.options[this.options.selectedIndex].value" class="ps">
<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>
</p>
<p class="mtn"><input type="text" name="bestdebater" id="bestdebater" class="px" value="$debate[bestdebater]" size="20" /></p>
<p class="d">{lang debate_list_nonexistence}</p>
</td>
</tr>
<tr>
<th><label for="umpirepoint">{lang debate_umpirepoint}</label></th>
<td><textarea id="umpirepoint" name="umpirepoint" class="pt" style="height: 100px;">$debate[umpirepoint]</textarea></td>
</tr>
</table>
</div>
</div>
<div class="o pns">
<button class="pn pnc" type="submit" name="umpiresubmit" value="true" class="submit"><span>{lang submit}</span></button>
</div>
</form>
<!--{if !empty($_GET['infloat'])}-->
<script type="text/javascript" reload="1">
function succeedhandle_$_GET['handlekey'](locationhref) {
<!--{if !empty($_GET['from'])}-->
location.href = locationhref;
<!--{else}-->
ajaxget('forum.php?mod=viewthread&tid=$_G[tid]&viewpid=$_GET[pid]', 'post_$_GET[pid]');
hideWindow('$_GET['handlekey']');
<!--{/if}-->
}
</script>
<!--{/if}-->
<!--{if empty($_GET['infloat'])}-->
</div>
</div>
</div>
<!--{/if}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,598 @@
<!--{template common/header}-->
<div id="pt" class="bm cl">
<!--{if empty($gid) && $announcements}-->
<div class="y">
<div id="an">
<dl class="cl">
<dt class="z xw1">{lang announcements}:&nbsp;</dt>
<dd>
<div id="anc"><ul id="ancl">$announcements</ul></div>
</dd>
</dl>
</div>
<script type="text/javascript">announcement();</script>
</div>
<!--{/if}-->
<div class="z">
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a><em>&raquo;</em><a href="forum.php">{$_G[setting][navs][2][navname]}</a>{$navigation or ''}
</div>
<div class="z"><!--{hook/index_status_extra}--></div>
</div>
<!--{if empty($gid)}-->
<!--{ad/text/wp a_t}-->
<!--{/if}-->
<style id="diy_style" type="text/css"></style>
<!--{if empty($gid)}-->
<div class="wp">
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
</div>
<!--{/if}-->
<div id="ct" class="wp cl{if $_G['setting']['forumallowside']} ct2{/if}">
<!--{if empty($gid)}-->
<div id="chart" class="bm bw0 cl">
<p class="chart z">{lang index_today}: <em>$todayposts</em><span class="pipe">|</span>{lang index_yesterday}: <em>$postdata[0]</em><span class="pipe">|</span>{lang index_posts}: <em>$posts</em><span class="pipe">|</span>{lang index_members}: <em>$_G['cache']['userstats']['totalmembers']</em><!--{if $_G['cache']['userstats']['newsetuser']}--><span class="pipe">|</span>{lang welcome_new_members}: <em><a href="home.php?mod=space&username={echo rawurlencode($_G['cache']['userstats']['newsetuser'])}" target="_blank" class="xi2">$_G['cache']['userstats']['newsetuser']</a></em><!--{/if}--></p>
<div class="y">
<!--{hook/index_nav_extra}-->
<!--{if $_G['uid'] && $_G['setting']['forumstatus']}--><a href="home.php?mod=space&do=thread&view=me" title="{lang my_posts}" class="xi2">{lang my_posts}</a><!--{/if}--><!--{if !empty($_G['setting']['search']['forum']['status'] && $_G['setting']['guidestatus'])}--><!--{if $_G['uid'] && $_G['setting']['forumstatus']}--><span class="pipe">|</span><!--{/if}--><a href="forum.php?mod=guide&view=new" title="{lang show_newthreads}" class="xi2">{lang show_newthreads}</a><!--{/if}-->
</div>
</div>
<!--{/if}-->
<!--[diy=diy_chart]--><div id="diy_chart" class="area"></div><!--[/diy]-->
<div class="mn">
<!--{if !empty($_G['setting']['grid']['showgrid'])}-->
<!-- index four grid -->
<div class="fl bm">
<div class="bm bmw cl">
<div id="category_grid" class="bm_c" >
<table cellspacing="0" cellpadding="0"><tr>
<!--{if !$_G['setting']['grid']['gridtype']}-->
<td valign="top" class="category_l1">
<div class="newimgbox">
<h4><span class="tit_newimg"></span>{lang latest_images}</h4>
<!--{if $_G['setting']['forumallowside']}-->
<!--{eval $slide_width = 220;}-->
<!--{else}-->
<!--{eval $slide_width = 278;}-->
<!--{/if}-->
<div class="module cl slidebox_grid" style="width:{$slide_width}px">
<script type="text/javascript">
var slideSpeed = 5000;
var slideImgsize = [{$slide_width},200];
var slideBorderColor = '{$_G['style']['specialborder']}';
var slideBgColor = '{$_G['style']['commonbg']}';
var slideImgs = new Array();
var slideImgLinks = new Array();
var slideImgTexts = new Array();
var slideSwitchColor = '{$_G['style']['tabletext']}';
var slideSwitchbgColor = '{$_G['style']['commonbg']}';
var slideSwitchHiColor = '{$_G['style']['specialborder']}';
{eval $k = 1;}
<!--{loop $grids['slide'] $stid $svalue}-->
slideImgs[<!--{echo $k}-->] = '$svalue[image]';
slideImgLinks[<!--{echo $k}-->] = '{$svalue[url]}';
slideImgTexts[<!--{echo $k}-->] = '$svalue[subject]';
{eval $k++;}
<!--{/loop}-->
</script>
<script language="javascript" type="text/javascript" src="{$_G[setting][jspath]}forum_slide.js?{VERHASH}"></script>
</div>
</div>
</td>
<!--{/if}-->
<td valign="top" class="category_l2">
<div class="subjectbox">
<h4><span class="tit_subject"></span>{lang collection_lastthread}</h4>
<ul class="category_newlist">
<!--{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]&extra=$extra"{if $thread['highlight']} $thread['highlight']{/if}{if $_G['setting']['grid']['showtips']} tip="{lang title}: <strong>$thread[oldsubject]</strong><br/>{lang author}: $thread[author] ($thread[dateline])<br/>{lang show}/{lang reply}: $thread[views]/$thread[replies]" onmouseover="showTip(this)"{else} title="$thread[oldsubject]"{/if}{if $_G['setting']['grid']['targetblank']} target="_blank"{/if}>$thread[subject]</a></li>
<!--{/loop}-->
</ul>
</div>
</td>
<td valign="top" class="category_l3">
<div class="replaybox">
<h4><span class="tit_replay"></span>{lang show_newthreads}</h4>
<ul class="category_newlist">
<!--{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=redirect&tid=$thread[tid]&goto=lastpost#lastpost"{if $thread['highlight']} $thread['highlight']{/if}{if $_G['setting']['grid']['showtips']}tip="{lang title}: <strong>$thread[oldsubject]</strong><br/>{lang author}: $thread[author] ($thread[dateline])<br/>{lang show}/{lang reply}: $thread[views]/$thread[replies]" onmouseover="showTip(this)"{else} title="$thread[oldsubject]"{/if}{if $_G['setting']['grid']['targetblank']} target="_blank"{/if}>$thread[subject]</a></li>
<!--{/loop}-->
</ul>
</div>
</td>
<td valign="top" class="category_l3">
<div class="hottiebox">
<h4><span class="tit_hottie"></span>{lang hot_thread}</h4>
<ul class="category_newlist">
<!--{loop $grids['hot'] $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]&extra=$extra"{if $thread['highlight']} $thread['highlight']{/if}{if $_G['setting']['grid']['showtips']} tip="{lang title}: <strong>$thread[oldsubject]</strong><br/>{lang author}: $thread[author] ($thread[dateline])<br/>{lang show}/{lang reply}: $thread[views]/$thread[replies]" onmouseover="showTip(this)"{else} title="$thread[oldsubject]"{/if}{if $_G['setting']['grid']['targetblank']} target="_blank"{/if}>$thread[subject]</a></li>
<!--{/loop}-->
</ul>
</div>
</td>
<!--{if $_G['setting']['grid']['gridtype']}-->
<td valign="top" class="category_l4">
<div class="goodtiebox">
<h4><span class="tit_goodtie"></span>{lang post_digest_thread}</h4>
<ul class="category_newlist">
<!--{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]&extra=$extra"{if $thread['highlight']} $thread['highlight']{/if}{if $_G['setting']['grid']['showtips']} tip="{lang title}: <strong>$thread[oldsubject]</strong><br/>{lang author}: $thread[author] ($thread[dateline])<br/>{lang show}/{lang reply}: $thread[views]/$thread[replies]" onmouseover="showTip(this)"{else} title="$thread[oldsubject]"{/if}{if $_G['setting']['grid']['targetblank']} target="_blank"{/if}>$thread[subject]</a></li>
<!--{/loop}-->
</ul>
</div>
</td>
<!--{/if}-->
</table>
</div>
</div>
</div>
<!-- index four grid end -->
<!--{/if}-->
<!--{hook/index_top}-->
<!--{if !empty($_G['cache']['heats']['message'])}-->
<div class="bm">
<div class="bm_h cl">
<h2>{lang hotthreads_forum}</h2>
</div>
<div class="bm_c cl">
<div class="heat z">
<!--{loop $_G['cache']['heats']['message'] $data}-->
<dl class="xld">
<dt><!--{if $_G['adminid'] == 1}--><a class="d" href="forum.php?mod=misc&action=removeindexheats&tid=$data[tid]" onclick="return removeindexheats()">delete</a><!--{/if}-->
<a href="forum.php?mod=viewthread&tid=$data[tid]" target="_blank" class="xi2">$data[subject]</a></dt>
<dd>$data[message]</dd>
</dl>
<!--{/loop}-->
</div>
<ul class="xl xl1 heatl">
<!--{loop $_G['cache']['heats']['subject'] $data}-->
<li><!--{if $_G['adminid'] == 1}--><a class="d" href="forum.php?mod=misc&action=removeindexheats&tid=$data[tid]" onclick="return removeindexheats()">delete</a><!--{/if}-->&middot; <a href="forum.php?mod=viewthread&tid=$data[tid]" target="_blank" class="xi2">$data[subject]</a></li>
<!--{/loop}-->
</ul>
</div>
</div>
<!--{/if}-->
<!--{hook/index_catlist_top}-->
<div class="fl bm">
<!--{if !empty($collectiondata['follows'])}-->
<!--{eval $forumscount = count($collectiondata['follows']);}-->
<!--{eval $forumcolumns = 4;}-->
<!--{eval $forumcolwidth = (floor(100 / $forumcolumns) - 0.1).'%';}-->
<div class="bm bmw {if $forumcolumns} flg{/if} cl">
<div class="bm_h cl">
<span class="o">
<em id="category_-1_img" class="tg{$collapse['collapseicon_-1']}" title="{lang spread}" onclick="toggle_collapse('category_-1');"></em>
</span>
<h2><a href="forum.php?mod=collection&op=my">{lang my_order_collection}</a></h2>
</div>
<div id="category_-1" class="bm_c" style="{echo $collapse['category_-1']}">
<table cellspacing="0" cellpadding="0" class="fl_tb">
<tr>
<!--{eval $ctorderid = 0;}-->
<!--{loop $collectiondata['follows'] $key $colletion}-->
<!--{if $ctorderid && ($ctorderid % $forumcolumns == 0)}-->
</tr>
<!--{if $ctorderid < $forumscount}-->
<tr class="fl_row">
<!--{/if}-->
<!--{/if}-->
<td class="fl_g"{if $forumcolwidth} width="$forumcolwidth"{/if}>
<div class="fl_icn_g">
<a href="forum.php?mod=collection&action=view&ctid={$colletion[ctid]}" target="_blank" title="$colletion[name]"><svg width="31" height="29"><path fill="#{if $followcollections[$key]['lastvisit'] < $colletion['lastupdate']}fdc910{else}c9c9c9{/if}" d="M31 13c0-7.2-6.9-13-15.5-13S0 5.8 0 13s6.9 13 15.5 13c1.6 0 3.2-.2 4.6-.6L27 28l-1.7-5c3.5-2.4 5.7-6 5.7-10z"/></svg></a>
</div>
<dl>
<dt><a href="forum.php?mod=collection&action=view&ctid={$colletion[ctid]}">$colletion[name]</a></dt>
<dd><em>{lang forum_threads}: <!--{echo dnumber($colletion[threadnum])}--></em>, <em>{lang collection_commentnum}: <!--{echo dnumber($colletion[commentnum])}--></em></dd>
<dd>
<!--{if $colletion['lastpost']}-->
<!--{if $forumcolumns < 3}-->
<a href="forum.php?mod=redirect&tid=$colletion[lastpost]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($colletion[lastsubject], 30)}--></a> <cite><!--{date($colletion['lastposttime'])}--> <!--{if $colletion['lastposter']}-->$colletion['lastposter']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
<!--{else}-->
<a href="forum.php?mod=redirect&tid=$colletion[lastpost]&goto=lastpost#lastpost">{lang forum_lastpost}: <!--{date($colletion['lastposttime'])}--></a>
<!--{/if}-->
<!--{else}-->
{lang never}
<!--{/if}-->
</dd>
<!--{hook/index_followcollection_extra $colletion['ctid']}-->
</dl>
</td>
<!--{eval $ctorderid++;}-->
<!--{/loop}-->
<!--{if ($columnspad = $ctorderid % $forumcolumns) > 0}--><!--{echo str_repeat('<td class="fl_g"'.($forumcolwidth ? " width=\"$forumcolwidth\"" : '').'></td>', $forumcolumns - $columnspad);}--><!--{/if}-->
</tr>
</table>
</div>
</div>
<!--{/if}-->
<!--{if empty($gid) && !empty($forum_favlist)}-->
<!--{eval $forumscount = count($forum_favlist);}-->
<!--{eval $forumcolumns = $forumscount > 3 ? ($forumscount == 4 ? 4 : 5) : 1;}-->
<!--{eval $forumcolwidth = (floor(100 / $forumcolumns) - 0.1).'%';}-->
<div class="bm bmw {if $forumcolumns} flg{/if} cl">
<div class="bm_h cl">
<span class="o">
<em id="category_0_img" class="tg{$collapse['collapseicon_0']}" title="{lang spread}" onclick="toggle_collapse('category_0');"></em>
</span>
<h2><a href="home.php?mod=space&do=favorite&type=forum">{lang forum_myfav}</a></h2>
</div>
<div id="category_0" class="bm_c" style="{echo $collapse['category_0']}">
<table cellspacing="0" cellpadding="0" class="fl_tb">
<tr>
<!--{eval $favorderid = 0;}-->
<!--{loop $forum_favlist $key $favorite}-->
<!--{if $favforumlist[$favorite[id]]}-->
<!--{eval $forum=$favforumlist[$favorite['id']];}-->
<!--{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 $forumcolumns>1}-->
<!--{if $favorderid && ($favorderid % $forumcolumns == 0)}-->
</tr>
<!--{if $favorderid < $forumscount}-->
<tr class="fl_row">
<!--{/if}-->
<!--{/if}-->
<td class="fl_g"{if $forumcolwidth} width="$forumcolwidth"{/if}>
<div class="fl_icn_g"{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
<!--{if $forum[icon]}-->
$forum[icon]
<!--{else}-->
<a href="$forumurl"{if $forum[redirect]} target="_blank"{/if} title="$forum[name]"><svg width="31" height="29"><path fill="#{if $forum[folder]}fdc910{else}c9c9c9{/if}" d="M31 13c0-7.2-6.9-13-15.5-13S0 5.8 0 13s6.9 13 15.5 13c1.6 0 3.2-.2 4.6-.6L27 28l-1.7-5c3.5-2.4 5.7-6 5.7-10z"/></svg></a>
<!--{/if}-->
</div>
<dl{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="margin-left: {$forum[extra][iconwidth]}px;"{/if}>
<dt><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum[todayposts])</em><!--{/if}--></dt>
<!--{if empty($forum[redirect])}--><dd><em>{lang forum_threads}: <!--{echo dnumber($forum[threads])}--></em>, <em>{lang forum_posts}: <!--{echo dnumber($forum[posts])}--></em></dd><!--{/if}-->
<dd>
<!--{if $forum['permission'] == 1}-->
{lang private_forum}
<!--{else}-->
<!--{if $forum['redirect']}-->
<a href="$forumurl" class="xi2">{lang url_link}</a>
<!--{elseif is_array($forum['lastpost'])}-->
<!--{if $forumcolumns < 3}-->
<a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
<!--{else}-->
<a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{lang forum_lastpost}: $forum[lastpost][dateline]</a>
<!--{/if}-->
<!--{else}-->
{lang never}
<!--{/if}-->
<!--{/if}-->
</dd>
<!--{hook/index_favforum_extra $forum['fid']}-->
</dl>
</td>
<!--{eval $favorderid++;}-->
<!--{else}-->
<td class="fl_icn" {if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
<!--{if $forum[icon]}-->
$forum[icon]
<!--{else}-->
<a href="$forumurl"{if $forum[redirect]} target="_blank"{/if} title="$forum[name]"><svg width="31" height="29"><path fill="#{if $forum[folder]}fdc910{else}c9c9c9{/if}" d="M31 13c0-7.2-6.9-13-15.5-13S0 5.8 0 13s6.9 13 15.5 13c1.6 0 3.2-.2 4.6-.6L27 28l-1.7-5c3.5-2.4 5.7-6 5.7-10z"/></svg></a>
<!--{/if}-->
</td>
<td>
<h2><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum[todayposts])</em><!--{/if}--></h2>
<!--{if $forum[description]}--><p class="xg2">$forum[description]</p><!--{/if}-->
<!--{if $forumlist[$forum['fid']]['subforums']}--><p>{lang forum_subforums}: $forumlist[$forum['fid']]['subforums']</p><!--{/if}-->
<!--{if $forum['moderators']}--><p>{lang forum_moderators}: <span class="xi2">$forum[moderators]</span></p><!--{/if}-->
<!--{hook/index_favforum_extra $forum['fid']}-->
</td>
<td class="fl_i">
<!--{if empty($forum[redirect])}--><span class="xi2"><!--{echo dnumber($forum[threads])}--></span><span class="xg1"> / <!--{echo dnumber($forum[posts])}--></span><!--{/if}-->
</td>
<td class="fl_by">
<div>
<!--{if $forum['permission'] == 1}-->
{lang private_forum}
<!--{else}-->
<!--{if $forum['redirect']}-->
<a href="$forumurl" class="xi2">{lang url_link}</a>
<!--{elseif is_array($forum['lastpost'])}-->
<a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
<!--{else}-->
{lang never}
<!--{/if}-->
<!--{/if}-->
</div>
</td>
</tr>
<tr class="fl_row">
<!--{/if}-->
<!--{/if}-->
<!--{/loop}-->
<!--{if ($columnspad = $favorderid % $forumcolumns) > 0}--><!--{echo str_repeat('<td class="fl_g"'.($forumcolwidth ? " width=\"$forumcolwidth\"" : '').'></td>', $forumcolumns - $columnspad);}--><!--{/if}-->
</tr>
</table>
</div>
</div>
<!--{ad/intercat/bm a_c/-1}-->
<!--{/if}-->
<!--{loop $catlist $key $cat}-->
<!--{hook/index_catlist $cat['fid']}-->
<div class="bm bmw {if $cat['forumcolumns']} flg{/if} cl">
<div class="bm_h cl">
<span class="o">
<em id="category_$cat[fid]_img" class="tg{$cat[collapseicon]}" title="{lang spread}" onclick="toggle_collapse('category_$cat[fid]');"></em>
</span>
<!--{if $cat['moderators']}--><span class="y">{lang forum_category_modedby}: $cat[moderators]</span><!--{/if}-->
<!--{eval $caturl = !empty($cat['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? $_G['scheme'].'://'.$cat['domain'].'.'.$_G['setting']['domain']['root']['forum'] : '';}-->
<h2><a href="{if !empty($caturl)}$caturl{else}forum.php?gid=$cat[fid]{/if}" style="{if !empty($cat[extra][namecolor])}color: {$cat[extra][namecolor]};{/if}">$cat[name]</a></h2>
</div>
<div id="category_$cat[fid]" class="bm_c" style="{echo $collapse['category_'.$cat[fid]] or ''}">
<table cellspacing="0" cellpadding="0" class="fl_tb">
<tr>
<!--{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 $cat['forumcolumns']}-->
<!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}-->
</tr>
<!--{if $forum['orderid'] < $cat['forumscount']}-->
<tr class="fl_row">
<!--{/if}-->
<!--{/if}-->
<td class="fl_g" width="$cat[forumcolwidth]">
<div class="fl_icn_g"{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
<!--{if $forum[icon]}-->
$forum[icon]
<!--{else}-->
<a href="$forumurl"{if $forum[redirect]} target="_blank"{/if} title="$forum[name]"><svg width="31" height="29"><path fill="#{if $forum[folder]}fdc910{else}c9c9c9{/if}" d="M31 13c0-7.2-6.9-13-15.5-13S0 5.8 0 13s6.9 13 15.5 13c1.6 0 3.2-.2 4.6-.6L27 28l-1.7-5c3.5-2.4 5.7-6 5.7-10z"/></svg></a>
<!--{/if}-->
</div>
<dl{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="margin-left: {$forum[extra][iconwidth]}px;"{/if}>
<dt><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum[todayposts])</em><!--{/if}--></dt>
<!--{if empty($forum[redirect])}--><dd><em>{lang forum_threads}: <!--{echo dnumber($forum[threads])}--></em>, <em>{lang forum_posts}: <!--{echo dnumber($forum[posts])}--></em></dd><!--{/if}-->
<dd>
<!--{if $forum['permission'] == 1}-->
{lang private_forum}
<!--{else}-->
<!--{if $forum['redirect']}-->
<a href="$forumurl" class="xi2">{lang url_link}</a>
<!--{elseif is_array($forum['lastpost'])}-->
<!--{if $cat['forumcolumns'] < 3}-->
<a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
<!--{else}-->
<a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{lang forum_lastpost}: $forum[lastpost][dateline]</a>
<!--{/if}-->
<!--{else}-->
{lang never}
<!--{/if}-->
<!--{/if}-->
</dd>
<!--{hook/index_forum_extra $forum['fid']}-->
</dl>
</td>
<!--{else}-->
<td class="fl_icn" {if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
<!--{if $forum[icon]}-->
$forum[icon]
<!--{else}-->
<a href="$forumurl"{if $forum[redirect]} target="_blank"{/if} title="$forum[name]"><svg width="31" height="29"><path fill="#{if $forum[folder]}fdc910{else}c9c9c9{/if}" d="M31 13c0-7.2-6.9-13-15.5-13S0 5.8 0 13s6.9 13 15.5 13c1.6 0 3.2-.2 4.6-.6L27 28l-1.7-5c3.5-2.4 5.7-6 5.7-10z"/></svg></a>
<!--{/if}-->
</td>
<td>
<h2><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if !empty($forum[extra][namecolor])} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum[todayposts])</em><!--{/if}--></h2>
<!--{if $forum[description]}--><p class="xg2">$forum[description]</p><!--{/if}-->
<!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
<!--{if $forum['moderators']}--><p>{lang forum_moderators}: <span class="xi2">$forum[moderators]</span></p><!--{/if}-->
<!--{hook/index_forum_extra $forum['fid']}-->
</td>
<td class="fl_i">
<!--{if empty($forum[redirect])}--><span class="xi2"><!--{echo dnumber($forum[threads])}--></span><span class="xg1"> / <!--{echo dnumber($forum[posts])}--></span><!--{/if}-->
</td>
<td class="fl_by">
<div>
<!--{if $forum['permission'] == 1}-->
{lang private_forum}
<!--{else}-->
<!--{if $forum['redirect']}-->
<a href="$forumurl" class="xi2">{lang url_link}</a>
<!--{elseif is_array($forum['lastpost'])}-->
<a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
<!--{else}-->
{lang never}
<!--{/if}-->
<!--{/if}-->
</div>
</td>
</tr>
<tr class="fl_row">
<!--{/if}-->
<!--{/loop}-->
{$cat['endrows'] or ''}
</tr>
</table>
</div>
</div>
<!--{ad/intercat/bm a_c/$cat[fid]}-->
<!--{/loop}-->
<!--{if !empty($collectiondata['data'])}-->
<!--{eval $forumscount = count($collectiondata['data']);}-->
<!--{eval $forumcolumns = 4;}-->
<!--{eval $forumcolwidth = (floor(100 / $forumcolumns) - 0.1).'%';}-->
<div class="bm bmw {if $forumcolumns} flg{/if} cl">
<div class="bm_h cl">
<span class="o">
<em id="category_-2_img" class="tg{$collapse['collapseicon_-2']}" title="{lang spread}" onclick="toggle_collapse('category_-2');"></em>
</span>
<h2><a href="forum.php?mod=collection">{lang recommend_collection}</a></h2>
</div>
<div id="category_-2" class="bm_c" style="{echo $collapse['category_-2']}">
<table cellspacing="0" cellpadding="0" class="fl_tb">
<tr>
<!--{eval $ctorderid = 0;}-->
<!--{loop $collectiondata['data'] $key $colletion}-->
<!--{if $ctorderid && ($ctorderid % $forumcolumns == 0)}-->
</tr>
<!--{if $ctorderid < $forumscount}-->
<tr class="fl_row">
<!--{/if}-->
<!--{/if}-->
<td class="fl_g"{if $forumcolwidth} width="$forumcolwidth"{/if}>
<div class="fl_icn_g">
<a href="forum.php?mod=collection&action=view&ctid={$colletion[ctid]}" target="_blank" title="$colletion[name]"><svg width="31" height="29"><path fill="#c9c9c9" d="M31 13c0-7.2-6.9-13-15.5-13S0 5.8 0 13s6.9 13 15.5 13c1.6 0 3.2-.2 4.6-.6L27 28l-1.7-5c3.5-2.4 5.7-6 5.7-10z"/></svg></a>
</div>
<dl>
<dt><a href="forum.php?mod=collection&action=view&ctid={$colletion[ctid]}">$colletion[name]</a></dt>
<dd><em>{lang forum_threads}: <!--{echo dnumber($colletion[threadnum])}--></em>, <em>{lang collection_commentnum}: <!--{echo dnumber($colletion[commentnum])}--></em></dd>
<dd>
<!--{if $colletion['lastpost']}-->
<!--{if $forumcolumns < 3}-->
<a href="forum.php?mod=redirect&tid=$colletion[lastpost]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($colletion[lastsubject], 30)}--></a> <cite><!--{date($colletion['lastposttime'])}--> <!--{if $colletion['lastposter']}-->$colletion['lastposter']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
<!--{else}-->
<a href="forum.php?mod=redirect&tid=$colletion[lastpost]&goto=lastpost#lastpost">{lang forum_lastpost}: <!--{date($colletion['lastposttime'])}--></a>
<!--{/if}-->
<!--{else}-->
{lang never}
<!--{/if}-->
</dd>
<!--{hook/index_datacollection_extra $colletion['ctid']}-->
</dl>
</td>
<!--{eval $ctorderid++;}-->
<!--{/loop}-->
<!--{if ($columnspad = $ctorderid % $forumcolumns) > 0}--><!--{echo str_repeat('<td class="fl_g"'.($forumcolwidth ? " width=\"$forumcolwidth\"" : '').'></td>', $forumcolumns - $columnspad);}--><!--{/if}-->
</tr>
</table>
</div>
</div>
<!--{/if}-->
</div>
<!--{hook/index_middle}-->
<div class="wp mtn">
<!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
</div>
<!--{if empty($gid) && $_G['setting']['whosonlinestatus']}-->
<div id="online" class="bm oll">
<div class="bm_h">
<!--{if $detailstatus}-->
<span class="o"><a href="forum.php?showoldetails=no#online" title="{lang spread}"><em class="tg_no" title="{lang spread}"></em></a></span>
<h3>
<strong><a href="home.php?mod=space&do=friend&view=online&type=member">{lang onlinemember}</a></strong>
<span class="xs1">- <strong>$onlinenum</strong> {lang onlines}
- <strong>$membercount</strong> {lang index_members}(<strong>$invisiblecount</strong> {lang index_invisibles}),
<strong>$guestcount</strong> {lang index_guests}
- {lang index_mostonlines} <strong>$onlineinfo[0]</strong> {lang on} <strong>$onlineinfo[1]</strong>.</span>
</h3>
<!--{else}-->
<!--{if empty($_G['setting']['sessionclose'])}-->
<span class="o"><a href="forum.php?showoldetails=yes#online" title="{lang spread}"><em class="tg_yes" title="{lang spread}"></em></a></span>
<!--{/if}-->
<h3>
<strong>
<!--{if !empty($_G['setting']['whosonlinestatus'])}-->
{lang onlinemember}
<!--{else}-->
<a href="home.php?mod=space&do=friend&view=online&type=member">{lang onlinemember}</a>
<!--{/if}-->
</strong>
<span class="xs1">- {lang total} <strong>$onlinenum</strong> {lang onlines}
<!--{if $membercount}-->- <strong>$membercount</strong> {lang index_members},<strong>$guestcount</strong> {lang index_guests}<!--{/if}-->
- {lang index_mostonlines} <strong>$onlineinfo[0]</strong> {lang on} <strong>$onlineinfo[1]</strong>.</span>
</h3>
<!--{/if}-->
</div>
<!--{if $_G['setting']['whosonlinestatus'] && $detailstatus}-->
<dl id="onlinelist" class="bm_c">
<dt class="ptm pbm bbda">$_G[cache][onlinelist][legend]</dt>
<!--{if $detailstatus}-->
<dd class="ptm pbm">
<ul class="cl">
<!--{if $whosonline}-->
<!--{loop $whosonline $key $online}-->
<li title="{lang time}: $online[lastactivity]">
<img src="$online['icon']" alt="icon" />
<!--{if $online['uid']}-->
<a href="home.php?mod=space&uid=$online[uid]">$online[username]</a>
<!--{else}-->
$online[username]
<!--{/if}-->
</li>
<!--{/loop}-->
<!--{else}-->
<li style="width: auto">{lang online_only_guests}</li>
<!--{/if}-->
</ul>
</dd>
<!--{/if}-->
</dl>
<!--{/if}-->
</div>
<!--{/if}-->
<!--{if empty($gid) && ($_G['cache']['forumlinks'][0] || $_G['cache']['forumlinks'][1] || $_G['cache']['forumlinks'][2])}-->
<div class="bm lk">
<div id="category_lk" class="bm_c ptm">
<!--{if $_G['cache']['forumlinks'][0]}-->
<ul class="m mbn cl">$_G['cache']['forumlinks'][0]</ul>
<!--{/if}-->
<!--{if $_G['cache']['forumlinks'][1]}-->
<div class="mbn cl">
$_G['cache']['forumlinks'][1]
</div>
<!--{/if}-->
<!--{if $_G['cache']['forumlinks'][2]}-->
<ul class="x mbm cl">
$_G['cache']['forumlinks'][2]
</ul>
<!--{/if}-->
</div>
</div>
<!--{/if}-->
<!--{hook/index_bottom}-->
</div>
<!--{if $_G['setting']['forumallowside']}-->
<div id="sd" class="sd">
<!--{hook/index_side_top}-->
<div class="drag">
<!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
</div>
<!--{hook/index_side_bottom}-->
</div>
<!--{/if}-->
</div>
<!--{if empty($_G['setting']['disfixednv_forumindex']) }--><script>fixed_top_nv();</script><!--{/if}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,332 @@
<!--{eval}-->
<!--
function tpl_hide_credits_hidden($creditsrequire) {
global $_G;
-->
<!--{/eval}-->
<!--{block return}--><div class="locked"><!--{if $_G[uid]}-->{$_G[username]}<!--{else}-->{lang guest}<!--{/if}-->{lang post_hide_credits_hidden}</div><!--{/block}-->
<!--{eval}-->
<!--
return $return;
}
function tpl_hide_credits($creditsrequire, $message) {
-->
<!--{/eval}-->
<!--{block return}--><div class="locked">{lang post_hide_credits}</div>
$message<br /><br />
<!--{/block}-->
<!--{eval}-->
<!--
return $return;
}
function tpl_codedisp($code) {
$randomid = 'code_'.random(3);
-->
<!--{/eval}-->
<!--{block return}--><div class="blockcode"><div id="$randomid"><ol><li>$code</ol></div><em onclick="copycode($('$randomid'));">{lang discuzcode_copyclipboard}</em></div><!--{/block}-->
<!--{eval}-->
<!--
return $return;
}
function tpl_quote() {
-->
<!--{/eval}-->
<!--{block return}--><div class="quote"><blockquote>\\1</blockquote></div><!--{/block}-->
<!--{eval}-->
<!--
return $return;
}
function tpl_free() {
-->
<!--{/eval}-->
<!--{block return}--><div class="quote"><blockquote>\\1</blockquote></div><!--{/block}-->
<!--{eval}-->
<!--
return $return;
}
function tpl_hide_reply() {
global $_G;
-->
<!--{/eval}-->
<!--{block return}--><div class="showhide"><h4>{lang post_hide}</h4>\\1</div>
<!--{/block}-->
<!--{eval}-->
<!--
return $return;
}
function tpl_hide_reply_hidden() {
global $_G;
-->
<!--{/eval}-->
<!--{block return}--><div class="locked"><!--{if $_G[uid]}-->{$_G[username]}<!--{else}-->{lang guest}<!--{/if}-->{lang post_hide_reply_hidden}</div><!--{/block}-->
<!--{eval}-->
<!--
return $return;
}
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);
$widthcode = attachwidth($attach['width']);
$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']] : '';
-->
<!--{/eval}-->
<!--{block return}-->
<ignore_js_op>
<dl class="tattl">
<dt>
$attach[attachicon]
</dt>
<dd>
<p class="attnm">
<!--{if !$attach['price'] || $attach['payed']}-->
<a href="forum.php?mod=attachment{$is_archive}&aid=$aidencode" {if !$_G['setting']['hideattachtips'] && $_GET['from'] != 'preview'}onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})"{/if} id="aid$attach[aid]" target="_blank">$attach[filename]</a>
<!--{else}-->
<a href="forum.php?mod=misc&action=attachpay&aid=$attach[aid]&tid=$attach[tid]" onclick="showWindow('attachpay', this.href)">$attach[filename]</a>
<!--{/if}-->
<div class="tip tip_4" id="aid$attach[aid]_menu" style="display: none" disautofocus="true">
<div class="tip_c">
<p class="y">$attach[dateline] {lang upload}</p>
<p>{lang clicktodownload}</p>
<!--{if !$attach['attachimg'] && $_G['getattachcredits']}-->{lang attachcredits}: $_G[getattachcredits]<br /><!--{/if}-->
</div>
<div class="tip_horn"></div>
</div>
</p>
<p>$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>
<p>
<!--{if $attach['price']}-->
{lang price}: <strong>$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]" onclick="showWindow('attachpay', this.href)" target="_blank">{lang pay_view}</a>]
<!--{if !$attach['payed']}-->
&nbsp;[<a href="forum.php?mod=misc&action=attachpay&aid=$attach[aid]&tid=$attach[tid]" onclick="showWindow('attachpay', this.href)">{lang attachment_buy}</a>]
<!--{/if}-->
<!--{/if}-->
</p>
<!--{if $attach['description']}--><p class="xg2">{$attach[description]}</p><!--{/if}-->
$pluginhook
</dd>
</dl>
</ignore_js_op>
<!--{/block}-->
<!--{eval}-->
<!--
return $return;
}
function imagelist($attach, $firstpost = 0) {
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);
$widthcode = attachwidth($attach['width']);
$is_archive = $_G['forum_thread']['is_archived'] ? "&fid=".$_G['fid']."&archiveid=".$_G['forum_thread']['archiveid'] : '';
$attachthumb = getimgthumbname($attach['attachment']);
$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'];
if($guestviewthumb) {
$guestviewthumbcss = guestviewthumbstyle();
}
-->
<!--{/eval}-->
<!--{block return}-->
<!--{if $attach['attachimg'] && $_G['setting']['showimages'] && (($_G['group']['allowgetimage'] || $_G['uid'] == $attach['uid']) || (($guestviewthumb)))}-->
<ignore_js_op>
<!--{if !IS_ROBOT}-->
<dl class="tattl attm">
<dt></dt>
<dd>
<!--{if !$guestviewthumb}-->
<p class="mbn">
<a href="forum.php?mod=attachment{$is_archive}&aid=$aidencode&nothumb=yes" {if (!$_G['setting']['hideattachtips'] || ($firstpost && $_G['fid'] && ($_G['forum']['ismoderator'] || $_G['uid'] == $attach['uid']))) && $_GET['from'] != 'preview'}onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" id="aid$attach[aid]"{/if} class="xw1" target="_blank">$attach[filename]</a>
<em class="xg1">($attach[attachsize]<!--{if !$_G['setting']['hideattachdown']}-->, {lang downloads}: $attach['downloads']<!--{/if}-->)</em>
</p>
<div class="tip tip_4" id="aid$attach[aid]_menu" style="display: none" disautofocus="true">
<div>
<p>
<a href="forum.php?mod=attachment{$is_archive}&aid=$aidencode&nothumb=yes" target="_blank">{lang download}</a>
<!--{if helper_access::check_module('album')}-->
&nbsp;<a href="javascript:;" onclick="showWindow(this.id, this.getAttribute('url'), 'get', 0);" id="savephoto_$attach[aid]" url="home.php?mod=spacecp&amp;ac=album&amp;op=saveforumphoto&amp;aid=$attach[aid]&amp;handlekey=savephoto_$attach[aid]">{lang save_to_album}</a>
<!--{/if}-->
<!--{if $firstpost && $_G['fid'] && ($_G['forum']['ismoderator'] || $_G['uid'] == $attach['uid'])}-->
&nbsp;<a href="forum.php?mod=ajax&action=setthreadcover&aid=$attach[aid]&fid=$_G[fid]" onclick="showWindow('setcover{$attach[aid]}', this.href)">{lang set_cover}</a>
<!--{/if}-->
</p>
<p>
<span class="y">$attach[dateline] {lang upload}</span>
<a href="javascript:;" onclick="imageRotate('aimg_$attach[aid]', 1)"><i class="fico-refresh fic6 fc-v fifx fnmr vm"></i></a>
<a href="javascript:;" onclick="imageRotate('aimg_$attach[aid]', 2)"><i class="fico-refresh fic6 fc-v fnmr vm"></i></a>
</p>
</div>
<div class="tip_horn"></div>
</div>
<p class="mbn">
<!--{if $attach['readperm']}-->{lang readperm}: <strong>$attach[readperm]</strong><!--{/if}-->
<!--{if $attach['price']}-->{lang price}: <strong>$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]" onclick="showWindow('attachpay', this.href)" target="_blank">{lang pay_view}</a>]
<!--{if !$attach['payed']}-->
&nbsp;[<a href="forum.php?mod=misc&action=attachpay&aid=$attach[aid]&tid=$attach[tid]" onclick="showWindow('attachpay', this.href)" target="_blank">{lang attachment_buy}</a>]
<!--{/if}-->
<!--{/if}-->
</p>
<!--{if $attach['description']}--><p class="mbn xg2">{$attach[description]}</p><!--{/if}-->
<!--{/if}-->
$pluginhook
<!--{if $guestviewthumb}-->
<!--{eval}-->
<!--
$thumbpath = helper_attach::attachpreurl().'image/'.helper_attach::makethumbpath($attach['aid'], $_G['setting']['guestviewthumb']['width'], $_G['setting']['guestviewthumb']['height']);
$makefile = 'forum.php?mod=image&aid='.$attach['aid'].'&size='.$_G['setting']['guestviewthumb']['width'].'x'.$_G['setting']['guestviewthumb']['height'].'&key='.dsign($attach['aid'].'|'.$_G['setting']['guestviewthumb']['width'].'|'.$_G['setting']['guestviewthumb']['height']).'&type=1';
-->
<!--{/eval}-->
{$guestviewthumbcss}
<div class="guestviewthumb">
<img id="aimg_$attach[aid]" class="guestviewthumb_cur" aid="$attach[aid]" src="{STATICURL}image/common/none.gif" onclick="showWindow('login', 'member.php?mod=logging&action=login'+'&referer='+encodeURIComponent(location))" onerror="javascript:if(this.getAttribute('makefile')){this.src=this.getAttribute('makefile'); this.removeAttribute('makefile');}" file="$thumbpath" makefile="$makefile" alt="$attach[imgalt]" title="$attach[imgalt]"/>
<br>
<a href="member.php?mod=logging&action=login" onclick="showWindow('login', this.href+'&referer='+encodeURIComponent(location));">{lang guestviewthumb}</a>
</div>
<!--{elseif !$attach['price'] || $attach['payed']}-->
<div class="mbn savephotop">
<!--{if $_G['setting']['thumbstatus'] && $attach['thumb']}-->
<a href="javascript:;"><img id="aimg_$attach[aid]" aid="$attach[aid]" src="{STATICURL}image/common/none.gif" onclick="zoom(this, this.getAttribute('zoomfile'), 0, 0, '{$_G[setting][showexif]}')" zoomfile="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes&nothumb=yes{else}{$attach[url]}$attach[attachment]{/if}" file="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode{else}{$attach[url]}$attachthumb{/if}" alt="$attach[imgalt]" title="$attach[imgalt]" w="$attach[width]" /></a>
<!--{else}-->
<img id="aimg_$attach[aid]" aid="$attach[aid]" src="{STATICURL}image/common/none.gif" zoomfile="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes&nothumb=yes{else}{$attach[url]}$attach[attachment]{/if}" file="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes{else}{$attach[url]}$attach[attachment]{/if}" $widthcode alt="$attach[imgalt]" title="$attach[imgalt]" w="$attach[width]" />
<!--{/if}-->
</div>
<!--{/if}-->
</dd>
</dl>
<!--{else}-->
<dl class="tattl attm">
<!--{if !$attach['price'] || $attach['payed']}-->
<dd>
<!--{if $attach['description']}--><p>{$attach[description]}</p><!--{/if}-->
<img src="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes{else}{$attach[url]}$attach[attachment]{/if}" alt="$attach[imgalt]" title="$attach[imgalt]" />
</dd>
<!--{/if}-->
</dl>
<!--{/if}-->
</ignore_js_op>
<!--{/if}-->
<!--{/block}-->
<!--{eval}-->
<!--
return $return;
}
function attachinpost($attach, $post) {
global $_G;
$firstpost = $post['first'];
$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);
$widthcode = attachwidth($attach['width']);
$is_archive = $_G['forum_thread']['is_archived'] ? '&fid='.$_G['fid'].'&archiveid='.$_G['forum_thread']['archiveid'] : '';
$attachthumb = getimgthumbname($attach['attachment']);
$musiccode = getstatus($post['status'], 7) && fileext($attach['attachment']) == 'mp3' ? (browserversion('ie') > 8 || browserversion('safari') ? '<audio controls="controls"><source src="'.$attach['url'].$attach['attachment'].'"></audio>' : parseaudio($attach['url'].$attach['attachment'], 400)) : '';
$guestviewthumb = !empty($_G['setting']['guestviewthumb']['flag']) && !$_G['uid'];
if($guestviewthumb) {
$guestviewthumbcss = guestviewthumbstyle();
}
-->
<!--{/eval}-->
<!--{block return}-->
<ignore_js_op>
<!--{if $attach['attachimg'] && $_G['setting']['showimages'] && (((!$attach['price'] || $attach['payed']) && ($_G['group']['allowgetimage'] || $_G['uid'] == $attach['uid'])) || (($guestviewthumb)))}-->
<!--{if !IS_ROBOT}-->
<!--{if $guestviewthumb}-->
<!--{eval}-->
<!--
$thumbpath = helper_attach::attachpreurl().'image/'.helper_attach::makethumbpath($attach['aid'], $_G['setting']['guestviewthumb']['width'], $_G['setting']['guestviewthumb']['height']);
$makefile = 'forum.php?mod=image&aid='.$attach['aid'].'&size='.$_G['setting']['guestviewthumb']['width'].'x'.$_G['setting']['guestviewthumb']['height'].'&key='.dsign($attach['aid'].'|'.$_G['setting']['guestviewthumb']['width'].'|'.$_G['setting']['guestviewthumb']['height']).'&type=1';
-->
<!--{/eval}-->
{$guestviewthumbcss}
<div class="guestviewthumb">
<div style="margin: 0 auto;">
<img id="aimg_$attach[aid]" class="guestviewthumb_cur" aid="$attach[aid]" src="{STATICURL}image/common/none.gif" onclick="showWindow('login', 'member.php?mod=logging&action=login'+'&referer='+encodeURIComponent(location))" onerror="javascript:if(this.getAttribute('makefile')){this.src=this.getAttribute('makefile'); this.removeAttribute('makefile');}" file="$thumbpath" makefile="$makefile" inpost="1" alt="$attach[imgalt]" title="$attach[imgalt]"/>
<br>
<a href="member.php?mod=logging&action=login" onclick="showWindow('login', this.href+'&referer='+encodeURIComponent(location));">{lang guestviewthumb}</a>
</div>
</div>
<!--{else}-->
<!--{if $_G['setting']['thumbstatus'] && $attach['thumb']}-->
<img{if $attach['price'] && $_G['forum_attachmentdown'] && $_G['uid'] != $attach['uid']} class="attprice"{/if} style="cursor:pointer" id="aimg_$attach[aid]" aid="$attach[aid]" src="{STATICURL}image/common/none.gif" onclick="zoom(this, this.getAttribute('zoomfile'), 0, 0, '{$_G[setting][showexif]}')" zoomfile="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes&nothumb=yes{else}{$attach[url]}$attach[attachment]{/if}" file="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode{else}{$attach[url]}$attachthumb{/if}" inpost="1"{if (!$_G['setting']['hideattachtips'] || ($firstpost && $_G['fid'] && ($_G['forum']['ismoderator'] || $_G['uid'] == $attach['uid']))) && $_GET['from'] != 'preview'} onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})"{/if} />
<!--{else}-->
<img{if $attach['price'] && $_G['forum_attachmentdown'] && $_G['uid'] != $attach['uid']} class="attprice"{/if} id="aimg_$attach[aid]" aid="$attach[aid]" src="{STATICURL}image/common/none.gif" zoomfile="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes&nothumb=yes{else}{$attach[url]}$attach[attachment]{/if}" file="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes{else}{$attach[url]}$attach[attachment]{/if}" $widthcode inpost="1"{if (!$_G['setting']['hideattachtips'] || ($firstpost && $_G['fid'] && ($_G['forum']['ismoderator'] || $_G['uid'] == $attach['uid']))) && $_GET['from'] != 'preview'} onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})"{/if} />
<!--{/if}-->
<!--{/if}-->
<div class="tip tip_4 aimg_tip" id="aimg_$attach[aid]_menu" style="position: absolute; display: none" disautofocus="true">
<div class="xs0">
<p><strong>$attach[filename]</strong> <em class="xg1">($attach[attachsize]<!--{if !$_G['setting']['hideattachdown']}-->, {lang downloads}: $attach['downloads']<!--{/if}-->)</em></p>
<p>
<a href="forum.php?mod=attachment{$is_archive}&aid=$aidencode&nothumb=yes" target="_blank">{lang download}</a>
<!--{if helper_access::check_module('album')}-->
&nbsp;<a href="javascript:;" onclick="showWindow(this.id, this.getAttribute('url'), 'get', 0);" id="savephoto_$attach[aid]" url="home.php?mod=spacecp&amp;ac=album&amp;op=saveforumphoto&amp;aid=$attach[aid]&amp;handlekey=savephoto_$attach[aid]">{lang save_to_album}</a>
<!--{/if}-->
<!--{if $firstpost && $_G['fid'] && ($_G['forum']['ismoderator'] || $_G['uid'] == $attach['uid'])}-->
&nbsp;<a href="forum.php?mod=ajax&action=setthreadcover&aid=$attach[aid]&fid=$_G[fid]" onclick="showWindow('setcover{$attach[aid]}', this.href)">{lang set_cover}</a>
<!--{/if}-->
</p>
<!--{if $attach[description]}--><p>$attach[description]</p><!--{/if}-->
<p class="xg1 y">$attach[dateline] {lang upload}</p>
<!--{else}-->
<!--{if $attach['description']}--><p>{$attach[description]}</p><!--{/if}-->
<img src="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes{else}{$attach[url]}$attach[attachment]{/if}" alt="$attach[imgalt]" title="$attach[imgalt]" />
<!--{/if}-->
<!--{else}-->
<!--{if $musiccode}-->
<div>$musiccode</div>
<!--{/if}-->
$attach[attachicon]
<span style="white-space: nowrap" id="attach_$attach[aid]" {if !$_G['setting']['hideattachtips'] && $_GET['from'] != 'preview'}onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})"{/if}>
<!--{if !$attach['price'] || $attach['payed']}-->
<a href="forum.php?mod=attachment{$is_archive}&aid=$aidencode" target="_blank">$attach[filename]</a>
<!--{else}-->
<a href="forum.php?mod=misc&action=attachpay&aid=$attach[aid]&tid=$attach[tid]" onclick="showWindow('attachpay', this.href)">$attach[filename]</a>
<!--{/if}-->
<em class="xg1">($attach[attachsize]<!--{if !$_G['setting']['hideattachdown']}-->, {lang downloads}: $attach['downloads']<!--{/if}--><!--{if $attach['price']}-->, {lang price}: $attach[price] {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][unit]}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]}<!--{/if}-->)</em>
</span>
<div class="tip tip_4" id="attach_$attach[aid]_menu" style="position: absolute; display: none" disautofocus="true">
<div class="tip_c xs0">
<div class="y">$attach[dateline] {lang upload}</div>
{lang clicktodownload}
<!--{if $attach['description']}--><br />$attach[description]<!--{/if}-->
<!--{if $attach['readperm']}--><br />{lang readperm}: $attach[readperm]<!--{/if}-->
<!--{if IS_ROBOT}-->
</div>
</div>
<!--{/if}-->
<!--{/if}-->
<!--{if !IS_ROBOT}-->
<!--{if !$guestviewthumb}-->
<!--{if $attach['price']}-->
<br />{lang price}: $attach[price] {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][unit]}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]} &nbsp;<a href="forum.php?mod=misc&action=viewattachpayments&aid=$attach[aid]" onclick="showWindow('attachpay', this.href)" target="_blank">[{lang pay_view}]</a>
<!--{if !$attach['payed']}-->
&nbsp;[<a href="forum.php?mod=misc&action=attachpay&aid=$attach[aid]&tid=$attach[tid]" onclick="showWindow('attachpay', this.href)" target="_blank">{lang attachment_buy}</a>]
<!--{/if}-->
<!--{/if}-->
<!--{if !$attach['attachimg'] && $_G['getattachcredits']}--><br />{lang attachcredits}: $_G[getattachcredits]<!--{/if}-->
</div>
<div class="tip_horn"></div>
</div>
<!--{if $musiccode}-->
<br />
<!--{/if}-->
<!--{else}-->
</div>
</div>
<!--{/if}-->
<!--{/if}-->
</ignore_js_op>
<!--{/block}-->
<!--{eval}-->
<!--
return $return;
}
-->
<!--{/eval}-->

View File

@@ -0,0 +1,397 @@
<!--{block creditstring}--><!--{loop $postattachcredits $id $credit}--><!--{if $credit != ''}-->{$_G['setting']['extcredits'][$id][title]} <!--{if $credit >= 0}-->+$credit<!--{else}-->$credit<!--{/if}--> {$_G['setting']['extcredits'][$id][unit]} &nbsp;<!--{/if}--><!--{/loop}--><!--{/block}-->
<script type="text/javascript">
function switchImagebutton(btn) {
switchButton(btn, 'image');
$(editorid + '_image_menu').style.height = '';
doane();
}
function switchAttachbutton(btn) {
switchButton(btn, 'attach');
doane();
}
</script>
<div class="p_pof" id="{$editorid}_image_menu" style="display: none" unselectable="on">
<table width="100%" cellpadding="0" cellspacing="0" class="fwin"><tr><td class="t_l"></td><td class="t_c"></td><td class="t_r"></td></tr><tr><td class="m_l">&nbsp;&nbsp;</td><td class="m_c"><div class="mtm">
<ul class="tb tb_s cl" id="{$editorid}_image_ctrl" style="margin-top:0;margin-bottom:0;">
<li class="y"><span class="flbc" onclick="hideAttachMenu('image')">{lang close}</span></li>
<!--{if $allowpostimg}-->
<li class="current" id="{$editorid}_btn_imgattachlist"><a href="javascript:;" hidefocus="true" onclick="switchImagebutton('imgattachlist');">{lang e_img_attach}</a></li>
<!--{if $allowuploadtoday}-->
<li id="{$editorid}_btn_local" style="display:none;" did="{$editorid}_btn_imgattachlist|local"><a href="javascript:;" hidefocus="true" onclick="switchImagebutton('local');">{lang normal_upload}</a></li>
<!--{/if}-->
<!--{/if}-->
<!--{if helper_access::check_module('album')}--><li {if !$allowpostimg}class="current"{/if} id="{$editorid}_btn_albumlist"><a href="javascript:;" hidefocus="true" onclick="switchImagebutton('albumlist');">{lang e_img_albumlist}</a></li><!--{/if}-->
<li {if !$allowpostimg && !helper_access::check_module('album')}class="current"{/if} id="{$editorid}_btn_www"><a href="javascript:;" hidefocus="true" onclick="switchImagebutton('www');">{lang e_img_www}</a></li>
<!--{hook/post_image_btn_extra}-->
</ul>
<div unselectable="on" id="{$editorid}_www" {if $allowpostimg || helper_access::check_module('album')}style="display: none;"{/if}>
<div class="p_opt popupfix">
<table cellpadding="0" cellspacing="0" width="100%">
<tr class="xg1">
<th width="74%" class="pbn">{lang e_img_inserturl}</th>
<th width="13%" class="pbn">{lang e_img_width}</th>
<th width="13%" class="pbn">{lang e_img_height}</th>
</tr>
<tr>
<td><input type="text" id="{$editorid}_image_param_1" onchange="loadimgsize(this.value)" style="width: 95%;" value="" class="px" autocomplete="off" /></td>
<td><input id="{$editorid}_image_param_2" size="3" value="" class="px p_fre" autocomplete="off" /></td>
<td><input id="{$editorid}_image_param_3" size="3" value="" class="px p_fre" autocomplete="off" /></td>
</tr>
</table>
</div>
<div class="o">
<button type="button" class="pn pnc" id="{$editorid}_image_submit"><strong>{lang submit}</strong></button>
</div>
</div>
<!--{if $allowpostimg}-->
<div unselectable="on" id="{$editorid}_local" style="display: none;">
<div class="p_opt">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tbody id="imgattachbodyhidden" style="display:none"><tr>
<td class="atnu"><span id="imglocalno[]"><img src="{STATICURL}image/filetype/common_new.gif" /></span></td>
<td class="atna">
<span id="imgdeschidden[]" style="display:none">
<span id="imglocalfile[]"></span>
</span>
<input type="hidden" name="imglocalid[]" />
</td>
<td class="attc"><span id="imgcpdel[]"></span></td>
</tr></tbody>
</table>
<div class="p_tbl"><table cellpadding="0" cellspacing="0" summary="post_attachbody" border="0" width="100%"><tbody id="imgattachbody"></tbody></table></div>
<div class="upbk pbm bbda">
<div id="imgattachbtnhidden" style="display:none"><span><form name="imgattachform" id="imgattachform" method="post" autocomplete="off" action="misc.php?mod=swfupload&operation=upload&simple=1&type=image" target="attachframe" $enctype><input type="hidden" name="uid" value="$_G['uid']"><input type="hidden" name="hash" value="{echo md5(substr(md5($_G['config']['security']['authkey']), 8).$_G['uid'])}"><input type="file" name="Filedata" size="45" class="filedata" /></form></span></div>
<div id="imgattachbtn" class="ptm pbn"></div>
<p id="imguploadbtn">
<button class="pn pnc vm" type="button" onclick="uploadAttach(0, 0, 'img')"><span>{lang upload}</span></button>
<span class="xg1">&larr;{lang upload_after_selected}</span>
</p>
<p id="imguploading" style="display: none;"><img src="{IMGDIR}/uploading.gif" style="vertical-align: middle;" /> {lang uploading}</p>
</div>
<div class="notice upnf">
{lang attachment_size}: <span class="xi1"><!--{if $_G['group']['maxattachsize']}-->{lang lower_than} $maxattachsize_mb <!--{else}-->{lang size_no_limit}<!--{/if}--></span>
<!--{if $imgexts}-->
, {lang attachment_allow_exts}: <span class="xi1">$imgexts</span>&nbsp;
<!--{/if}-->
<!--{if $creditstring}-->
<br /><a href="forum.php?mod=faq&action=credits&fid=$_G[fid]" target="_blank" title="{lang credits_policy}">{lang post_credits_postattach}&nbsp;$creditstring</a>
<!--{/if}-->
<!--{if $_G['group']['maxattachnum'] || $_G['group']['maxsizeperday']}--><br /><!--{subtemplate forum/post_attachlimit}--><!--{/if}-->
</div>
</div>
<div class="o">
<button onclick="hideAttachMenu('image')" class="pn pnc">
<strong>{lang confirms}</strong>
</button>
</div>
</div>
<div unselectable="on" id="{$editorid}_imgattachlist">
<div class="p_opt">
<!--{if $allowuploadtoday}-->
<div class="pbm bbda cl">
<div id="imgattach_notice" class="y" {if empty($imgattachs['used'])} style="display: none"{/if}>
<!--{if helper_access::check_module('album') && $_G['group']['allowupload']}-->
<div id="uploadPanel">
<label style="margin-right:10px;"><input type="checkbox" name="selectallimg" class="pc" value="1" onchange="selectAllSaveImg(this.checked);" onpropertychange="selectAllSaveImg(this.checked);" />{lang attachment_select_attach_image}</label>
{lang save_selected_pic}:
<select name="uploadalbum" id="uploadalbum" class="ps vm" onchange="if(this.value == '-1') {selectCreateTab(0);}">
<!--{if $albumlist}-->
<!--{loop $albumlist $album}-->
<option value="$album[albumid]">$album[albumname]</option>
<!--{/loop}-->
<!--{else}-->
<option value="-2">-------</option>
<!--{/if}-->
<option value="-1" style="color:red;">+{lang create_new_album}</option>
</select>
</div>
<div id="createalbum" style="display:none">
<!--{if $_G['setting']['albumcategorystat'] && !empty($_G['cache']['albumcategory'])}-->
<!--{eval echo category_showselect('album', 'albumcatid', !$_G['setting']['albumcategoryrequired'] ? true : false, $_GET['catid']);}-->&nbsp;
<!--{/if}-->
<input type="text" name="newalbum" id="newalbum" class="px vm" size="15" value="{lang input_album_name}" onfocus="if(this.value == '{lang input_album_name}') {this.value = '';}" onblur="if(this.value == '') {this.value = '{lang input_album_name}';}" />&nbsp;<button type="button" class="pn pnc" onclick="createNewAlbum();"><span>{lang create_new_album}</span></button><button type="button" class="pn" onclick="selectCreateTab(1);"><span>{lang cancel}</span></button>
</div>
<!--{/if}-->
</div>
<span id="imgSpanButtonPlaceholder"></span>
</div>
<!--{/if}-->
<div class="upfilelist upfl bbda">
<!--{if !empty($imgattachs['used'])}--><!--{eval $imagelist = $imgattachs['used'];}-->
<!--{template forum/ajax_imagelist}-->
<!--{/if}-->
<div id="imgattachlist"></div>
<div id="unusedimgattachlist"></div>
<!--{if $allowuploadtoday}-->
<div class="fieldset flash" id="imgUploadProgress"></div>
<script type="text/javascript">
function createNewAlbum() {
var inputObj = $('newalbum');
if(inputObj.value == '' || inputObj.value == '{lang input_album_name}') {
inputObj.value = '{lang input_album_name}';
} else {
var x = new Ajax();
x.get('home.php?mod=misc&ac=ajax&op=createalbum&inajax=1&name=' + inputObj.value + ($('albumcatid') ? '&catid=' + $('albumcatid').value : ''), function(s){
var aid = parseInt(s);
var albumList = $('uploadalbum');
var haveoption = false;
for(var i = 0; i < albumList.options.length; i++) {
if(albumList.options[i].value == aid) {
albumList.selectedIndex = i;
haveoption = true;
break;
}
}
if(!haveoption) {
var oOption = document.createElement("OPTION");
oOption.text = trim(inputObj.value);
oOption.value = aid;
albumList.options.add(oOption);
albumList.selectedIndex = albumList.options.length-1;
}
inputObj.value = ''
});
selectCreateTab(1)
}
}
function selectCreateTab(flag) {
var vwObj = $('uploadPanel');
var opObj = $('createalbum');
var selObj = $('uploadalbum');
if(flag) {
vwObj.style.display = '';
opObj.style.display = 'none';
selObj.value = selObj.options[0].value;
} else {
vwObj.style.display = 'none';
opObj.style.display = '';
}
}
</script>
<!--{/if}-->
</div>
<div class="notice upnf">
{lang e_img_insertphoto}
<br />{lang attachment_size}: <span class="xi1"><!--{if $_G['group']['maxattachsize']}-->{lang lower_than} $maxattachsize_mb <!--{else}-->{lang size_no_limit}<!--{/if}--></span>
<!--{if $imgexts}-->
, {lang attachment_allow_exts}: <span class="xi1">$imgexts</span>&nbsp;
<!--{/if}-->
<!--{if $creditstring}-->
<br /><a href="forum.php?mod=faq&action=credits&fid=$_G[fid]" target="_blank" title="{lang credits_policy}">{lang post_credits_postattach}&nbsp;$creditstring</a>
<!--{/if}-->
<!--{if $_G['group']['maxattachnum'] || $_G['group']['maxsizeperday']}--><br /><!--{subtemplate forum/post_attachlimit}--><!--{/if}-->
</div>
</div>
<div class="o">
<button onclick="hideAttachMenu('image')" class="pn pnc">
<strong>{lang confirms}</strong>
</button>
</div>
</div>
<!--{/if}-->
<!--{if helper_access::check_module('album')}-->
<div unselectable="on" id="{$editorid}_albumlist" {if $allowpostimg}style="display: none;"{/if}>
<div class="p_opt">
<div class="upfilelist pbm bbda">
{lang uch_selectfromalbum}:
<select onchange="if(this.value) {ajaxget('forum.php?mod=post&action=albumphoto&aid='+this.value, 'albumphoto');}">
<option value="">{lang select_album}</option>
<!--{loop $albumlist $album}-->
<option value="$album[albumid]">$album[albumname]</option>
<!--{/loop}-->
</select>
<div id="albumphoto"></div>
</div>
<p class="notice">{lang e_img_insertphoto}</p>
</div>
<div class="o">
<button onclick="hideAttachMenu('image')" class="pn pnc">
<strong>{lang confirms}</strong>
</button>
</div>
</div>
<!--{/if}-->
<!--{hook/post_image_tab_extra}-->
</div></td><td class="m_r"></td></tr><tr><td class="b_l"></td><td class="b_c"></td><td class="b_r"></td></tr></table>
</div>
<!--{if $_G['group']['allowpostattach']}-->
<div class="p_pof upf" id="{$editorid}_attach_menu" style="display: none" unselectable="on">
<table width="100%" cellpadding="0" cellspacing="0" class="fwin"><tr><td class="t_l"></td><td class="t_c"></td><td class="t_r"></td></tr><tr><td class="m_l">&nbsp;&nbsp;</td><td class="m_c"><div class="mtm">
<ul class="tb tb_s cl" id="{$editorid}_attach_ctrl" style="margin-top:0;margin-bottom:0;">
<li class="y"><span class="flbc" onclick="hideAttachMenu('attach')">{lang close}</span></li>
<li class="current" id="{$editorid}_btn_attachlist"><a href="javascript:;" hidefocus="true" onclick="switchAttachbutton('attachlist');">{lang attachment_list}</a></li>
<!--{if $allowuploadtoday}-->
<li id="{$editorid}_btn_upload" style="display: none;" did="{$editorid}_btn_attachlist|upload"><a href="javascript:;" hidefocus="true" onclick="switchAttachbutton('upload');">{lang common_upload}</a></li>
<!--{/if}-->
<!--{hook/post_attach_btn_extra}-->
</ul>
<div class="p_opt" unselectable="on" id="{$editorid}_upload" style="display: none;">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tbody id="attachbodyhidden" style="display:none"><tr>
<td class="atnu"><span id="localno[]"><img src="{STATICURL}image/filetype/common_new.gif" /></span></td>
<td class="atna">
<span id="deschidden[]" style="display:none">
<span id="localfile[]"></span>
</span>
<input type="hidden" name="localid[]" />
</td>
<td class="attc"><span id="cpdel[]"></span></td>
</tr></tbody>
</table>
<div class="p_tbl"><table cellpadding="0" cellspacing="0" summary="post_attachbody" border="0" width="100%"><tbody id="attachbody"></tbody></table></div>
<div class="upbk pbm bbda">
<div id="attachbtnhidden" style="display:none"><span><form name="attachform" id="attachform" method="post" autocomplete="off" action="misc.php?mod=swfupload&operation=upload&simple=1" target="attachframe" $enctype><input type="hidden" name="uid" value="$_G['uid']"><input type="hidden" name="hash" value="{echo md5(substr(md5($_G['config']['security']['authkey']), 8).$_G['uid'])}"><input type="file" name="Filedata" size="45" class="fldt" /></form></span></div>
<div id="attachbtn" class="ptm pbn"></div>
<p id="uploadbtn">
<button type="button" class="pn pnc vm" onclick="uploadAttach(0, 0)"><span>{lang upload}</span></button>
<span class="xg1">&larr;{lang upload_after_selected}</span>
</p>
<p id="uploading" style="display: none;"><img src="{IMGDIR}/uploading.gif" style="vertical-align: middle;" /> {lang uploading}</p>
</div>
<div class="notice upnf">
{lang attachment_size}: <span class="xi1"><!--{if $_G['group']['maxattachsize']}-->{lang lower_than} $maxattachsize_mb <!--{else}-->{lang size_no_limit}<!--{/if}--></span>
<!--{if $_G['group']['attachextensions']}-->
, {lang attachment_allow_exts}: <span class="xi1">{$_G['group']['attachextensions']}</span>&nbsp;
<!--{/if}-->
<!--{if $creditstring}-->
<br /><a href="forum.php?mod=faq&action=credits&fid=$_G[fid]" target="_blank" title="{lang credits_policy}">{lang post_credits_postattach}&nbsp;$creditstring</a>
<!--{/if}-->
<!--{if $_G['group']['maxattachnum'] || $_G['group']['maxsizeperday']}--><br /><!--{subtemplate forum/post_attachlimit}--><!--{/if}-->
</div>
</div>
<div class="p_opt post_tablelist" unselectable="on" id="{$editorid}_attachlist">
<!--{if $allowuploadtoday}-->
<div class="pbm bbda">
<span id="spanButtonPlaceholder"></span>
</div>
<!--{/if}-->
<table cellpadding="0" cellspacing="0" border="0" width="100%" id="attach_tblheader" class="mtn bbs"{if empty($attachs['used'])} style="display: none"{/if}>
<tr>
<td class="atnu"></td>
<td class="atna pbn">{lang filename} ( <a onclick="insertAllAttachTag();return false;" href="javascript:;" class="xi2">{lang attachment_insert_all_attach}</a> )</td>
<td class="atds pbn">{lang description}</td>
<!--{if $_G['group']['allowsetattachperm']}-->
<td class="attv pbn">
{lang readperm}
<img src="{IMGDIR}/faq.gif" alt="Tip" class="vm" style="margin: 0;" onmouseover="showTip(this)" tip="{lang post_select_usergroup_readacces}" />
</td>
<!--{/if}-->
<!--{if $_G['group']['maxprice']}--><td class="attp pbn">{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]}</td><!--{/if}-->
<td class="attc"></td>
</tr>
</table>
<div class="upfl">
<!--{if !empty($attachs['used'])}--><!--{eval $attachlist = $attachs['used'];}-->
<!--{template forum/ajax_attachlist}-->
<!--{/if}-->
<div id="attachlist"></div>
<div id="unusedattachlist"></div>
<!--{if $allowuploadtoday}-->
<div class="fieldset flash" id="fsUploadProgress"></div>
<!--{/if}-->
</div>
<div class="notice upnf">
<p id="attach_notice"{if empty($attachs['used']) && empty($attachs['unused'])} style="display: none"{/if}>{lang e_attach_insert}<!--{if $_G['setting']['allowattachurl']}-->{lang e_attach_inserturl}<!--{/if}--></p>
{lang attachment_size}: <span class="xi1"><!--{if $_G['group']['maxattachsize']}-->{lang lower_than} $maxattachsize_mb <!--{else}-->{lang size_no_limit}<!--{/if}--></span>
<!--{if $_G['group']['attachextensions']}-->
, {lang attachment_allow_exts}: <span class="xi1">{$_G['group']['attachextensions']}</span>&nbsp;
<!--{/if}-->
<!--{if $creditstring}-->
<br /><a href="forum.php?mod=faq&action=credits&fid=$_G[fid]" target="_blank" title="{lang credits_policy}">{lang post_credits_postattach}&nbsp;$creditstring</a>
<!--{/if}-->
<!--{if $_G['group']['maxattachnum'] || $_G['group']['maxsizeperday']}--><br /><!--{subtemplate forum/post_attachlimit}--><!--{/if}-->
<!--{if $_G['group']['maxprice'] && $_G['setting']['maxincperthread']}--><br />{lang post_price_attachincome_comment}<!--{/if}-->
</div>
</div>
<!--{hook/post_attach_tab_extra}-->
</div>
<div class="o">
<button onclick="hideAttachMenu('attach')" class="pn pnc" id="attach_confirms">
<strong>{lang confirms}</strong>
</button>
</div>
</td><td class="m_r"></td></tr><tr><td class="b_l"></td><td class="b_c"></td><td class="b_r"></td></tr></table>
</div>
<!--{/if}-->
<iframe name="attachframe" id="attachframe" style="display: none;" onload="uploadNextAttach();"></iframe>
<script type="text/javascript">
if(wysiwyg) {
newEditor(1, bbcode2html(textobj.value));
} else {
newEditor(0, textobj.value);
}
<!--{if $editor[simplemode] > 0}-->
editorsimple();
<!--{/if}-->
var ATTACHNUM = {'imageused':0,'imageunused':0,'attachused':0,'attachunused':0}, ATTACHUNUSEDAID = new Array(), IMGUNUSEDAID = new Array();
<!--{if $allowpostimg}-->
ATTACHNUM['imageused'] = <!--{echo (isset($imgattachs['used']) && is_array($imgattachs['used'])) ? count($imgattachs['used']) : 0}-->;
<!--{if !empty($imgattachs['used']) || !empty($imgattachs['unused'])}-->
switchImagebutton('imgattachlist');
$(editorid + '_image').evt = false;
updateattachnum('image');
<!--{else}-->
switchImagebutton('multi');
<!--{/if}-->
<!--{/if}-->
<!--{if $_G['group']['allowpostattach'] || $_G['group']['allowpostimage']}-->
ATTACHNUM['attachused'] = <!--{echo (isset($attachs['used']) && is_array($attachs['used'])) ? count($attachs['used']) : 0}-->;
<!--{if !empty($attachs['used']) || !empty($attachs['unused'])}-->
$(editorid + '_attach').evt = false;
updateattachnum('attach');
<!--{else}-->
switchAttachbutton('swfupload');
<!--{/if}-->
<!--{/if}-->
<!--{if !empty($attachs['unused'])}-->
display('attachnotice_attach');
var msg = '';
<!--{loop $attachs['unused'] $attach}-->
<!--{if !empty($attach['aid'])}-->
msg += '<p><label><input id="unused$attach[aid]" name="unused[]" value="$attach[aid]" checked type="checkbox" class="pc" /><span title="$attach[filenametitle] $attach[dateline]">$attach[filename]</span></label></p>'
ATTACHUNUSEDAID[{$attach[aid]}] = '$attach[aid]';
<!--{/if}-->
<!--{/loop}-->
$('unusedlist_attach').innerHTML = '<div class="cl">' + msg + '</div>';
$('unusednum_attach').innerHTML = parseInt(<!--{echo is_array($attachs['unused']) ? count($attachs['unused']) : 0}-->);
<!--{/if}-->
<!--{if !empty($imgattachs['unused'])}-->
display('attachnotice_img');
var msg = '';
<!--{loop $imgattachs['unused'] $attach}-->
<!--{if !empty($attach['aid'])}-->
msg += '<p style="float:left;width:220px;"><label><input id="unused$attach[aid]" name="unused[]" value="$attach[aid]" checked type="checkbox" class="pc" /><span title="$attach[filenametitle] $attach[dateline]">$attach[filename]</span></label></p>'
IMGUNUSEDAID[{$attach[aid]}] = '$attach[aid]';
<!--{/if}-->
<!--{/loop}-->
$('unusedlist_img').innerHTML = '<div class="cl">' + msg + '</div>';
$('unusednum_img').innerHTML = parseInt(<!--{echo is_array($imgattachs['unused']) ? count($imgattachs['unused']) : 0}-->);
<!--{/if}-->
setCaretAtEnd();
if(BROWSER.ie >= 5 || BROWSER.firefox >= '2') {
_attachEvent(window, 'beforeunload', unloadAutoSave);
}
<!--{if !empty($_GET['cedit']) && $_GET['cedit'] == 'yes'}-->
loadData(1);
$(editorid + '_switchercheck').checked = !wysiwyg;
<!--{/if}-->
</script>

View File

@@ -0,0 +1,580 @@
<!--{template common/header}-->
<!--{if $_G['forum']['ismoderator']}-->
<script type="text/javascript" src="{$_G[setting][jspath]}forum_moderate.js?{VERHASH}"></script>
<!--{/if}-->
<style id="diy_style" type="text/css"></style>
<!--[diy=diynavtop]--><div id="diynavtop" class="area"></div><!--[/diy]-->
<div id="pt" class="bm cl">
<div class="z">
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a><em>&raquo;</em><a href="forum.php">{$_G[setting][navs][2][navname]}</a>$navigation
</div>
</div>
<!--{ad/text/wp a_t}-->
<div class="wp">
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
</div>
<div class="boardnav">
<div id="ct" class="wp cl{if $_G['forum']['allowside']} ct2{/if}"{if $leftside} style="margin-left:{$_G['leftsidewidth_mwidth']}px"{/if}>
<!--{if $leftside}-->
<div id="sd_bdl" class="bdl" onmouseover="showMenu({'ctrlid':this.id, 'pos':'dz'});" style="width:{$_G['setting']['leftsidewidth']}px;margin-left:-{$_G['leftsidewidth_mwidth']}px">
<!--{hook/forumdisplay_leftside_top}-->
<!--[diy=diyleftsidetop]--><div id="diyleftsidetop" class="area"></div><!--[/diy]-->
<div class="tbn" id="forumleftside">
<!--{subtemplate forum/forumdisplay_leftside}-->
</div>
<!--[diy=diyleftsidebottom]--><div id="diyleftsidebottom" class="area"></div><!--[/diy]-->
<!--{hook/forumdisplay_leftside_bottom}-->
</div>
<!--{/if}-->
<div class="mn">
<div class="bm bml pbn">
<!--{if $_G[forum][banner] && !$subforumonly}--><img src="$_G[forum][banner]" alt="$_G['forum'][name]" /><!--{/if}-->
<div class="bm_h cl">
<!--{if $_G['page'] == 1 && $_G['forum']['rules']}--><span class="o"><em id="forum_rules_{$_G[fid]}_img" class="tg_{$collapse[forum_rulesimg]}" title="{lang spread}" onclick="toggle_collapse('forum_rules_{$_G[fid]}')"></em></span><!--{/if}-->
<span class="y">
<!--{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="fa_fav" onclick="showWindow(this.id, this.href, 'get', 0);">{lang forum_favorite} <strong class="xi1" id="number_favorite" {if !$_G[forum][favtimes]} style="display:none;"{/if}>(<span id="number_favorite_num">$_G[forum][favtimes]</span>)</strong></a><!--{/if}-->
<!--{if rssforumperm($_G['forum']) && $_G[setting][rssstatus] && !$_GET['archiveid'] && !$subforumonly}--><!--{if helper_access::check_module('favorite')}--><span class="pipe">|</span><!--{/if}--><a href="forum.php?mod=rss&fid=$_G[fid]&auth=$rssauth" class="fa_rss" target="_blank" title="RSS">{lang rss_subscribe_this}</a><!--{/if}-->
<!--{if !empty($forumarchive)}-->
<span class="pipe">|</span><a id="forumarchive" href="javascript:;" class="fa_achv" onmouseover="showMenu(this.id)"><!--{if $_GET['archiveid']}-->$forumarchive[$_GET['archiveid']]['displayname']<!--{else}-->{lang forum_archive}<!--{/if}--></a>
<!--{/if}-->
<!--{hook/forumdisplay_forumaction}-->
<!--{if $_G['forum']['ismoderator']}-->
<!--{if $_G['forum']['recyclebin']}-->
<span class="pipe">|</span><a href="{if $_G['adminid'] == 1}admin.php?mod=forum&action=recyclebin&frames=yes{elseif $_G['forum']['ismoderator']}forum.php?mod=modcp&action=recyclebin&fid=$_G[fid]{/if}" class="fa_bin" target="_blank">{lang forum_recyclebin}</a>
<!--{/if}-->
<!--{if $_G['forum']['ismoderator'] && !$_GET['archiveid']}-->
<span class="pipe">|</span><strong>
<!--{if $_G['forum']['status'] != 3}-->
<a href="forum.php?mod=modcp&fid=$_G[fid]">{lang modcp}</a>
<!--{else}-->
<a href="forum.php?mod=group&action=manage&fid=$_G[fid]">{lang modcp}</a>
<!--{/if}-->
</strong>
<!--{/if}-->
<!--{hook/forumdisplay_modlink}-->
<!--{/if}-->
</span>
<h1 class="xs2">
<a href="forum.php?mod=forumdisplay&fid=$_G[fid]">$_G['forum'][name]</a>
<!--{if !$subforumonly}--><span class="xs1 xw0 i">{lang index_today}: <strong class="xi1">$_G[forum][todayposts]</strong><!--{if $_G[forum][todayposts]}--><!--{if $_G[forum][todayposts] < $_G[forum][yesterdayposts]}--><b class="ico_fall">&nbsp;</b><!--{else}--><b class="ico_increase">&nbsp;</b><!--{/if}--><!--{/if}--><span class="pipe">|</span>{lang index_threads}: <strong class="xi1">$_G[forum][threads]</strong><!--{if $_G[forum][rank]}--><span class="pipe">|</span>{lang rank}: <strong class="xi1" title="{lang previous_rank}:$_G[forum][oldrank]">$_G[forum][rank]</strong><!--{if $_G[forum][rank] <= $_G[forum][oldrank]}--><b class="ico_increase">&nbsp;</b><!--{else}--><b class="ico_fall">&nbsp;</b><!--{/if}--><!--{/if}--></span><!--{/if}-->
</h1>
</div>
<!--{if (!empty($_G[forum][domain]) && !empty($_G['setting']['domain']['root']['forum'])) || $moderatedby || ($_G['page'] == 1 && $_G['forum']['rules'])}-->
<div class="bm_c cl pbn">
<!--{if !empty($_G[forum][domain]) && !empty($_G['setting']['domain']['root']['forum'])}-->
<div class="pbn">{lang forum_domain}: <a href="{$_G['scheme']}://{$_G[forum][domain]}.{$_G['setting']['domain']['root']['forum']}" id="group_link">{$_G['scheme']}://{$_G[forum][domain]}.{$_G['setting']['domain']['root']['forum']}</a></div>
<!--{/if}-->
<!--{if $moderatedby}--><div>{lang forum_modedby}: <span class="xi2">$moderatedby</span></div><!--{/if}-->
<!--{if $_G['page'] == 1 && $_G['forum']['rules']}-->
<div id="forum_rules_{$_G[fid]}" style="$collapse['forum_rules'];">
<div class="ptn xg2">$_G['forum'][rules]</div>
</div>
<!--{/if}-->
</div>
<!--{/if}-->
<!--{if !empty($forumarchive)}-->
<div id="forumarchive_menu" class="p_pop" style="display:none">
<ul>
<li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]">{lang threads_all}</a></li>
<!--{loop $forumarchive $id $info}-->
<li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&archiveid=$id">{$info['displayname']} ({$info['threads']})</a></li>
<!--{/loop}-->
</ul>
</div>
<!--{/if}-->
</div>
<!--{hook/forumdisplay_top}-->
<!--{if $subexists && $_G['page'] == 1}--><!--{template forum/forumdisplay_subforum}--><!--{/if}-->
<div class="drag">
<!--[diy=diy4]--><div id="diy4" class="area"></div><!--[/diy]-->
</div>
<!--{if !empty($_G['forum']['recommendlist'])}-->
<div class="bm bmw">
<div class="bm_h cl">
<h2>{lang forum_recommend}</h2>
</div>
<div class="bm_c cl">
<!--{subtemplate forum/recommend}-->
</div>
</div>
<!--{/if}-->
<!--{hook/forumdisplay_middle}-->
<!--{if !$subforumonly}-->
<!--{if $recommendgroups && !$_G['forum']['allowside']}-->
<div class="bm bmw fl{if $_G['forum']['forumcolumns']} flg{/if}">
<div class="bm_h cl">
<span class="o"><em id="recommendgroups_{$_G[forum][fid]}_img" class="tg{$collapseicon[recommendgroups]}" title="{lang spread}" onclick="toggle_collapse('recommendgroups_{$_G[forum][fid]}');"></em></span>
<h2>{lang recommended_groups}</h2>
</div>
<div class="bm_c" id="recommendgroups_{$_G[forum][fid]}" style="$collapse[recommendgroups]">
<table cellspacing="0" cellpadding="0" class="fl_tb">
<!--{loop $recommendgroups $key $group}-->
<!--{if $_G['forum']['forumcolumns']}-->
<!--{if $key && ($key % $_G['forum']['forumcolumns'] == 0)}-->
</tr>
<!--{if $key < $_G['forum']['forumcolumns']}-->
<tr class="fl_row">
<!--{/if}-->
<!--{/if}-->
<td class="fl_g">
<div class="fl_icn_g">
<a href="forum.php?mod=group&fid=$group[fid]" title="$group[name]" target="_blank"><img src="$group[icon]" alt="$group[name]" width="32" /></a>
</div>
<dl>
<dt><a href="forum.php?mod=group&fid=$group[fid]" target="_blank">$group[name]</a><span class="xg1 xw0"> ($group[membernum] {lang activity_member_unit})</span>
<dd><em>{lang forum_threads}: $group[threads]</em></dd>
<dd>
<!--{if is_array($group['lastpost'])}-->
<!--{if $_G['forum']['forumcolumns'] < 3}-->
<a href="forum.php?mod=redirect&tid=$group[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($group[lastpost][subject], 30)}--></a> <cite>$group[lastpost][dateline] <!--{if $group['lastpost']['author']}--><a href="home.php?mod=space&username={$group[lastpost][encode_author]}">{$group[lastpost][author]}</a><!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
<!--{else}-->
<a href="forum.php?mod=redirect&tid=$group[lastpost][tid]&goto=lastpost#lastpost" class="xi2">$group[lastpost][dateline]</a>
<!--{/if}--> <!--{else}-->
{lang never}
<!--{/if}-->
</dd>
</dl>
</td>
<!--{else}-->
<tr {if $key != 0}class="fl_row"{/if}>
<td class="fl_icn">
<a href="forum.php?mod=group&fid=$group[fid]" title="$group[name]" target="_blank"><img src="$group[icon]" alt="$group[name]" width="32" /></a>
</td>
<td>
<h2><a href="forum.php?mod=group&fid=$group[fid]" target="_blank">$group[name]</a><span class="xg1 xw0"> ($group[membernum] {lang activity_member_unit})</span></h2>
<p><!--{echo cutstr($group[description], 100)}--></p>
</td>
<td class="fl_i">
<span class="xi2">$group[threads] {lang index_threads}</span>
</td>
<td class="fl_by">
<div>
<!--{if is_array($group['lastpost'])}-->
<a href="forum.php?mod=redirect&tid=$group[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($group[lastpost][subject], 30)}--></a> <cite>$group[lastpost][dateline] <!--{if $group['lastpost']['author']}--><a href="home.php?mod=space&username={$group[lastpost][encode_author]}">{$group[lastpost][author]}</a><!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
<!--{else}-->
{lang never}
<!--{/if}-->
</div>
</td>
</tr>
<!--{/if}-->
<!--{/loop}-->
</table>
</div>
</div>
<!--{/if}-->
<!--{if !empty($threadmodcount)}--><div class="bm"><div class="ntc_l hm xi2"><strong>{lang forum_moderate_unhandled}</strong></div></div><!--{/if}-->
<!--{if $livethread}-->
<div id="livethread" class="tl bm bmw cl" style="padding:10px 15px;">
<div class="livethreadtitle vm">
<span class="replynumber xg1">{lang reply} <span id="livereplies" class="xi1">$livethread[replies]</span></span>
<a href="forum.php?mod=viewthread&tid=$livethread[tid]" target="_blank">$livethread[subject]</a> <span class="liveicon">{lang admin_live}</span>
</div>
<div class="livethreadcon">$livemessage</div>
<div id="livereplycontentout">
<div id="livereplycontent">
</div>
</div>
<div id="liverefresh">{lang forum_live_newreply_refresh}</div>
<div id="livefastreply">
<form id="livereplypostform" method="post" action="forum.php?mod=post&action=reply&fid=$_G[fid]&tid=$livethread[tid]&replysubmit=yes&infloat=yes&handlekey=livereplypost&inajax=1" onsubmit="return livereplypostvalidate(this)">
<div id="livefastcomment">
<textarea id="livereplymessage" name="message" style="color:gray;<!--{if !$liveallowpostreply}-->display:none;<!--{/if}-->">{lang forum_live_fastreply_notice}</textarea>
<!--{if !$liveallowpostreply}-->
<div>
<!--{if !$_G[uid]}-->
{lang login_to_reply} <a href="member.php?mod=logging&action=login" onclick="showWindow('login', this.href)" class="xi2">{lang login}</a> | <a href="member.php?mod={$_G[setting][regname]}" class="xi2">$_G['setting']['reglinkname']</a>
<!--{elseif $_G['forum']['replyperm'] && !forumperm($_G['forum']['replyperm'])}-->
{lang replyperm_nopermission}
<!--{else}-->
{lang no_permission_to_post}<a href="javascript:;" onclick="ajaxpost('livereplypostform', 'livereplypostreturn', 'livereplypostreturn', 'onerror', $('livereplysubmit'));" class="xi2">{lang click_to_show_reason}</a>
<!--{/if}-->
</div>
<!--{/if}-->
</div>
<div id="livepostsubmit" style="display:none;">
<!--{if $secqaacheck || $seccodecheck}-->
<!--{block sectpl}--><sec> <span id="sec<hash>" onclick="showMenu(this.id)"><sec></span><div id="sec<hash>_menu" class="p_pop p_opt" style="display:none"><sec></div><!--{/block}-->
<div class="mtm sec" style="text-align:right;"><!--{subtemplate common/seccheck}--></div>
<!--{/if}-->
<p class="ptm pnpost" style="margin-bottom:10px;">
<button type="submit" name="replysubmit" class="pn pnc vm" style="float:right;" value="replysubmit" id="livereplysubmit">
<strong>{lang forum_live_post}</strong>
</button>
</p>
</div>
<input type="hidden" name="formhash" value="{FORMHASH}">
<input type="hidden" name="subject" value=" ">
</form>
</div>
<span id="livereplypostreturn"></span>
</div>
<script type="text/javascript">
var postminchars = parseInt('$_G['setting']['minpostsize']');
var postmaxchars = parseInt('$_G['setting']['maxpostsize']');
var postminsubjectchars = parseInt('$_G['setting']['minsubjectsize']');
var postmaxsubjectchars = parseInt('$_G['setting']['maxsubjectsize']');
var disablepostctrl = parseInt('{$_G['group']['disablepostctrl']}');
var replycontentlist = new Array();
var addreplylist = new Array();
var timeoutid = timeid = movescrollid = waitescrollid = null;
var replycontentnum = 0;
getnewlivepostlist(1);
timeid = setInterval(getnewlivepostlist, 5000);
$('livereplycontent').style.position = 'absolute';
$('livereplycontent').style.width = ($('livereplycontentout').clientWidth - 50) + 'px';
$('livereplymessage').onfocus = function() {
if(this.style.color == 'gray') {
this.value = '';
this.style.color = 'black';
$('livepostsubmit').style.display = 'block';
this.style.height = '56px';
$('livefastcomment').style.height = '57px';
}
};
$('livereplymessage').onblur = function() {
if(this.value == '') {
this.style.color = 'gray';
this.value = '{lang forum_live_fastreply_notice}';
}
};
$('liverefresh').onclick = function() {
$('livereplycontent').style.position = 'absolute';
getnewlivepostlist();
this.style.display = 'none';
};
$('livereplycontentout').onmouseover = function(e) {
if($('livereplycontent').style.position == 'absolute' && $('livereplycontent').clientHeight > 215) {
$('livereplycontent').style.position = 'static';
this.scrollTop = this.scrollHeight;
}
if(this.scrollTop + this.clientHeight != this.scrollHeight) {
clearInterval(timeid);
clearTimeout(timeoutid);
clearInterval(movescrollid);
timeid = timeoutid = movescrollid = null;
if(waitescrollid == null) {
waitescrollid = setTimeout(function() {
$('liverefresh').style.display = 'block';
}, 60000 * 10);
}
} else {
clearTimeout(waitescrollid);
waitescrollid = null;
}
};
$('livereplycontentout').onmouseout = function(e) {
if(this.scrollTop + this.clientHeight == this.scrollHeight) {
$('livereplycontent').style.position = 'absolute';
clearInterval(timeid);
timeid = setInterval(getnewlivepostlist, 10000);
}
};
function getnewlivepostlist(first) {
var x = new Ajax('JSON');
x.getJSON('forum.php?mod=misc&action=livelastpost&fid=$livethread[fid]', function(s, x) {
var count = s.data.count;
$('livereplies').innerHTML = count;
var newpostlist = s.data.list;
for(i in newpostlist) {
var postid = i;
var postcontent = '';
postcontent += newpostlist[i].authorid ? '<dt><a href="home.php?mod=space&uid=' + newpostlist[i].authorid + '" target="_blank">' + newpostlist[i].avatar + '</a></dt>' : '<dt></dt>';
postcontent += newpostlist[i].authorid ? '<dd><a href="home.php?mod=space&uid=' + newpostlist[i].authorid + '" target="_blank">' + newpostlist[i].author + '</a></dd>' : '<dd>' + newpostlist[i].author + '</dd>';
postcontent += '<dd>' + htmlspecialchars(newpostlist[i].message) + '</dd>';
postcontent += '<dd class="dateline">' + newpostlist[i].dateline + '</dd>';
if(replycontentlist[postid]) {
$('livereply_' + postid).innerHTML = postcontent;
continue;
}
addreplylist[postid] = '<dl id="livereply_' + postid + '">' + postcontent + '</dl>';
}
if(first) {
for(i in addreplylist) {
replycontentlist[i] = addreplylist[i];
replycontentnum++;
var div = document.createElement('div');
div.innerHTML = addreplylist[i];
$('livereplycontent').appendChild(div);
delete addreplylist[i];
}
} else {
livecontentfacemove();
}
});
}
function livecontentfacemove() {
//note 从队列中取出数据
var reply = '';
for(i in addreplylist) {
reply = replycontentlist[i] = addreplylist[i];
replycontentnum++;
delete addreplylist[i];
break;
}
if(reply) {
var div = document.createElement('div');
div.innerHTML = reply;
var oldclientHeight = $('livereplycontent').clientHeight;
$('livereplycontent').appendChild(div);
$('livereplycontentout').style.overflowY = 'hidden';
$('livereplycontent').style.bottom = oldclientHeight - $('livereplycontent').clientHeight + 'px';
if(replycontentnum > 20) {
$('livereplycontent').removeChild($('livereplycontent').firstChild);
for(i in replycontentlist) {
delete replycontentlist[i];
break;
}
replycontentnum--;
}
if(!movescrollid) {
movescrollid = setInterval(function() {
if(parseInt($('livereplycontent').style.bottom) < 0) {
$('livereplycontent').style.bottom =
((parseInt($('livereplycontent').style.bottom) + 5) > 0 ? 0 : (parseInt($('livereplycontent').style.bottom) + 5)) + 'px';
} else {
$('livereplycontentout').style.overflowY = 'auto';
clearInterval(movescrollid);
movescrollid = null;
timeoutid = setTimeout(livecontentfacemove, 1000);
}
}, 100);
}
}
}
function livereplypostvalidate(theform) {
var s;
if(theform.message.value == '' || $('livereplymessage').style.color == 'gray') {
s = '{lang forum_live_nocontent_error}';
}
if(!disablepostctrl && ((postminchars != 0 && mb_strlen(theform.message.value) < postminchars) || (postmaxchars != 0 && mb_strlen(theform.message.value) > postmaxchars))) {
s = {lang forum_live_nolength_error};
}
if(s) {
showError(s);
doane();
$('livereplysubmit').disabled = false;
return false;
}
$('livereplysubmit').disabled = true;
theform.message.value = theform.message.value.replace(/([^>=\]"'\/]|^)((((https?|ftp):\/\/)|www\.)([\w\-]+\.)*[\w\-\u4e00-\u9fa5]+\.([\.a-zA-Z0-9]+|\u4E2D\u56FD|\u7F51\u7EDC|\u516C\u53F8)((\?|\/|:)+[\w\.\/=\?%\-&~`@':+!]*)+\.(jpg|gif|png|bmp|webp))/ig, '$1[img]$2[/img]');
theform.message.value = parseurl(theform.message.value);
ajaxpost('livereplypostform', 'livereplypostreturn', 'livereplypostreturn', 'onerror', $('livereplysubmit'));
return false;
}
function succeedhandle_livereplypost(url, msg, param) {
$('livereplymessage').value = '';
$('livereplycontent').style.position = 'absolute';
if(param['sechash']) {
updatesecqaa(param['sechash']);
updateseccode(param['sechash']);
}
getnewlivepostlist();
}
</script>
<!--{/if}-->
<div id="pgt" class="bm bw0 pgs cl">
<span id="fd_page_top">$multipage</span>
<span class="pgb y" {if $_G[setting][visitedforums]}id="visitedforums" onmouseover="$('visitedforums').id = 'visitedforumstmp';this.id = 'visitedforums';showMenu({'ctrlid':this.id,'pos':'34'})"{/if} ><a href="forum.php">{lang return_index}</a></span>
<!--{if !$_GET['archiveid']}--><a href="javascript:;" id="newspecial" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu({'ctrlid':this.id})"{if !$_G['forum']['allowspecialonly'] && empty($_G['forum']['picstyle']) && empty($_G['forum']['threadsorts']['required'])} onclick="showWindow('newthread', 'forum.php?mod=post&action=newthread&fid=$_G[fid]')"{else} onclick="location.href='forum.php?mod=post&action=newthread&fid=$_G[fid]';return false;"{/if} title="{lang send_posts}" class="pgsbtn showmenu">{lang send_posts}</a><!--{/if}-->
<!--{hook/forumdisplay_postbutton_top}-->
</div>
<!--{if ($_G['forum']['threadtypes'] && $_G['forum']['threadtypes']['listable']) || (isset($_G['forum']['threadsorts']['types']) && is_array($_G['forum']['threadsorts']['types']) && count($_G['forum']['threadsorts']['types']) > 0)}-->
<ul id="thread_types" class="ttp bm cl">
<!--{hook/forumdisplay_threadtype_inner}-->
<li id="ttp_all" {if !$_GET['typeid'] && !$_GET['sortid']}class="xw1 a"{/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 forum_viewall}</a></li>
<!--{if $_G['forum']['threadtypes']}-->
<!--{loop $_G['forum']['threadtypes']['types'] $id $name}-->
<!--{if $_GET['typeid'] == $id}-->
<li class="xw1 a"><a href="forum.php?mod=forumdisplay&fid=$_G[fid]{if $_GET['sortid']}&filter=sortid&sortid=$_GET['sortid']{/if}{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}"><!--{if $_G[forum][threadtypes][icons][$id] && $_G['forum']['threadtypes']['prefix'] == 2}--><img class="vm" src="$_G[forum][threadtypes][icons][$id]" alt="" /> <!--{/if}-->$name<!--{if $showthreadclasscount[typeid][$id]}--><span class="xg1 num">$showthreadclasscount[typeid][$id]</span><!--{/if}--></a></li>
<!--{else}-->
<li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=typeid&typeid=$id$forumdisplayadd[typeid]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}"><!--{if $_G[forum][threadtypes][icons][$id] && $_G['forum']['threadtypes']['prefix'] == 2}--><img class="vm" src="$_G[forum][threadtypes][icons][$id]" alt="" /> <!--{/if}-->$name<!--{if $showthreadclasscount[typeid][$id]}--><span class="xg1 num">$showthreadclasscount[typeid][$id]</span><!--{/if}--></a></li>
<!--{/if}-->
<!--{/loop}-->
<!--{/if}-->
<!--{if $_G['forum']['threadsorts']}-->
<!--{if $_G['forum']['threadtypes']}--><li><span class="pipe">|</span></li><!--{/if}-->
<!--{loop $_G['forum']['threadsorts']['types'] $id $name}-->
<!--{if $_GET['sortid'] == $id}-->
<li class="xw1 a"><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<!--{if $showthreadclasscount[sortid][$id]}--><span class="xg1 num">$showthreadclasscount[sortid][$id]</span><!--{/if}--></a></li>
<!--{else}-->
<li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=sortid&sortid=$id$forumdisplayadd[sortid]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">$name<!--{if $showthreadclasscount[sortid][$id]}--><span class="xg1 num">$showthreadclasscount[sortid][$id]</span><!--{/if}--></a></li>
<!--{/if}-->
<!--{/loop}-->
<!--{/if}-->
<!--{hook/forumdisplay_filter_extra}-->
</ul>
<script type="text/javascript">showTypes('thread_types');</script>
<!--{/if}-->
<!--{hook/forumdisplay_threadtype_extra}-->
<!--{if empty($_G['forum']['sortmode'])}-->
<!--{subtemplate forum/forumdisplay_list}-->
<!--{else}-->
<!--{subtemplate forum/forumdisplay_sort}-->
<!--{/if}-->
<!--{/if}-->
<!--[diy=diyfastposttop]--><div id="diyfastposttop" class="area"></div><!--[/diy]-->
<!--{if $fastpost}-->
<!--{template forum/forumdisplay_fastpost}-->
<!--{/if}-->
<!--{hook/forumdisplay_bottom}-->
<!--[diy=diyforumdisplaybottom]--><div id="diyforumdisplaybottom" class="area"></div><!--[/diy]-->
</div>
<!--{if $_G['forum']['allowside']}-->
<div class="sd">
<!--{hook/forumdisplay_side_top}-->
<!--{if !$subforumonly}-->
<div class="bm">
<div class="bm_h">
<h2>{lang their}: <!--{eval echo cutstr($_G['cache']['forums'][$_G['forum']['fup']]['name'], 22, '')}--></h2>
</div>
<div class="bm_c">
<ul class="xl xl2 cl">
<!--{loop $_G['cache']['forums'] $bforum}-->
<!--{if $bforum['fup'] == $_G['forum']['fup'] && $bforum['status']}-->
<li><a href="forum.php?mod=forumdisplay&fid=$bforum[fid]">$bforum['name']</a></li>
<!--{/if}-->
<!--{/loop}-->
</ul>
</div>
</div>
<!--{if $recommendgroups}-->
<div class="bm">
<div class="bm_h cl">
<h2>{lang recommended_groups}</h2>
</div>
<div class="bm_c cl">
<ul class="ml mls cl">
<!--{loop $recommendgroups $key $group}-->
<li>
<a href="forum.php?mod=group&fid=$group[fid]" title="$group[name]" target="_blank" class="avt"><img src="$group[icon]" alt="$group[name]"></a>
<p><a href="forum.php?mod=group&fid=$group[fid]" target="_blank">$group[name]</a></p>
</li>
<!--{/loop}-->
</ul>
</div>
</div>
<!--{/if}-->
<!--{if !($_G['forum']['simple'] & 1) && $_G[setting][whosonlinestatus]}-->
<div class="bm">
<!--{if $detailstatus}-->
<div class="bm_h cl">
<span class="o y"><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&page=$page&showoldetails=no#online"><em class="tg_no"></em></a></span>
<h2>{lang forum_activeusers} ($onlinenum)</h2>
</div>
<div class="bm_c">
<ul class="ml mls cl">
<!--{loop $whosonline $key $online}-->
<li>
<a href="home.php?mod=space&uid=$online[uid]" class="avt"><!--{avatar($online['uid'], 'small')}--></a>
<!--{if $online['uid']}-->
<p><a href="home.php?mod=space&uid=$online[uid]">$online[username]</a></p>
<!--{else}-->
<p>$online[username]</p>
<!--{/if}-->
<span>$online[lastactivity]{LF}</span>
</li>
<!--{/loop}-->
</ul>
</div>
<!--{else}-->
<div class="bm_h cl">
<span class="o y"><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&page=$page&showoldetails=yes#online" class="nobdr"><em class="tg_yes"></em></a></span>
<h2>{lang forum_activeusers} ($onlinenum)</h2>
</div>
<!--{/if}-->
</div>
<!--{/if}-->
<!--{/if}-->
<div class="drag">
<!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
</div>
<!--{hook/forumdisplay_side_bottom}-->
</div>
<!--{/if}-->
</div>
</div>
<!--{if $_G['group']['allowpost'] && ($_G['group']['allowposttrade'] || $_G['group']['allowpostpoll'] || $_G['group']['allowpostreward'] || $_G['group']['allowpostactivity'] || $_G['group']['allowpostdebate'] || $_G['setting']['threadplugins'] || $_G['forum']['threadsorts'])}-->
<ul class="p_pop" id="newspecial_menu" style="display: none">
<!--{if !$_G['forum']['allowspecialonly']}--><li><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]">{lang post_newthread}</a></li><!--{/if}-->
<!--{if $_G['forum']['threadsorts'] && !$_G['forum']['allowspecialonly']}-->
<!--{loop $_G['forum']['threadsorts']['types'] $id $threadsorts}-->
<!--{if $_G['forum']['threadsorts']['show'][$id]}-->
<li class="popupmenu_option"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&extra=$extra&sortid=$id">$threadsorts</a></li>
<!--{/if}-->
<!--{/loop}-->
<!--{/if}-->
<!--{if $_G['group']['allowpostpoll']}--><li class="poll"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=1">{lang post_newthreadpoll}</a></li><!--{/if}-->
<!--{if $_G['group']['allowpostreward']}--><li class="reward"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=3">{lang post_newthreadreward}</a></li><!--{/if}-->
<!--{if $_G['group']['allowpostdebate']}--><li class="debate"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=5">{lang post_newthreaddebate}</a></li><!--{/if}-->
<!--{if $_G['group']['allowpostactivity']}--><li class="activity"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=4">{lang post_newthreadactivity}</a></li><!--{/if}-->
<!--{if $_G['group']['allowposttrade']}--><li class="trade"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=2">{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="popupmenu_option"{if $_G['setting']['threadplugins'][$tpid][icon]} style="background-image:url(source/plugin/$tpid/$_G[setting][threadplugins][$tpid][icon])"{/if}><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&specialextra=$tpid">{$_G[setting][threadplugins][$tpid][name]}</a></li>
<!--{/if}-->
<!--{/loop}-->
<!--{/if}-->
</ul>
<!--{/if}-->
<!--{if $_G['setting']['visitedforums'] && $_G['forum']['status'] != 3}-->
<div id="visitedforums_menu" class="p_pop blk cl" style="display: none;">
<table cellspacing="0" cellpadding="0">
<tr>
<td id="v_forums">
<h3 class="mbn pbn bbda xg1">{lang viewed_forums}</h3>
<ul class="xl xl1">
$_G['setting']['visitedforums']
</ul>
</td>
</tr>
</table>
</div>
<!--{/if}-->
<!--{if $_G['setting']['threadmaxpages'] > 1 && $page && !$subforumonly}-->
<script type="text/javascript">document.onkeyup = function(e){keyPageScroll(e, <!--{if $page > 1}-->1<!--{else}-->0<!--{/if}-->, <!--{if $page < $_G['setting']['threadmaxpages'] && isset($_G['page_next']) && $page < $_G['page_next']}-->1<!--{else}-->0<!--{/if}-->, 'forum.php?mod=forumdisplay&fid={$_G[fid]}&filter={$filter}&orderby={$_GET[orderby]}{$forumdisplayadd[page]}&{$multipage_archive}', $page);}</script>
<!--{/if}-->
<!--{if empty($_G['forum']['picstyle']) && $_GET['orderby'] == 'lastpost' && empty($_GET['filter']) }-->
<script type="text/javascript">checkForumnew_handle = setTimeout(function () {checkForumnew($_G[fid], lasttime);}, checkForumtimeout);</script>
<!--{/if}-->
<div class="wp mtn">
<!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
</div>
<!--{if empty($_G['setting']['disfixednv_forumdisplay']) }--><script>fixed_top_nv();</script><!--{/if}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,170 @@
<script type="text/javascript">
var postminchars = parseInt('$_G['setting']['minpostsize']');
var postmaxchars = parseInt('$_G['setting']['maxpostsize']');
var postminsubjectchars = parseInt('$_G['setting']['minsubjectsize']');
var postmaxsubjectchars = parseInt('$_G['setting']['maxsubjectsize']');
var disablepostctrl = parseInt('{$_G['group']['disablepostctrl']}');
var fid = parseInt('$_G[fid]');
</script>
<div id="f_pst" class="bm">
<div class="bm_h">
<h2>{lang quick_post}</h2>
</div>
<div class="bm_c">
<form method="post" autocomplete="off" id="fastpostform" action="forum.php?mod=post&action=newthread&fid=$_G[fid]&topicsubmit=yes&infloat=yes&handlekey=fastnewpost" onSubmit="return fastpostvalidate(this)">
<!--{hook/forumdisplay_fastpost_content}-->
<div id="fastpostreturn" style="margin:-5px 0 5px"></div>
<div class="pbt cl">
<!--{if !empty($_G['forum'][threadtypes][types])}-->
<div class="ftid">
<select name="typeid" id="typeid_fast" width="80">
<option value="0" selected="selected">{lang select_thread_catgory}</option>
<!--{loop $_G['forum'][threadtypes][types] $typeid $name}-->
<!--{if empty($_G['forum']['threadtypes']['moderators'][$typeid]) || $_G['forum']['ismoderator']}-->
<option value="$typeid"><!--{echo strip_tags($name);}--></option>
<!--{/if}-->
<!--{/loop}-->
</select>
</div>
<script type="text/javascript" reload="1">simulateSelect('typeid_fast');</script>
<!--{/if}-->
<input type="text" id="subject" name="subject" class="px" value="" onkeyup="dstrLenCalc(this, 'checklen', $_G['setting']['maxsubjectsize']);" style="width: 25em" />
<span>{lang comment_message1} <strong id="checklen">{$_G['setting']['maxsubjectsize']}</strong> {lang comment_message2}</span>
</div>
<div class="cl">
<!--{if $_G[setting][fastsmilies]}--><div id="fastsmiliesdiv" class="y"><div id="fastsmiliesdiv_data"><div id="fastsmilies"></div></div></div><!--{/if}-->
<div{if $_G[setting][fastsmilies]} class="hasfsl"{/if} id="fastposteditor">
<div class="tedt">
<div class="bar">
<span class="y">
<!--{hook/forumdisplay_fastpost_func_extra}-->
<a href="forum.php?mod=post&action=newthread&fid=$_G[fid]" onclick="switchAdvanceMode(this.href);doane(event);">{lang post_advancemode}</a>
</span>
<!--{eval $seditor = array('fastpost', array('at', 'bold', 'color', 'img', 'link', 'quote', 'code', 'smilies'), !$allowfastpost ? 1 : 0, $allowpostattach && $allowfastpost ? '<span class="pipe z">|</span><span id="spanButtonPlaceholder">'.lang('template', 'upload').'</span>' : '');}-->
<!--{hook/forumdisplay_fastpost_ctrl_extra}-->
<!--{subtemplate common/seditor}-->
</div>
<div class="area">
<!--{if $allowfastpost}-->
<textarea rows="6" cols="80" name="message" id="fastpostmessage" onKeyDown="seditor_ctlent(event, '$(\'fastpostsubmit\').click()');" class="pt"{eval echo getreplybg($_G['forum']['replybg']);}></textarea>
<!--{else}-->
<div class="pt hm">
<!--{if !$_G['uid']}-->
<!--{if !$_G['connectguest']}-->
{lang login_to_post} <a href="member.php?mod=logging&action=login" onclick="showWindow('login', this.href)" class="xi2">{lang login}</a> | <a href="member.php?mod={$_G[setting][regname]}" class="xi2">$_G['setting']['reglinkname']</a>
<!--{else}-->
{lang connect_fill_profile_to_post}
<!--{/if}-->
<!--{elseif $_G['forum']['replyperm'] && !forumperm($_G['forum']['replyperm'])}-->
{lang replyperm_nopermission}
<!--{else}-->
{lang no_permission_to_post}<a href="javascript:;" onclick="$('newspecial').onclick()" class="xi2">{lang click_to_show_reason}</a>
<!--{/if}-->
<!--{hook/global_login_text}-->
</div>
<!--{/if}-->
</div>
</div>
</div>
<div id="seccheck_fastpost">
<!--{if $fastpost && $allowfastpost && ($secqaacheck || $seccodecheck)}-->
<!--{subtemplate forum/seccheck_post}-->
<!--{/if}-->
</div>
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="usesig" value="$usesigcheck" />
</div>
<!--{if $allowpostattach}-->
<script type="text/javascript">
var editorid = '';
var ATTACHNUM = {'imageused':0,'imageunused':0,'attachused':0,'attachunused':0}, ATTACHUNUSEDAID = new Array(), IMGUNUSEDAID = new Array();
</script>
<input type="hidden" name="posttime" id="posttime" value="{TIMESTAMP}" />
<div class="upfl{if empty($_GET[from]) && $_G[setting][fastsmilies]} hasfsl{/if}">
<table cellpadding="0" cellspacing="0" border="0" width="100%" id="attach_tblheader" style="display: none">
<tr>
<td>{lang e_attach_insert}</td>
<td class="atds">{lang description}</td>
<!--{if $_G['group']['allowsetattachperm']}-->
<td class="attv">
{lang readperm}
<img src="{IMGDIR}/faq.gif" alt="Tip" class="vm" onmouseover="showTip(this)" tip="{lang post_select_usergroup_readacces}" />
</td>
<!--{/if}-->
<!--{if $_G['group']['maxprice']}--><td class="attpr">{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]}</td><!--{/if}-->
<td class="attc"></td>
</tr>
</table>
<div class="fieldset flash" id="attachlist"></div>
<!--{if empty($_G['setting']['pluginhooks']['forumdisplay_fastpost_upload_extend'])}-->
<!--{subtemplate common/upload}-->
<script type="text/javascript">
var upload = new SWFUpload({
upload_url: "{$_G[siteurl]}misc.php?mod=swfupload&action=swfupload&operation=upload&fid=$_G[fid]",
post_params: {"uid" : "$_G[uid]", "hash":"$swfconfig[hash]"},
file_size_limit : "$swfconfig[max]",
file_types : "$swfconfig[attachexts][ext]",
file_types_description : "$swfconfig[attachexts][depict]",
file_upload_limit : $swfconfig['limit'],
file_queue_limit : 0,
swfupload_preload_handler : preLoad,
swfupload_load_failed_handler : loadFailed,
file_dialog_start_handler : fileDialogStart,
file_queued_handler : fileQueued,
file_queue_error_handler : fileQueueError,
file_dialog_complete_handler : fileDialogComplete,
upload_start_handler : uploadStart,
upload_progress_handler : uploadProgress,
upload_error_handler : uploadError,
upload_success_handler : uploadSuccess,
upload_complete_handler : uploadComplete,
button_image_url : "{IMGDIR}/uploadbutton_small.png",
button_placeholder_id : "spanButtonPlaceholder",
button_width: 17,
button_height: 25,
button_cursor:SWFUpload.CURSOR.HAND,
button_window_mode: "transparent",
custom_settings : {
progressTarget : "attachlist",
uploadSource: 'forum',
uploadType: 'attach',
<!--{if !empty($swfconfig['maxsizeperday'])}-->
maxSizePerDay: $swfconfig['maxsizeperday'],
<!--{/if}-->
<!--{if !empty($swfconfig['maxattachnum'])}-->
maxAttachNum: $swfconfig['maxattachnum'],
<!--{/if}-->
uploadFrom: 'fastpost'
},
debug: false
});
</script>
<!--{else}-->
<!--{hook/forumdisplay_fastpost_upload_extend}-->
<!--{/if}-->
</div>
<!--{/if}-->
<p class="ptm pnpost">
<a href="home.php?mod=spacecp&ac=credit&op=rule&fid=$_G[fid]" class="y" target="_blank">{lang post_credits_rule}</a>
<button {if $fastpost}type="submit" {elseif !$_G['uid']}type="button" onclick="showWindow('login', 'member.php?mod=logging&action=login&guestmessage=yes')" {/if}{if !$seccodecheck && !$secqaacheck}onmouseover="checkpostrule('seccheck_fastpost', 'ac=newthread');this.onmouseover=null" {/if}name="topicsubmit" id="fastpostsubmit" value="topicsubmit" class="pn pnc"><strong>{lang post_newthread}</strong></button>
<!--{hook/forumdisplay_fastpost_btn_extra}-->
<!--{if !empty($_G['setting']['pluginhooks']['forumdisplay_fastpost_sync_method'])}-->
<span>
{lang post_sync_method}:
<!--{hook/forumdisplay_fastpost_sync_method}-->
</span>
<!--{/if}-->
<!--{if helper_access::check_module('follow')}-->
<label><input type="checkbox" name="adddynamic" class="pc" value="1" {if $_G['forum']['allowfeed'] && !$_G[tid] && empty($_G['forum']['viewperm'])}checked="checked"{/if} />{lang post_relay}</label>
<!--{/if}-->
</p>
</form>
</div>
</div>

View File

@@ -0,0 +1,33 @@
<!--{if $leftside['favorites']}-->
<h2 class="mbn"><a href="home.php?mod=space&do=favorite&type=forum">{lang favorite_forums}</a></h2>
<dl id="lf_fav" class="bdl_fav mbm">
<!--{loop $leftside['favorites'] $favfid $fdata}-->
<dd>
<!--{if !empty($_G['cache']['forums'][$favfid]['domain']) && !empty($_G['setting']['domain']['root']['forum'])}-->
<a href="{$_G['scheme']}://{$_G['cache']['forums'][$favfid]['domain']}.{$_G['setting']['domain']['root']['forum']}" title="$fdata[0]">$fdata[0]</a>
<!--{else}-->
<a href="forum.php?mod=forumdisplay&fid=$favfid">$fdata[0]</a>
<!--{/if}-->
</dd>
<!--{/loop}-->
</dl>
<!--{else}-->
<h2 class="bdl_h">{lang forum_nav}</h2>
<!--{/if}-->
<!--{loop $leftside['forums'] $upfid $gdata}-->
<!--{if $gdata['sub']}-->
<dl class="{if $fgroupid == $upfid || $_G['setting']['leftsideopen']}a{/if}" id="lf_$upfid">
<dt><a href="javascript:;" hidefocus="true" onclick="leftside('lf_$upfid')" title="$gdata['name']">$gdata['name']</a></dt>
<!--{loop $gdata['sub'] $subfid $name}-->
<dd{if $_G['fid'] == $subfid || $_G['forum']['fup'] == $subfid} class="bdl_a"{/if}>
<!--{if !empty($_G['cache']['forums'][$subfid]['domain']) && !empty($_G['setting']['domain']['root']['forum'])}-->
<a href="{$_G['scheme']}://{$_G['cache']['forums'][$subfid]['domain']}.{$_G['setting']['domain']['root']['forum']}" title="$name">$name</a>
<!--{else}-->
<a href="forum.php?mod=forumdisplay&fid=$subfid" title="$name">$name</a>
<!--{/if}-->
</dd>
<!--{/loop}-->
</dl>
<!--{/if}-->
<!--{/loop}-->

View File

@@ -0,0 +1,485 @@
<div id="threadlist" class="tl bm bmw"{if $_G['uid']} style="position: relative;"{/if}>
<!--{if $quicksearchlist && !$_GET['archiveid']}-->
<!--{subtemplate forum/search_sortoption}-->
<!--{/if}-->
<div class="th">
<table cellspacing="0" cellpadding="0">
<tr>
<th colspan="{if !$_GET['archiveid'] && $_G['forum']['ismoderator']}3{else}2{/if}">
<!--{if CURMODULE != 'guide'}-->
<div class="tf">
<span id="atarget" {if isset($_G['cookie']['atarget']) && $_G['cookie']['atarget'] > 0}onclick="setatarget(-1)" class="y atarget_1"{else}onclick="setatarget(1)" class="y"{/if} title="{lang new_window_thread}">{lang new_window}</span>
<!--{if $_GET['specialtype'] == 'reward'}-->
<a id="filter_reward" href="javascript:;" class="showmenu xi2{if $_GET['rewardtype']} xw1{/if}" onclick="showMenu(this.id)"><!--{if $_GET['rewardtype'] == ''}-->{lang all_reward}<!--{elseif $_GET['rewardtype'] == '1'}-->{lang rewarding}<!--{elseif $_GET['rewardtype'] == '2'}-->{lang reward_solved}<!--{/if}--></a>&nbsp;
<!--{/if}-->
<a id="filter_special" href="javascript:;" class="showmenu xi2{if $_GET['specialtype']} xw1{/if}" onclick="showMenu(this.id)"><!--{if $_GET['specialtype'] == 'poll'}-->{lang thread_poll}<!--{elseif $_GET['specialtype'] == 'trade'}-->{lang thread_trade}<!--{elseif $_GET['specialtype'] == 'reward'}-->{lang thread_reward}<!--{elseif $_GET['specialtype'] == 'activity'}-->{lang thread_activity}<!--{elseif $_GET['specialtype'] == 'debate'}-->{lang thread_debate}<!--{else}-->{lang threads_all}<!--{/if}--></a>&nbsp;
<a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=lastpost&orderby=lastpost$forumdisplayadd[lastpost]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}" class="xi2{if isset($_GET['filter']) && $_GET['filter'] == 'lastpost'} xw1{/if}">{lang latest}</a>&nbsp;
<a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=heat&orderby=heats{$forumdisplayadd[heat] or ''}{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}" class="xi2{if isset($_GET['filter']) && $_GET['filter'] == 'heat'} xw1{/if}">{lang order_heats}</a>&nbsp;
<a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=hot" class="xi2{if isset($_GET['filter']) && $_GET['filter'] == 'hot'} xw1{/if}">{lang hot_thread}</a>&nbsp;
<a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=digest&digest=1$forumdisplayadd[digest]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}" class="xi2{if isset($_GET['filter']) && $_GET['filter'] == 'digest'} xw1{/if}">{lang digest_posts}</a>&nbsp;
<a id="filter_dateline" href="javascript:;" class="showmenu xi2{if $_GET['dateline']} xw1{/if}" onclick="showMenu(this.id)">{lang more}</a>&nbsp;
<!--{if empty($_G['forum']['picstyle']) && $_GET['orderby'] == 'lastpost' && (!$_G['setting']['forumseparator'] || !$separatepos) && empty($_GET['filter'])}-->
<a href="javascript:;" onclick="checkForumnew_btn('{$_G['fid']}')" title="{lang showupgrade}" class="forumrefresh"></a>
<!--{/if}-->
<!--{if isset($_GET['filter']) && $_GET['filter'] == 'hot'}-->
<script type="text/javascript" src="{$_G[setting][jspath]}calendar.js?{VERHASH}"></script>
<span>$ctime</span>
<em class="fico-search cur1 vm" alt="" id="hottime" value="$ctime" fid="$_G[fid]" onclick="showcalendar(event, this, false, false, false, false, function(){viewhot(this);});"></em>
<!--{/if}-->
<span id="clearstickthread" style="display: none;">
<span class="pipe">|</span>
<a href="javascript:;" onclick="clearStickThread()" class="xi2" title="{lang showdisplayorder}">{lang showdisplayorder}</a>
</span>
<!--{hook/forumdisplay_filter_extra}-->
</div>
<!--{else}-->
{lang title}
<!--{/if}-->
</th>
<!--{if empty($_G['forum']['picstyle'])}-->
<!--{if CURMODULE == 'guide'}-->
<td class="by">{lang forum_group}</td>
<!--{/if}-->
<td class="by">{lang author}</td>
<td class="num">{lang replies}</td>
<td class="by">{lang lastpost}</td>
<!--{else}-->
<td class="by" colspan="3">
<a{if empty($_G['cookie']['forumdefstyle'])} href="forum.php?mod=forumdisplay&fid=$_G[fid]&forumdefstyle=yes" class="chked"{else} href="forum.php?mod=forumdisplay&fid=$_G[fid]&forumdefstyle=no" class="unchk"{/if} title="{lang view_thread_imagemode}{lang view_thread}">{lang view_thread_imagemode}</a>
</td>
<!--{/if}-->
</tr>
</table>
</div>
<div class="bm_c">
<!--{if empty($_G['forum']['picstyle']) || $_G['cookie']['forumdefstyle']}-->
<script type="text/javascript">var lasttime = $_G['timestamp'];var listcolspan= '{if !$_GET['archiveid'] && $_G['forum']['ismoderator']}6{else}5{/if}';</script>
<!--{/if}-->
<div id="forumnew" style="display:none"></div>
<form method="post" autocomplete="off" name="moderate" id="moderate" action="forum.php?mod=topicadmin&action=moderate&fid=$_G[fid]&infloat=yes&nopost=yes">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="listextra" value="$extra" />
<table summary="forum_$_G[fid]" cellspacing="0" cellpadding="0" id="threadlisttableid">
<!--{if (!$simplestyle || !$_G['forum']['allowside'] && $page == 1) && !empty($announcement)}-->
<tbody>
<tr>
<td class="icn"><i class="fico-volume fic6 fc-i" title="{lang announcement}"></i></td>
<!--{if $_G['forum']['ismoderator'] && !$_GET['archiveid']}--><td class="o">&nbsp;</td><!--{/if}-->
<th><strong class="xst">{lang announcement}: <!--{if empty($announcement['type'])}--><a href="forum.php?mod=announcement&id=$announcement[id]#$announcement[id]" target="_blank">$announcement[subject]</a><!--{else}--><a href="$announcement[message]" target="_blank">$announcement[subject]</a><!--{/if}--></strong></th>
<td class="by">
<cite><a href="home.php?mod=space&uid=$announcement[authorid]" c="1">$announcement[author]</a></cite>
<em>$announcement[starttime]</em>
</td>
<td class="num">&nbsp;</td>
<td class="by">&nbsp;</td>
</tr>
</tbody>
<!--{/if}-->
<!--{if !$separatepos || !$_G['setting']['forumseparator']}-->
<tbody id="separatorline" class="emptb"><tr><td class="icn"></td><!--{if !$_GET['archiveid'] && $_G['forum']['ismoderator']}--><td class="o"></td><!--{/if}--><th></th><!--{if CURMODULE == 'guide'}--><td class="by"></td><!--{/if}--><td class="by"></td><td class="num"></td><td class="by"></td></tr></tbody>
<!--{if !empty($_G['forum']['picstyle'])}--><!--{ad/threadlist}--><!--{/if}-->
<!--{/if}-->
<!--{if $_G['forum_threadcount']}-->
<!--{if empty($_G['forum']['picstyle']) || $_G['cookie']['forumdefstyle']}-->
<!--{loop $_G['forum_threadlist'] $key $thread}-->
<!--{if $_G[setting][forumseparator] == 1 && $separatepos == $key + 1}-->
<tbody id="separatorline">
<tr class="ts">
<td>&nbsp;</td>
<!--{if $_G['forum']['ismoderator'] && !$_GET['archiveid']}--><td>&nbsp;</td><!--{/if}-->
<th><!--{if empty($_G['forum']['picstyle']) && $_GET['orderby'] == 'lastpost' && !$_GET['filter']}--><a href="javascript:;" onclick="checkForumnew_btn('{$_G['fid']}')" title="{lang showupgrade}" class="forumrefresh">{lang forum_thread}</a><!--{else}-->&nbsp;<!--{/if}--></th><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
</tr>
</tbody>
<script type="text/javascript">hideStickThread();</script>
<!--{/if}-->
<!--{if $separatepos <= $key + 1}-->
<!--{ad/threadlist}-->
<!--{/if}-->
<tbody id="$thread[id]"{if $_G['hiddenexists'] && $thread['hidden']} style='display:none'{/if}>
<tr>
<td class="icn">
<a href="forum.php?mod=viewthread&tid=$thread[icontid]&{if $_GET['archiveid']}archiveid={$_GET['archiveid']}&{/if}extra=$extra" title="{if $thread['displayorder'] == 1}{lang thread_type1} - {/if}
{if $thread['displayorder'] == 2}{lang thread_type2} - {/if}
{if $thread['displayorder'] == 3}{lang thread_type3} - {/if}
{if $thread['displayorder'] == 4}{lang thread_type4} - {/if}
{if $thread[folder] == 'lock'}{lang closed_thread} - {/if}
{if $thread['special'] == 1}{lang thread_poll} - {/if}
{if $thread['special'] == 2}{lang thread_trade} - {/if}
{if $thread['special'] == 3}{lang thread_reward} - {/if}
{if $thread['special'] == 4}{lang thread_activity} - {/if}
{if $thread['special'] == 5}{lang thread_debate} - {/if}
{if $thread[folder] == "new"}{lang have_newreplies} - {/if}
{lang target_blank}" target="_blank">
<!--{if $thread[folder] == 'lock'}-->
<i class="fico-lock fic6 fc-s"></i>
<!--{elseif $thread['special'] == 1}-->
<i class="fico-vote fic6 {if $thread[folder]=='new'}fc-l{else}fc-n{/if}"></i>
<!--{elseif $thread['special'] == 2}-->
<i class="fico-cart fic6 {if $thread[folder]=='new'}fc-l{else}fc-n{/if}"></i>
<!--{elseif $thread['special'] == 3}-->
<i class="fico-reward fic6 {if $thread[folder]=='new'}fc-l{else}fc-n{/if}"></i>
<!--{elseif $thread['special'] == 4}-->
<i class="fico-group fic6 {if $thread[folder]=='new'}fc-l{else}fc-n{/if}"></i>
<!--{elseif $thread['special'] == 5}-->
<i class="fico-vs fic6 {if $thread[folder]=='new'}fc-l{else}fc-n{/if}"></i>
<!--{elseif in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
<i class="tpin tpin{$thread[displayorder]}"><svg width="18" height="18"><path d="M9 0l9 9H14v9H4V9H0z"></path></svg></i>
<!--{else}-->
<i class="fico-thread fic6 {if $thread[folder]=='new'}fc-l{else}fc-n{/if}"></i>
<!--{/if}-->
</a>
</td>
<!--{if !$_GET['archiveid'] && $_G['forum']['ismoderator']}-->
<td class="o">
<!--{if $thread['fid'] == $_G[fid]}-->
<!--{if $thread['displayorder'] <= 3 || $_G['adminid'] == 1}-->
<input onclick="tmodclick(this)" type="checkbox" name="moderate[]" value="$thread[tid]" />
<!--{else}-->
<input type="checkbox" disabled="disabled" />
<!--{/if}-->
<!--{else}-->
<input type="checkbox" disabled="disabled" />
<!--{/if}-->
</td>
<!--{/if}-->
<th class="$thread[folder]">
<a href="javascript:;" id="content_$thread[tid]" class="showcontent y" title="{lang content_actions}" onclick="CONTENT_TID='$thread[tid]';CONTENT_ID='$thread[id]';showMenu({'ctrlid':this.id,'menuid':'content_menu'})"></a>
<!--{if in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
<a href="javascript:void(0);" onclick="hideStickThread('$thread[tid]')" class="closeprev y" title="{lang hidedisplayorder}">{lang hidedisplayorder}</a>
<!--{/if}-->
<!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
<!--{eval $thread['tid']=$thread['closed'];}-->
<!--{/if}-->
<!--{if !$_G['setting']['forumdisplaythreadpreview'] && !($thread['readperm'] && $thread['readperm'] > $_G['group']['readaccess'] && !$_G['forum']['ismoderator'] && $thread['authorid'] != $_G['uid'])}-->
<!--{if !(!empty($_G['setting']['antitheft']['allow']) && empty($_G['setting']['antitheft']['disable']['thread']) && empty($_G['forum']['noantitheft']))}-->
<a class="tdpre y" href="javascript:void(0);" onclick="previewThread('{echo $thread['moved'] ? $thread[closed] : $thread[tid]}', '$thread[id]');">{lang preview}</a>
<!--{/if}-->
<!--{/if}-->
<!--{hook/forumdisplay_thread $key}-->
$thread[typehtml] $thread[sorthtml]
<!--{if $thread['moved']}-->
{lang thread_moved}:<!--{eval $thread['tid']=$thread['closed'];}-->
<!--{/if}-->
<a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_GET['archiveid']}archiveid={$_GET['archiveid']}&{/if}extra=$extra"$thread[highlight]{if $thread['isgroup'] == 1 || $thread['forumstick']} target="_blank"{else} onclick="atarget(this)"{/if} class="s xst">$thread[subject]</a>
<!--{if $_G['setting']['threadhidethreshold'] && $thread['hidden'] >= $_G['setting']['threadhidethreshold']}--><span class="xg1">{lang hidden}</span>&nbsp;<!--{/if}-->
<!--{if $thread[icon] >= 0}-->
<img src="{STATICURL}image/stamp/{$_G[cache][stamps][$thread[icon]][url]}" alt="{$_G[cache][stamps][$thread[icon]][text]}" class="vm" />
<!--{/if}-->
<!--{if $thread['rushreply']}-->
<span class="tbox rushrep">{lang rushreply}</span>
<!--{if $rushinfo[$thread[tid]]}-->
<span id="rushtimer_$thread[tid]"> {lang havemore_special} <span id="rushtimer_body_$thread[tid]"></span> <script language="javascript">settimer($rushinfo[$thread[tid]]['timer'], 'rushtimer_body_$thread[tid]');</script>{if $rushinfo[$thread[tid]]['timertype'] == 'start'} {lang header_start} {else} {lang over} {/if} {lang right_special}</span>
<!--{/if}-->
<!--{/if}-->
<!--{if $stemplate && $sortid}-->$stemplate[$sortid][$thread[tid]]<!--{/if}-->
<!--{if $thread['readperm']}--> - [{lang readperm} <span class="xw1">$thread[readperm]</span>]<!--{/if}-->
<!--{if $thread['price'] > 0}-->
<!--{if $thread['special'] == '3'}-->
- <a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=specialtype&specialtype=reward$forumdisplayadd[specialtype]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}&rewardtype=1" title="{lang show_rewarding_only}"><span class="xi1">[{lang thread_reward} <span class="xw1">$thread[price]</span> {$_G[setting][extcredits][$_G['setting']['creditstransextra'][2]][unit]}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][2]][title]}]</span></a>
<!--{else}-->
- [{lang price} <span class="xw1">$thread[price]</span> {$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][unit]}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][title]}]
<!--{/if}-->
<!--{elseif $thread['special'] == '3' && $thread['price'] < 0}-->
- <a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=specialtype&specialtype=reward$forumdisplayadd[specialtype]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}&rewardtype=2" title="{lang show_rewarded_only}">[{lang reward_solved}]</a>
<!--{/if}-->
<!--{if $thread['attachment'] == 2}-->
<i class="fico-image fic4 fc-p fnmr vm" title="{lang attach_img}"></i>
<!--{elseif $thread['attachment'] == 1}-->
<i class="fico-attachment fic4 fc-p fnmr vm" title="{lang attachment}"></i>
<!--{/if}-->
<!--{if $thread['mobile']}-->
<img src="{IMGDIR}/mobile-attach-$thread['mobile'].png" alt="{lang post_mobile}" class="vm" />
<!--{/if}-->
<!--{if $thread['digest'] > 0 && $filter != 'digest'}-->
<span class="tbox tdigest">{lang thread_digest}$thread[digest]</span>
<!--{/if}-->
<!--{if $thread['displayorder'] == 0}-->
<!--{if $thread[recommendicon] && $filter != 'recommend'}-->
<span class="tbox trecic" title="{lang thread_recommend} $thread[recommends]">{lang thread_recommend_icon}</span>
<!--{/if}-->
<!--{if $thread[heatlevel]}-->
<span class="tbox theatlevel" title="{lang heats}: {$thread[heats]}">{lang heats_icon}{if $thread[heatlevel]>1}..{/if}{if $thread[heatlevel]>2}.{/if}</span>
<!--{/if}-->
<!--{if $thread['rate'] > 0}-->
<i class="fico-thumbup fic4 fc-l fnmr vm" title="{lang rate_credit_add}"></i>
<!--{elseif $thread['rate'] < 0}-->
<i class="fico-thumbdown fic4 fc-a fnmr vm" title="{lang posts_deducted}"></i>
<!--{/if}-->
<!--{/if}-->
<!--{if $thread['replycredit'] > 0}-->
- <span class="xi1">[{lang replycredit} <strong> $thread['replycredit']</strong> ]</span>
<!--{/if}-->
<!--{hook/forumdisplay_thread_subject $key}-->
<!--{if $thread[multipage]}-->
<span class="tps">$thread[multipage]</span>
<!--{/if}-->
<!--{if $thread['weeknew']}-->
<a href="forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost#lastpost" class="xi1">New</a>
<!--{/if}-->
<!--{if !$thread['forumstick'] && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
<!--{if $thread['related_group'] == 0 && $thread['closed'] > 1}-->
<!--{eval $thread['tid']=$thread['closed'];}-->
<!--{/if}-->
<!--{if $groupnames[$thread[tid]]}-->
<span class="fromg xg1"> [{lang from}: <a href="forum.php?mod={if $groupnames[$thread['tid']]['status'] == 3}group{else}forumdisplay{/if}&fid={$groupnames[$thread[tid]][fid]}" target="_blank" class="xg1">{$groupnames[$thread[tid]][name]}</a>]</span>
<!--{/if}-->
<!--{/if}-->
</th>
<!--{if CURMODULE == 'guide'}-->
<td class="by"><a href="forum.php?mod=forumdisplay&fid=$thread[fid]" target="_blank">$forumnames[$thread[fid]]['name']</a></td>
<!--{/if}-->
<td class="by">
<!--{hook/forumdisplay_author $key}-->
<cite>
<!--{if $thread['authorid'] && $thread['author']}-->
<a href="home.php?mod=space&uid=$thread[authorid]" c="1"{if $groupcolor[$thread[authorid]]} style="color: $groupcolor[$thread[authorid]];"{/if}>$thread[author]</a><!--{if !empty($verify[$thread['authorid']])}--> $verify[$thread[authorid]]<!--{/if}-->
<!--{else}-->
$_G[setting][anonymoustext]
<!--{/if}-->
</cite>
<em><span{if $thread['istoday']} class="xi1"{/if}>$thread[dateline]</span></em>
</td>
<td class="num"><a href="forum.php?mod=viewthread&tid=$thread[tid]&extra=$extra" class="xi2">$thread[allreplies]</a><em><!--{if $thread['isgroup'] != 1}-->$thread[views]<!--{else}-->{$groupnames[$thread[tid]][views]}<!--{/if}--></em></td>
<td class="by">
<cite><!--{if $thread['lastposter']}--><a href="{if $thread[digest] != -2}home.php?mod=space&username=$thread[lastposterenc]{else}forum.php?mod=viewthread&tid=$thread[tid]&page={echo max(1, $thread[pages]);}{/if}" c="1">$thread[lastposter]</a><!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
<em><a href="{if $thread[digest] != -2 && !$thread[ordertype]}forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost{$highlight or ''}#lastpost{else}forum.php?mod=viewthread&tid=$thread[tid]{if !$thread[ordertype]}&page={echo max(1, $thread[pages]);}{/if}{/if}">$thread[lastpost]</a></em>
</td>
</tr>
</tbody>
<!--{/loop}-->
</table><!-- end of table "forum_G[fid]" branch 1/3 -->
<!--{if $_G['hiddenexists']}-->
<div id="hiddenthread"{if $thread['hidden']} class="last"{/if}><a href="javascript:;" onclick="display_blocked_thread()">{lang other_reply_hide}</a></div>
<!--{/if}-->
<!--{else}-->
</table><!-- end of table "forum_G[fid]" branch 2/3 -->
<ul id="waterfall" class="ml waterfall cl">
<!--{loop $_G['forum_threadlist'] $key $thread}-->
<!--{if $_G['hiddenexists'] && $thread['hidden']}-->
<!--{eval continue;}-->
<!--{/if}-->
<!--{if !$thread['forumstick'] && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
<!--{if $thread['related_group'] == 0 && $thread['closed'] > 1}-->
<!--{eval $thread['tid']=$thread['closed'];}-->
<!--{/if}-->
<!--{/if}-->
<!--{eval $waterfallwidth = $_G['setting']['forumpicstyle']['thumbwidth'] + 24; }-->
<li style="width:{$waterfallwidth}px">
<!--{if !$_GET['archiveid'] && $_G['forum']['ismoderator']}-->
<div style="position:absolute;margin:1px;padding:2px;background:#FFF">
<!--{if $thread['fid'] == $_G[fid]}-->
<!--{if $thread['displayorder'] <= 3 || $_G['adminid'] == 1}-->
<input onclick="tmodclick(this)" type="checkbox" name="moderate[]" value="$thread[tid]" />
<!--{else}-->
<input type="checkbox" disabled="disabled" />
<!--{/if}-->
<!--{else}-->
<input type="checkbox" disabled="disabled" />
<!--{/if}-->
</div>
<!--{/if}-->
<div class="c cl">
<a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_GET['archiveid']}archiveid={$_GET['archiveid']}&{/if}extra=$extra" {if $thread['isgroup'] == 1 || $thread['forumstick'] || CURMODULE == 'guide'} target="_blank"{else} onclick="atarget(this)"{/if} title="$thread[subject]" class="z">
<!--{if $thread['cover']}-->
<img src="$thread[coverpath]" alt="$thread[subject]" width="{$_G[setting][forumpicstyle][thumbwidth]}" />
<!--{else}-->
<span class="nophoto nopic" style="width:{$_G[setting][forumpicstyle][thumbwidth]}px; height:{$_G[setting][forumpicstyle][thumbwidth]}px; line-height:{$_G[setting][forumpicstyle][thumbwidth]}px;"></span>
<!--{/if}-->
</a>
</div>
<h3 class="xw0">
<!--{hook/forumdisplay_thread $key}-->
<a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_GET['archiveid']}archiveid={$_GET['archiveid']}&{/if}extra=$extra"$thread[highlight]{if $thread['isgroup'] == 1 || $thread['forumstick']} target="_blank"{else} onclick="atarget(this)"{/if} title="$thread[subject]">$thread[subject]</a>
</h3>
<div class="auth cl">
<cite class="xg1 y">
{lang like}: <!--{if $thread[recommends]}-->$thread[recommends]<!--{else}-->0<!--{/if}-->
&nbsp; {lang reply}: <a href="forum.php?mod=viewthread&tid=$thread[tid]&extra=$extra" title="$thread[replies] {lang reply}">$thread[replies]</a>
</cite>
<!--{hook/forumdisplay_author $key}-->
<!--{if $thread['authorid'] && $thread['author']}-->
<a href="home.php?mod=space&uid=$thread[authorid]">$thread[author]</a><!--{if !empty($verify[$thread['authorid']])}--> $verify[$thread[authorid]]<!--{/if}-->
<!--{else}-->
$_G[setting][anonymoustext]
<!--{/if}-->
</div>
</li>
<!--{/loop}-->
</ul>
<div id="tmppic" style="display: none;"></div>
<script type="text/javascript" src="{$_G[setting][jspath]}redef.js?{VERHASH}"></script>
<script type="text/javascript" reload="1">
var wf = {};
_attachEvent(window, "load", function () {
if($("waterfall")) {
wf = waterfall();
}
<!--{if $page < $_G['page_next'] && !$subforumonly}-->
var page = $page + 1,
maxpage = Math.min($page + 10,$maxpage + 1),
stopload = 0,
scrolltimer = null,
tmpelems = [],
tmpimgs = [],
markloaded = [],
imgsloaded = 0,
loadready = 0,
showready = 1,
nxtpgurl = 'forum.php?mod=forumdisplay&fid={$_G[fid]}&{$forumdisplayadd[page]}{eval echo ($multiadd ? '&'.implode('&', $multiadd) : '');}{$multipage_archive}&page=',
wfloading = "<div class=\"loadicon vm\"></div> {lang onloading}...",
pgbtn = $("pgbtn").getElementsByTagName("a")[0];
function loadmore() {
var url = nxtpgurl + page + '&t=' + parseInt((+new Date()/1000)/(Math.random()*1000));
var x = new Ajax("HTML");
x.get(url, function (s) {
s = s.replace(/\n|\r/g, "");
if(s.indexOf("id=\"pgbtn\"") == -1) {
$("pgbtn").style.display = "none";
stopload++;
window.onscroll = null;
}
var pageinfo = s.match(/\<span id="fd_page_bottom"\>(.+?)\<\/span\>/);
$('fd_page_bottom').innerHTML = pageinfo[1];
var pageinfo = s.match(/\<span id="fd_page_top"\>(.+?)\<\/span\>/);
$('fd_page_top').innerHTML = pageinfo[1];
s = s.substring(s.indexOf("<ul id=\"waterfall\""), s.indexOf("<div id=\"tmppic\""));
s = s.replace("id=\"waterfall\"", "");
$("tmppic").innerHTML = s;
loadready = 1;
});
}
window.onscroll = function () {
if(scrolltimer == null) {
scrolltimer = setTimeout(function () {
try {
if(page < maxpage && stopload < 2 && showready && ((document.documentElement.scrollTop || document.body.scrollTop) + document.documentElement.clientHeight + 500) >= document.documentElement.scrollHeight) {
pgbtn.innerHTML = wfloading;
loadready = 0;
showready = 0;
loadmore();
tmpelems = $("tmppic").getElementsByTagName("li");
var waitingtimer = setInterval(function () {
stopload >= 2 && clearInterval(waitingtimer);
if(loadready && stopload < 2) {
if(!tmpelems.length) {
page++;
pgbtn.href = nxtpgurl + Math.min(page, $maxpage);
pgbtn.innerHTML = "{lang next_page_extra}";
showready = 1;
clearInterval(waitingtimer);
}
for(var i = 0, j = tmpelems.length; i < j; i++) {
if(tmpelems[i]) {
tmpimgs = tmpelems[i].getElementsByTagName("img");
imgsloaded = 0;
for(var m = 0, n = tmpimgs.length; m < n; m++) {
tmpimgs[m].onerror = function () {
this.style.display = "none";
};
markloaded[m] = tmpimgs[m].complete ? 1 : 0;
imgsloaded += markloaded[m];
}
if(imgsloaded == tmpimgs.length) {
$("waterfall").appendChild(tmpelems[i]);
wf = waterfall({
"index": wf.index,
"totalwidth": wf.totalwidth,
"totalheight": wf.totalheight,
"columnsheight": wf.columnsheight
});
}
}
}
}
}, 40);
}
} catch(e) {}
scrolltimer = null;
}, 320);
}
};
<!--{/if}-->
});
</script>
<!--{/if}-->
<!--{else}-->
<tbody class="bw0_all"><tr><th colspan="{if !$_GET['archiveid'] && $_G['forum']['ismoderator']}6{else}5{/if}"><p class="emp">{lang forum_nothreads}</p></th></tr></tbody>
</table><!-- end of table "forum_G[fid]" branch 3/3 -->
<!--{/if}-->
<!--{if $_G['forum']['ismoderator'] && $_G['forum_threadcount']}-->
<!--{template forum/topicadmin_modlayer}-->
<!--{/if}-->
</form>
</div>
<!--{hook/forumdisplay_threadlist_bottom}-->
</div>
<!--{if !IS_ROBOT}-->
<div id="filter_special_menu" class="p_pop" style="display:none" change="location.href='forum.php?mod=forumdisplay&fid=$_G[fid]&filter='+$('filter_special').value">
<ul>
<li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang all}{lang forum_threads}</a></li>
<!--{if $showpoll}--><li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=specialtype&specialtype=poll$forumdisplayadd[specialtype]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang thread_poll}</a></li><!--{/if}-->
<!--{if $showtrade}--><li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=specialtype&specialtype=trade$forumdisplayadd[specialtype]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang thread_trade}</a></li><!--{/if}-->
<!--{if $showreward}--><li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=specialtype&specialtype=reward$forumdisplayadd[specialtype]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang thread_reward}</a></li><!--{/if}-->
<!--{if $showactivity}--><li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=specialtype&specialtype=activity$forumdisplayadd[specialtype]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang thread_activity}</a></li><!--{/if}-->
<!--{if $showdebate}--><li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=specialtype&specialtype=debate$forumdisplayadd[specialtype]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang thread_debate}</a></li><!--{/if}-->
</ul>
</div>
<div id="filter_reward_menu" class="p_pop" style="display:none" change="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=specialtype&specialtype=reward$forumdisplayadd[specialtype]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}&rewardtype='+$('filter_reward').value">
<ul>
<li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=specialtype&specialtype=reward$forumdisplayadd[specialtype]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang all_reward}</a></li>
<!--{if $showpoll}--><li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=specialtype&specialtype=reward$forumdisplayadd[specialtype]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}&rewardtype=1">{lang rewarding}</a></li><!--{/if}-->
<!--{if $showtrade}--><li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=specialtype&specialtype=reward$forumdisplayadd[specialtype]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}&rewardtype=2">{lang reward_solved}</a></li><!--{/if}-->
</ul>
</div>
<div id="filter_dateline_menu" class="p_pop" style="display:none">
<ul class="pop_moremenu">
<li>{lang orderby}:
<a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=author&orderby=dateline$forumdisplayadd[author]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}" {if $_GET['orderby'] == 'dateline'}class="xw1"{/if}>{lang list_post_time}</a><span class="pipe">|</span>
<a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=reply&orderby=replies$forumdisplayadd[reply]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}" {if $_GET['orderby'] == 'replies'}class="xw1"{/if}>{lang replies}</a><span class="pipe">|</span>
<a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=reply&orderby=views$forumdisplayadd[view]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}" {if $_GET['orderby'] == 'views'}class="xw1"{/if}>{lang views}</a>
</li>
<li>{lang time}:
<a href="forum.php?mod=forumdisplay&fid=$_G[fid]&orderby={$_GET['orderby']}&filter=dateline$forumdisplayadd[dateline]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}" {if !$_GET['dateline']}class="xw1"{/if}>{lang all}{lang search_any_date}</a><span class="pipe">|</span>
<a href="forum.php?mod=forumdisplay&fid=$_G[fid]&orderby={$_GET['orderby']}&filter=dateline&dateline=86400$forumdisplayadd[dateline]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}" {if $_GET['dateline'] == '86400'}class="xw1"{/if}>{lang last_1_days}</a><span class="pipe">|</span>
<a href="forum.php?mod=forumdisplay&fid=$_G[fid]&orderby={$_GET['orderby']}&filter=dateline&dateline=172800$forumdisplayadd[dateline]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}" {if $_GET['dateline'] == '172800'}class="xw1"{/if}>{lang last_2_days}</a><span class="pipe">|</span>
<a href="forum.php?mod=forumdisplay&fid=$_G[fid]&orderby={$_GET['orderby']}&filter=dateline&dateline=604800$forumdisplayadd[dateline]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}" {if $_GET['dateline'] == '604800'}class="xw1"{/if}>{lang list_one_week}</a><span class="pipe">|</span>
<a href="forum.php?mod=forumdisplay&fid=$_G[fid]&orderby={$_GET['orderby']}&filter=dateline&dateline=2592000$forumdisplayadd[dateline]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}" {if $_GET['dateline'] == '2592000'}class="xw1"{/if}>{lang list_one_month}</a><span class="pipe">|</span>
<a href="forum.php?mod=forumdisplay&fid=$_G[fid]&orderby={$_GET['orderby']}&filter=dateline&dateline=7948800$forumdisplayadd[dateline]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}" {if $_GET['dateline'] == '7948800'}class="xw1"{/if}>{lang list_three_month}</a>
</li>
</ul>
</div>
<!--{if empty($_G['setting']['closeforumorderby'])}-->
<div id="filter_orderby_menu" class="p_pop" style="display:none">
<ul>
<li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang list_default_sort}</a></li>
<li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=author&orderby=dateline$forumdisplayadd[author]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang list_post_time}</a></li>
<li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=reply&orderby=replies$forumdisplayadd[reply]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang replies}</a></li>
<li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=reply&orderby=views$forumdisplayadd[view]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang views}</a></li>
<li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=lastpost&orderby=lastpost$forumdisplayadd[lastpost]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang lastpost}</a></li>
<li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=heat&orderby=heats{$forumdisplayadd[heat] or ''}{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang order_heats}</a></li>
</ul>
</div>
<!--{/if}-->
<!--{/if}-->
<!--{if $multipage && $filter != 'hot'}-->
<!--{if !($_G['forum']['picstyle'] && !$_G['cookie']['forumdefstyle'])}-->
<a class="bm_h" href="javascript:;" rel="$multipage_more" curpage="$page" id="autopbn" totalpage="$maxpage" picstyle="$_G['forum']['picstyle']" forumdefstyle="$_G['cookie']['forumdefstyle']">{lang next_page_extra}</a>
<script type="text/javascript" src="{$_G[setting][jspath]}autoloadpage.js?{VERHASH}"></script>
<!--{else}-->
<div id="pgbtn" class="pgbtn"><a href="$multipage_more" hidefocus="true">{lang next_page_extra}</a></div>
<!--{/if}-->
<!--{/if}-->
<div class="bm bw0 pgs cl">
<span id="fd_page_bottom">$multipage</span>
<span {if $_G[setting][visitedforums]}id="visitedforumstmp" onmouseover="$('visitedforums').id = 'visitedforumstmp';this.id = 'visitedforums';showMenu({'ctrlid':this.id,'pos':'21'})"{/if} class="pgb y"><a href="forum.php">{lang return_index}</a></span>
<!--{if !$_GET['archiveid']}--><a href="javascript:;" id="newspecialtmp" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu({'ctrlid':this.id})"{if !$_G['forum']['allowspecialonly'] && empty($_G['forum']['picstyle']) && empty($_G['forum']['threadsorts']['required'])} onclick="showWindow('newthread', 'forum.php?mod=post&action=newthread&fid=$_G[fid]')"{else} onclick="location.href='forum.php?mod=post&action=newthread&fid=$_G[fid]';return false;"{/if} title="{lang send_posts}" class="pgsbtn showmenu">{lang send_posts}</a><!--{/if}-->
<!--{hook/forumdisplay_postbutton_bottom}-->
</div>

View File

@@ -0,0 +1,22 @@
<!--{template common/header}-->
<div id="pt" class="bm cl">
<div class="z"><a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> $navigation</div>
</div>
<div id="ct" class="wp cl">
<div class="mn">
<div class="nfl">
<div class="f_c">
<h3 class="xs2 xi2 mbm">{lang forum_password_require}</h3>
<div class="o">
<form method="post" autocomplete="off" action="forum.php?mod=forumdisplay&fid=$_G[fid]&action=pwverify">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="password" name="pw" class="px vm" size="25" />
&nbsp;<button class="pn pnc vm" type="submit" name="loginsubmit" value="true"><strong>{lang submit}</strong></button>
</form>
</div>
</div>
</div>
</div>
</div>
<!--{template common/footer}-->

View File

@@ -0,0 +1,22 @@
<!--{template common/header}-->
<div id="pt" class="bm cl">
<div class="z"><a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> $navigation</div>
</div>
<div id="ct" class="wp cl">
<div class="mn">
<div class="nfl">
<div class="f_c">
<h3 class="xs2 xi2 mbm">{lang youneedpay} $paycredits {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]]['unit']}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]]['title']} {lang onlyintoforum}</h3>
<div class="o">
<form method="post" autocomplete="off" action="forum.php?mod=forumdisplay&fid=$_G[fid]&action=paysubmit">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<button class="pn pnc vm" type="submit" name="loginsubmit" value="true"><strong>{lang confirmyourpay}</strong></button>
&nbsp;<button class="pn vm" type="button" onclick="history.go(-1)"><strong>{lang cancel}</strong></button>
</form>
</div>
</div>
</div>
</div>
</div>
<!--{template common/footer}-->

View File

@@ -0,0 +1,20 @@
<div id="threadlist" class="bm bmw"{if $_G['uid']} style="position: relative;"{/if}>
<!--{if $quicksearchlist && !$_GET['archiveid']}-->
<!--{subtemplate forum/search_sortoption}-->
<!--{/if}-->
$sorttemplate['header']
<form method="post" autocomplete="off" name="moderate" id="moderate" action="forum.php?mod=topicadmin&action=moderate&fid=$_G[fid]&infloat=yes&nopost=yes">
$sorttemplate['body']
<!--{if $_G['forum']['ismoderator'] && $_G['forum_threadcount']}-->
<!--{template forum/topicadmin_modlayer}-->
<!--{/if}-->
</form>
$sorttemplate['footer']
</div>
<div class="bm bw0 pgs cl">
$multipage
<span {if $_G[setting][visitedforums]}id="visitedforumstmp" onmouseover="$('visitedforums').id = 'visitedforumstmp';this.id = 'visitedforums';showMenu({'ctrlid':this.id,'pos':'21'})"{/if} class="pgb y"><a href="forum.php">{lang return_index}</a></span>
<!--{if !$_GET['archiveid']}--><a href="javascript:;" id="newspecialtmp" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu({'ctrlid':this.id})"{if !$_G['forum']['allowspecialonly'] && empty($_G['forum']['picstyle'])} onclick="showWindow('newthread', 'forum.php?mod=post&action=newthread&fid=$_G[fid]')"{else} onclick="location.href='forum.php?mod=post&action=newthread&fid=$_G[fid]';return false;"{/if} title="{lang send_posts}" class="pgsbtn showmenu">{lang send_posts}</a><!--{/if}-->
<!--{hook/forumdisplay_postbutton_bottom}-->
</div>

View File

@@ -0,0 +1,91 @@
<div class="bm bmw fl{if $_G['forum']['forumcolumns']} flg{/if}">
<div class="bm_h cl">
<span class="o"><em id="subforum_{$_G[forum][fid]}_img" class="tg{$collapseicon[subforum]}" title="{lang spread}" onclick="toggle_collapse('subforum_$_G['forum'][fid]');"></em></span>
<h2>{lang forum_subforums}</h2>
</div>
<div id="subforum_{$_G[forum][fid]}" class="bm_c" style="$collapse[subforum]">
<table cellspacing="0" cellpadding="0" class="fl_tb">
<tr>
<!--{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'];}-->
<!--{if $_G['forum']['forumcolumns']}-->
<!--{if $sub['orderid'] && ($sub['orderid'] % $_G['forum']['forumcolumns'] == 0)}-->
</tr>
<!--{if $_G['forum']['orderid'] < $_G['forum']['forumcolumns']}-->
<tr class="fl_row">
<!--{/if}-->
<!--{/if}-->
<td class="fl_g" width="$_G[forum][forumcolwidth]">
<div class="fl_icn_g"{if !empty($sub[extra][iconwidth]) && !empty($sub[icon])} style="width: {$sub[extra][iconwidth]}px;"{/if}>
<!--{if $sub[icon]}-->
$sub[icon]
<!--{else}-->
<a href="$forumurl"{if $sub[redirect]} target="_blank"{/if} title="$sub[name]"><svg width="31" height="29"><path fill="#{if $sub[folder]}fdc910{else}c9c9c9{/if}" d="M31 13c0-7.2-6.9-13-15.5-13S0 5.8 0 13s6.9 13 15.5 13c1.6 0 3.2-.2 4.6-.6L27 28l-1.7-5c3.5-2.4 5.7-6 5.7-10z"/></svg></a>
<!--{/if}-->
</div>
<dl{if !empty($sub[extra][iconwidth]) && !empty($sub[icon])} style="margin-left: {$sub[extra][iconwidth]}px;"{/if}>
<dt><a href="$forumurl" {if !empty($sub[redirect])}target="_blank"{/if} style="{if !empty($sub[extra][namecolor])}color: {$sub[extra][namecolor]};{/if}">$sub[name]</a><!--{if $sub[todayposts] && !$sub['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($sub[todayposts])</em><!--{/if}--></dt>
<!--{if empty($sub[redirect])}--><dd><em>{lang forum_threads}: <!--{echo dnumber($sub[threads])}--></em>, <em>{lang forum_posts}: <!--{echo dnumber($sub[posts])}--></em></dd><!--{/if}-->
<dd>
<!--{if $sub['permission'] == 1}-->
{lang private_forum}
<!--{else}-->
<!--{if $sub['redirect']}-->
<a href="$forumurl" class="xi2">{lang url_link}</a>
<!--{elseif is_array($sub['lastpost'])}-->
<!--{if $_G['forum']['forumcolumns'] < 3}-->
<a href="forum.php?mod=redirect&tid=$sub[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($sub[lastpost][subject], 30)}--></a> <cite>$sub[lastpost][dateline] <!--{if $sub['lastpost']['author']}-->$sub['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
<!--{else}-->
<a href="forum.php?mod=redirect&tid=$sub[lastpost][tid]&goto=lastpost#lastpost">{lang forum_lastpost}: $sub[lastpost][dateline]</a>
<!--{/if}-->
<!--{else}-->
{lang never}
<!--{/if}-->
<!--{/if}-->
<!--{hook/forumdisplay_subforum_extra $sub['fid']}-->
</dd>
</dl>
</td>
<!--{else}-->
<td class="fl_icn" {if !empty($sub[extra][iconwidth]) && !empty($sub[icon])} style="width: {$sub[extra][iconwidth]}px;"{/if}>
<!--{if $sub[icon]}-->
$sub[icon]
<!--{else}-->
<a href="$forumurl"{if $sub[redirect]} target="_blank"{/if} title="$sub[name]"><svg width="31" height="29"><path fill="#{if $sub[folder]}fdc910{else}c9c9c9{/if}" d="M31 13c0-7.2-6.9-13-15.5-13S0 5.8 0 13s6.9 13 15.5 13c1.6 0 3.2-.2 4.6-.6L27 28l-1.7-5c3.5-2.4 5.7-6 5.7-10z"/></svg></a>
<!--{/if}-->
</td>
<td>
<h2><a href="$forumurl" {if !empty($sub[redirect])}target="_blank"{/if} style="{if !empty($sub[extra][namecolor])}color: {$sub[extra][namecolor]};{/if}">$sub[name]</a><!--{if $sub[todayposts] && !$sub['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($sub[todayposts])</em><!--{/if}--></h2>
<!--{if $sub[description]}--><p class="xg2">$sub[description]</p><!--{/if}-->
<!--{if !empty($sub['subforums'])}--><p>{lang forum_subforums}: $sub['subforums']</p><!--{/if}-->
<!--{if $sub['moderators']}--><p>{lang forum_moderators}: $sub[moderators]</p><!--{/if}-->
<!--{hook/forumdisplay_subforum_extra $sub['fid']}-->
</td>
<td class="fl_i">
<!--{if empty($sub[redirect])}--><span class="xi2"><!--{echo dnumber($sub[threads])}--></span><span class="xg1"> / <!--{echo dnumber($sub[posts])}--></span><!--{/if}-->
</td>
<td class="fl_by">
<div>
<!--{if $sub['permission'] == 1}-->
{lang private_forum}
<!--{else}-->
<!--{if $sub['redirect']}-->
<a href="$forumurl" class="xi2">{lang url_link}</a>
<!--{elseif is_array($sub['lastpost'])}-->
<a href="forum.php?mod=redirect&tid=$sub[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($sub[lastpost][subject], 30)}--></a> <cite>$sub[lastpost][dateline] <!--{if $sub['lastpost']['author']}-->$sub['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
<!--{else}-->
{lang never}
<!--{/if}-->
<!--{/if}-->
</div>
</td>
</tr>
<tr class="fl_row">
<!--{/if}-->
<!--{/loop}-->
{$_G['forum']['endrows'] or ''}
</tr>
</table>
</div>
</div>

View File

@@ -0,0 +1,166 @@
<!--{template common/header}-->
<style type="text/css">
.xl2 { background: url({IMGDIR}/vline.png) repeat-y 50% 0; }
.xl2 li { width: 49.9%; }
.xl2 li em { padding-right: 10px; }
.xl2 .xl2_r em { padding-right: 0; }
.xl2 .xl2_r i { padding-left: 10px; }
</style>
<div id="pt" class="bm cl">
<div class="z">
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a><!--{if helper_access::check_module('guide')}--><em>&raquo;</em><a href="forum.php?mod=guide&view=index">{lang guide}</a><!--{/if}-->$navigation
</div>
</div>
<div class="boardnav">
<div id="ct" class="wp cl">
<div class="mn">
<div class="bm bml pbn">
<div class="bm_h cl">
<!--{if $view != 'index' && $view != 'my' && $_G[setting][rssstatus] }-->
<span class="y">
<a href="forum.php?mod=guide&view=$view&rss=1" class="fa_rss" target="_blank" title="RSS">{lang rss_subscribe_this}</a>
</span>
<!--{/if}-->
<h1 class="xs2">
$lang['guide_'.$view]
</h1>
</div>
<!--{if $view != 'my'}-->
<div class="bm_c cl pbn">
<div id="forum_rules_1163">
<div class="ptn xg2">$lang['guide_'.$view.'_description']</div>
</div>
</div>
<!--{/if}-->
</div>
<!--{if $view != 'index'}-->
<div id="pgt" class="bm bw0 pgs cl">
$multipage
<a onclick="showWindow('nav', this.href, 'get', 0)" href="forum.php?mod=misc&amp;action=nav" class="pgsbtn" style="display: inline-block;">{lang send_posts}</a>
</div>
<!--{/if}-->
<ul id="thread_types" class="ttp bm cl">
<li $currentview['hot']><a href="forum.php?mod=guide&view=hot">{lang guide_hot}</a></li>
<li $currentview['digest']><a href="forum.php?mod=guide&view=digest">{lang guide_digest}</a></li>
<li $currentview['new']><a href="forum.php?mod=guide&view=new">{lang guide_new}</a></li>
<li $currentview['newthread']><a href="forum.php?mod=guide&view=newthread">{lang guide_newthread}</a></li>
<li $currentview['sofa']><a href="forum.php?mod=guide&view=sofa">{lang guide_sofa}</a></li>
<li $currentview['my']><a id="filter_special" href="forum.php?mod=guide&view=my" onmouseover="showMenu(this.id)">{lang guide_my}</a></li>
<!--{hook/guide_nav_extra}-->
</ul>
<!--{hook/guide_top}-->
<!--{if $view == 'index'}-->
<!--{loop $data $key $list}-->
<div class="bm bmw">
<div class="bm_h">
<a href="forum.php?mod=guide&view=$key" class="y xi2">{lang more} &raquo;</a>
<h2>
<!--{if $key == 'hot'}-->{lang guide_hot}<!--{elseif $key == 'digest'}-->{lang guide_digest}<!--{elseif $key == 'newthread'}-->{lang guide_newthread}<!--{elseif $key == 'new'}-->{lang guide_new}<!--{elseif $key == 'my'}-->{lang guide_my}<!--{/if}-->
</h2>
</div>
<div class="bm_c">
<div class="xl xl2 cl">
<!--{if $list['threadcount']}-->
<!--{eval $i=0;}-->
<!--{loop $list['threadlist'] $thread}-->
<!--{eval $i++;$newtd=$i%2;}-->
<li{if !$newtd} class="xl2_r"{/if}>
<em>
<!--{if $key == 'hot'}--><span class="xi1">$thread['heats']{lang guide_attend}</span><!--{/if}-->
<!--{if $key == 'new'}-->$thread['lastpost']<!--{/if}-->
</em>
<i>&middot; <a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_GET['archiveid']}archiveid={$_GET['archiveid']}&{/if}extra=$extra"$thread[highlight] target="_blank">$thread[subject]</a></i>&nbsp;<span class="xg1"><a href="forum.php?mod=forumdisplay&fid=$thread[fid]" target="_blank">$list['forumnames'][$thread[fid]]['name']</a></span>
</li>
<!--{/loop}-->
<!--{else}-->
<p class="emp">{lang guide_nothreads}</p>
<!--{/if}-->
</div>
</div>
</div>
<!--{/loop}-->
<!--{else}-->
<!--{loop $data $key $list}-->
<div id="threadlist" class="tl bm bmw"{if $_G['uid']} style="position: relative;"{/if}>
<div class="th">
<table cellspacing="0" cellpadding="0">
<tr>
<th colspan="2"{if $view == 'my'} class="tbmu"{/if}>
{lang title}
<!--{if $view == 'my'}-->
&nbsp;&nbsp;&nbsp;
<a href="forum.php?mod=guide&view=my&type=thread" $orderactives[thread]>{lang forum_threads}</a><span class="pipe">|</span>
<a href="forum.php?mod=guide&view=my&type=reply" $orderactives[reply]>{lang reply}</a><span class="pipe">|</span>
<a href="forum.php?mod=guide&view=my&type=postcomment" $orderactives[postcomment]>{lang comments}</a><span class="pipe">|</span>
<!--{if $viewtype != 'postcomment'}-->
<a href="#" onclick="var displayvalue = $('searchbody').style.display == 'none' ? '' : 'none';$('searchbody').style.display=displayvalue; return false;">{lang screening}</a>
<!--{/if}-->
<!--{/if}-->
</th>
<td class="by">{lang forum_group}</td>
<td class="by">{lang author}</td>
<td class="num">{lang replies}</td>
<td class="by">{lang lastpost}</td>
</tr>
<!--{if $view == 'my'}-->
<tbody class="bw0_all" id="searchbody"{if !$searchbody} style="display: none"{/if}>
<tr>
<th colspan="6">&nbsp;
<form method="get" action="forum.php">
<input type="hidden" name="mod" value="guide">
<input type="hidden" name="view" value="my">
<input type="hidden" name="type" value="$viewtype">
<!--{if $viewtype != 'postcomment'}-->
{lang status}:
<select name="filter" id="filter">
<option value="">{lang all}</option>
<!--{loop $filter_array $fkey $name}-->
<option value="$fkey" {if $fkey == $_GET[filter]}selected{/if}>$name</option>
<!--{/loop}-->
</select>
{lang guide_forum_select}:
<select name="fid" id="forumlist">
<option value="0">{lang all}</option>
$forumlist
</select>
<!--{/if}-->
<!--{if $viewtype == 'thread'}-->
&nbsp; {lang keyword}: <input type="text" id="searchmypost" class="px vm" name="searchkey" size="20" value="$searchkey" >
<!--{/if}--><button class="pn vm"><strong>{lang search}</strong></button>
</form>
</th>
</tr>
</tbody>
<!--{/if}-->
</table>
</div>
<div class="bm_c">
<div id="forumnew" style="display:none"></div>
<table cellspacing="0" cellpadding="0">
<!--{subtemplate forum/guide_list_row}-->
</table>
</div>
</div>
<!--{/loop}-->
<div class="bm bw0 pgs cl">
$multipage
<span class="pgb y"><a href="forum.php?mod=guide&view=index">{lang guide_index}</a></span>
</div>
<!--{/if}-->
<!--{hook/guide_bottom}-->
</div>
</div>
</div>
<!--{if !IS_ROBOT}-->
<div id="filter_special_menu" class="p_pop" style="display:none">
<ul>
<li><a href="home.php?mod=space&do=poll&view=me" target="_blank">{lang thread_poll}</a></li>
<li><a href="home.php?mod=space&do=trade&view=me" target="_blank">{lang thread_trade}</a></li>
<li><a href="home.php?mod=space&do=reward&view=me" target="_blank">{lang thread_reward}</a></li>
<li><a href="home.php?mod=space&do=activity&view=me" target="_blank">{lang thread_activity}</a></li>
<li><a href="home.php?mod=space&do=debate&view=me" target="_blank">{lang thread_debate}</a></li>
</ul>
</div>
<!--{/if}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,140 @@
<!--{if $list['threadcount']}-->
<!--{loop $list['threadlist'] $key $thread}-->
<tbody id="$thread[id]">
<tr>
<td class="icn">
<a href="forum.php?mod=viewthread&tid=$thread[icontid]&{if $_GET['archiveid']}archiveid={$_GET['archiveid']}&{/if}extra=$extra" title="{if $thread['displayorder'] == 1}{lang thread_type1} - {/if}
{if $thread['displayorder'] == 2}{lang thread_type2} - {/if}
{if $thread['displayorder'] == 3}{lang thread_type3} - {/if}
{if $thread['displayorder'] == 4}{lang thread_type4} - {/if}
{if $thread[folder] == 'lock'}{lang closed_thread} - {/if}
{if $thread['special'] == 1}{lang thread_poll} - {/if}
{if $thread['special'] == 2}{lang thread_trade} - {/if}
{if $thread['special'] == 3}{lang thread_reward} - {/if}
{if $thread['special'] == 4}{lang thread_activity} - {/if}
{if $thread['special'] == 5}{lang thread_debate} - {/if}
{if $thread[folder] == "new"}{lang have_newreplies} - {/if}
{lang target_blank}" target="_blank">
<!--{if $thread[folder] == 'lock'}-->
<i class="fico-lock fic6 fc-s"></i>
<!--{elseif $thread['special'] == 1}-->
<i class="fico-vote fic6 fc-n"></i>
<!--{elseif $thread['special'] == 2}-->
<i class="fico-cart fic6 fc-n"></i>
<!--{elseif $thread['special'] == 3}-->
<i class="fico-reward fic6 fc-n"></i>
<!--{elseif $thread['special'] == 4}-->
<i class="fico-group fic6 fc-n"></i>
<!--{elseif $thread['special'] == 5}-->
<i class="fico-vs fic6 fc-n"></i>
<!--{elseif in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
<i class="tpin tpin{$thread[displayorder]}"><svg width="18" height="18"><path d="M9 0l9 9H14v9H4V9H0z"></path></svg></i>
<!--{else}-->
<i class="fico-thread fic6 fc-n"></i>
<!--{/if}-->
</a>
</td>
<th class="$thread[folder]">
<!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
<!--{eval $thread['tid']=$thread['closed'];}-->
<!--{/if}-->
$thread[typehtml] $thread[sorthtml]
<!--{if $thread['moved']}-->
{lang thread_moved}:<!--{eval $thread['tid']=$thread['closed'];}-->
<!--{/if}-->
<a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_GET['archiveid']}archiveid={$_GET['archiveid']}&{/if}extra=$extra"{$thread[highlight]} target="_blank" class="xst" >$thread[subject]</a><!--{if $_G['setting']['threadhidethreshold'] && $thread['hidden'] >= $_G['setting']['threadhidethreshold']}-->&nbsp;<span class="xg1">{lang hidden}</span>&nbsp;<!--{/if}--><!--{if $view == 'hot'}-->&nbsp;<span class="xi1">$thread['heats']{lang guide_attend}</span>&nbsp;<!--{/if}-->
<!--{if $thread[icon] >= 0}-->
<img src="{STATICURL}image/stamp/{$_G[cache][stamps][$thread[icon]][url]}" alt="{$_G[cache][stamps][$thread[icon]][text]}" class="vm" />
<!--{/if}-->
<!--{if $thread['rushreply']}-->
<span class="tbox rushrep">{lang rushreply}</span>
<!--{/if}-->
<!--{if $stemplate && $sortid}-->$stemplate[$sortid][$thread[tid]]<!--{/if}-->
<!--{if $thread['readperm']}--> - [{lang readperm} <span class="xw1">$thread[readperm]</span>]<!--{/if}-->
<!--{if $thread['price'] > 0}-->
<!--{if $thread['special'] == '3'}-->
- <span class="xi1">[{lang thread_reward} <span class="xw1">$thread[price]</span> {$_G[setting][extcredits][$_G['setting']['creditstransextra'][2]][unit]}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][2]][title]}]</span>
<!--{else}-->
- [{lang price} <span class="xw1">$thread[price]</span> {$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][unit]}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][title]}]
<!--{/if}-->
<!--{elseif $thread['special'] == '3' && $thread['price'] < 0}-->
- [{lang reward_solved}]
<!--{/if}-->
<!--{if $thread['attachment'] == 2}-->
<i class="fico-image fic4 fc-p fnmr vm" title="{lang attach_img}"></i>
<!--{elseif $thread['attachment'] == 1}-->
<i class="fico-attachment fic4 fc-p fnmr vm" title="{lang attachment}"></i>
<!--{/if}-->
<!--{if $thread['digest'] > 0 && $filter != 'digest'}-->
<span class="tbox tdigest">{lang thread_digest}$thread[digest]</span>
<!--{/if}-->
<!--{if $thread['displayorder'] == 0}-->
<!--{if $thread[recommendicon] && $filter != 'recommend'}-->
<span class="tbox trecic" title="{lang thread_recommend} $thread[recommends]">{lang thread_recommend_icon}</span>
<!--{/if}-->
<!--{if $thread[heatlevel]}-->
<span class="tbox theatlevel" title="$thread[heatlevel] {lang heats}">{lang heats_icon}{if $thread[heatlevel]>1}..{/if}{if $thread[heatlevel]>2}.{/if}</span>
<!--{/if}-->
<!--{if $thread['rate'] > 0}-->
<i class="fico-thumbup fic4 fc-l fnmr vm" title="{lang rate_credit_add}"></i>
<!--{elseif $thread['rate'] < 0}-->
<i class="fico-thumbdown fic4 fc-a fnmr vm" title="{lang posts_deducted}"></i>
<!--{/if}-->
<!--{/if}-->
<!--{if $thread['replycredit'] > 0}-->
- <span class="xi1">[{lang replycredit} <strong> $thread['replycredit']</strong> ]</span>
<!--{/if}-->
<!--{if $thread[multipage]}-->
<span class="tps">$thread[multipage]</span>
<!--{/if}-->
<!--{if $thread['weeknew']}-->
<a href="forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost#lastpost" class="xi1">New</a>
<!--{/if}-->
<!--{if !$thread['forumstick'] && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
<!--{if $thread['related_group'] == 0 && $thread['closed'] > 1}-->
<!--{eval $thread['tid']=$thread['closed'];}-->
<!--{/if}-->
<!--{/if}-->
</th>
<td class="by"><a href="forum.php?mod=forumdisplay&fid=$thread[fid]" target="_blank">$list['forumnames'][$thread[fid]]['name']</a></td>
<td class="by">
<cite>
<!--{if $thread['authorid'] && $thread['author']}-->
<a href="home.php?mod=space&uid=$thread[authorid]" c="1">$thread[author]</a><!--{if !empty($verify[$thread['authorid']])}--> $verify[$thread[authorid]]<!--{/if}-->
<!--{else}-->
$_G[setting][anonymoustext]
<!--{/if}-->
</cite>
<em><span{if $thread['istoday']} class="xi1"{/if}>$thread[dateline]</span></em>
</td>
<td class="num"><a href="forum.php?mod=viewthread&tid=$thread[tid]&extra=$extra" class="xi2">$thread[replies]</a><em><!--{if $thread['isgroup'] != 1}-->$thread[views]<!--{else}-->{$groupnames[$thread[tid]][views]}<!--{/if}--></em></td>
<td class="by">
<cite><!--{if $thread['lastposter']}--><a href="{if $thread[digest] != -2}home.php?mod=space&username=$thread[lastposterenc]{else}forum.php?mod=viewthread&tid=$thread[tid]&page={echo max(1, $thread[pages]);}{/if}" c="1">$thread[lastposter]</a><!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
<em><a href="{if $thread[digest] != -2}forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost$highlight#lastpost{else}forum.php?mod=viewthread&tid=$thread[tid]&page={echo max(1, $thread[pages]);}{/if}">$thread[lastpost]</a></em>
</td>
</tr>
</tbody>
<!--{if $view == 'my' && $viewtype=='reply' && !empty($tids[$thread[tid]])}-->
<tbody class="bw0_all">
<tr>
<td class="icn">&nbsp;</td>
<td colspan="5">
<!--{loop $tids[$thread[tid]] $pid}-->
<!--{eval $post = $posts[$pid];}-->
<div class="tl_reply pbm xg1"><a href="forum.php?mod=redirect&goto=findpost&ptid=$thread[tid]&pid=$pid" target="_blank"><!--{if $post[message]}-->{$post[message]}<!--{else}-->...<!--{/if}--></a></div>
<!--{/loop}-->
</td>
</tr>
</tbody>
<tr><td colspan="6"></td></tr>
<!--{/if}-->
<!--{if $view == 'my' && $viewtype=='postcomment'}-->
<tr>
<td class="icn">&nbsp;</td>
<td colspan="5" class="xg1">$thread[comment]</td>
</tr>
<!--{/if}-->
<!--{/loop}-->
<!--{else}-->
<tbody class="bw0_all"><tr><th colspan="5"><p class="emp">{lang guide_nothreads}</p></th></tr></tbody>
<!--{/if}-->

View File

@@ -0,0 +1,31 @@
<!--{template common/header}-->
<h3 class="flb">
<em id="return_$_GET['handlekey']">
{lang hiderecover}
</em>
<span>
<a href="javascript:;" class="flbc" onclick="hideWindow('$_GET['handlekey']')" title="{lang close}">{lang close}</a>
</span>
</h3>
<form method="post" autocomplete="off" id="hiderecoverform" action="forum.php?mod=misc&action=hiderecover&tid=$_GET[tid]&infloat=yes" onsubmit="ajaxpost('hiderecoverform', 'return_$_GET['handlekey']', 'return_$_GET['handlekey']', 'onerror');return false;">
<div class="c">
<input type="hidden" name="formhash" id="formhash" value="{FORMHASH}" />
<input type="hidden" name="handlekey" value="$_GET['handlekey']" />
<!--{eval $sectpl = '<table cellspacing="0" cellpadding="0" class="tfm"><tr><th><sec></th><td><sec><p class="d"><sec></p></td></tr></table>';}-->
<!--{subtemplate common/seccheck}-->
</div>
<div class="o pns" id="moreconf">
<button type="submit" id="postsubmit" class="pn pnc z" value="true" name="hiderecoversubmit"><span>{lang submit}</span></button>
</div>
</form>
<script type="text/javascript" reload="1">
function succeedhandle_hiderecover(locationhref, message) {
hideWindow('$_GET['handlekey']');
$('hiderecover').style.display = 'none';
showDialog(message, 'notice', '', '', 0, null, '', '', '', 3);
}
</script>
<!--{template common/footer}-->

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1,3 @@
<ul>
<!--{hook/index_navbar}-->
</ul>

View File

@@ -0,0 +1,65 @@
<!--{template common/header}-->
<div id="pt" class="bm cl">
<div class="z"><a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em>
<a href="$_G[setting][navs][2][filename]">$_G[setting][navs][2][navname]</a> <em>&rsaquo;</em>
<a href="forum.php?mod=modcp">{lang forum_manager}</a>
</div>
</div>
<div id="ct" class="ct2_a wp cl">
<div class="mn">
<!--{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)}-->
<!--{eval include(template($modtpl));}-->
<!--{/if}-->
</div>
<div class="appl">
<div class="tbn">
<h2 class="mt bbda">{lang forum_manager}</h2>
<ul>
<li{if $_GET[action] == 'home'} class="a cl"{else} class="cl"{/if}><span class="y mtn">$notenum</span><a href="{$cpscript}?mod=modcp&action=home$forcefid">{lang mod_notice_title}</a></li>
<!--{if $modforums['fids']}-->
<!--{if $_G['group']['allowmodpost'] || $_G['group']['allowmoduser']}-->
<li{if $_GET[action] == 'moderate'} class="a cl"{else} class="cl"{/if}><span class="y mtn">$modnum</span><a href="{$cpscript}?mod=modcp&action=moderate&op={if $_G['group']['allowmodpost'] && $_G['setting']['forumstatus']}threads{$forcefid}{else}members{/if}">{lang forum_moderate}</a></li>
<!--{/if}-->
<!--{/if}-->
<!--{if !empty($_G['setting']['plugins']['modcp_base'])}-->
<!--{loop $_G['setting']['plugins']['modcp_base'] $id $module}-->
<li{if $_GET[id] == $id} class="a"{/if}><a href="{$cpscript}?mod=modcp&action=plugin&op=base&id=$id{$forcefid}">$module[name]</a></li>
<!--{/loop}-->
<!--{/if}-->
<!--{if $_G['group']['allowedituser'] || $_G['group']['allowbanuser'] || $_G['group']['allowbanvisituser'] || $_G['group']['allowbanip']}-->
<!--{if $_G['group']['allowbanuser'] || $_G['group']['allowbanvisituser']}--><li{if $_GET[action] == 'member' && $op == 'ban'} class="a"{/if}><a href="{$cpscript}?mod=modcp&action=member&op=ban$forcefid">{lang mod_option_member_ban}</a></li><!--{/if}-->
<!--{if $_G['group']['allowbanip']}--><li{if $_GET[action] == 'member' && $op == 'ipban'} class="a"{/if}><a href="{$cpscript}?mod=modcp&action=member&op=ipban$forcefid">{lang mod_option_member_ipban}</a></li><!--{/if}-->
<!--{if $modforums['fids'] && $_G['setting']['forumstatus']}--><li{if $_GET[action] == 'forumaccess'} class="a"{/if}><a href="{$cpscript}?mod=modcp&action=forumaccess{$forcefid}">{lang mod_option_member_access}</a></li><!--{/if}-->
<!--{if $_G['group']['allowedituser']}--><li{if $_GET[action] == 'member' && $op == 'edit'} class="a"{/if}><a href="{$cpscript}?mod=modcp&action=member&op=edit$forcefid">{lang mod_option_member_edit}</a></li><!--{/if}-->
<!--{/if}-->
<!--{if $modforums['fids'] && $_G['setting']['forumstatus']}-->
<li{if $_GET[action] == 'thread' || $_GET[action] == 'recyclebin'} class="a"{/if}><a href="{$cpscript}?mod=modcp&action=thread&op=thread{$forcefid}">{lang mod_option_subject}</a></li>
<!--{if $_G['group']['allowrecommendthread']}--><li{if $_GET[action] == 'forum' && $op == 'recommend'} class="a"{/if}><a href="{$cpscript}?mod=modcp&action=forum&op=recommend&show=all{$forcefid}">{lang mod_option_forum_recommend}</a></li><!--{/if}-->
<!--{if $_G['group']['alloweditforum']}--><li{if $_GET[action] == 'forum' && $op == 'editforum'} class="a"{/if}><a href="{$cpscript}?mod=modcp&action=forum&op=editforum{$forcefid}">{lang mod_option_forum_edit}</a></li><!--{/if}-->
<!--{/if}-->
<!--{if ($_G['group']['allowpostannounce'] && $_G['setting']['forumstatus']) || $_G['group']['allowviewlog']}-->
<!--{if $_G['group']['allowpostannounce'] && $_G['setting']['forumstatus']}--><li{if $_GET[action] == 'announcement'} class="a"{/if}><a href="{$cpscript}?mod=modcp&action=announcement$forcefid">{lang announcements}</a></li><!--{/if}-->
<!--{if $_G['group']['allowviewlog']}--><li{if $_GET[action] == 'log'} class="a"{/if}><a href="{$cpscript}?mod=modcp&action=log$forcefid">{lang modcp_logs}</a></li><!--{/if}-->
<!--{/if}-->
<!--{if !empty($_G['setting']['plugins']['modcp_tools'])}-->
<!--{loop $_G['setting']['plugins']['modcp_tools'] $id $module}-->
<li{if $_GET[id] == $id} class="a"{/if}><a href="{$cpscript}?mod=modcp&action=plugin&op=tools&id=$id">$module[name]</a></li>
<!--{/loop}-->
<!--{/if}-->
<!--{if $_G['setting']['forumstatus']}-->
<li{if $_GET[action] == 'report'} class="a"{/if}><a href="{$cpscript}?mod=modcp&action=report$forcefid">{lang modcp_report}</a></li>
<li><a href="{if $forcefid}forum.php?mod=forumdisplay{$forcefid}{else}forum.php{/if}">{lang mod_option_return}</a></li>
<!--{/if}-->
<li><a href="{$cpscript}?mod=modcp&action=logout">{lang logout}</a></li>
</ul>
</div>
</div>
</div>
<!--{template common/footer}-->

View File

@@ -0,0 +1,131 @@
<div class="bm bw0 mdcp">
<!--{if $op == 'edit'}-->
<h1 class="mt">{lang mod_announce_edit}</h1>
<!--{else}-->
<h1 class="mt">{lang announcement}</h1>
<!--{/if}-->
<div class="exfm">
<script type="text/javascript" src="{$_G[setting][jspath]}calendar.js?{VERHASH}"></script>
<form method="post" autocomplete="off" action="{$cpscript}?mod=modcp&action=announcement&op={if $op == 'edit'}edit{else}add{/if}">
<input type="hidden" name="formhash" value="{FORMHASH}">
<input type="hidden" name="id" value="$announce[id]">
<input type="hidden" name="displayorder" value="$announce[displayorder]">
<table cellspacing="0" cellpadding="0">
<tr>
<th width="15%">{lang title}:</th>
<td width="35%"><input type="text" name="subject" value="$announce[subject]" class="px" /></td>
<th width="15%">{lang mod_announce_type}:</th>
<td width="35%">
<span class="ftid">
<select name="type" id="type" change="changeinput($('type').value)" class="ps">
<option value="0" $announce[checked][0]>{lang mod_announce_type_text}</option>
<option value="1" $announce[checked][1]>{lang mod_announce_type_url}</option>
</select>
</span>
<script type="text/javascript">
function changeinput(v){
if(v == 0) {
$('annomessage').style.display = $('annomessage_editor').style.display = '';
$('anno_type_url').style.display = 'none';
} else {
$('annomessage').style.display = $('annomessage_editor').style.display = 'none';
$('anno_type_url').style.display = '';
}
}
</script>
</td>
</tr>
<tr>
<th width="15%">{lang starttime}:</th>
<td width="35%" class="hasd">
<input type="text" onclick="showcalendar(event, this, false)" id="starttime" name="starttime" autocomplete="off" value="$announce[starttime]" class="px" />
<a href="javascript:;" class="dpbtn" onclick="showselect(this, 'starttime', 1)">^</a>
</td>
<th width="15%">{lang endtime}:</th>
<td width="35%" class="hasd cl">
<input type="text" onclick="showcalendar(event, this, false)" id="endtime" name="endtime" autocomplete="off" value="$announce[endtime]" class="px" />
<a href="javascript:;" class="dpbtn" onclick="showselect(this, 'endtime', 1)">^</a>
</td>
</tr>
<tr>
<th>&nbsp;</th>
<td colspan="3">
<div class="tedt" id="annomessage_editor" {if $announce[checked][1]} style="display:none"{/if}>
<div class="bar">
<!--{eval $seditor = array('anno', array('bold', 'color', 'img', 'link'));}-->
<!--{subtemplate common/seditor}-->
</div>
<div class="area">
<textarea name="message[0]" id="annomessage" class="pt" {if $announce[checked][1]} style="display:none"{/if} />$announce[message]</textarea>
</div>
</div>
<input name="message[1]" id="anno_type_url" value="$announce[message]" class="px"{if $announce[checked][0]} style="display:none"{/if} />
</td>
</tr>
<tr>
<th>&nbsp;</th>
<td colspan="3">
<!--{if $op == 'edit'}-->
<button type="submit" name="submit" id="submit" class="pn" value="true"><strong>{lang edit}</strong></button>
<button type="button" class="pn" onclick="location.href='{$cpscript}?mod=modcp&action=announcement'"><strong>{lang return}</strong></button>
<!--{else}-->
<button type="submit" name="submit" id="submit" class="pn" value="true"><strong>{lang mod_announce_add}</strong></button>
<!--{/if}-->
<!--{if $edit_successed}-->
{lang mod_message_announce_edit}<script type="text/JavaScript">setTimeout("window.location.replace('{$cpscript}?mod=modcp&action=announcement')", 2000);</script>
<!--{elseif $add_successed}-->
{lang mod_message_announce_add}
<!--{/if}-->
</td>
</tr>
</tbody>
</table>
</form>
</div>
<!--{if $op != 'edit'}-->
<h2 class="mtm mbm">{lang mod_announce_list}</h2>
<form method="post" autocomplete="off" action="{$cpscript}?mod=modcp&action=announcement&op=manage">
<input type="hidden" name="formhash" value="{FORMHASH}">
<table id="list_announce" cellspacing="0" cellpadding="0" class="dt">
<thead>
<tr>
<th class="c">&nbsp;</th>
<th>{lang displayorder}</th>
<th>{lang author}</th>
<th>{lang title}</th>
<th>{lang mod_announce_type}</th>
<th>{lang starttime}</th>
<th>{lang endtime}</th>
<th>{lang action}</th>
</tr>
</thead>
<!--{loop $annlist $ann}-->
<tr $ann['disabled']>
<td><input type="checkbox" name="delete[]" class="pc" value="$ann[id]" $ann['disabled'] /></td>
<td><input type="text" name="order[{$ann[id]}]" class="px" value="$ann[displayorder]" size="3" $ann['disabled'] /></td>
<td>$ann[author]</td>
<td>$ann[subject]</td>
<td><!--{if $ann[type] == 1}-->{lang link}<!--{else}-->{lang text}<!--{/if}--></td>
<td>$ann[starttime]</td>
<td>$ann[endtime]</td>
<td><a href="$cpscript?mod=modcp&action=announcement&op=edit&id=$ann[id]" class="xi2">{lang edit}</a></td>
</tr>
<!--{/loop}-->
<tr class="bw0_all">
<td><label for="chkall" onclick="checkall(this.form)"><input type="checkbox" name="chkall" id="chkall" class="pc" />{lang delete_check}</label></td>
<td colspan="7">
<button type="submit" name="submit" id="submit" class="pn" value="true"><strong>{lang submit}</strong></button>
<!--{if !empty($delids)}-->
{lang mod_message_announce_del}
<!--{/if}-->
</td>
</tr>
</table>
</form>
<!--{/if}-->
</div>
<script type="text/javascript" reload="1">
simulateSelect('type');
</script>

View File

@@ -0,0 +1,129 @@
<div class="bm bw0 mdcp">
<!--{if $_G[fid] && $_G['forum']['ismoderator']}-->
<h1 class="mt cl">
<span class="z">
<!--{if $op == 'editforum'}-->{lang mod_option_forum_edit}<!--{elseif $op == 'recommend'}-->{lang mod_option_forum_recommend}<!--{/if}-->
<!--{if $modforums['fids']}--> -&nbsp;
</span>
<span class="ftid">
<select name="fid" id="fid" width="150" class="ps" change="location.href='{$cpscript}?mod=modcp&action=$_GET[action]&op=$op&fid='+$('fid').value">
<!--{loop $modforums[list] $id $name}-->
<option value="$id" {if $id == $_G[fid]}selected="selected"{/if}>$name</option>
<!--{/loop}-->
</select>
</span>
<!--{else}-->
{lang mod_message_forum_nopermission}
<!--{/if}-->
</h1>
<!--{/if}-->
<!--{if $_G[fid] && $_G['forum']['ismoderator']}-->
<!--{if $op == 'editforum'}-->
<script type="text/javascript">
var allowbbcode = allowimgcode = 1;
var allowhtml = forumallowhtml = allowsmilies = 0;
</script>
<div class="exfm">
<script type="text/javascript" src="{$_G[setting][jspath]}bbcode.js?{VERHASH}"></script>
<form method="post" autocomplete="off" action="{$cpscript}?mod=modcp&action=$_GET[action]&op=$op">
<input type="hidden" name="formhash" value="{FORMHASH}">
<input type="hidden" name="fid" value="$_G[fid]">
<table cellspacing="0" cellpadding="0">
<caption>
<h4>{lang forum_rules}</h4>
<div id="rulespreview"></div>
</caption>
<tr>
<td class="ptm">
<div class="tedt">
<div class="bar">
<div class="y"><a href="javascript:;" onclick="$('rulespreview').innerHTML = bbcode2html($('rulesmessage').value)">{lang memcp_profile_preview}</a></div>
<!--{eval $seditor = array('rules', array('bold', 'color', 'img', 'link'));}-->
<!--{subtemplate common/seditor}-->
</div>
<div class="area">
<textarea id="rulesmessage" name="rulesnew" class="pt" rows="8" {if !$alloweditrules}disabled="disabled" readonly="readonly"{/if}>$_G['forum']['rules']</textarea>
</div>
</div>
<!--{if !$alloweditrules}-->
<div>{lang forum_not_allow}</div>
<!--{/if}-->
</td>
<td width="15%" valign="top" class="ptm">
<p>{lang discuzcode} {lang enabled}</p>
<p>{lang post_imgcode} {lang enabled}</p>
<p>{lang post_html} {lang disabled}</p>
</td>
</tr>
<tr>
<td colspan="2">
<button type="submit" name="editsubmit" class="pn" value="true"><strong>{lang submit}</strong></button>
<!--{if $forumupdate}-->
{lang mod_message_forum_update}
<!--{/if}-->
</td>
</tr>
</table>
</form>
</div>
<!--{elseif $op == 'recommend'}-->
<script type="text/javascript" src="{$_G[setting][jspath]}forum_moderate.js?{VERHASH}"></script>
<!--{if $threadlist}-->
<form method="post" autocomplete="off" action="{$cpscript}?mod=modcp&action=$_GET[action]&show=$_GET['show']">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="op" value="$op" />
<input type="hidden" name="page" value="$page" />
<input type="hidden" name="fid" value="$_G[fid]" />
<input type="hidden" name="check" value="$check" />
<table cellspacing="0" cellpadding="0" class="dt">
<thead>
<tr>
<th class="c">&nbsp;</th>
<th>{lang displayorder}</th>
<th>{lang subject}</th>
<th>{lang author}</th>
<th>{lang recommend_moderator}</th>
<th>{lang mod_forum_recommend_expiration}</th>
<th></th>
</tr>
</thead>
<!--{loop $threadlist $thread}-->
<tr>
<td><input{if $_G['forum']['modrecommend']['sort'] == 1} readonly="readonly"{/if} type="checkbox" name="delete[]" class="pc" value="$thread[tid]" /></td>
<td><input{if $_G['forum']['modrecommend']['sort'] == 1} readonly="readonly"{/if} type="text" name="order[{$thread[tid]}]" class="px" size="3" value="$thread[displayorder]" /></td>
<td><input{if $_G['forum']['modrecommend']['sort'] == 1} readonly="readonly"{/if} type="text" name="subject[{$thread[tid]}]" class="px" value="$thread[subject]" /></td>
<td class="xi2">$thread[authorlink]</td>
<td class="xi2"><!--{if $thread['moderatorid']}--><a href="home.php?mod=space&uid=$thread[moderatorid]" target="_blank">{$moderatormembers[$thread[moderatorid]][username]}</a><!--{else}-->System<!--{/if}--></td>
<td><input type="text" name="expirationrecommend[{$thread[tid]}]" id="expirationrecommend" class="px" value="{$thread[expiration]}" autocomplete="off" {if $_G['forum']['modrecommend']['sort'] == 1} readonly="readonly"{else} onclick="showcalendar(event, this, true)"{/if} /></td>
<td><!--{if $_G['forum']['modrecommend']['sort'] != 1}--><a href="javascript:;" onclick="showWindow('mods', 'forum.php?mod=topicadmin&optgroup=1&action=moderate&operation=recommend&frommodcp=2&show={$show}&tid={$thread[tid]}')" class="xi2">{lang more_settings}</a><!--{/if}--></td>
</tr>
<!--{/loop}-->
<tr class="bw0_all">
<td><label for="chkall" onclick="checkall(this.form)"><input type="checkbox" name="chkall" id="chkall" class="pc" />{lang delete_check}</label></td>
<td colspan="6">
<!--{if !empty($reportlist[pagelink])}-->$reportlist[pagelink]<!--{/if}-->
<button type="submit" name="editsubmit" class="pn" value="yes"><strong>{lang mod_forum_recommend_list}</strong></button>
<!--{if $listupdate}-->
{lang mod_message_forum_updaterecommend}
<!--{/if}-->
</td>
</tr>
</table>
</form>
<!--{else}-->
<div class="emp">{lang search_nomatch}</div>
<!--{/if}-->
<!--{/if}-->
<!--{/if}-->
</div>
<script type="text/javascript" reload="1">
if($('fid')) {
simulateSelect('fid');
}
</script>
<script type="text/javascript" src="{$_G[setting][jspath]}calendar.js?{VERHASH}"></script>

View File

@@ -0,0 +1,177 @@
<div class="bm bw0 mdcp">
<h1 class="mt">{lang mod_option_member_access}</h1>
<div class="mbm">{lang mod_notice_access}</div>
<!--{if $modforums['fids']}-->
<script type="text/javascript">
function chkallaccess(obj) {
$('new_post').checked
= $('new_post').disabled
= $('new_reply').checked
= $('new_reply').disabled
= $('new_postattach').checked
= $('new_postattach').disabled
= $('new_getattach').checked
= $('new_getattach').disabled
= $('new_getimage').checked
= $('new_getimage').disabled
= $('new_postimage').disabled
= obj.checked;
}
function disallaccess(obj) {
$('new_view').checked
= $('new_post').checked
= $('new_post').checked
= $('new_reply').checked
= $('new_postattach').checked
= $('new_getattach').checked
= $('new_getimage').checked
= $('new_postimage').disabled
= false;
$('customaccess').disabled
= $('new_view').disabled
= $('new_view').disabled
= $('new_post').disabled
= $('new_post').disabled
= $('new_reply').disabled
= $('new_postattach').disabled
= $('new_getattach').disabled
= $('new_getimage').disabled
= $('new_postimage').disabled
= obj.checked;
}
</script>
<form method="post" autocomplete="off" action="{$cpscript}?mod=modcp&action=$_GET[action]">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="op" value="$op" id="operation" />
<div class="exfm">
<table cellspacing="0" cellpadding="0">
<!--{if $adderror || $successed}-->
<tr>
<th>&nbsp;</th>
<td>
<span class="rq"> *
<!--{if $successed}-->
{lang mod_message_access_updatepermission}
<!--{elseif $adderror == 1}-->
{lang mod_message_access_user_nonexistence}
<!--{elseif $adderror == 2}-->
{lang mod_message_access_user_invalid}
<!--{elseif $adderror == 3}-->
{lang mod_message_access_admin_invalid}
<!--{/if}-->
</span>
</td>
</tr>
<!--{/if}-->
<tr>
<th width="15%">{lang mod_moderate_selectforum}:</th>
<td width="80%">
<span class="ftid">
<select name="fid" id="fid" class="ps" width="108">
<!--{loop $modforums[list] $id $name}-->
<option value="$id" {if $id == $_G[fid]}selected="selected"{/if}>$name</option>
<!--{/loop}-->
</select>
</span>
</td>
</tr>
<tr>
<th>{lang username}:</th>
<td>
<input type="text" size="20" value="$new_user" name="new_user" class="px" /> &nbsp;&nbsp;
</td>
</tr>
<tr>
<th>{lang mod_access_change}:</th>
<td>
<label for="deleteaccess" class="lb"><input type="checkbox" value="1" name="deleteaccess" id="deleteaccess" onclick="disallaccess(this)" class="pc" />{lang mod_access_recover}</label>
<span id="customaccess">
<label for="new_view" class="lb"><input type="checkbox" value="-1" name="new_view" id="new_view" onclick="chkallaccess(this)" class="pc" />{lang mod_access_ban_viewthread}</label>
<label for="new_post" class="lb"><input type="checkbox" value="-1" name="new_post" id="new_post" class="pc" />{lang mod_access_ban_postthread}</label>
<label for="new_reply" class="lb"><input type="checkbox" value="-1" name="new_reply" id="new_reply" class="pc" />{lang mod_access_ban_postreply}</label>
<label for="new_getattach" class="lb"><input type="checkbox" value="-1" name="new_getattach" id="new_getattach" class="pc" />{lang mod_access_ban_download}</label>
<label for="new_getimage" class="lb"><input type="checkbox" value="-1" name="new_getimage" id="new_getimage" class="pc" />{lang mod_access_ban_getimage}</label>
<label for="new_postattach" class="lb"><input type="checkbox" value="-1" name="new_postattach" id="new_postattach" class="pc" />{lang mod_access_ban_upload}</label>
<label for="new_postimage" class="lb"><input type="checkbox" value="-1" name="new_postimage" id="new_postimage" class="pc" />{lang mod_access_ban_uploadimage}</label>
</span>
</td>
</tr>
<tr>
<td></td>
<td><button type="submit" class="pn" name="addsubmit" value="true"><strong>{lang submit}</strong></button></td>
</tr>
</table>
</div>
<script type="text/javascript">
<!--{if !empty($deleteaccess)}-->
var obj = $('deleteaccess');
obj.checked = true;
disallaccess(obj);
<!--{elseif !empty($new_view)}-->
var obj = $('new_view');
obj.checked = true;
chkallaccess(obj);
<!--{/if}-->
</script>
</form>
<!--{/if}-->
<div class="ptm pbm cl">
<div class="y pns">
<form method="post" autocomplete="off" action="{$cpscript}?mod=modcp&action=$_GET[action]&op=$op">
<input type="hidden" name="formhash" value="{FORMHASH}">
{lang username}: <input type="text" name="suser" class="px vm" value="$suser" onclick="this.value='';" />&nbsp;
<select name="fid" class="ps vm">
<option>{lang all}{lang forum}</option>
$forumlistall
</select>&nbsp;
<button type="submit" name="searchsubmit" id="searchsubmit" class="pn vm" value="true"><strong>{lang search}</strong></button>
</form>
</div>
<h2>{lang mod_access_specialuser}</h2>
</div>
<table id="list_member" cellspacing="0" cellpadding="0" class="dt">
<thead>
<tr>
<th>{lang member}</th>
<th>{lang forum}</th>
<th>{lang mod_access_viewthread}</th>
<th>{lang mod_access_postthread}</th>
<th>{lang mod_access_postreply}</th>
<th>{lang mod_access_download}</th>
<th>{lang mod_access_getimage}</th>
<th>{lang mod_access_upload}</th>
<th>{lang mod_access_uploadimage}</th>
<th>{lang mod_access_optime}</th>
<th>{lang moderator}</th>
</tr>
</thead>
<!--{if $list[data]}-->
<!--{loop $list[data] $access}-->
<tr>
<td><!--{if $users[$access[uid]] != ''}--><a href="home.php?mod=space&uid=$access[uid]" target="_blank" class="xi2">{$users[$access[uid]]}</a><!--{else}-->UID $access[uid]<!--{/if}--></td>
<td>$access['forum']</td>
<td>$access['allowview']</td>
<td>$access['allowpost']</td>
<td>$access['allowreply']</td>
<td>$access['allowgetattach']</td>
<td>$access['allowgetimage']</td>
<td>$access['allowpostattach']</td>
<td>$access['allowpostimage']</td>
<td>$access[dateline]</td>
<td><!--{if $users[$access[adminuser]] != ''}--><a href="home.php?mod=space&uid=$access[adminuser]" target="_blank" class="xi2">{$users[$access[adminuser]]}</a><!--{else}-->UID $access[adminuser]<!--{/if}--></td>
</tr>
<!--{/loop}-->
<!--{else}-->
<tr><td colspan="11"><p class="emp">{lang mod_message_access_nonexistence}</p></td></tr>
<!--{/if}-->
</table>
<!--{if !empty($list[pagelink])}--><div class="pgs cl mtm">$list[pagelink]</div><!--{/if}-->
</div>
<script type="text/javascript" reload="1">
if($('fid')) {
simulateSelect('fid');
}
</script>

View File

@@ -0,0 +1,54 @@
<div class="bm bw0 mdcp">
<h1 class="mt">{lang mod_notice_title}</h1>
<form method="post" autocomplete="off" action="{$cpscript}?mod=modcp&action=$_GET[action]" id="list_adminnote">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="op" value="addnote" />
<div class="exfm">
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td rowspan="2" width="75%"><textarea name="newmessage" class="pt" rows="5" style="width: 95%; height: 120px;"></textarea></td>
<td width="25%">
<ul>
<li>{lang modcp_home_adminnote_to}:</li>
<li><label><input type="checkbox" name="newaccess[1]" class="pc" value="1" checked="checked" disabled="disabled" />{lang admin}</label></li>
<li><label><input type="checkbox" name="newaccess[2]" class="pc" value="1" checked="checked" />{lang supermod}</label></li>
<li><label><input type="checkbox" name="newaccess[3]" class="pc" value="1" checked="checked" />{lang moderator}</label></li>
</ul>
</td>
</tr>
<tr>
<td>
<p>{lang expire}:
<label><input type="text" id="newexpiration" name="newexpiration" autocomplete="off" value="30" class="px" size="2" /> {lang days}</label>
</p>
</td>
</tr>
<tr>
<td colspan="2"><button type="submit" class="pn" name="submit" value="true"><strong>{lang modcp_home_adminnote_add}</strong></button></td>
</tr>
</table>
</div>
</form>
<h2 class="bbs pbm ptm">{lang modcp_home_message_list}</h2>
<!--{if $notelist}-->
<form method="post" autocomplete="off" action="{$cpscript}?mod=modcp&action=$_GET[action]" name="notelist" id="notelist">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="op" value="delete" />
<input type="hidden" name="notlistsubmit" value="yes" />
<!--{loop $notelist $note}-->
<div class="um">
<p class="pbn"><span class="y">({lang expire}: $note[expiration] {lang days})</span>$note[checkbox] <span class="xi2">$note[admin]</span> <span class="xg1">$note[dateline]</span></p>
<p>$note[message]</p>
</div>
<!--{/loop}-->
<div class="um bw0 cl">
<input type="checkbox" name="ncheck" id="ncheck" class="pc" onclick="checkall($('notelist'), 'delete', 'ncheck')" /> <label for="ncheck">{lang checkall}</label>
<button type="submit" name="submit" id="submit" class="pn" value="true"><strong>{lang delete}</strong></button>
</div>
</form>
<!--{else}-->
<p class="emp">{lang modcp_home_adminnote_nonexistence}</p>
<!--{/if}-->
</div>

View File

@@ -0,0 +1,50 @@
<div class="bm bw0 mdcp">
<h1 class="mt">{lang modcp_logs}</h1>
<div class="exfm">
<form method="post" autocomplete="off" action="{$cpscript}?mod=modcp&action=log">
<input type="hidden" name="action" value="log">
<table cellspacing="0" cellpadding="0">
<tr>
<th width="15%">{lang keyword}:</th>
<td width="45%"><input type="text" name="keyword" value="$keyword" size="20" class="px" /></td>
<th width="15%">{lang modcp_logs_perpage}:</th>
<td width="45%"><input type="text" name="lpp" value="$lpp" size="20" class="px" /></td>
</tr>
<tr>
<td>&nbsp;</td>
<td colspan="3"><button type="submit" class="pn" name="submit" id="searchsubmit" value="true"><strong>{lang modcp_logs_search}</strong></button></td>
</tr>
</table>
</form>
</div>
<!--{if !empty($loglist)}-->
<h2 class="mtm mbm">{lang modcp_logs_list_1}</h2>
<table id="list_modcp_logs" cellspacing="0" cellpadding="0" class="dt">
<thead>
<tr>
<th width="12%">{lang time}</th>
<th width="15%">{lang username}</th>
<th width="15%">IP</td>
<th width="15%">{lang modcp_logs_action}</th>
<th width="13%">{lang forum}</th>
<th width="30%">{lang modcp_logs_other}</th>
</tr>
</thead>
<!--{if $loglist}-->
<!--{loop $loglist $log}-->
<tr>
<td>$log[1]</td>
<td><span class="xi2">$log[2]</span><br /><span class="xg1"><!--{if $log[3] == 1}--> {lang admin} <!--{elseif $log[3] == 2}--> {lang supermod} <!--{elseif $log[3] == 3}--> {lang moderator} <!--{else}--> GID $log[3] <!--{/if}--></span></td>
<td>$log[4]</td>
<td>$log[5] <br />$log[6]</td>
<td class="xi2">$log[7]</td>
<td>$log[8]</td>
</tr>
<!--{/loop}-->
<!--{else}-->
<tr><td colspan="6"><p class="emp">{lang search_nomatch}</p></td></tr>
<!--{/if}-->
</table>
<!--{if !empty($multipage)}--><div class="pgs cl mtm">$multipage</div><!--{/if}-->
<!--{/if}-->
</div>

View File

@@ -0,0 +1,27 @@
<div class="bm bw0 mdcp">
<h1 class="mt">{lang panel_login}</h1>
<div class="mbw">{lang panel_notice_login}</div>
<form method="post" autocomplete="off" action="{$cpscript}?mod=modcp&action=login" class="exfm">
<input type="hidden" name="formhash" value="{FORMHASH}">
<input type="hidden" name="fid" value="{$_G[fid]}">
<input type="hidden" name="submit" value="yes">
<input type="hidden" name="login_panel" value="yes">
<table cellspacing="0" cellpadding="5">
<tr>
<th width="60">{lang panel_login_username}:</th>
<td>{$_G[member][username]}</td>
</tr>
<tr>
<th>{lang panel_login_password}:</th>
<td><input type="password" name="cppwd" id="cppwd" class="px" /></td>
</tr>
<tr>
<th>&nbsp;</th>
<td><button type="submit" name="submit" id="submit" class="pn" value="true"><strong>{lang submit}</strong></button></td>
</tr>
</table>
</form>
</div>
<script type="text/javascript">
$("cppwd").focus();
</script>

View File

@@ -0,0 +1,258 @@
<div class="bm bw0 mdcp">
<!--{if $op == 'edit' || $op == 'ban'}-->
<h1 class="mt"><!--{if $op == 'edit'}-->{lang mod_member_edit}<!--{else}-->{lang mod_member_ban}<!--{/if}--></h1>
<form method="post" autocomplete="off" action="{$cpscript}?mod=modcp&action=$_GET[action]&op=$op">
<input type="hidden" name="formhash" value="{FORMHASH}">
<div class="exfm">
<table cellspacing="0" cellpadding="0">
<caption>
<!--{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}-->
, <a href="admin.php?action=members&operation=search&username={$usernameenc}&submit=yes&frames=yes" target="_blank" class="xi2">{lang mod_message_goto_admincp}</a>
<!--{/if}-->
<!--{/if}-->
<!--{/if}-->
</caption>
<tr>
<th width="15%">{lang username}:</th>
<td width="85%"><input type="text" name="username" class="px" value="" size="20" /></td>
</tr>
<tr>
<th>UID:</th>
<td><input type="text" name="uid" class="px" value="" size="20" /> [{lang optional}]</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><button type="submit" name="submit" id="searchsubmit" class="pn" value="true"><strong>{lang modcp_logs_search}</strong></button></td>
</tr>
</table>
</div>
</form>
<!--{/if}-->
<!--{if $op == 'edit' && $member && !$error}-->
<form method="post" autocomplete="off" action="{$cpscript}?mod=modcp&action=$_GET[action]&op=$op" 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']">
<table cellspacing="0" cellpadding="0" class="tfm">
<tr>
<th>&nbsp;</th>
<td>
<table width="100%">
<tr>
<td width="10%" rowspan="2" class="avt"><!--{echo avatar($member['uid'], 'small');}--></td>
<td>
<p><a href="home.php?mod=space&uid=$member[uid]" target="_blank" class="xi2">$member[username]</a></p>
<p>UID: $member[uid]</p>
<p><label><input type="checkbox" name="clearavatar" class="pc" value="1" />{lang avatar_del}</label></p>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<th>{lang bio}</th>
<td><textarea name="bionew" class="pt" rows="4" cols="80">$member['bio']</textarea></td>
</tr>
<tr>
<th>{lang signature}</th>
<td><textarea name="signaturenew" class="pt" rows="4" cols="80">$member[signature]</textarea></td>
</tr>
<tr>
<th>&nbsp;</th>
<td><button type="submit" name="editsubmit" id="submit" class="pn" value="true"><strong>{lang submit}</strong></button></td>
</tr>
</table>
</form>
<!--{/if}-->
<!--{if $op == 'ban' && $member && !$error}-->
<form method="post" autocomplete="off" action="{$cpscript}?mod=modcp&action=$_GET[action]&op=$op" 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']">
<table cellspacing="0" cellpadding="0" class="tfm">
<tr>
<th>&nbsp;</th>
<td>
<table width="100%">
<tr>
<td width="10%" rowspan="2" class="avt"><!--{echo avatar($member['uid'], 'small');}--></td>
<td>
<p><a href="home.php?mod=space&uid=$member[uid]" target="_blank" class="xi2">$member[username]</a></p>
<p>UID: $member[uid]</p>
<p><!--{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>
</td>
</tr>
</table>
</td>
</tr>
<!--{if $clist}-->
<tr>
<th>{lang crime_record}</th>
<td style="padding-top: 0;">
<table cellspacing="0" cellpadding="0" class="dt">
<tr>
<td width="15%">{lang crime_action}</td>
<td width="15%">{lang crime_dateline}</td>
<td>{lang crime_reason}</td>
<td width="15%">{lang crime_operator}</td>
</tr>
<!--{loop $clist $crime}-->
<tbody id="$crime[cid]">
<tr>
<td>
<!--{if $crime[action] == 'crime_delpost'}-->
{lang crime_delpost}
<!--{elseif $crime[action] == 'crime_warnpost'}-->
{lang crime_warnpost}
<!--{elseif $crime[action] == 'crime_banpost'}-->
{lang crime_banpost}
<!--{elseif $crime[action] == 'crime_banspeak'}-->
{lang crime_banspeak}
<!--{elseif $crime[action] == 'crime_banvisit'}-->
{lang crime_banvisit}
<!--{elseif $crime[action] == 'crime_banstatus'}-->
{lang crime_banstatus}
<!--{elseif $crime[action] == 'crime_avatar'}-->
{lang crime_avatar}
<!--{elseif $crime[action] == 'crime_sightml'}-->
{lang crime_sightml}
<!--{elseif $crime[action] == 'crime_customstatus'}-->
{lang crime_customstatus}
<!--{/if}-->
</td>
<td>
<!--{date($crime['dateline'])}-->
</td>
<td>$crime[reason]</td>
<td>
<a href="home.php?mod=space&uid=$crime[operatorid]" class="xi2">$crime[operator]</a>
</td>
</tr>
</tbody>
<!--{/loop}-->
</table>
</td>
</tr>
<!--{/if}-->
<tr>
<th>{lang changeto}:</th>
<td>
<!--{if $member[groupid] == 4 || $member[groupid] == 5}-->
<label for="bannew_0" class="lb"><input type="radio" name="bannew" id="bannew_0" value="0" checked="checked" class="pr" />{lang modcp_members_status_normal}</label>
<!--{/if}-->
<!--{if $member[groupid] != 4 && $_G[group][allowbanuser]}--><label for="bannew_4" class="lb"><input type="radio" name="bannew" id="bannew_4" class="pr" value="4" {if $member[groupid] != 4 && $member[groupid] != 5}checked="checked"{/if} />{lang modcp_members_status_banpost}</label><!--{/if}-->
<!--{if $member[groupid] != 5 && $_G[group][allowbanvisituser]}--><label for="bannew_5" class="lb"><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}-->
</td>
</tr>
<tr>
<th>{lang expiry}:</th>
<td>
<p class="hasd cl">
<script type="text/javascript" src="{$_G[setting][jspath]}calendar.js?{VERHASH}"></script>
<input type="text" id="banexpirynew" name="banexpirynew" autocomplete="off" value="" class="px" style="margin-right: 0; width: 100px;" />
<a href="javascript:;" class="dpbtn" onclick="showselect(this, 'banexpirynew', 1, 1)">^</a>
</p>
<p class="d">{lang modcp_members_ban_days_comment}</p>
</td>
</tr>
<tr>
<th valign="top">{lang reason}:</th>
<td><textarea name="reason" class="pt" rows="4" cols="80">$member[signature]</textarea></td>
</tr>
<tr>
<th>&nbsp;</th>
<td><button type="submit" name="bansubmit" id="submit" class="pn" value="true"><strong>{lang submit}</strong></button></td>
</tr>
</table>
</form>
<!--{/if}-->
<!--{if $op == 'ipban'}-->
<h1 class="mt">{lang mod_option_member_ipban}</h1>
<form method="post" autocomplete="off" action="{$cpscript}?mod=modcp&action=$_GET[action]&op=$op">
<input type="hidden" name="formhash" value="{FORMHASH}">
<div class="exfm">
<table cellspacing="0" cellpadding="0">
<tr>
<th width="15%">{lang add_new}</th>
<td width="85%">
<input type="text" name="ipnew" class="px" value="$iptoban" size="30" maxlength="45"/>
&nbsp;&nbsp;{lang modcp_ip_message}
</td>
</tr>
<tr>
<th width="15%">{lang expiry}:</th>
<td width="85%" class="hasd cl">
<script type="text/javascript" src="{$_G[setting][jspath]}calendar.js?{VERHASH}"></script>
<input type="text" id="validitynew" name="validitynew" autocomplete="off" value="" class="px" style="width: 100px;" />
<a href="javascript:;" class="dpbtn" onclick="showselect(this, 'validitynew', 1, 1)">^</a>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
<button type="submit" name="ipbansubmit" id="submit" class="pn" value="true"><strong>{lang submit}</strong></button>
<!--{if $adderror}-->
<!--{if $adderror == 1}-->
{lang modcp_members_ip_error_1}
<!--{elseif $adderror == 2}-->
{lang modcp_members_ip_error_2}
<!--{elseif $adderror == 3}-->
{lang modcp_members_ip_error_3}
<!--{elseif $updatecheck || $deletecheck || $addcheck}-->
{lang modcp_members_ip_succed}
<!--{else}-->
{lang modcp_members_ip_error_4}
<!--{/if}-->
<!--{/if}-->
</td>
</tr>
</table>
</div>
<h2 class="mtm mbm">{lang modcp_ban_ip}</h2>
<table cellspacing="0" cellpadding="0" class="dt">
<thead>
<tr>
<th class="c">{lang delete}</th>
<th>{lang online_ip}</th>
<th>{lang ip_location}</th>
<th>{lang modcp_members_ip_addadmin}</th>
<th>{lang starttime}</th>
<th>{lang endtime}</th>
</tr>
</thead>
<!--{if $iplist}-->
<!--{loop $iplist $ip}-->
<tr>
<td><input type="checkbox" name="delete[]" class="pc" value="$ip[id]" $ip[disabled]></td>
<td>$ip[theip]</td>
<td>$ip[location]</td>
<td>$ip[admin]</td>
<td>$ip[dateline]</td>
<td class="hasd cl">
<input type="text" id="expirationnew[{$ip[id]}]" name="expirationnew[{$ip[id]}]" autocomplete="off" value="$ip[expiration]" class="px"/>
<a href="javascript:;" class="dpbtn" onclick="showselect(this, 'expirationnew[{$ip[id]}]', 1, 1)">^</a>
</td>
</tr>
<!--{/loop}-->
<tr class="bw0_all">
<td><label for="chkall" onclick="checkall(this.form)"><input type="checkbox" name="chkall" id="chkall" class="pc" />{lang checkall}</label></td>
<td colspan="5"><button type="submit" name="ipbansubmit" id="submit" class="pn" value="true"><strong>{lang submit}</strong></button></td>
</tr>
<!--{else}-->
<tr><td colspan="6"><p class="emp">{lang no_ban_ip}</p></td></tr>
<!--{/if}-->
</table>
</form>
<!--{/if}-->
</div>

View File

@@ -0,0 +1,236 @@
<script type="text/javascript">
modclickcount = 0;
function recountobj() {
modclickcount = 0;
var objform = $('moderate');
for(var i = 0; i < objform.elements.length; i++) {
if(objform.elements[i].name.match('moderate') && objform.elements[i].checked) {
modclickcount++;
}
}
$('modlayercount').innerHTML = modclickcount;
}
function modcheckall() {
var count = 0;
count = checkall($('moderate'), 'moderate', 'chkall');
$('modlayercount').innerHTML = count;
}
function toggle_post(id) {
var obj = $('list_note_' + id);
obj.style.display='block';
obj.style.height = obj.style.height == '155px' ? 'auto' : '155px' ;
}
function modthreads(operation) {
var checked = 0;
var operation = !operation ? '' : operation;
var objform = $('moderate');
for(var i = 0; i < objform.elements.length; i++) {
if(objform.elements[i].name.match('moderate') && objform.elements[i].checked) {
checked = 1;
break;
}
}
if(!checked) {
alert('{lang mod_select_invalid}');
} else {
$('moderate').modact.value = operation;
$('moderate').infloat.value = 'yes';
showWindow('mods', 'moderate', 'post');
}
}
</script>
<div class="bm bw0 mdcp">
<h1 class="mt">{lang mod_option_subject_mod}</h1>
<ul class="tb cl">
<!--{if $_G['group']['allowmodpost'] && $_G['setting']['forumstatus']}-->
<li{if $op == 'threads'} class="a"{/if}><a href="{$cpscript}?mod=modcp&action=moderate&op=threads{$forcefid}" hidefocus="true">{lang mod_option_subject_modthreads}</a></li>
<li{if $op == 'replies'} class="a"{/if}><a href="{$cpscript}?mod=modcp&action=moderate&op=replies{$forcefid}" hidefocus="true">{lang mod_option_subject_modreplies}</a></li>
<!--{/if}-->
<!--{if $_G['group']['allowmoduser']}-->
<li{if $op == 'members'} class="a"{/if}><a href="{$cpscript}?mod=modcp&action=moderate&op=members" hidefocus="true">{lang mod_option_moduser}</a></li>
<!--{/if}-->
</ul>
<!--{if $op == 'threads' || $op == 'replies'}-->
<div class="exfm">
<form method="post" autocomplete="off" action="{$cpscript}?mod=modcp&action=$_GET[action]&op=$op">
<input type="hidden" name="formhash" value="{FORMHASH}">
<!--{if $modforums['fids']}-->
<table cellspacing="0" cellpadding="0">
<tr>
<th width="10%">{lang mod_moderate_selectforum}: </th>
<th>
<span class="ftid">
<select name="fid" id="fid" width="124" class="ps">
<option value="0">{lang all}</option>
<!--{loop $modforums[list] $id $name}-->
<option value="$id" {if $id == $_G[fid]}selected{/if}>$name</option>
<!--{/loop}-->
</select>
</span>
</th>
<th width="10%">{lang mod_moderate_thread_range}: </th>
<td>
<span class="ftid">
<select name="filter" id="filter" width="124" class="ps">
<option value="0" $filtercheck[0]><!--{if $op == 'replies'}-->{lang mod_moderate_reply_num}<!--{else}-->{lang mod_moderate_thread_num}<!--{/if}--></option>
<option value="-3" $filtercheck[-3]><!--{if $op == 'replies'}-->{lang mod_moderate_ignorereply_num}<!--{else}-->{lang mod_moderate_ignorethread_num}<!--{/if}--></option>
</select>
</span>
</td>
<!--{if $posttableselect}-->
<th width="10%">{lang table_branch}</th>
<td>
<span class="ftid">
$posttableselect
</span>
</td>
<!--{/if}-->
</tr>
<tr>
<td><label><input name="showcensor" type="checkbox" class="checkbox" value="yes" <!--{if $_GET['showcensor']}--> checked="checked"<!--{/if}-->/><p style="display: inline;">{lang mod_moderate_showcensor}</p></label></td>
<td colspan="{if $posttableselect}5{else}3{/if}"><button type="submit" name="submit" id="searchsubmit" class="pn" value="true"><strong>{lang submit}</strong></button></td>
</tr>
</table>
<!--{else}-->
<p class="emp">{lang mod_message_moderate_nopermission}</p>
<!--{/if}-->
</form>
</div>
<!--{if $updatestat}--><div class="ptm pbm">{lang mod_notice_moderate}</div><!--{/if}-->
<!--{if $postlist}-->
<form method="post" autocomplete="off" name="moderate" id="moderate" action="{$cpscript}?mod=modcp&action=$_GET[action]&op=$op" class="s_clear">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="fid" value="$_G[fid]" />
<input type="hidden" name="modact" value="" />
<input type="hidden" name="infloat" value="" />
<input type="hidden" name="dosubmit" value="yes" />
<input type="hidden" name="filter" value="$filter" />
<input type="hidden" name="posttableid" value="$posttableid" />
<!--{loop $postlist $post}-->
<div class="um {echo swapclass('alt');}" id="pid_$post[id]">
<p class="pbn">
<span class="y">
<a href="forum.php?mod=<!--{if $post[first]}-->viewthread&tid<!--{else}-->redirect&goto=findpost&ptid={$post[tid]}&pid<!--{/if}-->={$post[id]}&modthreadkey={echo modauthkey($post['id']);}" target="_blank" class="xi2">{lang views}</a><span class="pipe">|</span>
<a href="forum.php?mod=modcp&action=$_GET[action]&op=$op&posttableid=$posttableid&moderate[]={$post[id]}&modact=validate&filter=$filter&dosubmit=1" onclick="showWindow('mods', this.href)" class="xi2">{lang pass}</a><span class="pipe">|</span>
<a href="forum.php?mod=modcp&action=$_GET[action]&op=$op&posttableid=$posttableid&moderate[]={$post[id]}&modact=delete&filter=$filter&dosubmit=1" onclick="showWindow('mods', this.href)" class="xi2">{lang delete}</a><span class="pipe">|</span>
<a href="forum.php?mod=modcp&action=$_GET[action]&op=$op&posttableid=$posttableid&moderate[]={$post[id]}&modact=ignore&filter=$filter&dosubmit=1" onclick="showWindow('mods', this.href)" class="xi2">{lang ignore}</a><span class="pipe">|</span>
<a href="javascript:;" onclick="toggle_post($post[id]);" class="xi2">{lang open}</a>
</span>
<input type="checkbox" name="moderate[]" id="pidcheck_{$post[id]}" class="pc" value="$post[id]" onclick="recountobj()"/>
<a href="forum.php?mod=forumdisplay&fid={$post[fid]}" target="_blank" class="xi2 xw1">{$modforums[list][$post[fid]]}</a><!--{if !empty($post[tsubject])}--> &rsaquo; <span class="xw1">$post[tsubject]</span><!--{/if}--><!--{if $post[subject] && !$post[first]}--> &rsaquo; <span class="xw1">$post[subject]</span><!--{/if}--><!--{if !empty($post['censorwords'])}--> &rsaquo; <span class="xw1" style="color: red;">($post['censorwords'])</span><!--{/if}-->
</p>
<p class="pbn">
<span class="xi2">$post[author]</span>
<span class="xg1">{lang poston} $post[dateline]</span>
<div id="list_note_{$post[id]}" style="overflow: auto; overflow-x: hidden; height: 155px; word-break: break-all;">
$post[message] $post[attach] $post[sortinfo]
</div>
</p>
</div>
<!--{/loop}-->
<!--{if !empty($multipage)}--><div class="pgs cl mtm">$multipage</div><!--{/if}-->
<div class="um bw0 cl">
<label for="chkall"><input type="checkbox" class="pc" name="chkall" id="chkall" onclick="modcheckall()" />{lang checkall}</label>
<button onclick="modthreads('validate'); return false;" class="pn"><strong>{lang validate}</strong></button>
<button onclick="modthreads('delete'); return false;" class="pn"><strong>{lang delete}</strong></button>
<button onclick="modthreads('ignore'); return false;" class="pn"><strong>{lang ignore}</strong></button>
<label>{lang mod_moderate_select}</label>
</div>
</form>
<!--{elseif $_G[fid]}-->
<p class="emp">{lang search_nomatch}</p>
<!--{/if}-->
<!--{/if}-->
<!--{if $op == 'members'}-->
<form method="post" autocomplete="off" action="{$cpscript}?mod=modcp&action=$_GET[action]&op=$op">
<input type="hidden" name="formhash" value="{FORMHASH}">
<div class="filterform exfm">
<table cellspacing="0" cellpadding="0">
<tr>
<th width="10%">{lang mod_moderate_member_range}:</th>
<td width="90%">
<span class="ftid">
<select name="filter" id="filter" width="150" class="ps">
<option value="0" $filtercheck[0]>{lang mod_moderate_member_never} ( $count[0] )</option>
<option value="1" $filtercheck[1]>{lang mod_moderate_member_already} ( $count[1] )</option>
</select>
</span>
</td>
</tr>
<tr>
<th></th>
<td><button type="submit" class="pn" name="submit" id="searchsubmit" value="true"><strong>{lang submit}</strong></button></td>
</tr>
</table>
</div>
</form>
<!--{if $memberlist}-->
<form method="post" autocomplete="off" name="moderate" id="moderate" action="{$cpscript}?mod=modcp&action=$_GET[action]&op=$op">
<input type="hidden" name="infloat" value="" />
<input type="hidden" name="modact" value="" />
<input type="hidden" name="dosubmit" value="yes" />
<input type="hidden" name="filter" value="$filter" />
<table cellspacing="0" cellpadding="0" class="dt">
<thead>
<tr>
<th class="c">&nbsp;</th>
<th>{lang mod_moderate_member_profile}</th>
<th>{lang mod_moderate_member_register_reason}</th>
<th>{lang mod_moderate_member_info}</th>
</tr>
</thead>
<!--{loop $memberlist $member}-->
<tr id="pid_{$member[uid]}" class="{echo swapclass('alt')}">
<td><input type="checkbox" name="moderate[]" id="pidcheck_{$member[uid]}" class="pc" value="$member[uid]" onclick="recountobj()" /></td>
<td valign="top">
<h5>$member[username]</h5>
<p>{lang mod_moderate_member_register_dateline}: $member[regdate]</p>
<p>{lang mod_moderate_member_register_ip}: $member[regip]</p>
<p>Email: $member[email]</p>
<p class="mtn">
<a href="forum.php?mod=modcp&action=$_GET[action]&op=$op&moderate[]={$member[uid]}&modact=validate&filter=$filter&dosubmit=1" onclick="showWindow('mods', this.href)">{lang pass}</a><span class="pipe">|</span>
<!--{if $member['groupid'] == 8}--><a href="forum.php?mod=modcp&action=$_GET[action]&op=$op&moderate[]={$member[uid]}&modact=delete&filter=$filter&dosubmit=1" onclick="showWindow('mods', this.href)">{lang delete}</a><span class="pipe">|</span><!--{/if}-->
<a href="forum.php?mod=modcp&action=$_GET[action]&op=$op&moderate[]={$member[uid]}&modact=ignore&filter=$filter&dosubmit=1" onclick="showWindow('mods', this.href)">{lang invalidate}</a>
</p>
</td>
<td valign="top">$member['message']</td>
<td valign="top">
<p>{lang mod_moderate_member_submit_times}: $member[submittimes]</p>
<p>{lang mod_moderate_member_submit_dateline}: $member[submitdate]</p>
<p>{lang mod_moderate_member_mod_admin}: $member[admin]</p>
<p>{lang mod_moderate_member_mod_dateline}: $member[moddate]</p>
</td>
</tr>
<!--{/loop}-->
</table>
<!--{if !empty($multipage)}--><div class="pgs cl mtm">$multipage</div><!--{/if}-->
<div class="um bw0 cl">
<label for="chkall"><input type="checkbox" class="pc" name="chkall" id="chkall" onclick="modcheckall()"/>{lang checkall}</label>
<button onclick="modthreads('validate'); return false;" class="pn"><strong>{lang validate}</strong></button>
<button onclick="modthreads('delete'); return false;" class="pn"><strong>{lang delete}</strong></button>
<button onclick="modthreads('ignore'); return false;" class="pn"><strong>{lang invalidate}</strong></button>
<label>{lang mod_moderate_select}</label>
</div>
</form>
<!--{else}-->
<p class="emp">{lang search_nomatch}</p>
<!--{/if}-->
<!--{/if}-->
</div>
<script type="text/javascript" reload="1">
if($('filter')) {
simulateSelect('filter');
}
if($('fid')) {
simulateSelect('fid');
}
if($('posttableid')) {
simulateSelect('posttableid');
}
</script>

View File

@@ -0,0 +1,59 @@
<!--{template common/header}-->
<div class="f_c">
<h3 class="flb">
<em id="return_mods">
<!--{if $modact == 'delete'}-->{lang delete}<!--{elseif $modact == 'ignore'}-->{lang ignore}<!--{elseif $modact == 'invalidate'}-->{lang invalidate}<!--{else}-->{lang validate}<!--{/if}-->
<!--{if $op == 'members'}-->{lang mod_moderate_member}<!--{elseif $op == 'threads'}-->{lang mod_moderate_thread}<!--{elseif $op == 'replies'}-->{lang mod_moderate_reply}<!--{/if}-->
(<!--{echo count($list)}-->)</em>
<span>
<!--{if !empty($_GET['infloat'])}--><a href="javascript:;" class="flbc" onclick="hideWindow('mods')" title="{lang close}">{lang close}</a><!--{/if}-->
</span>
</h3>
<form id="moderateform" method="post" autocomplete="off" action="{$cpscript}?mod=modcp&action=$_GET[action]&op=$op&infloat=yes" onsubmit="ajaxpost('moderateform', 'return_mods', 'return_mods', 'onerror');return false;">
<div class="c">
<!--{if $list}-->
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="filter" value="$filter" />
<input type="hidden" name="modact" value="$modact" />
<input type="hidden" name="modsubmit" value="1" />
<!--{if $op == 'replies'}-->
<!--{eval $_GET['posttableid'] = intval($_GET['posttableid']);}-->
<input type="hidden" name="posttableid" value="$_GET['posttableid']" />
<!--{/if}-->
<!--{if !empty($_GET['infloat'])}--><input type="hidden" name="handlekey" value="$_GET['handlekey']" /><!--{/if}-->
<!--{loop $list $id}-->
<input type="hidden" name="moderate[]" value="$id" />
<!--{/loop}-->
<p>{lang mod_moderate_reason}: <a onclick="showselect(this, 'reason', 'reasonselect')" class="dpbtn" href="javascript:;" style="float: right; border-width: 1px;">^</a></p>
<p><textarea id="reason" name="reason" cols="50" rows="3" class="pt mtn"></textarea></p>
<ul id="reasonselect" style="display: none"><!--{echo modreasonselect()}--></ul>
<!--{else}-->
{lang mod_moderate_nonexistence}
<!--{/if}-->
</div>
<p class="o">
<!--{if $modact == 'delete' && $op != 'members'}-->
<label for="userban"><input type="checkbox" name="banuser" id="userban" class="pc" />{lang topicadmin_banuser}</label>
<label for="userdelpost"><input type="checkbox" name="userdelpost" id="userdelpost" class="pc" />{lang topicadmin_userdelpost}</label>
<label for="crimerecord"><input type="checkbox" name="crimerecord" id="crimerecord" class="pc" />{lang crimerecord}</label>
<!--{/if}-->
<button type="submit" name="modsubmit" id="modsubmit" class="pn pnc" value="true"><strong>{lang submit}</strong></button>
<!--{if $op=='members'}--><label for="sendemail"><input type="checkbox" name="sendemail" id="sendemail" class="pc" value="1" />{lang mod_moderate_member_sendemail}</label><!--{/if}-->
</p>
</form>
</div>
<script type="text/javascript" reload="1">
function succeedhandle_$_GET['handlekey'](locationhref) {
<!--{loop $list $id}-->
$('pidcheck_$id').parentNode.removeChild($('pidcheck_$id'));
$('pid_$id').style.display = 'none';
<!--{/loop}-->
recountobj();
hideWindow('mods');
}
</script>
<!--{template common/footer}-->

View File

@@ -0,0 +1,144 @@
<div class="bm bw0 mdcp">
<h1 class="mt">{lang mod_option_subject}</h1>
<ul class="tb cl">
<li><a href="{$cpscript}?mod=modcp&action=thread&op=thread{$forcefid}" hidefocus="true">{lang mod_option_subject_forum}</a></li>
<li class="a"><a href="{$cpscript}?mod=modcp&action=thread&op=post{$forcefid}" hidefocus="true">{lang mod_option_subject_delete}</a></li>
<li><a href="{$cpscript}?mod=modcp&action=recyclebin{$forcefid}" hidefocus="true">{lang mod_option_subject_recyclebin}</a></li>
<li><a href="{$cpscript}?mod=modcp&action=recyclebinpost{$forcefid}" hidefocus="true">{lang mod_option_subject_recyclebinpost}</a></li>
</ul>
<script type="text/javascript" src="{$_G[setting][jspath]}calendar.js?{VERHASH}"></script>
<form method="post" autocomplete="off" action="{$cpscript}?mod=modcp&action=$_GET[action]&op=$op">
<input type="hidden" name="do" value="search">
<input type="hidden" name="formhash" value="{FORMHASH}">
<div class="exfm">
<table cellspacing="0" cellpadding="0">
<tr>
<th width="15%">{lang mod_option_selectforum}:</th>
<td width="35%">
<span class="ftid">
<select name="fid" id="fid" class="ps" width="168">
<option value="">{lang modcp_select_forum}</option>
<!--{loop $modforums[list] $id $name}-->
<option value="$id" {if $id == $_G[fid]}selected{/if}>$name</option>
<!--{/loop}-->
</select>
</span>
</td>
<th width="15%">{lang modcp_posts_type}:</th>
<td width="35%">
<span class="ftid">
<select name="threadoption" id="threadoption" class="ps" width="168">
<option value="0" $threadoptionselect[0]>{lang all}</option>
<option value="1" $threadoptionselect[1]>{lang modcp_posts_threadfirst}</option>
<option value="2" $threadoptionselect[2]>{lang modcp_posts_threadreply}</option>
</select>
</span>
</td>
</tr>
<tr>
<th>{lang modcp_posts_author}:</th>
<td><input type="text" name="users" class="px" size="20" value="$result[users]" style="width: 180px"/></td>
<th>{lang modcp_posts_dateline_range}:</th>
<td><input type="text" name="starttime" class="px" size="10" value="$result[starttime]" onclick="showcalendar(event, this)"/> {lang modcp_posts_to}
<!--{if $_G['adminid'] == 1}-->
<input type="text" name="endtime" class="px" size="10" value="$result[endtime]" onclick="showcalendar(event, this)"/>
<!--{else}-->
<input type="text" name="endtime" class="px" size="10" value="$result[endtime]" readonly="readonly" disabled="disabled" />
<!--{if $_G['adminid'] == 2}-->
<br />{lang modcp_posts_week_2}
<!--{elseif $_G['adminid'] == 3}-->
<br />{lang modcp_posts_week_1}
<!--{/if}-->
<!--{/if}-->
</td>
</tr>
<tr>
<th>{lang modcp_posts_keyword}:</th>
<td><input type="text" name="keywords" class="px" size="20" value="$result[keywords]" style="width: 180px"/></td>
<th>{lang modcp_posts_ip}:</th>
<td><input type="text" name="useip" class="px" value="$result[useip]" style="width: 180px" /></td>
</tr>
<!--{if $posttableselect}-->
<tr>
<th>{lang posttable_branch}</th>
<td colspan="3"><span class="ftid">$posttableselect</span></td>
</tr>
<!--{/if}-->
<tr>
<td>&nbsp;</td>
<td colspan="3">
<button type="submit" name="searchsubmit" id="searchsubmit" class="pn" value="true"><strong>{lang submit}</strong></button>
</td>
</tr>
</table>
</div>
</form>
<!--{if $error == 1}-->
<p class="xi1">{lang modcp_posts_error_1}</p>
<!--{elseif $error == 2}-->
<p class="xi1">{lang modcp_posts_error_2}</p>
<!--{elseif $error == 3}-->
<p class="xi1">{lang modcp_posts_error_3}</p>
<!--{elseif $error == 4}-->
<p class="xi1">{lang modcp_posts_error_4}</p>
<!--{elseif $do=='list' && empty($error)}-->
<h2 class="mtm mbm">{lang modcp_forum}: <a href="forum.php?mod=forumdisplay&fid=$_G[fid]" target="_blank" class="xi2">$_G['forum'][name]</a>, {lang modcp_posts_search}</h2>
<!--{if $postlist}-->
<div id="threadlist" class="tl">
<form method="post" autocomplete="off" name="moderate" id="moderate" action="{$cpscript}?mod=modcp&action=$_GET[action]&op=$op">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="fid" value="$_G[fid]" />
<input type="hidden" name="do" value="delete" />
<input type="hidden" name="posttableid" value="$posttableid" />
<table cellspacing="0" cellpadding="0">
<tr class="th">
<!--{if $_G['group']['allowmassprune']}--><td width="40">&nbsp;</td><!--{/if}-->
<th>&nbsp;</th>
<td class="frm">{lang forum}</td>
<td class="by">{lang author}</td>
</tr>
<!--{loop $postlist $post}-->
<tr>
<!--{if $_G['group']['allowmassprune']}--><td><input type="checkbox" name="delete[]" class="pc" value="$post[pid]" /></td><!--{/if}-->
<th>
{lang modcp_posts_thread}: &nbsp;<a target="_blank" href="forum.php?mod=redirect&goto=findpost&pid=$post[pid]&ptid=$post[tid]{if $post[invisible] == -2}&modthreadkey=$post[modthreadkey]{/if}">$post[tsubject]</a><br />
<span class="xg1">$post[message]</span>
</th>
<td class="frm">
<a href="forum.php?mod=forumdisplay&fid=$post[fid]">$post['forum']</a>
</td>
<td class="by">
<cite>
<!--{if $post['authorid'] && $post['author']}-->
<a href="home.php?mod=space&uid=$post[authorid]" target="_blank">$post[author]</a>
<!--{else}-->
<a href="home.php?mod=space&uid=$post[authorid]" target="_blank">{$_G['setting']['anonymoustext']}</a>
<!--{/if}-->
</cite>
<em>$post[dateline]</em>
</td>
</tr>
<!--{/loop}-->
<tr class="bw0_all">
<td colspan="{if $_G['group']['allowmassprune']}4{else}3{/if}" class="ptm">
<!--{if $multipage}-->$multipage<!--{/if}-->
<!--{if $postlist && $_G['group']['allowmassprune']}-->
<label for="chkall"><input type="checkbox" name="chkall" id="chkall" class="pc" onclick="checkall(this.form, 'delete')" />{lang delete_check}</label>
<button type="submit" name="deletesubmit" id="deletesubmit" class="pn" value="true"><strong>{lang delete}</strong></button>
<label for="nocredit"><input type="checkbox" name="nocredit" id="nocredit" class="pc" value="1" checked="checked" />{lang modcp_posts_member_credits}</label>
<!--{/if}-->
</td>
</tr>
</table>
</form>
</div>
<!--{/if}-->
<!--{/if}-->
</div>
<script type="text/javascript" reload="1">
simulateSelect('fid');
simulateSelect('threadoption');
simulateSelect('posttableid');
</script>

View File

@@ -0,0 +1,212 @@
<script type="text/javascript" src="{$_G[setting][jspath]}forum_moderate.js?{VERHASH}"></script>
<div class="bm bw0 mdcp">
<h1 class="mt">{lang mod_option_subject}</h1>
<ul class="tb cl">
<li><a href="{$cpscript}?mod=modcp&action=thread&op=thread{$forcefid}" hidefocus="true">{lang mod_option_subject_forum}</a></li>
<li><a href="{$cpscript}?mod=modcp&action=thread&op=post{$forcefid}" hidefocus="true">{lang mod_option_subject_delete}</a></li>
<li class="a"><a href="{$cpscript}?mod=modcp&action=recyclebin{$forcefid}" hidefocus="true">{lang mod_option_subject_recyclebin}</a></li>
<li><a href="{$cpscript}?mod=modcp&action=recyclebinpost{$forcefid}" hidefocus="true">{lang mod_option_subject_recyclebinpost}</a></li>
</ul>
<script type="text/javascript" src="{$_G[setting][jspath]}calendar.js?{VERHASH}"></script>
<div class="datalist">
<form method="post" autocomplete="off" action="{$cpscript}?mod=modcp&action=$_GET[action]&op=search">
<input type="hidden" name="formhash" value="{FORMHASH}">
<div class="exfm">
<table cellspacing="0" cellpadding="0">
<tr>
<th width="15%">{lang mod_option_selectforum}:</th>
<td width="35%">
<span class="ftid">
<select name="fid" id="fid" class="ps" width="168" change="getthreadclass();">
<option value="">{lang modcp_select_forum}</option>
<!--{loop $modforums[list] $id $name}-->
<!--{if $modforums['recyclebins'][$id]}-->
<option value="$id" {if $id == $_G[fid]}selected{/if}>$name</option>
<!--{/if}-->
<!--{/loop}-->
</select>
</span>
</td>
<th width="15%">{lang modcp_posts_type}:</th>
<td width="35%">
<span class="ftid">
<select name="threadoption" id="threadoption" class="ps" width="168">
<option value="0" $threadoptionselect[0]>{lang all}</option>
<option value="1" $threadoptionselect[1]>{lang thread_poll}</option>
<option value="2" $threadoptionselect[2]>{lang thread_trade}</option>
<option value="3" $threadoptionselect[3]>{lang thread_reward}</option>
<option value="4" $threadoptionselect[4]>{lang thread_activity}</option>
<option value="5" $threadoptionselect[5]>{lang thread_debate}</option>
<option value="999" $threadoptionselect[999]>{lang thread_digest}</option>
<option value="888" $threadoptionselect[888]>{lang thread_stick}</option>
</select>
</span>
</td>
</tr>
<tr>
<th>{lang modcp_posts_author}:</th>
<td><input type="text" name="users" class="px" size="20" value="$result[users]" style="width: 180px"/></td>
<th>{lang modcp_dateline_range}:</th>
<td><input type="text" name="starttime" class="px" size="10" value="$result[starttime]" onclick="showcalendar(event, this);" /> {lang modcp_posts_to} <input type="text" name="endtime" class="px" size="10" value="$result[endtime]" onclick="showcalendar(event, this);" /></td>
</tr>
<tr>
<th>{lang modcp_subject_keyword}:</th>
<td><input type="text" name="keywords" class="px" size="20" value="$result[keywords]" style="width: 180px"/></td>
<th>{lang modcp_views_range}:</th>
<td><input type="text" name="viewsmore" class="px" size="10" value="$result[viewsmore]" /> {lang modcp_posts_to} <input type="text" name="viewsless" class="px" size="10" value="$result[viewsless]" /></td>
</tr>
<tr>
<th>{lang modcp_no_reply_range}:</th>
<td><input type="text" name="noreplydays" class="px" size="20" value="$result[noreplydays]" style="width: 180px"/></td>
<th>{lang modcp_reply_range}:</th>
<td><input type="text" name="repliesmore" class="px" size="10" value="$result[repliesmore]" /> {lang modcp_posts_to} <input type="text" name="repliesless" class="px" size="10" value="$result[repliesless]" /></td>
</tr>
<tr>
<th width="15%">{lang mod_option_selectthreadclass}:</th>
<td width="35%">
<span class="ftid" id="threadclass">
<select name="typeid" id="typeid" width="168" class="ps">
<!--{if $threadclasslist}-->
<option value="">{lang modcp_select_threadclass}</option>
<!--{loop $threadclasslist $threadclass}-->
<option value="$threadclass[typeid]" {if $_GET['typeid'] == $threadclass[typeid]}selected{/if}>$threadclass[name]</option>
<!--{/loop}-->
<!--{else}-->
<option value="">{lang none}</option>
<!--{/if}-->
</select>
</span>
</td>
<th></th><td></td>
</tr>
<tr>
<td>&nbsp;</td>
<td colspan="3">
<button type="submit" name="searchsubmit" id="searchsubmit" class="pn" value="true"><strong>{lang submit}</strong></button>
</td>
</tr>
</table>
</div>
</form>
</div>
<!--{if $_G[fid]}-->
<h2 class="mtm mbm">{lang modcp_forum}: <a href="forum.php?mod=forumdisplay&fid=$_G[fid]" target="_blank" class="xi2">$_G['forum'][name]</a></h2>
<!--{if $postlist}-->
<div id="threadlist" class="tl">
<form method="post" autocomplete="off" name="moderate" id="moderate" action="$cpscript?mod=modcp&fid=$_G[fid]&action=$_GET[action]">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="op" value="" />
<input type="hidden" name="oldop" value="$op" />
<input type="hidden" name="dosubmit" value="submit" />
<table cellspacing="0" cellpadding="0">
<tr class="th">
<td class="icn">&nbsp;</td>
<td class="o">&nbsp;</td>
<td>&nbsp;</td>
<td class="by">{lang author}</td>
<td class="num">{lang replies}</td>
<td class="by">{lang lastpost}</td>
<td class="by">{lang reason}</td>
</tr>
<!--{loop $postlist $thread}-->
<tbody id="$thread[id]">
<tr>
<td class="icn">
<!--{if $thread['special'] == 1}-->
<i class="fico-vote fic6 fc-n" title="{lang thread_poll}"></i>
<!--{elseif $thread['special'] == 2}-->
<i class="fico-cart fic6 fc-n" title="{lang thread_trade}"></i>
<!--{elseif $thread['special'] == 3}-->
<i class="fico-reward fic6 fc-n{if $thread['price'] < 0} solved{/if}" title="{lang thread_reward}"></i>
<!--{elseif $thread['special'] == 4}-->
<i class="fico-group fic6 fc-n" title="{lang thread_activity}"></i>
<!--{elseif $thread['special'] == 5}-->
<i class="fico-vs fic6 fc-n" title="{lang thread_debate}"></i>
<!--{else}-->
<i class="fico-thread fic6 fc-n"></i>
<!--{/if}-->
</td>
<td class="o"><input class="pc" type="checkbox" name="moderate[]" value="$thread[tid]" /></td>
<th class="$thread[folder]">
<span id="thread_$thread[tid]"><a href="forum.php?mod=viewthread&tid=$thread[tid]&modthreadkey=$thread[modthreadkey]" target="_blank" $thread['highlight']>$thread[subject]</a></span>
<!--{if $thread['readperm']}--> - [{lang readperm} <span class="xw1">$thread[readperm]</span>]<!--{/if}-->
<!--{if $thread['price'] > 0}-->
<!--{if $thread['special'] == '3'}-->
- <span style="color: #C60">[{lang thread_reward} <span class="xw1">$thread[price]</span> {$_G[setting][extcredits][$_G['setting']['creditstransextra'][2]][unit]}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][2]][title]}]</span>
<!--{else}-->
- [{lang price} <span class="xw1">$thread[price]</span> {$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][unit]}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][title]}]
<!--{/if}-->
<!--{elseif $thread['special'] == '3' && $thread['price'] < 0}-->
- <span style="color: #269F11">[{lang reward_solved}]</span>
<!--{/if}-->
<!--{if $thread['displayorder'] == 1}-->
- <span style="color: #C60">{lang modcp_threadstick_1}</span>
<!--{elseif $thread['displayorder'] == 2}-->
- <span style="color: #C60">{lang modcp_threadstick_2}</span>
<!--{elseif $thread['displayorder'] == 3}-->
- <span style="color: #C60">{lang modcp_threadstick_3}</span>
<!--{/if}-->
<!--{if $thread['attachment'] == 2}-->
<i class="fico-image fic4 fc-p vm" title="{lang attach_img}"></i>
<!--{elseif $thread['attachment'] == 1}-->
<i class="fico-attachment fic4 fc-p vm" title="{lang attachment}"></i>
<!--{/if}-->
</th>
<td class="by">
<cite>
<!--{if $thread['authorid'] && $thread['author']}-->
<a href="home.php?mod=space&uid=$thread[authorid]" target="_blank">$thread[author]</a>
<!--{else}-->
<a href="home.php?mod=space&uid=$thread[authorid]" target="_blank">{$_G['setting']['anonymoustext']}</a>
<!--{/if}-->
</cite>
<em>$thread[dateline]</em>
</td>
<td class="num"><strong>$thread[replies]</strong><em>$thread[views]</em></td>
<td class="by">
<cite><!--{if $thread['lastposter']}--><a target="_blank" href="home.php?mod=space&username=$thread[lastposterenc]">$thread[lastposter]</a><!--{else}-->{$_G['setting']['anonymoustext']}<!--{/if}--></cite>
<em><a target="_blank" href="forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost">$thread[lastpost]</a></em>
</td>
<td class="by">$thread[reason]</td>
</tr>
</tbody>
<!--{/loop}-->
<tbody>
<tr class="bw0_all">
<td>&nbsp;</td>
<td><input class="pc" type="checkbox" onclick="checkall(this.form, 'moderate')" name="chkall" id="chkall"/></td>
<td colspan="5" class="ptm">
<!--{if $multipage}-->$multipage<!--{/if}-->
<!--{if $_G['group']['allowclearrecycle']}-->
<button onclick="modthreads('delete')" class="pn"><strong>{lang delete}</strong></button>
<!--{/if}-->
<button onclick="modthreads('restore')" class="pn"><strong>{lang modcp_restore}</strong></button>
</td>
</tr>
</tbody>
</table>
</form>
</div>
<!--{/if}-->
<!--{if !$total}-->
<p class="emp">{lang modcp_thread_msg}</p>
<!--{/if}-->
<script type="text/javascript">
function modthreads(operation) {
document.moderate.op.value = operation;
document.moderate.submit();
}
</script>
<!--{else}-->
<p class="xi1">{lang modcp_forum_select_msg}</p>
<!--{/if}-->
</div>
<script type="text/javascript" reload="1">
simulateSelect('fid');
simulateSelect('typeid');
simulateSelect('threadoption');
</script>

View File

@@ -0,0 +1,145 @@
<div class="bm bw0 mdcp">
<h1 class="mt">{lang mod_option_subject}</h1>
<ul class="tb cl">
<li><a href="{$cpscript}?mod=modcp&action=thread&op=thread{$forcefid}" hidefocus="true">{lang mod_option_subject_forum}</a></li>
<li><a href="{$cpscript}?mod=modcp&action=thread&op=post{$forcefid}" hidefocus="true">{lang mod_option_subject_delete}</a></li>
<li><a href="{$cpscript}?mod=modcp&action=recyclebin{$forcefid}" hidefocus="true">{lang mod_option_subject_recyclebin}</a></li>
<li class="a"><a href="{$cpscript}?mod=modcp&action=recyclebinpost{$forcefid}" hidefocus="true">{lang mod_option_subject_recyclebinpost}</a></li>
</ul>
<script type="text/javascript" src="{$_G[setting][jspath]}calendar.js?{VERHASH}"></script>
<div class="datalist">
<form method="post" autocomplete="off" action="{$cpscript}?mod=modcp&action=$_GET[action]&op=search">
<input type="hidden" name="formhash" value="{FORMHASH}">
<div class="exfm">
<table cellspacing="0" cellpadding="0">
<tr>
<th width="15%">{lang mod_option_selectforum}:</th>
<td width="35%">
<span class="ftid">
<select name="fid" id="fid" class="ps" width="168">
<option value="">{lang modcp_select_forum}</option>
<!--{loop $modforums[list] $id $name}-->
<!--{if $modforums['recyclebins'][$id]}-->
<option value="$id" {if $id == $_G[fid]}selected{/if}>$name</option>
<!--{/if}-->
<!--{/loop}-->
</select>
</span>
</td>
<th>{lang modcp_posts_keyword}:</th>
<td><input type="text" name="keywords" class="px" size="20" value="$result[keywords]" style="width: 180px"/></td>
</tr>
<tr>
<th>{lang modcp_posts_author}:</th>
<td><input type="text" name="users" class="px" size="20" value="$result[users]" style="width: 180px"/></td>
<th>{lang modcp_dateline_range}:</th>
<td><input type="text" name="starttime" class="px" size="10" value="$result[starttime]" onclick="showcalendar(event, this);" /> {lang modcp_posts_to} <input type="text" name="endtime" class="px" size="10" value="$result[endtime]" onclick="showcalendar(event, this);" /></td>
</tr>
<!--{if $posttableselect}-->
<tr>
<th width="10%">{lang table_branch}</th>
<td>
<span class="ftid">
$posttableselect
</span>
</td>
</tr>
<!--{/if}-->
<tr>
<td>&nbsp;</td>
<td colspan="3">
<button type="submit" name="searchsubmit" id="searchsubmit" class="pn" value="true"><strong>{lang submit}</strong></button>
</td>
</tr>
</table>
</div>
</form>
</div>
<!--{if $_G[fid]}-->
<h2 class="mtm mbm">{lang modcp_forum}: <a href="forum.php?mod=forumdisplay&fid=$_G[fid]" target="_blank" class="xi2">$_G['forum'][name]</a></h2>
<!--{if $postlist}-->
<div id="threadlist" class="tl">
<form method="post" autocomplete="off" name="moderate" id="moderate" action="$cpscript?mod=modcp&fid=$_G[fid]&action=$_GET[action]">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="op" value="" />
<input type="hidden" name="oldop" value="$op" />
<input type="hidden" name="dosubmit" value="submit" />
<input type="hidden" name="posttableid" value="$posttableid" />
<table cellspacing="0" cellpadding="0">
<tr class="th">
<td class="o">&nbsp;</td>
<td>&nbsp;</td>
<td class="by">{lang author}</td>
<!--{if $_G['forum']['ismoderator'] && $_G['group']['allowviewip']}-->
<td class="num">IP</td>
<!--{/if}-->
<td class="by">{lang ishtmlon}</td>
<td class="by">{lang dateline}</td>
</tr>
<!--{loop $postlist $post}-->
<tbody id="$post[pid]">
<tr>
<td class="o"><input class="pc" type="checkbox" name="moderate[]" value="$post[pid]" /></td>
<td><a href="forum.php?mod=redirect&goto=findpost&pid=$post[pid]&ptid=$post[tid]&modthreadkey=$post[modthreadkey]" target="_blank">$post[message]</a>
<!--{if $post['attachment'] == 2}-->
<i class="fico-image fic4 fc-p vm" title="{lang attach_img}"></i>
<!--{elseif $post['attachment'] == 1}-->
<i class="fico-attachment fic4 fc-p vm" title="{lang attachment}"></i>
<!--{/if}-->
</td>
<td class="by">
<!--{if $post['authorid'] && $post['author']}-->
<a href="home.php?mod=space&uid=$post[authorid]" target="_blank">$post[author]</a>
<!--{else}-->
<a href="home.php?mod=space&uid=$post[authorid]" target="_blank">{$_G['setting']['anonymoustext']}</a>
<!--{/if}-->
</td>
<!--{if $_G['forum']['ismoderator'] && $_G['group']['allowviewip']}-->
<td class="num">$post[useip]{if $post[port]}:$post[port]{/if}</td>
<!--{/if}-->
<td class="by">
<!--{if $post[htmlon]}-->{lang yes}<!--{else}-->{lang no}<!--{/if}-->
</td>
<td class="by">
$post[dateline]
</td>
</tr>
</tbody>
<!--{/loop}-->
<tbody>
<tr class="bw0_all">
<td><input class="pc" type="checkbox" onclick="checkall(this.form, 'moderate')" name="chkall" id="chkall"/></td>
<td colspan="5" class="ptm">
<!--{if $multipage}-->$multipage<!--{/if}-->
<!--{if $_G['group']['allowclearrecycle']}-->
<button onclick="modthreads('delete')" class="pn"><strong>{lang delete}</strong></button>
<!--{/if}-->
<button onclick="modthreads('restore')" class="pn"><strong>{lang modcp_restore}</strong></button>
</td>
</tr>
</tbody>
</table>
</form>
</div>
<!--{/if}-->
<!--{if !$total}-->
<p class="emp">{lang modcp_thread_msg}</p>
<!--{/if}-->
<script type="text/javascript">
function modthreads(operation) {
document.moderate.op.value = operation;
document.moderate.submit();
}
</script>
<!--{else}-->
<p class="xi1">{lang modcp_forum_select_msg}</p>
<!--{/if}-->
</div>
<script type="text/javascript" reload="1">
simulateSelect('fid');
if($('posttableid')) {
simulateSelect('posttableid');
}
</script>

View File

@@ -0,0 +1,64 @@
<div class="bm bw0 mdcp">
<h1 class="mt">{lang modcp_report}</h1>
<form method="post" autocomplete="off" action="{$cpscript}?mod=modcp&action=$_GET[action]">
<input type="hidden" name="do" value="search">
<input type="hidden" name="formhash" value="{FORMHASH}">
<div class="exfm">
<table cellspacing="0" cellpadding="0">
<tr>
<th width="15%">{lang mod_option_selectforum}:</th>
<td width="35%">
<span class="ftid">
<select name="fid" id="fid" width="168" class="ps">
<option value="">{lang modcp_select_forum}</option>
<!--{loop $modforums[list] $id $name}-->
<option value="$id" {if $id == $_G[fid]}selected{/if}>$name</option>
<!--{/loop}-->
</select>
</span>
</td>
<th width="15%">{lang modcp_report_perpage}:</th>
<td width="45%"><input type="text" name="lpp" value="$lpp" size="20" class="px" /></td>
</tr>
<tr>
<td></td>
<td colspan="3"><button value="true" id="searchsubmit" name="submit" class="pn" type="submit"><strong>{lang submit}</strong></button></td>
</tr>
</table>
</div>
</form>
<!--{if !empty($reportlist)}-->
<h2 class="mtm mbm">{lang modcp_report_waiting}</h2>
<form id="reportform" method="post" autocomplete="off" action="{$cpscript}?mod=modcp&action=report&fid=$_G[fid]">
<input type="hidden" name="formhash" value="{FORMHASH}">
<table id="list_modcp_logs" cellspacing="0" cellpadding="0" class="dt">
<thead>
<tr>
<th></th>
<th>{lang modcp_report_content}</th>
<th>{lang modcp_report_reporter}</th>
<th><!--{if $report_reward['max'] != $report_reward['min']}-->{lang modcp_report_reward}<!--{/if}--></th>
</tr>
</thead>
<!--{loop $reportlist $report}-->
<tr>
<td>
<input id="report_$report[id]" type="checkbox" class="checkbox" name="reportids[]" value="$report[id]" />
<input id="reportuids_$report[id]" type="hidden" name="reportuids[{$report[id]}]" value="$report[uid]" />
</td>
<td><strong>{lang modcp_report_post}:</strong><a href="$report[url]" target="_blank">$report[url]</a><br><strong>{lang modcp_report_reason}:</strong>$report[message]<br><strong>{lang modcp_report_time}:</strong>$report[dateline]</td>
<td><a href="home.php?mod=space&uid=$report[uid]">$report[username]</a></td>
<td><!--{if $report_reward['max'] != $report_reward['min']}-->$_G['setting']['extcredits'][$curcredits]['title']:&nbsp;<select name="creditsvalue[{$report[id]}]">$rewardlist</select><br /><br />{lang modcp_report_note}:&nbsp;<input type="text" name="msg[{$report[id]}]" class="px" value="" size="20" /><!--{/if}--></td>
</tr>
<!--{/loop}-->
<tr>
<td><label for="chkall"><input type="checkbox" name="chkall" id="chkall" class="checkbox" onclick="checkall($('reportform'), 'report')" />{lang select_all}</label></td>
<td colspan="3"><button type="submit" class="pn" name="reportsubmit" id="reportsubmit" value="true"><strong>{lang modcp_report_resolve}</strong></button></td>
</tr>
</table>
</form>
<!--{if !empty($multipage)}--><div class="pgs cl mtm">$multipage</div><!--{/if}-->
<!--{else}-->
{lang modcp_report_nothing}
<!--{/if}-->
</div>

View File

@@ -0,0 +1,200 @@
<script type="text/javascript" src="{$_G[setting][jspath]}forum_moderate.js?{VERHASH}"></script>
<div class="bm bw0 mdcp">
<h1 class="mt">{lang mod_option_subject}</h1>
<ul class="tb cl">
<li class="a"><a href="{$cpscript}?mod=modcp&action=thread&op=thread{$forcefid}" hidefocus="true">{lang mod_option_subject_forum}</a></li>
<li><a href="{$cpscript}?mod=modcp&action=thread&op=post{$forcefid}" hidefocus="true">{lang mod_option_subject_delete}</a></li>
<li><a href="{$cpscript}?mod=modcp&action=recyclebin{$forcefid}" hidefocus="true">{lang mod_option_subject_recyclebin}</a></li>
<li><a href="{$cpscript}?mod=modcp&action=recyclebinpost{$forcefid}" hidefocus="true">{lang mod_option_subject_recyclebinpost}</a></li>
</ul>
<script type="text/javascript" src="{$_G[setting][jspath]}calendar.js?{VERHASH}"></script>
<form method="post" autocomplete="off" action="{$cpscript}?mod=modcp&action=$_GET[action]&op=$op">
<input type="hidden" name="do" value="search">
<input type="hidden" name="formhash" value="{FORMHASH}">
<div class="exfm">
<table cellspacing="0" cellpadding="0">
<tr>
<th width="15%">{lang mod_option_selectforum}:</th>
<td width="35%">
<span class="ftid">
<select name="fid" id="fid" width="168" class="ps" change="getthreadclass();">
<option value="">{lang modcp_select_forum}</option>
<!--{loop $modforums[list] $id $name}-->
<option value="$id" {if $id == $_G[fid]}selected{/if}>$name</option>
<!--{/loop}-->
</select>
</span>
</td>
<th width="15%">{lang modcp_posts_type}:</th>
<td width="35%">
<span class="ftid">
<select name="threadoption" id="threadoption" width="168" class="ps">
<option value="0" $threadoptionselect[0]>{lang all}</option>
<option value="1" $threadoptionselect[1]>{lang thread_poll}</option>
<option value="2" $threadoptionselect[2]>{lang thread_trade}</option>
<option value="3" $threadoptionselect[3]>{lang thread_reward}</option>
<option value="4" $threadoptionselect[4]>{lang thread_activity}</option>
<option value="5" $threadoptionselect[5]>{lang thread_debate}</option>
<option value="999" $threadoptionselect[999]>{lang thread_digest}</option>
<option value="888" $threadoptionselect[888]>{lang thread_stick}</option>
</select>
</span>
</td>
</tr>
<tr>
<th>{lang modcp_posts_author}:</th>
<td><input type="text" class="px" size="20" value="$result[users]" name="users" style="width: 180px"/></td>
<th>{lang modcp_dateline_range}:</th>
<td><input type="text" class="px" size="10" value="$result[starttime]" name="starttime" onclick="showcalendar(event, this);"/> {lang modcp_posts_to} <input type="text" class="px" size="10" value="$result[endtime]" name="endtime" onclick="showcalendar(event, this)"/> </td>
</tr>
<tr>
<th>{lang modcp_subject_keyword}:</th>
<td><input type="text" class="px" size="20" value="$result[keywords]" name="keywords" style="width: 180px"/></td>
<th>{lang modcp_views_range}:</th>
<td><input type="text" class="px" size="10" value="$result[viewsmore]" name="viewsmore"/> {lang modcp_posts_to} <input type="text" class="px" size="10" value="$result[viewsless]" name="viewsless"/> </td>
</tr>
<tr>
<th>{lang modcp_no_reply_range}:</th>
<td><input type="text" class="px" size="20" value="$result[noreplydays]" name="noreplydays" style="width: 180px"/></td>
<th>{lang modcp_reply_range}:</th>
<td><input type="text" class="px" size="10" value="$result[repliesmore]" name="repliesmore"/> {lang modcp_posts_to} <input type="text" class="px" size="10" value="$result[repliesless]" name="repliesless"/> </td>
</tr>
<tr>
<th width="15%">{lang mod_option_selectthreadclass}:</th>
<td width="35%">
<span class="ftid" id="threadclass">
<select name="typeid" id="typeid" width="168" class="ps">
<!--{if $threadclasslist}-->
<option value="">{lang modcp_select_threadclass}</option>
<!--{loop $threadclasslist $threadclass}-->
<option value="$threadclass[typeid]" {if $_GET['typeid'] == $threadclass[typeid]}selected{/if}>$threadclass[name]</option>
<!--{/loop}-->
<!--{else}-->
<option value="">{lang none}</option>
<!--{/if}-->
</select>
</span>
</td>
<th></th><td></td>
</tr>
<tr>
<td></td>
<td colspan="3"><button value="true" id="searchsubmit" name="submit" class="pn" type="submit"><strong>{lang submit}</strong></button></td>
</tr>
</table>
</div>
</form>
<!--{if $_G[fid]}-->
<h2 class="pbm ptm">
{lang modcp_forum}: <a href="forum.php?mod=forumdisplay&fid=$_G[fid]" target="_blank" class="xi2">$_G['forum'][name]</a>, {lang modcp_thread_search_msg}
</h2>
<!--{if $postlist}-->
<div id="threadlist" style="position: relative;" class="tl">
<form method="post" autocomplete="off" name="moderate" id="moderate" action="forum.php?mod=topicadmin&action=moderate&fid=$_G[fid]&infloat=yes&nopost=yes">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="frommodcp" value="{if $op == 'thread'}1{else}2{/if}" />
<table cellspacing="0" cellpadding="0">
<tbody class="th">
<tr>
<td class="icn">&nbsp;</td>
<td class="o">&nbsp;</td>
<td>&nbsp;</td>
<td class="by">{lang author}</td>
<td class="num">{lang replies}</td>
<td class="by"><cite>{lang lastpost}</cite></td>
</tr>
</tbody>
<!--{loop $postlist $thread}-->
<tbody id="$thread[id]">
<tr>
<td class="icn">
<!--{if $thread[folder] == 'lock'}-->
<i class="fico-lock fic6 fc-s"></i>
<!--{elseif $thread['special'] == 1}-->
<i class="fico-vote fic6 fc-n" title="{lang thread_poll}"></i>
<!--{elseif $thread['special'] == 2}-->
<i class="fico-cart fic6 fc-n" title="{lang thread_trade}"></i>
<!--{elseif $thread['special'] == 3}-->
<i class="fico-reward fic6 fc-n" title="{lang thread_reward}"></i>
<!--{elseif $thread['special'] == 4}-->
<i class="fico-group fic6 fc-n" title="{lang thread_activity}"></i>
<!--{elseif $thread['special'] == 5}-->
<i class="fico-vs fic6 fc-n" title="{lang thread_debate}"></i>
<!--{elseif in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
<i class="tpin tpin{$thread[displayorder]}" title="$_G[setting][threadsticky][3-$thread[displayorder]]"><svg width="18" height="18"><path d="M9 0l9 9H14v9H4V9H0z"></path></svg></i>
<!--{else}-->
<i class="fico-thread fic6 fc-n"></i>
<!--{/if}-->
</td>
<td class="o">
<!--{if $thread['displayorder'] <= 3 || $_G['adminid'] == 1}-->
<input onclick="tmodclick(this)" class="pc" type="checkbox" name="moderate[]" value="$thread[tid]" />
<!--{else}-->
<input class="pc" type="checkbox" disabled="disabled" />
<!--{/if}-->
</td>
<th class="$thread[folder]">
<span id="thread_$thread[tid]"><a href="forum.php?mod=viewthread&tid=$thread[tid]" target="_blank" $thread['highlight']>$thread[subject]</a></span>
<!--{if $_G['setting']['threadhidethreshold'] && $thread['hidden'] >= $_G['setting']['threadhidethreshold']}--><span class="xg1">{lang hidden}</span>&nbsp;<!--{/if}-->
<!--{if $thread['readperm']}--> - [{lang readperm} <span class="xw1">$thread[readperm]</span>]<!--{/if}-->
<!--{if $thread['price'] > 0}-->
<!--{if $thread['special'] == '3'}-->
- <span style="color: #C60">[{lang thread_reward} <span class="xw1">$thread[price]</span> {$_G[setting][extcredits][$_G['setting']['creditstransextra'][2]][unit]}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][2]][title]}]</span>
<!--{else}-->
- [{lang price} <span class="xw1">$thread[price]</span> {$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][unit]}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][title]}]
<!--{/if}-->
<!--{elseif $thread['special'] == '3' && $thread['price'] < 0}-->
- <span style="color: #269F11">[{lang reward_solved}]</span>
<!--{/if}-->
<!--{if $thread['displayorder'] == 1}-->
- <span style="color: #C60">{lang modcp_threadstick_1}</span>
<!--{elseif $thread['displayorder'] == 2}-->
- <span style="color: #C60">{lang modcp_threadstick_2}</span>
<!--{elseif $thread['displayorder'] == 3}-->
- <span style="color: #C60">{lang modcp_threadstick_3}</span>
<!--{/if}-->
<!--{if $thread['attachment'] == 2}-->
<i class="fico-image fic4 fc-p vm" title="{lang attach_img}"></i>
<!--{elseif $thread['attachment'] == 1}-->
<i class="fico-attachment fic4 fc-p vm" title="{lang attachment}"></i>
<!--{/if}-->
</th>
<td class="by">
<cite>
<!--{if $thread['authorid'] && $thread['author']}-->
<a href="home.php?mod=space&uid=$thread[authorid]" target="_blank">$thread[author]</a>
<!--{else}-->
<a href="home.php?mod=space&uid=$thread[authorid]" target="_blank">{$_G['setting']['anonymoustext']}</a>
<!--{/if}-->
</cite>
<em>$thread[dateline]</em>
</td>
<td class="num"><span class="xi2">$thread[replies]</span><em>$thread[views]</em></td>
<td class="by">
<cite><!--{if $thread['lastposter']}--><a target="_blank" href="home.php?mod=space&username=$thread[lastposterenc]">$thread[lastposter]</a><!--{else}-->{$_G['setting']['anonymoustext']}<!--{/if}--></cite>
<em><a target="_blank" href="forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost">$thread[lastpost]</a></em>
</td>
</tr>
</tbody>
<!--{/loop}-->
</table>
<!--{if $multipage}--><div class="pgs cl mtm">$multipage</div><!--{/if}-->
<!--{template forum/topicadmin_modlayer}-->
</form>
</div><br /><br /><br />
<!--{/if}-->
<!--{else}-->
<div class="xi1">{lang modcp_forum_select_msg}</div>
<!--{/if}-->
</div>
<script type="text/javascript" reload="1">
simulateSelect('fid');
simulateSelect('typeid');
simulateSelect('threadoption');
</script>

View File

@@ -0,0 +1,68 @@
<!--{template common/header}-->
<!--{if empty($_GET['infloat'])}-->
<div id="pt" class="bm cl">
<div class="z"><a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em> $navigation</div>
</div>
<div id="ct" class="wp cl">
<div class="mn">
<div class="bm bw0">
<!--{/if}-->
<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">
<h3 class="flb">
<em id="return_$_GET['handlekey']">{lang pay}</em>
<span>
<!--{if !empty($_GET['infloat'])}--><a href="javascript:;" class="flbc" onclick="hideWindow('$_GET['handlekey']')" title="{lang close}">{lang close}</a><!--{/if}-->
</span>
</h3>
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="referer" value="{echo dreferer()}" />
<input type="hidden" name="tid" value="$_G[tid]" />
<!--{if !empty($_GET['infloat'])}--><input type="hidden" name="handlekey" value="$_GET['handlekey']" /><!--{/if}-->
<div class="c">
<table class="list" cellspacing="0" cellpadding="0" style="width:200px">
<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>
<div class="o pns">
<button type="submit" name="paysubmit" class="pn pnc" value="true"><span>{lang submit}</span></button>
</div>
</form>
<!--{if !empty($_GET['infloat'])}-->
<script type="text/javascript" reload="1">
function succeedhandle_$_GET['handlekey'](locationhref) {
<!--{if !empty($_GET['from'])}-->
location.href = locationhref;
<!--{else}-->
ajaxget('forum.php?mod=viewthread&tid=$_G[tid]&viewpid=$_GET[pid]', 'post_$_GET[pid]');
hideWindow('$_GET['handlekey']');
showCreditPrompt();
<!--{/if}-->
}
</script>
<!--{/if}-->
<!--{if empty($_GET['infloat'])}-->
</div>
</div>
</div>
<!--{/if}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,47 @@
<!--{template common/header}-->
<!--{if empty($_GET['infloat'])}-->
<div id="pt" class="bm cl">
<div class="z"><a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em> $navigation</div>
</div>
<div id="ct" class="wp cl">
<div class="mn">
<div class="bm bw0">
<!--{/if}-->
<div class="f_c">
<h3 class="flb">
<em id="return_$_GET['handlekey']">{lang pay_view}</em>
<span>
<!--{if !empty($_GET['infloat'])}--><a href="javascript:;" class="flbc" onclick="hideWindow('$_GET['handlekey']')" title="{lang close}">{lang close}</a><!--{/if}-->
</span>
</h3>
<div class="c floatwrap">
<table class="list" cellspacing="0" cellpadding="0">
<thead>
<tr>
<td>{lang username}</td>
<td>{lang time}</td>
<td>{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]}</td>
</tr>
</thead>
<!--{if $loglist}-->
<!--{loop $loglist $log}-->
<tr>
<td><a href="home.php?mod=space&uid=$log[uid]">$log[username]</a></td>
<td>$log[dateline]</td>
<td>{$log[$extcreditname]} {$_G[setting][extcredits][$_G[setting][creditstransextra][1]][unit]}</td>
</tr>
<!--{/loop}-->
<!--{else}-->
<tr><td colspan="3">{lang pay_nobuyers}</td></tr>
<!--{/if}-->
</table>
</div>
</div>
<!--{if empty($_GET['infloat'])}-->
</div>
</div>
</div>
<!--{/if}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,430 @@
<!--{template common/header}-->
<script type="text/javascript">
var allowpostattach = parseInt('{$_G['group']['allowpostattach']}');
var allowpostimg = parseInt('$allowpostimg');
var pid = parseInt('$pid');
var tid = parseInt('$_G[tid]');
var extensions = '{$_G['group']['attachextensions']}';
var imgexts = '$imgexts';
var postminchars = parseInt('$_G['setting']['minpostsize']');
var postmaxchars = parseInt('$_G['setting']['maxpostsize']');
var postminsubjectchars = parseInt('$_G['setting']['minsubjectsize']');
var postmaxsubjectchars = parseInt('$_G['setting']['maxsubjectsize']');
var disablepostctrl = parseInt('{$_G['group']['disablepostctrl']}');
var seccodecheck = parseInt('<!--{if $seccodecheck}-->1<!--{else}-->0<!--{/if}-->');
var secqaacheck = parseInt('<!--{if $secqaacheck}-->1<!--{else}-->0<!--{/if}-->');
var typerequired = parseInt('{$_G[forum][threadtypes][required] or ''}');
var sortrequired = parseInt('{$_G[forum][threadsorts][required] or ''}');
var special = parseInt('$special');
var isfirstpost = <!--{if $isfirstpost}-->1<!--{else}-->0<!--{/if}-->;
var allowposttrade = parseInt('{$_G['group']['allowposttrade']}');
var allowpostreward = parseInt('{$_G['group']['allowpostreward']}');
var allowpostactivity = parseInt('{$_G['group']['allowpostactivity']}');
var sortid = parseInt('$sortid');
var special = parseInt('$special');
var fid = $_G['fid'];
var postaction = '{$_GET['action']}';
var ispicstyleforum = <!--{if $_G['forum']['picstyle']}-->1<!--{else}-->0<!--{/if}-->;
</script>
<!--{if $_GET[action] == 'edit'}--><!--{eval $editor['value'] = $postinfo['message'];}--><!--{else}--><!--{eval $editor['value'] = $message;}--><!--{/if}-->
<script type="text/javascript" src="{$_G['setting']['jspath']}forum_post.js?{VERHASH}"></script>
<!--{if $isfirstpost && $sortid}-->
<script type="text/javascript">
var forum_optionlist = <!--{if $forum_optionlist}-->'$forum_optionlist'<!--{else}-->''<!--{/if}-->;
</script>
<script type="text/javascript" src="{$_G['setting']['jspath']}threadsort.js?{VERHASH}"></script>
<!--{/if}-->
<!--{block actiontitle}-->
<!--{if $_GET['action'] == 'newthread'}-->
<!--{if $special == 0}-->{lang post_newthread}
<!--{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 $specialextra}-->{$_G['setting']['threadplugins'][$specialextra][name]}
<!--{/if}-->
<!--{elseif $_GET['action'] == 'reply' && !empty($_GET['addtrade'])}-->
{lang trade_add_post}
<!--{elseif $_GET['action'] == 'reply'}-->
{lang join_thread}
<!--{elseif $_GET['action'] == 'edit'}-->
<!--{if $special == 2}-->{lang edit_trade}<!--{else}-->{lang edit_thread}<!--{/if}-->
<!--{/if}-->
<!--{/block}-->
<!--{block icon}-->
<!--{if $special == 1}-->poll
<!--{elseif $special == 2}-->trade
<!--{elseif $special == 3}-->reward
<!--{elseif $special == 4}-->activity
<!--{elseif $special == 5}-->debate
<!--{elseif $isfirstpost && $sortid}-->sort
<!--{/if}-->
<!--{/block}-->
<!--{if $_GET['action'] != 'newthread'}-->
<!--{eval $subjectcut = cutstr($thread['subject'], 30);}-->
<!--{/if}-->
<!--{block actionsubject}-->
<!--{if $_GET['action'] == 'reply'}-->
<em>&rsaquo;</em><a href="forum.php?mod=viewthread&tid=$thread[tid]">$subjectcut</a>
<!--{elseif $_GET['action'] == 'edit'}-->
<em>&rsaquo;</em><a href="forum.php?mod=redirect&goto=findpost&ptid=$thread[tid]&pid=$pid">$subjectcut</a>
<!--{/if}-->
<!--{/block}-->
<div id="pt" class="bm cl">
<div class="z"><a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> $navigation$actionsubject <em>&rsaquo;</em> $actiontitle</div>
</div>
<!--{eval $adveditor = $isfirstpost && $special || $special == 2 && ($_GET['action'] == 'newthread' || $_GET['action'] == 'reply' && !empty($_GET['addtrade']) || $_GET['action'] == 'edit' && $thread['special'] == 2);}-->
<!--{eval $advmore = !$showthreadsorts && !$special || $_GET['action'] == 'reply' && empty($_GET['addtrade']) || $_GET['action'] == 'edit' && !$isfirstpost && ($thread['special'] == 2 && !$special || $thread['special'] != 2);}-->
<form method="post" autocomplete="off" 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"
{elseif $_GET[action] == 'reply'}action="forum.php?mod=post&action=reply&fid=$_G[fid]&tid=$_G[tid]&extra=$extra&replysubmit=yes"
{elseif $_GET[action] == 'edit'}action="forum.php?mod=post&action=edit&extra=$extra&editsubmit=yes" $enctype
{/if}
onsubmit="return validate(this)">
<div id="ct" class="ct2_a ct2_a_r wp cl">
<input type="hidden" name="formhash" id="formhash" value="{FORMHASH}" />
<input type="hidden" name="posttime" id="posttime" value="{TIMESTAMP}" />
<!--{if $_GET['action'] == 'edit'}-->
<input type="hidden" name="delattachop" id="delattachop" value="0" />
<!--{/if}-->
<!--{if !empty($_GET['modthreadkey'])}--><input type="hidden" name="modthreadkey" id="modthreadkey" value="$_GET['modthreadkey']" /><!--{/if}-->
<input type="hidden" name="wysiwyg" id="{$editorid}_mode" value="$editormode" />
<!--{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 or ''}" />
<!--{if !empty($reppid)}-->
<input type="hidden" name="reppid" value="$reppid" />
<!--{/if}-->
<!--{if !empty($_GET['reppost'])}-->
<input type="hidden" name="reppost" value="$_GET[reppost]" />
<!--{elseif !empty($_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="bm bw0 cl"{if !$showthreadsorts && !$adveditor} id="editorbox"{/if}>
<!--{if $_GET[action] == 'newthread'}-->
<ul class="tb cl mbw">
<!--{if $savecount}-->
<li class="y"><a id="draftlist" href="javascript:;" class="xi2" onmouseover="showMenu({'ctrlid':'draftlist','ctrlclass':'a','duration':2,'pos':'34'})">{lang draftbox}(<strong>$savecount</strong>)</a></li>
<!--{/if}-->
<!--{if empty($_G['forum']['threadsorts']['required']) && !$_G['forum']['allowspecialonly']}--><li{$postspecialcheck[0] or ''}><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread')">{lang post_newthread}</a></li><!--{/if}-->
<!--{loop $_G['forum']['threadsorts'][types] $tsortid $name}-->
<li{if $sortid == $tsortid} class="a"{/if}><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&sortid=$tsortid')"><!--{echo strip_tags($name);}--></a></li>
<!--{/loop}-->
<!--{if $_G['group']['allowpostpoll']}--><li{$postspecialcheck[1] or ''}><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&special=1')">{lang post_newthreadpoll}</a></li><!--{/if}-->
<!--{if $_G['group']['allowpostreward']}--><li$postspecialcheck[3]><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&special=3')">{lang post_newthreadreward}</a></li><!--{/if}-->
<!--{if $_G['group']['allowpostdebate']}--><li$postspecialcheck[5]><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&special=5')">{lang post_newthreaddebate}</a></li><!--{/if}-->
<!--{if $_G['group']['allowpostactivity']}--><li$postspecialcheck[4]><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&special=4')">{lang post_newthreadactivity}</a></li><!--{/if}-->
<!--{if $_G['group']['allowposttrade']}--><li$postspecialcheck[2]><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&special=2')">{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{if $specialextra==$tpid} class="a"{/if}><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&specialextra=$tpid')">{$_G[setting][threadplugins][$tpid][name]}</a></li>
<!--{/if}-->
<!--{/loop}-->
<!--{/if}-->
</ul>
<div id="draftlist_menu" style="display:none">
<ul class="xl xl1">
<!--{if $savethreads}-->
<!--{loop $savethreads $savethread}-->
<li>
<label>[<a href="javascript:;" title="{lang reply_quote}" onclick="insertsave($savethread[pid])">{lang reply_quote}</a>]</label>
<a href="forum.php?mod=post&action=edit&fid=$savethread[fid]&tid=$savethread[tid]&pid=$savethread[pid]" class="xi2" target="_blank">$savethread[subject]</a>
<span class="xg1">$savethread[dateline]</span>
</li>
<!--{/loop}-->
<!--{/if}-->
<!--{if $savethreadothers}-->
<!--{loop $savethreadothers $savethread}-->
<li>
<label>[<a href="javascript:;" title="{lang reply_quote}" onclick="insertsave($savethread[pid])">{lang reply_quote}</a>]</label>
<a href="forum.php?mod=post&action=edit&fid=$savethread[fid]&tid=$savethread[tid]&pid=$savethread[pid]" class="xi2" target="_blank">$savethread[subject]</a>
<span class="xg1">$savethread[dateline]</span>
</li>
<!--{/loop}-->
<!--{/if}-->
<li class="xi2"><a href="home.php?mod=space&do=thread&view=me&type=thread&filter=save" target="_blank">{lang post_message3}</a></li>
</ul>
</div>
<!--{elseif $_GET[action] == 'edit' && $isfirstpost && !$thread['sortid']}-->
<ul class="tb cl mbw">
<li{if !$sortid} class="a"{/if}><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=edit&tid=$_G[tid]&pid=$pid')">$actiontitle</a></li>
<!--{if $_GET[action] == 'edit' && $isfirstpost && !$thread['sortid']}-->
<!--{loop $_G['forum']['threadsorts'][types] $tsortid $name}-->
<li{if $sortid == $tsortid} class="a"{/if}><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=edit&tid=$_G[tid]&pid=$pid&sortid=$tsortid')"><!--{echo strip_tags($name);}--></a></li>
<!--{/loop}-->
<!--{/if}-->
</ul>
<!--{/if}-->
<div id="postbox">
<!--{if $_GET[action] == 'newthread' && $_G['setting']['sitemessage'][newthread] || $_GET[action] == 'reply' && $_G['setting']['sitemessage'][reply]}-->
<span id="custominfo" class="y cur1{if $_GET[action] != 'reply'} mtn{/if}">&nbsp;<i class="fico-info fic4 fc-p" alt="{lang faq}"></i></span>
<!--{/if}-->
<!--{hook/post_top}-->
<!--{subtemplate forum/post_editor_extra}-->
<!--{subtemplate forum/post_editor_body}-->
<!--{hook/post_middle}-->
<!--{subtemplate forum/post_editor_attribute}-->
<!--{if $_GET[action] != 'edit'}-->
<div id="seccheck">
<!--{if $secqaacheck || $seccodecheck}-->
<!--{subtemplate forum/seccheck_post}-->
<!--{/if}-->
</div>
<!--{/if}-->
<div class="mtm mbm pnpost">
<a href="home.php?mod=spacecp&ac=credit&op=rule&fid=$_G['fid']" class="y" target="_blank">{lang post_credits_rule}</a>
<button type="submit" id="postsubmit" class="pn pnc" value="true" name="{if $_GET[action] == 'newthread'}topicsubmit{elseif $_GET[action] == 'reply'}replysubmit{elseif $_GET[action] == 'edit'}editsubmit{/if}">
<!--{if $_GET[action] == 'newthread'}-->
<!--{if $special == 0}--><span>{lang post_newthread}</span>
<!--{elseif $special == 1}--><span>{lang post_newthreadpoll}</span>
<!--{elseif $special == 2}--><span>{lang post_newthreadtrade}</span>
<!--{elseif $special == 3}--><span>{lang post_newthreadreward}</span>
<!--{elseif $special == 4}--><span>{lang post_newthreadactivity}</span>
<!--{elseif $special == 5}--><span>{lang post_newthreaddebate}</span>
<!--{elseif $special == 127}-->
<span><!--{if $buttontext}-->$buttontext<!--{else}-->{lang post_newthread}<!--{/if}--></span>
<!--{/if}-->
<!--{elseif $_GET[action] == 'reply' && !empty($_GET['addtrade'])}--><span>{lang trade_add_post}</span>
<!--{elseif $_GET[action] == 'reply'}--><span>{lang join_thread}</span>
<!--{elseif $_GET[action] == 'edit' && $isfirstpost && $thread['displayorder'] == -4}-->
<span>{lang post_newthread}</span>
<!--{elseif $_GET[action] == 'edit'}--><span>{lang edit_save}</span>
<!--{/if}-->
</button>
<!--{if $_G['uid'] && $_G['group']['allowsave']}-->
<input type="hidden" id="postsave" name="save" value="" />
<!--{if $_GET[action] == 'newthread' && empty($modnewthreads) || $_GET[action] == 'edit' && $isfirstpost && empty($modnewreplies) && $thread['displayorder'] == -4}-->
<button type="button" id="postsubmit" class="pn" value="true" onclick="$('postsave').value = 1;$('postsubmit').click();"><em>{lang save_draft}</em></button>
<!--{/if}-->
<!--{/if}-->
<!--{hook/post_btn_extra}-->
<!--{if helper_access::check_module('follow') && $_GET[action] != 'edit'}-->
<span id="adddynamicspan"><label><input type="checkbox" name="adddynamic" id="adddynamic" value="true" class="pc" {if $_G['forum']['allowfeed'] && !$_G[tid] && empty($_G['forum']['viewperm'])}checked="checked"{/if} />{lang post_relay}</label></span>
<!--{/if}-->
<!--{if !empty($_G['setting']['pluginhooks']['post_sync_method'])}-->
<span>
{lang post_sync_method}:
<!--{hook/post_sync_method}-->
</span>
<!--{/if}-->
<!--{if $special == 2}-->
<label><input type="checkbox" name="continueadd" value="yes" class="pc" />{lang post_message2}</label>
<!--{/if}-->
<!--{if helper_access::check_module('group') && $mygroups && $_G['forum']['status'] != 3}-->
<span id="adddynamicspan"><label>&nbsp;&nbsp;{lang fromgroup}:<select name="mygroupid"><option value="">{lang selectmygroup}</option><!--{loop $mygroups $mygroupid $mygroupname}--><option value="{$mygroupid}__{$mygroupname}" {if $selectgroupid == $mygroupid} selected{/if}>$mygroupname</option><!--{/loop}--></select></label></span>
<!--{/if}-->
</div>
<!--{hook/post_bottom}-->
</div>
</div>
</div>
</form>
<iframe name="ajaxpostframe" id="ajaxpostframe" style="display: none;"></iframe>
<div id="{$editorid}_menus" class="editorrow" style="overflow: hidden; margin-top: -5px; height: 0; border: none; background: transparent;">
<!--{subtemplate common/editor_menu}-->
<!--{subtemplate forum/editor_menu_forum}-->
</div>
<!--{if $special || ($_G['group']['allowsetpublishdate'] && ($_GET[action] == 'newthread' || ($_GET[action] == 'edit' && $isfirstpost && $thread['displayorder'] == -4))) || ($_GET[action] == 'newthread' && $_G['group']['allowpostrushreply'] && $special != 2) || ($_GET[action] == 'edit' && getstatus($thread['status'], 3))}-->
<script type="text/javascript" src="{$_G['setting']['jspath']}calendar.js?{VERHASH}"></script>
<!--{/if}-->
<!--{if $allowuploadtoday || $special == 1}-->
<!--{if empty($_G['setting']['pluginhooks']['post_upload_extend'])}-->
<!--{subtemplate common/upload}-->
<script type="text/javascript">
<!--{if $allowpostimg}-->
var imgUpload = new SWFUpload({
upload_url: "{$_G[siteurl]}misc.php?mod=swfupload&action=swfupload&operation=upload&fid=$_G[fid]",
post_params: {"uid" : "$_G[uid]", "hash":"$swfconfig[hash]", "type":"image"},
file_size_limit : "$swfconfig[max]",
file_types : "$swfconfig[imageexts][ext]",
file_types_description : "$swfconfig[imageexts][depict]",
file_upload_limit : $swfconfig['limit'],
file_queue_limit : 0,
swfupload_preload_handler : preLoad,
swfupload_load_failed_handler : loadFailed,
file_dialog_start_handler : fileDialogStart,
file_queued_handler : fileQueued,
file_queue_error_handler : fileQueueError,
file_dialog_complete_handler : fileDialogComplete,
upload_start_handler : uploadStart,
upload_progress_handler : uploadProgress,
upload_error_handler : uploadError,
upload_success_handler : uploadSuccess,
upload_complete_handler : uploadComplete,
button_image_url : "{IMGDIR}/uploadbutton.png",
button_placeholder_id : "imgSpanButtonPlaceholder",
button_width: 100,
button_height: 25,
button_cursor:SWFUpload.CURSOR.HAND,
button_window_mode: "transparent",
custom_settings : {
progressTarget : "imgUploadProgress",
uploadSource: 'forum',
uploadType: 'image',
imgBoxObj: $('imgattachlist'),
<!--{if !empty($swfconfig['maxsizeperday'])}-->
maxSizePerDay: $swfconfig['maxsizeperday'],
<!--{/if}-->
<!--{if !empty($swfconfig['maxattachnum'])}-->
maxAttachNum: $swfconfig['maxattachnum'],
<!--{/if}-->
<!--{if !empty($swfconfig['filtertype'])}-->
filterType: $swfconfig['filtertype'],
<!--{/if}-->
singleUpload: $('{$editorid}_btn_local')
},
debug: false
});
<!--{/if}-->
<!--{if $_G['group']['allowpostattach']}-->
var upload = new SWFUpload({
upload_url: "{$_G[siteurl]}misc.php?mod=swfupload&action=swfupload&operation=upload&fid=$_G[fid]",
post_params: {"uid":"$_G[uid]", "hash":"$swfconfig[hash]"},
file_size_limit : "$swfconfig[max]",
file_types : "$swfconfig[attachexts][ext]",
file_types_description : "$swfconfig[attachexts][depict]",
file_upload_limit : $swfconfig['limit'],
file_queue_limit : 0,
swfupload_preload_handler : preLoad,
swfupload_load_failed_handler : loadFailed,
file_dialog_start_handler : fileDialogStart,
file_queued_handler : fileQueued,
file_queue_error_handler : fileQueueError,
file_dialog_complete_handler : fileDialogComplete,
upload_start_handler : uploadStart,
upload_progress_handler : uploadProgress,
upload_error_handler : uploadError,
upload_success_handler : uploadSuccess,
upload_complete_handler : uploadComplete,
button_image_url : "{IMGDIR}/uploadbutton.png",
button_placeholder_id : "spanButtonPlaceholder",
button_width: 100,
button_height: 25,
button_cursor:SWFUpload.CURSOR.HAND,
button_window_mode: "transparent",
custom_settings : {
progressTarget : "fsUploadProgress",
uploadSource: 'forum',
uploadType: 'attach',
<!--{if !empty($swfconfig['maxsizeperday'])}-->
maxSizePerDay: $swfconfig['maxsizeperday'],
<!--{/if}-->
<!--{if !empty($swfconfig['maxattachnum'])}-->
maxAttachNum: $swfconfig['maxattachnum'],
<!--{/if}-->
<!--{if !empty($swfconfig['filtertype'])}-->
filterType: $swfconfig['filtertype'],
<!--{/if}-->
singleUpload: $('{$editorid}_btn_upload')
},
debug: false
});
<!--{/if}-->
</script>
<!--{else}-->
<!--{hook/post_upload_extend}-->
<!--{/if}-->
<!--{/if}-->
<script type="text/javascript">
var editorsubmit = $('postsubmit');
var editorform = $('postform');
<!--{if $isfirstpost && !empty($_G[forum][threadtypes][types])}-->
simulateSelect('typeid');
<!--{/if}-->
<!--{if !$isfirstpost && $thread['special'] == 5 && empty($firststand) && $_GET[action] != 'edit'}-->
simulateSelect('stand');
<!--{/if}-->
function switchpost(href) {
editchange = false;
saveData(1);
location.href = href + '&fid=$_G[fid]&cedit=yes<!--{if !empty($_G[tid])}-->&tid=$_G[tid]<!--{/if}--><!--{if !empty($modelid)}-->&modelid=$modelid<!--{/if}-->&extra=$extra';
doane();
}
<!--{if $_GET[action] == 'newthread' && $_G['setting']['sitemessage'][newthread] || $_GET[action] == 'reply' && $_G['setting']['sitemessage'][reply]}-->
showPrompt('custominfo', 'mouseover', '<!--{if $_GET[action] == 'newthread'}--><!--{echo trim($_G['setting']['sitemessage'][newthread][array_rand($_G['setting']['sitemessage'][newthread])])}--><!--{elseif $_GET[action] == 'reply'}--><!--{echo trim($_G['setting']['sitemessage'][reply][array_rand($_G['setting']['sitemessage'][reply])])}--><!--{/if}-->', $_G['setting']['sitemessage'][time]);
<!--{/if}-->
<!--{if $_G['group']['allowpostattach']}-->addAttach();<!--{/if}-->
<!--{if $allowpostimg}-->addAttach('img');<!--{/if}-->
(function () {
var oSubjectbox = $('subjectbox'),
oSubject = $('subject'),
oTextarea = $('e_textarea'),
sLen = 0;
if(oSubjectbox) {
if(oTextarea && oTextarea.style.display == '') {
oTextarea.focus();
}
} else if(oSubject) {
if(BROWSER.chrome) {
sLen = oSubject.value.length;
oSubject.setSelectionRange(sLen, sLen);
}
oSubject.focus();
}
})();
<!--{if empty($_GET['cedit'])}-->
if(loadUserdata('forum_'+discuz_uid)) {
$('rstnotice').style.display = '';
}
<!--{/if}-->
<!--{if !empty($userextcredit)}-->
var have_replycredit = 0;
var creditstax = $_G['setting']['creditstax'];
var replycredit_result_lang = "{lang replycredit_revenue}{$_G['setting']['extcredits'][$extcreditstype][title]} ";
var userextcredit = $userextcredit;
<!--{if isset($thread['replycredit']) && $thread['replycredit'] > 0}-->
have_replycredit = {$thread['replycredit']};
<!--{/if}-->
<!--{/if}-->
<!--{if $_GET[action] == 'edit'}-->
extraCheckall();
<!--{/if}-->
</script>
<!--{if ($_GET['action'] == 'newthread' || $_GET['action'] == 'reply' || $_GET['action'] == 'edit') && $_G['group']['allowat']}-->
<script type="text/javascript" src="{$_G['setting']['jspath']}at.js?{VERHASH}"></script>
<!--{/if}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,143 @@
<div class="exfm cl">
<div class="sinf sppoll z">
<dl>
<dt><span class="rq">*</span>{lang post_event_time}:</dt>
<dd>
<div id="certainstarttime" {if $activity['starttimeto']}style="display: none"{/if}>
<input type="text" name="starttimefrom[0]" id="starttimefrom_0" class="px" onclick="showcalendar(event, this, true)" autocomplete="off" value="$activity[starttimefrom]" />
</div>
<div id="uncertainstarttime" {if !$activity['starttimeto']}style="display: none"{/if}>
<input type="text" name="starttimefrom[1]" id="starttimefrom_1" class="px" onclick="showcalendar(event, this, true)" autocomplete="off" value="$activity[starttimefrom]" /><span> ~ </span><input onclick="showcalendar(event, this, true)" type="text" autocomplete="off" id="starttimeto" name="starttimeto" class="px" value="{if $activity['starttimeto']}$activity[starttimeto]{/if}" />
</div>
<div class="spmf cl">
<label for="activitytime"><input type="checkbox" id="activitytime" name="activitytime" class="pc" onclick="if(this.checked) {$('certainstarttime').style.display='none';$('uncertainstarttime').style.display='';} else {$('certainstarttime').style.display='';$('uncertainstarttime').style.display='none';}" value="1" {if $activity['starttimeto']}checked{/if} />{lang activity_starttime_endtime}</label>
</div>
</dd>
<dt><span class="rq">*</span><label for="activityplace">{lang activity_space}:</label></dt>
<dd>
<input type="text" name="activityplace" id="activityplace" class="px oinf" value="$activity[place]" />
</dd>
<!--{if $_GET[action] == 'newthread'}-->
<dt><label for="activitycity">{lang activity_city}:</label></dt>
<dd><input name="activitycity" id="activitycity" class="px" type="text" /></dd>
<!--{/if}-->
<dt><span class="rq">*</span><label for="activityclass">{lang activiy_sort}:</label></dt>
<dd class="hasd cl">
<!--{if $activitytypelist}-->
<ul id="activitytypelist" style="display: none">
<!--{loop $activitytypelist $type}-->
<li>$type</li>
<!--{/loop}-->
</ul>
<!--{/if}-->
<span><input type="text" id="activityclass" name="activityclass" class="px" value="$activity[class]" /></span>
<!--{if $activitytypelist}-->
<a href="javascript:;" class="dpbtn" onclick="showselect(this, 'activityclass', 'activitytypelist')">^</a>
<!--{/if}-->
</dd>
<dt><label for="activitynumber">{lang activity_need_member}:</label></dt>
<dd>
<input type="text" name="activitynumber" id="activitynumber" class="px z" style="width:55px;" onkeyup="checkvalue(this.value, 'activitynumbermessage')" value="$activity[number]" />
<span class="ftid">
<select name="gender" id="gender" width="38" class="ps">
<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>
</span>
<span id="activitynumbermessage"></span>
</dd>
<!--{if $_G['setting']['activityfield']}-->
<dt>{lang optional_data}:</dt>
<dd>
<ul class="xl2 cl">
<!--{loop $_G['setting']['activityfield'] $key $val}-->
<li><label for="userfield_$key"><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} />$val</label></li>
<!--{/loop}-->
</ul>
</dd>
<!--{/if}-->
<!--{if $_G['setting']['activityextnum']}-->
<dt><label for="extfield">{lang other_data}:</label></dt>
<dd>
<textarea name="extfield" id="extfield" class="pt" cols="50" style="width: 270px;"><!--{if $activity['ufield']['extfield']}-->$activity[ufield][extfield]<!--{/if}--></textarea><br />{lang post_activity_message} $_G['setting']['activityextnum'] {lang post_option}
</dd>
<!--{/if}-->
</dl>
</div>
<div class="sadd z">
<dl>
<!--{if $_G['setting']['activitycredit']}-->
<dt><label for="activitycredit">{lang consumption_credit}:</label></dt>
<dd>
<input type="text" name="activitycredit" id="activitycredit" class="px" value="$activity[credit]" />{$_G['setting']['extcredits'][$_G['setting']['activitycredit']][title]}
<p class="xg1">{lang user_consumption_money}</p>
</dd>
<!--{/if}-->
<dt><label for="cost">{lang activity_payment}:</label></dt>
<dd>
<input type="text" name="cost" id="cost" class="px" onkeyup="checkvalue(this.value, 'costmessage')" value="$activity[cost]" />{lang payment_unit}
<span id="costmessage"></span>
</dd>
<dt><label for="activityexpiration">{lang post_closing}:</label></dt>
<dd class="hasd cl">
<span>
<input type="text" name="activityexpiration" id="activityexpiration" class="px" onclick="showcalendar(event, this, true)" autocomplete="off" value="$activity[expiration]" />
</span>
<a href="javascript:;" class="dpbtn" onclick="showselect(this, 'activityexpiration')">^</a>
</dd>
<!--{if $allowpostimg}-->
<dt>{lang post_topic_image}:</dt>
<dd class="pns">
<p><button type="button" class="pn" onclick="uploadWindow(function (aid, url){activityaid_upload(aid, url)})"><span><!--{if $activityattach[attachment]}-->{lang update}<!--{else}-->{lang upload}<!--{/if}--></span></button></p>
<input type="hidden" name="activityaid" id="activityaid" {if $activityattach[attachment]}value="$activityattach[aid]" {/if}/>
<input type="hidden" name="activityaid_url" id="activityaid_url" />
<span class="xg1">
<!--{if $activityattach[attachment]}-->
{lang post_click_message_1}
<!--{else}-->
{lang post_click_message_2}
<!--{/if}-->
</span>
<div id="activityattach_image">
<!--{if $activityattach[attachment]}-->
<a href="$activityattach[url]/$activityattach[attachment]" target="_blank"><img class="spimg" src="$activityattach[url]/{if $activityattach['thumb']}{eval echo getimgthumbname($activityattach['attachment']);}{else}$activityattach[attachment]{/if}" alt="" /></a>
<!--{/if}-->
</div>
</dd>
<!--{/if}-->
<!--{hook/post_activity_extra}-->
</dl>
</div>
</div>
<script type="text/javascript" reload="1">
simulateSelect('gender');
function checkvalue(value, message){
if(!value.search(/^\d+$/)) {
$(message).innerHTML = '';
} else {
$(message).innerHTML = '<b>{lang input_invalid}</b>';
}
}
EXTRAFUNC['validator']['special'] = 'validateextra';
function validateextra() {
if($('postform').starttimefrom_0.value == '' && $('postform').starttimefrom_1.value == '') {
showDialog('{lang post_error_message_1}', 'alert', '', function () { if($('activitytime').checked) {$('postform').starttimefrom_1.focus();} else {$('postform').starttimefrom_0.focus();} });
return false;
}
if($('postform').activityplace.value == '') {
showDialog('{lang post_error_message_2}', 'alert', '', function () { $('postform').activityplace.focus() });
return false;
}
if($('postform').activityclass.value == '') {
showDialog('{lang post_error_message_3}', 'alert', '', function () { $('postform').activityclass.focus() });
return false;
}
return true;
}
function activityaid_upload(aid, url) {
$('activityaid_url').value = url;
updateactivityattach(aid, url, '{$_G['setting']['attachurl']}forum');
}
</script>

View File

@@ -0,0 +1,5 @@
<!--{if $allowuploadtoday}-->
{lang attachment_limit} <!--{if $_G['group']['maxattachnum']}-->{lang attachment_unit}<!--{/if}--><!--{if $_G['group']['maxsizeperday']}--><!--{if $_G['group']['maxattachnum']}--> {lang attachment_or} <!--{/if}-->{lang attachment_sizelimit}<!--{/if}-->
<!--{else}-->
<span class="xi1 xw1">{lang attachment_outoflimit}</span>
<!--{/if}-->

View File

@@ -0,0 +1,52 @@
<div class="exfm cl">
<div class="sinf sppoll z">
<dl>
<dt><span class="rq">*</span><label for="affirmpoint">{lang debate_square_point}:</label></dt>
<dd><textarea name="affirmpoint" id="affirmpoint" class="pt" style="width:210px;">$debate[affirmpoint]</textarea></dd>
<dt><span class="rq">*</span><label for="negapoint">{lang debate_opponent_point}:</label></dt>
<dd><textarea name="negapoint" id="negapoint" class="pt" style="width:210px;">$debate[negapoint]</textarea></dd>
</dl>
</div>
<div class="sadd z">
<dl>
<dt><label for="endtime">{lang endtime}:</label></dt>
<dd class="hasd cl">
<input type="text" name="endtime" id="endtime" class="px" onclick="showcalendar(event, this, true)" autocomplete="off" value="$debate[endtime]" />
<a href="javascript:;" class="dpbtn" onclick="showselect(this, 'endtime')">^</a>
</dd>
<dt><label for="umpire">{lang debate_umpire}:</label></dt>
<dd>
<p><input type="text" name="umpire" id="umpire" class="px" onblur="checkuserexists(this.value, 'checkuserinfo')" value="$debate[umpire]" /><span id="checkuserinfo"></span></p>
</dd>
<!--{hook/post_debate_extra}-->
</dl>
</div>
</div>
<script type="text/javascript" reload="1">
function checkuserexists(username, objname) {
if(!username) {
$(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 = $(objname);
obj.innerHTML = s;
});
}
EXTRAFUNC['validator']['special'] = 'validateextra';
function validateextra() {
if($('postform').affirmpoint.value == '') {
showDialog('{lang post_debate_message_1}', 'alert', '', function () { $('postform').affirmpoint.focus() });
return false;
}
if($('postform').negapoint.value == '') {
showDialog('{lang post_debate_message_2}', 'alert', '', function () { $('postform').negapoint.focus() });
return false;
}
return true;
}
</script>

View File

@@ -0,0 +1,247 @@
<div id="post_extra" class="ptm cl">
<div id="post_extra_tb" class="cl" onselectstart="return false">
<label id="extra_additional_b" onclick="showExtra('extra_additional')"><span id="extra_additional_chk">{lang post_additional_options}</span></label>
<!--{if $_GET[action] == 'newthread' || $_GET[action] == 'edit' && $isfirstpost}-->
<!--{if $_G['group']['allowsetreadperm']}-->
<label id="extra_readperm_b" onclick="showExtra('extra_readperm')"><span id="extra_readperm_chk">{lang readperm}</span></label>
<!--{/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)}-->
<label id="extra_replycredit_b" onclick="showExtra('extra_replycredit')"><span id="extra_replycredit_chk">{lang replycredit}</span></label>
<!--{/if}-->
<!--{/if}-->
<!--{if ($_GET[action] == 'newthread' && $_G['group']['allowpostrushreply'] && $special != 2) || ($_GET[action] == 'edit' && getstatus($thread['status'], 3))}-->
<label id="extra_rushreplyset_b" onclick="showExtra('extra_rushreplyset')"><span id="extra_rushreplyset_chk">{lang rushreply_thread}</span></label>
<!--{/if}-->
<!--{if $_G['group']['maxprice'] && !$special}-->
<label id="extra_price_b" onclick="showExtra('extra_price')"><span id="extra_price_chk">{lang thread_pricepay}</span></label>
<!--{/if}-->
<!--{if $_G['group']['allowposttag']}-->
<label id="extra_tag_b" onclick="showExtra('extra_tag')"><span id="extra_tag_chk">{lang posttag}</span></label>
<!--{/if}-->
<!--{if $_G['group']['allowsetpublishdate'] && ($_GET[action] == 'newthread' || ($_GET[action] == 'edit' && $isfirstpost && $thread['displayorder'] == -4))}-->
<label id="extra_pubdate_b" onclick="showExtra('extra_pubdate')"><span id="extra_pubdate_chk">{lang post_timer}</span></label>
<!--{/if}-->
<!--{/if}-->
<!--{hook/post_attribute_extra}-->
</div>
<div 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;">
<div><label>{lang replycredit_reward} <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();" onblur="extraCheck(0)" /> {lang replycredit_time}</label>, <label>{lang replycredit_once} <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();" onblur="extraCheck(0)" /> {$_G['setting']['extcredits'][$extcreditstype][unit]}{$_G['setting']['extcredits'][$extcreditstype][title]}</label><span class="xg1">{lang replycredit_empty}</span> , <label>{lang replycredit_member} <select id="replycredit_membertimes" name="replycredit_membertimes" class="ps 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> {lang replycredit_time}</label>, <label>{lang replycredit_rate} <select id="replycredit_random" name="replycredit_random" class="ps 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> %</label></div>
<div class="xg1">{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]}</div>
</div>
<!--{/if}-->
<!--{if $_G['group']['allowsetreadperm']}-->
<div id="extra_readperm_c" class="exfm cl" style="display:none">
<table cellspacing="0" cellpadding="0">
<tr>
<td class="xw1">{lang readperm}</td>
<td>
<select name="readperm" id="readperm" class="ps" style="width:90px" onchange="extraCheck(1)">
<option value="">{lang unlimited}</option>
<!--{loop $_G['cache']['groupreadaccess'] $val}-->
<option value="$val[readaccess]" title="{lang readperm}: $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>
<span class="xg1">{lang post_select_usergroup_readacces}</span>
</td>
</tr>
</table>
</div>
<!--{/if}-->
<!--{if $_G['group']['maxprice'] && !$special}-->
<div id="extra_price_c" class="exfm cl" style="display:none">
{lang price}:
<input type="text" id="price" name="price" class="px pxs" value="$thread[pricedisplay]" onblur="extraCheck(2)" /> {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][unit]}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]}
<span class="xg1">({lang post_price_comment})</span>
<!--{if $_G['group']['maxprice'] && ($_GET[action] == 'newthread' || $_GET[action] == 'edit' && $isfirstpost)}-->
<!--{if $_G['setting']['maxincperthread']}--><p class="xg1">{lang post_price_income_comment}</p><!--{/if}-->
<!--{if $_G['setting']['maxchargespan']}--><p class="xg1">{lang post_price_charge_comment}<!--{if $_GET[action] == 'edit' && $freechargehours}-->{lang post_price_free_chargehours}<!--{/if}--></p><!--{/if}-->
<!--{/if}-->
</div>
<!--{/if}-->
<!--{if $_G['group']['allowposttag']}-->
<div id="extra_tag_c" class="exfm cl" style="display: none;">
<table cellspacing="0" cellpadding="0">
<tr>
<td class="xw1">{lang post_tag}</td>
<td>
<input type="text" class="px vm" size="60" id="tags" name="tags" value="{$postinfo[tag] or ''}" onblur="extraCheck(4)" />
<a href="javascript:;" id="choosetag" class="xi2" onclick="showWindow(this.id, 'forum.php?mod=tag', 'get', 0)">{lang choosetag}</a>
</td>
</tr>
<tr>
<td></td>
<td>
<p class="xg1">{lang posttag_comment}</p>
<!--{eval $recent_use_tag = recent_use_tag();}-->
<!--{if $recent_use_tag}-->
<p class="mtn">{lang recent_use_tag}&nbsp;
<!--{eval $tagi = 0;}-->
<!--{loop $recent_use_tag $var}-->
<!--{if $tagi}-->, <!--{/if}--><a href="javascript:;" class="xi2" onclick="$('tags').value == '' ? $('tags').value += '$var' : $('tags').value += ',$var';extraCheck(4);doane();">$var</a>
<!--{eval $tagi++;}-->
<!--{/loop}-->
</p>
<!--{/if}-->
</td>
</tr>
</table>
</div>
<!--{/if}-->
<!--{if ($_GET[action] == 'newthread' && $_G['group']['allowpostrushreply'] && $special != 2) || ($_GET[action] == 'edit' && getstatus($thread['status'], 3))}-->
<div class="exfm cl" id="extra_rushreplyset_c" style="display: none;">
<div class="sinf sppoll z">
<dl>
<dt><span style="width: 4em">&nbsp;</span></dt>
<dd><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} onclick="extraCheck(3)" /> {lang rushreply_change}</label></dd>
<dt><label>{lang rushreply_time}</label></dt>
<dd>
<div>
<input type="text" name="rushreplyfrom" id="rushreplyfrom" class="px" onclick="showcalendar(event, this, true)" autocomplete="off" value="{$postinfo[rush][starttimefrom] or ''}" onkeyup="$('rushreply').checked = true;" /><span> ~ </span><input type="text" onclick="showcalendar(event, this, true)" autocomplete="off" id="rushreplyto" name="rushreplyto" class="px" value="{$postinfo[rush][starttimeto] or ''}" onkeyup="$('rushreply').checked = true;" />
</div>
</dd>
<dt><label>{lang rushreply_rewardfloor}</label></dt>
<dd>
<input type="text" name="rewardfloor" id="rewardfloor" class="px oinf" value="{$postinfo[rush][rewardfloor] or ''}" onkeyup="$('rushreply').checked = true;" />
<p class="xg1">{lang rushreply_rewardfloor_comment}</p>
</dd>
</dl>
</div>
<div class="sadd z">
<dl>
<dt>&nbsp;</dt>
<dd>&nbsp;</dd>
<dt><label for="replylimit">{lang stopfloor}: </label></dt>
<dd>
<input type="text" name="replylimit" id="replylimit" class="px" autocomplete="off" value="{$postinfo[rush][replylimit] or ''}" onkeyup="$('rushreply').checked = true;" /> <span class="xg1">{lang replylimit}</span>
</dd>
<dt><label for="stopfloor">{lang rushreply_end}</label></dt>
<dd>
<input type="text" name="stopfloor" id="stopfloor" class="px" autocomplete="off" value="{$postinfo[rush][stopfloor] or ''}" onkeyup="$('rushreply').checked = true;" />
</dd>
<dt><label for="creditlimit"><!--{if !empty($_G['setting']['creditstransextra'][11])}-->{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][11]][title]}<!--{else}-->{lang credits}<!--{/if}-->{lang min_limit}:</label></dt>
<dd>
<input type="text" name="creditlimit" id="creditlimit" class="px" autocomplete="off" value="{$postinfo[rush][creditlimit] or ''}" onkeyup="$('rushreply').checked = true;" />
<p class="xg1"><!--{if !empty($_G['setting']['creditstransextra'][11])}-->({$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][11]][title]})<!--{else}-->{lang total_credits}<!--{/if}-->{lang post_rushreply_credit}</p>
</dd>
</dl>
</div>
</div>
<!--{/if}-->
<!--{if $_G['group']['allowsetpublishdate'] && ($_GET[action] == 'newthread' || ($_GET[action] == 'edit' && $isfirstpost && $thread['displayorder'] == -4))}-->
<div class="exfm cl" id="extra_pubdate_c" style="display: none;">
<label><input type="checkbox" name="cronpublish" onclick="if(this.checked) {$('cronpublishdate').click();doane(event,false);};extraCheck(5);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" onclick="showcalendar(event, this, true, false, false, true);" autocomplete="off" value="{$cronpublishdate}" onchange="if(this.value) $('cronpublish').checked = true;">
</div>
<!--{/if}-->
<!--{/if}-->
<div class="exfm cl" id="extra_additional_c" style="display: none;">
<table cellspacing="0" cellpadding="0">
<tr>
<td class="xw1" valign="top">{lang basic_attr}</td>
<td>
<!--{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}-->
<!--{if $_GET[action] == 'newthread' || $_GET[action] == 'edit' && $isfirstpost}-->
<label for="hiddenreplies"><input type="checkbox" name="hiddenreplies" id="hiddenreplies" class="pc"{if $thread['hiddenreplies']} checked="checked"{/if} value="1">{lang hiddenreplies}</label>
<!--{/if}-->
<!--{if $_G['uid'] && ($_GET[action] == 'newthread' || $_GET[action] == 'edit' && $isfirstpost) && $special != 3}-->
<label for="ordertype"><input type="checkbox" name="ordertype" id="ordertype" class="pc" value="1" $ordertypecheck />{lang post_descviewdefault}</label>
<!--{/if}-->
<!--{if ($_GET[action] == 'newthread' || $_GET[action] == 'edit' && $isfirstpost)}-->
<label for="allownoticeauthor"><input type="checkbox" name="allownoticeauthor" id="allownoticeauthor" class="pc" value="1"{if $allownoticeauthor} checked="checked"{/if} />{lang post_noticeauthor}</label>
<!--{/if}-->
<!--{if $_GET[action] != 'edit' && helper_access::check_module('feed') && $_G['forum']['allowfeed']}-->
<label for="addfeed"><input type="checkbox" name="addfeed" id="addfeed" class="pc" value="1" $addfeedcheck>{lang addfeed}</label>
<!--{/if}-->
<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>
</td>
</tr>
<tr>
<td class="xw1" valign="top">{lang text_feature}</td>
<td>
<!--{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}-->
<label for="allowimgcode"><input type="checkbox" id="allowimgcode" class="pc" disabled="disabled"{if $_G['forum']['allowimgcode']} checked="checked"{/if} />{lang post_imgcode}</label>
<!--{if $_G['forum']['allowimgcode']}-->
<label for="allowimgurl"><input type="checkbox" id="allowimgurl" class="pc" checked="checked" />{lang post_imgurl}</label>
<!--{/if}-->
<label for="parseurloff"><input type="checkbox" name="parseurloff" id="parseurloff" class="pc" value="1" $urloffcheck />{lang disable}{lang post_parseurl}</label>
<label for="smileyoff"><input type="checkbox" name="smileyoff" id="smileyoff" class="pc" value="1" $smileyoffcheck />{lang disable}{lang smilies}</label>
<label for="bbcodeoff"><input type="checkbox" name="bbcodeoff" id="bbcodeoff" class="pc" value="1" $codeoffcheck />{lang disable}{lang discuzcode}</label>
<!--{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}-->
</td>
</tr>
<!--{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'])}-->
<tr>
<td class="xw1" valign="top">{lang manage_operation}</td>
<td>
<!--{if $_G['group']['allowstickthread']}-->
<label for="sticktopic"><input type="checkbox" name="sticktopic" id="sticktopic" class="pc" value="1" $stickcheck />{lang post_stick_thread}</label>
<!--{/if}-->
<!--{if $_G['group']['allowdigestthread']}-->
<label for="addtodigest"><input type="checkbox" name="addtodigest" id="addtodigest" class="pc" value="1" $digestcheck />{lang post_digest_thread}</label>
<!--{/if}-->
</td>
</tr>
<!--{/if}-->
<!--{elseif $_GET[action] == 'edit' && $_G['forum_auditstatuson']}-->
<tr>
<td class="xw1" valign="top">{lang manage_operation}</td>
<td>
<label for="audit"><input type="checkbox" name="audit" id="audit" class="pc" value="1">{lang auditstatuson}</label>
</td>
</tr>
<!--{/if}-->
<!--{if $_GET[action] == 'edit' && $isorigauthor && ($isfirstpost && $thread['replies'] < 1 || !$isfirstpost) && !$rushreply && $_G['setting']['editperdel']}-->
<tr>
<td class="xw1" valign="top">{lang post_delpost}</td>
<td>
<button type="button" class="pn xi1" onclick="deleteThread();"><span>{lang post_delpost}</span></button>
<input type="hidden" name="delete" id="delete" value="0" />
{lang del_thread_warning}<!--{if $thread[special] == 3}-->, {lang reward_price_back}<!--{/if}-->
</td>
</tr>
<!--{/if}-->
</table>
</div>
<!--{hook/post_attribute_extra_body}-->
</div>
</div>

View File

@@ -0,0 +1,117 @@
<div id="{$editorid}_body_loading"><div class="loadicon vm"></div> {lang e_editor_loading}</div>
<div class="edt" id="{$editorid}_body" style="display: none">
<div id="{$editorid}_controls" class="bar">
<div class="y">
<div class="b2r nbl nbr" id="{$editorid}_adv_5">
<p>
<a id="{$editorid}_undo" title="{lang e_undo}">Undo</a>
</p>
<p>
<a id="{$editorid}_redo" title="{lang e_redo}">Redo</a>
</p>
</div>
<div class="z">
<span class="mbn"><a id="{$editorid}_fullswitcher"></a><a id="{$editorid}_simple"></a></span>
<label id="{$editorid}_switcher" class="bar_swch ptn"><input id="{$editorid}_switchercheck" type="checkbox" class="pc" name="checkbox" value="0" {if !$editor[editormode]}checked="checked"{/if} onclick="switchEditor(this.checked?0:1)" />{lang code}</label>
</div>
</div>
<!--{if !empty($_G[setting][pluginhooks][post_editorctrl_right])}-->
<div class="y"><!--{hook/post_editorctrl_right}--></div>
<!--{/if}-->
<div id="{$editorid}_button" class="btn cl">
<div class="b2r nbr nbl" id="{$editorid}_adv_s2">
<a id="{$editorid}_fontname" class="dp" title="{lang e_fontname}" menupos="43!"><span id="{$editorid}_font">{lang e_font}</span></a>
<a id="{$editorid}_fontsize" class="dp" title="{lang e_fontsize}" menupos="43!" menuwidth="25"><span id="{$editorid}_size">{lang e_size}</span></a>
<span id="{$editorid}_adv_1">
<a id="{$editorid}_inserthorizontalrule" title="{lang e_hr_title}">Hr</a>
<br />
</span>
<a id="{$editorid}_bold" title="{lang e_bold}">B</a>
<a id="{$editorid}_italic" title="{lang e_italic}">I</a>
<a id="{$editorid}_underline" title="{lang e_underline}">U</a>
<a id="{$editorid}_forecolor" title="{lang e_forecolor}">Color</a>
<a id="{$editorid}_backcolor" title="{lang e_fontbgcolor}">BgColor</a>
<a id="{$editorid}_url" title="{lang e_url}">Url</a>
<span id="{$editorid}_adv_8">
<a id="{$editorid}_unlink" title="{lang e_unlink}">Unlink</a>
</span>
</div>
<div class="b2r nbl" id="{$editorid}_adv_2">
<p id="{$editorid}_adv_3">
<a id="{$editorid}_tbl" title="{lang e_table}">Table</a>
</p>
<p>
<a id="{$editorid}_removeformat" title="{lang e_removeformat}">Removeformat</a>
</p>
</div>
<div class="b2r">
<p>
<a id="{$editorid}_autotypeset" title="{lang e_autotypeset}">Autotypeset</a>
<a id="{$editorid}_justifyleft" title="{lang e_left}">Left</a>
<a id="{$editorid}_justifycenter" title="{lang e_center}">Center</a>
<a id="{$editorid}_justifyright" title="{lang e_right}">Right</a>
</p>
<p id="{$editorid}_adv_4">
<a id="{$editorid}_floatleft" title="{lang e_floatleft}">FloatLeft</a>
<a id="{$editorid}_floatright" title="{lang e_floatright}">FloatRight</a>
<a id="{$editorid}_insertorderedlist" title="{lang e_orderedlist}">Orderedlist</a>
<a id="{$editorid}_insertunorderedlist" title="{lang e_unorderedlist}">Unorderedlist</a>
</p>
</div>
<div class="b1r" id="{$editorid}_adv_s1">
<a id="{$editorid}_sml" title="{lang e_smilies_title}">{lang e_smilies}</a>
<div id="{$editorid}_imagen" style="display:none">!</div>
<a id="{$editorid}_image" title="{lang e_image_title}" menupos="00" menuwidth="600">{lang e_image}</a>
<!--{if $_G['group']['allowpostattach']}-->
<div id="{$editorid}_attachn" style="display:none">!</div>
<a id="{$editorid}_attach" title="{lang e_attach_title}" menupos="00" menuwidth="600">{lang e_attach}</a>
<!--{/if}-->
<!--{if $_G['forum']['allowmediacode'] && $_G['group']['allowmediacode']}-->
<a id="{$editorid}_aud" title="{lang e_audio_title}">{lang e_audio}</a>
<a id="{$editorid}_vid" title="{lang e_video_title}">{lang e_video}</a>
<a id="{$editorid}_fls" title="{lang e_flash_title}">{lang e_flash}</a>
<!--{/if}-->
<!--{if ($_GET[action] == 'newthread' || $_GET[action] == 'reply' || $_GET[action] == 'edit') && $_G['group']['allowat']}-->
<a id="{$editorid}_at" title="{lang e_at_title}" menupos="43" menuwidth="600">{lang e_at}</a>
<!--{/if}-->
<!--{hook/post_editorctrl_left}-->
</div>
<div class="b2r esb" id="{$editorid}_adv_s3">
<!--{hook/post_editorctrl_top}-->
<a id="{$editorid}_quote" title="{lang e_quote_title}">{lang e_quote}</a>
<a id="{$editorid}_code" title="{lang e_code_title}">{lang e_code}</a>
<!--{if $isfirstpost}-->
<a id="{$editorid}_free" adv="1" title="{lang e_free}">Free</a>
<!--{if $_G['group']['allowhidecode']}--><a id="{$editorid}_hide" adv="1" title="{lang e_hide}">Hide</a><!--{/if}-->
<!--{/if}-->
<a id="{$editorid}_pasteword" adv="1" title="{lang e_pasteword_title}">{lang e_pasteword}</a>
<!--{if $_G['group']['allowdownremoteimg']}--><!--{if !($_G['setting']['magicstatus'] && !empty($_G['setting']['magics']['doodle']))}--><!--{/if}--><a id="{$editorid}_downremoteimg" adv="1" title="{lang e_downremoteimg_title}">{lang e_downremoteimg}</a><!--{/if}-->
<!--{if $isfirstpost}-->
<a id="{$editorid}_page" adv="1" title="{lang page_separate}">Page</a>
<a id="{$editorid}_index" adv="1" title="{lang directory}">Index</a>
<!--{/if}-->
<!--{if $_G['setting']['magicstatus'] && !empty($_G['setting']['magics']['doodle'])}-->
<a id="a_magic_doodle" adv="1" href="home.php?mod=magic&mid=doodle&showid=comment_doodle&target={$editorid}_textarea&from=forumeditor" class="cst" onclick="showWindow(this.id, this.href, 'get', 0)"><img src="{STATICURL}image/magic/doodle.small.gif" alt="doodle" title="$_G['setting']['magics']['doodle']" style="margin-top:2px" /></a>
<!--{/if}-->
<a id="{$editorid}_password" adv="1" title="{lang replypassword}">Password</a>
<a id="{$editorid}_postbg" adv="1" title="{lang replybackground}">Background</a>
<!--{if $_G['group']['allowbegincode'] && $isfirstpost}-->
<a id="{$editorid}_beginning" adv="1" title="{lang e_beginning_title}" menupos="43" menuwidth="600">{lang e_beginning}</a>
<!--{/if}-->
<!--{loop $_G['cache']['bbcodes_display'][$_G['groupid']] $tag $bbcode}-->
<a id="{$editorid}_cst{$bbcode[params]}_$tag" class="cst" title="$bbcode[explanation]"><img src="$bbcode['icon']" title="$bbcode[explanation]" alt="$tag" /></a>
<!--{/loop}-->
<!--{hook/post_editorctrl_bottom}-->
</div>
</div>
</div>
<div id="rstnotice" class="ntc_l bbs" style="display:none">
<a href="javascript:;" title="{lang post_topicreset}" class="d y" onclick="userdataoption(0)">close</a>{lang missed_data} <a class="xi2" href="javascript:;" onclick="userdataoption(1)"><strong>{lang post_autosave_restore}</strong></a>
</div>
<div class="area">
<textarea name="$editor[textarea]" id="{$editorid}_textarea" class="pt" rows="15">$editor[value]</textarea>
</div>
<!--{subtemplate common/editor}-->
</div>

View File

@@ -0,0 +1,77 @@
<div class="pbt cl">
<!--{if $sortid}-->
<input type="hidden" name="sortid" value="$sortid" />
<!--{/if}-->
<!--{if $isfirstpost && !empty($_G['forum'][threadtypes][types])}-->
<div class="ftid">
<!--{if $_G['forum']['ismoderator'] || empty($_G['forum']['threadtypes']['moderators'][$thread[typeid]])}-->
<select name="typeid" id="typeid" width="80">
<option value="0">{lang select_thread_catgory}</option>
<!--{loop $_G['forum'][threadtypes][types] $typeid $name}-->
<!--{if empty($_G['forum']['threadtypes']['moderators'][$typeid]) || $_G['forum']['ismoderator']}-->
<option value="$typeid"{if (isset($thread['typeid']) && $thread['typeid'] == $typeid) || getgpc('typeid') == $typeid} selected="selected"{/if}><!--{echo strip_tags($name)}--></option>
<!--{/if}-->
<!--{/loop}-->
</select>
<!--{else}-->
[<!--{echo strip_tags($_G['forum']['threadtypes']['types'][$thread[typeid]]);}-->]
<!--{/if}-->
</div>
<!--{/if}-->
<div class="z">
<!--{if $_GET[action] == 'reply' && !empty($_GET['addtrade']) || $_GET[action] == 'edit' && $thread['special'] == 2 && !$postinfo['first']}-->
<input name="subject" type="hidden" value="" />
<!--{else}-->
<!--{if $_GET[action] != 'reply'}-->
<span><input type="text" name="subject" id="subject" class="px" value="$postinfo[subject]" onkeyup="dstrLenCalc(this, 'checklen', $_G['setting']['maxsubjectsize']);" style="width: 25em" /></span>
<!--{else}-->
<span id="subjecthide" class="z">RE: $thread[subject] [<a href="javascript:;" onclick="display('subjecthide');display('subjectchk');display('subjectbox');return false;">{lang modify}</a>]</span>
<span id="subjectbox" style="display:none"><input type="text" name="subject" id="subject" class="px" value="" onkeyup="dstrLenCalc(this, 'checklen', $_G['setting']['maxsubjectsize']);" style="width: 25em" /></span>
<!--{/if}-->
<span id="subjectchk"{if $_GET[action] == 'reply'} style="display:none"{/if}>{lang comment_message1} <strong id="checklen">{$_G['setting']['maxsubjectsize']}</strong> {lang comment_message2}</span>
<script type="text/javascript">dstrLenCalc($('subject'), 'checklen', $_G['setting']['maxsubjectsize'])</script>
<!--{/if}-->
<!--{if $_GET[action] == 'newthread' && !empty($modnewthreads)}--> <span class="xg1 xw0">({lang approve})</span><!--{/if}-->
<!--{if $_GET[action] == 'reply' && !empty($modnewreplies)}--> <span class="xg1 xw0">({lang approve})</span><!--{/if}-->
<!--{if $_GET[action] == 'edit' && $isfirstpost && $thread['displayorder'] == -4}--> <span class="xg1 xw0">({lang draft})</span><!--{/if}-->
</div>
</div>
<!--{if !$isfirstpost && $thread[special] == 5 && empty($firststand) && $_GET[action] != 'edit'}-->
<div class="pbt cl">
<div class="ftid">
<select name="stand" id="stand">
<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>
</div>
</div>
<!--{/if}-->
<div id="attachnotice_attach" class="tbms mbm xl" style="display:none">
{lang you_have} <span id="unusednum_attach"></span> {lang attach_unused} &nbsp; <a href="javascript:;" class="xi2" onclick="attachoption('attach', 2);" />{lang attach_view}</a><span class="pipe">|</span><a href="javascript:;" class="xi2" onclick="attachoption('attach', 1)">{lang attach_use}</a><span class="pipe">|</span><a href="javascript:;" class="xi2" onclick="attachoption('attach', 0)">{lang attach_delete}</a>
<div id="unusedlist_attach" style="display:none"></div>
</div>
<div id="attachnotice_img" class="tbms mbm xl" style="display:none">
{lang you_have} <span id="unusednum_img"></span> {lang img_unused} &nbsp; <a href="javascript:;" class="xi2" onclick="attachoption('img', 2);" />{lang attach_view}</a><span class="pipe">|</span><a href="javascript:;" class="xi2" onclick="attachoption('img', 1)">{lang attach_use}</a><span class="pipe">|</span><a href="javascript:;" class="xi2" onclick="attachoption('img', 0)">{lang attach_delete}</a>
<div id="unusedlist_img" style="display:none"></div>
</div>
<!--{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'])))}--><p class="xg1">{lang post_message1}</p><!--{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}-->
<!--{if $_GET[action] == 'reply' && $quotemessage}-->
<div class="pbt cl">$quotemessage</div>
<!--{/if}-->

View File

@@ -0,0 +1,135 @@
<!--{template common/header}-->
<!--{if empty($_GET['infloat'])}-->
<div id="pt" class="bm cl">
<div class="z"><a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em> $navigation</div>
</div>
<div id="ct" class="wp cl">
<div class="mn">
<div class="bm bw0">
<!--{/if}-->
<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>
<h3 class="flb">
<!--{if $special === null}-->
<em>{lang post_forum_navigation}</em>
<!--{else}-->
<!--{block actiontitle}--><!--{if $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}<!--{else}-->{lang send_posts}<!--{/if}--><!--{/block}-->
<em>$actiontitle</em>
<!--{/if}-->
<!--{if !empty($_GET['infloat'])}-->
<span>
<a href="javascript:;" class="flbc" onclick="hideWindow('nav')" title="{lang close}">{lang close}</a>
</span>
<!--{/if}-->
</h3>
<div class="c"{if empty($_GET['infloat'])} style="width: 620px;"{/if}>
<p class="cl">
<!--{if $_G['group']['allowpost'] || !$_G['uid']}-->
<!--{if $special === null}-->
<button id="postbtn" class="pn pnc y" onclick="hideWindow('nav');showWindow('newthread', 'forum.php?mod=post&action=newthread&fid=' + selectfid)" disabled="disabled"><span>{lang send_posts}</span></button>
<!--{else}-->
<button id="postbtn" class="pn pnc y" onclick="hideWindow('nav');window.location.href='forum.php?mod=post&action=newthread&fid=' + selectfid + '&special=$special'" disabled="disabled"><span>$actiontitle</span></button>
<!--{/if}-->
<!--{/if}-->
<span class="pbnv">$_G['setting']['bbname']<span id="pbnv"></span> <a id="enterbtn" class="xg1" href="javascript:;" onclick="locationforums(currentblock, currentfid)">[{lang nav_forum}]</a></span>
</p>
<ul class="pbl cl">
<li id="block_group"></li>
<li id="block_forum"></li>
<li id="block_subforum"></li>
</ul>
</div>
<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 = $('fs_group').getElementsByTagName('LI');
for(i = 0;i < lis.length;i++) {
var gid = lis[i].getAttribute('fid');
if($('fs_forum_' + gid)) {
s += '<p><a href="javascript:;" ondblclick="locationforums(1, ' + gid + ')" onclick="switchforums(this, 1, ' + gid + ')" class="pbsb">' + lis[i].innerHTML + '</a></p>';
}
}
$('block_group').innerHTML = s;
var lastswitchobj = null;
var selectfid = 0;
var switchforum = switchsubforum = '';
switchforums($('commonforum'), 1, 'common');
function switchforums(obj, block, fid) {
if(lastswitchobj != obj) {
if(lastswitchobj) {
lastswitchobj.parentNode.className = '';
}
obj.parentNode.className = 'pbls';
}
var s = '';
if(fid != 'common') {
$('enterbtn').className = 'xi2';
currentblock = block;
currentfid = fid;
} else {
$('enterbtn').className = 'xg1';
}
if(block == 1) {
var lis = $('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 + ')"' + ($('fs_subforum_' + fid) ? ' class="pbsb"' : '') + '>' + lis[i].innerHTML + '</a></p>';
}
}
$('block_forum').innerHTML = s;
$('block_subforum').innerHTML = '';
switchforum = switchsubforum = '';
selectfid = 0;
$('postbtn').setAttribute("disabled", "disabled");
$('postbtn').className = 'pn xg1 y';
} else if(block == 2) {
selectfid = fid;
if($('fs_subforum_' + fid)) {
var lis = $('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>';
}
$('block_subforum').innerHTML = s;
} else {
$('block_subforum').innerHTML = '';
}
switchforum = obj.innerHTML;
switchsubforum = '';
$('postbtn').removeAttribute("disabled");
$('postbtn').className = 'pn pnc y';
} else {
selectfid = fid;
switchsubforum = obj.innerHTML;
$('postbtn').removeAttribute("disabled");
$('postbtn').className = 'pn pnc y';
}
lastswitchobj = obj;
$('pbnv').innerHTML = switchforum ? '&nbsp;&gt;&nbsp;' + switchforum + (switchsubforum ? '&nbsp;&gt;&nbsp;' + switchsubforum : '') : '';
}
function locationforums(block, fid) {
location.href = block == 1 ? 'forum.php?gid=' + fid : 'forum.php?mod=forumdisplay&fid=' + fid;
}
</script>
<!--{if empty($_GET['infloat'])}-->
</div>
</div>
</div>
<!--{/if}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,156 @@
<!--{template common/header}-->
<h3 class="flb">
<em id="return_$_GET['handlekey']">
<!--{if $_GET[action] == 'newthread'}-->{lang post_newthread}<!--{elseif $_GET[action] == 'reply'}-->{lang join_thread}<!--{/if}-->
</em>
<!--{if $_GET[action] == 'newthread' && $modnewthreads}--><span class="needverify">{lang approve}</span><!--{/if}-->
<!--{if $_GET[action] == 'reply' && !empty($modnewreplies)}--><span class="needverify">{lang approve}</span><!--{/if}-->
<span>
<a href="javascript:;" class="flbc" onclick="hideWindow('$_GET['handlekey']')" title="{lang close}">{lang close}</a>
</span>
</h3>
<form method="post" autocomplete="off" id="postform" action="forum.php?mod=post&infloat=yes&action=$_GET[action]&fid=$_G[fid]&extra=$extra{if $_GET[action] == 'newthread'}&topicsubmit=yes{elseif $_GET[action] == 'reply'}&tid=$_G[tid]&replysubmit=yes{/if}" onsubmit="this.message.value = parseurl(this.message.value);{if !empty($_GET['infloat'])}ajaxpost('postform', 'return_$_GET['handlekey']', 'return_$_GET['handlekey']', 'onerror');return false;{/if}">
<div class="c" id="floatlayout_$_GET[action]">
<div class="p_c">
<input type="hidden" name="formhash" id="formhash" value="{FORMHASH}" />
<input type="hidden" name="handlekey" value="$_GET['handlekey']" />
<!--{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 or ''}" />
<input type="hidden" name="usesig" value="{if $_G['group']['maxsigsize']}1{else}0{/if}"/>
<!--{if !empty($reppid)}-->
<input type="hidden" name="reppid" value="$reppid" />
<!--{/if}-->
<!--{if !empty($_GET['reppost'])}-->
<input type="hidden" name="reppost" value="$_GET[reppost]" />
<!--{elseif !empty($_GET['repquote'])}-->
<input type="hidden" name="reppost" value="$_GET[repquote]" />
<!--{/if}-->
<!--{/if}-->
<!--{hook/post_infloat_top}-->
<div class="pbt cl">
<!--{if $_GET[action] == 'newthread' && ($threadsorts = $_G['forum'][threadsorts])}-->
<div class="ftid">
<select name="sortid" id="sortid" width="80" change="if($('sortid').value) {switchAdvanceMode('forum.php?mod=post&action=$_GET[action]&fid=$_G[fid]{if !empty($_G[tid])}&tid=$_G[tid]{/if}{if !empty($pid)}&pid=$pid{/if}{if !empty($modelid)}&modelid=$modelid{/if}&extra=$extra&sortid=' + $('sortid').value)}">
<!--{if !$sortid}--><option value="0">{lang threadtype_option}</option><!--{/if}-->
<!--{loop $threadsorts[types] $tsortid $name}-->
<!--{if !empty($modelid) && $threadsorts[modelid][$tsortid] == $modelid || empty($modelid)}-->
<option value="$tsortid"{if $sortid == $tsortid} selected="selected"{/if}><!--{echo strip_tags($name);}--></option>
<!--{/if}-->
<!--{/loop}-->
</select>
</div>
<script type="text/javascript" reload="1">simulateSelect('sortid');</script>
<!--{/if}-->
<!--{if $isfirstpost && $_G['forum'][threadtypes][types]}-->
<div class="ftid">
<select name="typeid" id="typeid_float" width="80">
<option value="0">{lang select_thread_catgory}</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} selected="selected"{/if}><!--{echo strip_tags($name);}--></option>
<!--{/if}-->
<!--{/loop}-->
</select>
</div>
<script type="text/javascript" reload="1">simulateSelect('typeid_float');</script>
<!--{/if}-->
<!--{if $_GET[action] != 'reply'}-->
<span><input name="subject" id="subject" class="px" value="$postinfo[subject]" style="width: 25em" /></span>
<!--{else}-->
<span id="subjecthide" class="z">RE: $thread[subject] [<a href="javascript:;" onclick="display('subjecthide');display('subjectbox');">{lang modify}</a>]</span>
<span id="subjectbox" style="display:none"><input name="subject" id="subject" class="px" value="" style="width: 25em" /></span>
<!--{/if}-->
</div>
<!--{if !$isfirstpost && $thread[special] == 5 && empty($firststand)}-->
<div class="pbt cl">
<div class="ftid sslt">
<select id="stand" name="stand">
<option value="">{lang debate_viewpoint}</option>
<option value="0">{lang debate_neutral}</option>
<option value="1"{if $stand == 1} selected{/if}>{lang debate_square}</option>
<option value="2"{if $stand == 2} selected{/if}>{lang debate_opponent}</option>
</select>
</div>
<script type="text/javascript" reload="1">simulateSelect('stand');</script>
</div>
<!--{/if}-->
<!--{if $_GET[action] == 'reply' && $quotemessage}-->
<div class="pbt cl">$quotemessage</div>
<!--{/if}-->
<div class="tedt">
<div class="bar">
<span class="y">
<a href="forum.php?mod=post&action=$_GET[action]&fid=$_G[fid]&extra=$extra{if $_GET[action] == 'reply'}&tid=$_G[tid]{if !empty($_GET[reppost])}&reppost=$_GET[reppost]{/if}{if !empty($_GET[repquote])}&repquote=$_GET[repquote]{/if}{if !empty($page)}&page=$page{/if}{/if}{if !empty($stand)}&stand=$stand{/if}" onclick="switchAdvanceMode(this.href);doane(event);">{lang post_advancemode}</a>
</span>
<!--{eval $seditor = array('post', array('bold', 'color', 'img', 'link', 'quote', 'code', 'smilies', 'at'));}-->
<!--{subtemplate common/seditor}-->
</div>
<div class="area">
<textarea rows="7" cols="80" name="message" id="postmessage" onKeyDown="seditor_ctlent(event, '$(\'postsubmit\').click();')" class="pt">$message</textarea>
</div>
</div>
<div id="seccheck_$_GET[action]">
<!--{if $secqaacheck || $seccodecheck}-->
<!--{subtemplate forum/seccheck_post}-->
<!--{/if}-->
</div>
</div>
</div>
<!--{hook/post_infloat_middle}-->
<div class="o pns" id="moreconf">
<!--{if $_GET[action] == 'newthread' && $_G['setting']['sitemessage'][newthread] || $_GET[action] == 'reply' && $_G['setting']['sitemessage'][reply]}-->
<a href="javascript:;" id="custominfo" class="y" style="margin-left:5px"><i class="fico-info fic4 fc-p" alt="{lang faq}"></i></a>
<!--{/if}-->
<a href="home.php?mod=spacecp&ac=credit&op=rule&fid=$_G[fid]" class="y" target="_blank">{lang post_credits_rule}</a>
<button type="submit" id="postsubmit" class="pn pnc z" value="true"{if !$seccodecheck && !$secqaacheck} onmouseover="checkpostrule('seccheck_$_GET[action]', 'ac=$_GET[action]&infloat=yes&handlekey=$_GET[handlekey]');this.onmouseover=null"{/if} name="{if $_GET[action] == 'newthread'}topicsubmit{elseif $_GET[action] == 'reply'}replysubmit{/if}"><span><!--{if $_GET[action] == 'newthread'}-->{lang post_newthread}<!--{elseif $_GET[action] == 'reply'}-->{lang join_thread}<!--{/if}--></span></button>
<!--{hook/post_infloat_btn_extra}-->
</div>
</form>
<script type="text/javascript" reload="1">
function succeedhandle_$_GET[action](locationhref, message) {
<!--{if $_GET[action] == 'reply'}-->
try {
var pid = locationhref.lastIndexOf('#pid');
if(pid != -1) {
pid = locationhref.substr(pid + 4);
ajaxget('forum.php?mod=viewthread&tid=$_G[tid]&viewpid=' + pid<!--{if !empty($_GET['from'])}--> + '&from=$_GET[from]'<!--{/if}-->, 'post_new', 'ajaxwaitid', '', null, 'appendreply()');
if(replyreload) {
var reloadpids = replyreload.split(',');
for(var i = 1;i < reloadpids.length;i++) {
ajaxget('forum.php?mod=viewthread&tid=$_G[tid]&viewpid=' + reloadpids[i]<!--{if !empty($_GET['from'])}--> + '&from=$_GET[from]'<!--{/if}-->, 'post_' + reloadpids[i]);
}
}
} else {
showDialog(message, 'notice', '', 'location.href="' + locationhref + '"');
}
} catch(e) {
location.href = locationhref;
}
<!--{elseif $_GET[action] == 'newthread'}-->
var hastid = locationhref.lastIndexOf('tid=');
if(hastid == -1) {
showDialog(message, 'notice', '', 'location.href="' + locationhref + '"');
} else {
location.href = locationhref;
}
<!--{/if}-->
hideWindow('$_GET[action]');
}
<!--{if $_GET[action] == 'newthread' && $_G['setting']['sitemessage'][newthread] || $_GET[action] == 'reply' && $_G['setting']['sitemessage'][reply]}-->
showPrompt('custominfo', 'mouseover', '<!--{if $_GET[action] == 'newthread'}--><!--{echo trim($_G['setting']['sitemessage'][newthread][array_rand($_G['setting']['sitemessage'][newthread])])}--><!--{elseif $_GET[action] == 'reply'}--><!--{echo trim($_G['setting']['sitemessage'][reply][array_rand($_G['setting']['sitemessage'][reply])])}--><!--{/if}-->', $_G['setting']['sitemessage'][time]);
<!--{/if}-->
if($('subjectbox')) {
$('postmessage').focus();
} else if($('subject')) {
$('subject').select();
$('subject').focus();
}
</script>
<!--{template common/footer}-->

View File

@@ -0,0 +1,136 @@
<input type="hidden" name="polls" value="yes" />
<div class="exfm cl">
<div class="sinf sppoll z">
<input type="hidden" name="fid" value="$_G[fid]" />
<!--{if $_GET[action] == 'newthread'}-->
<input type="hidden" name="tpolloption" value="1" />
<div class="cl">
<h4 class="z">
<em>{lang post_poll_options}: </em>
{lang post_poll_comment} &nbsp;
<span class="xw0"><input id="pollchecked" type="checkbox" class="pc" onclick="switchpollm(1)" /><label for="pollchecked">{lang post_single_frame_mode}</label></span>
</h4>
</div>
<div id="pollm_c_1" class="mbm">
<span id="polloption_new"></span>
<p id="polloption_hidden" style="display: none">
<a href="javascript:;" class="d" onclick="delpolloption(this)">del</a>
<input type="text" name="polloption[]" class="px vm" autocomplete="off" style="width:290px;" />
<span id="pollUploadProgress" class="vm" style="display: none;"></span>
<span id="newpoll" class="vm"></span>
</p>
<p><a href="javascript:;" onclick="addpolloption()">+{lang post_poll_add}</a></p>
</div>
<div id="pollm_c_2" class="mbm" style="display:none">
<textarea name="polloptions" class="pt" style="width:340px;" rows="6" onchange="switchpollm(0)" /></textarea>
<p class="cl">{lang post_poll_comment_s}</p>
</div>
<!--{else}-->
<!--{loop $poll['polloption'] $key $option}-->
<!--{eval $ppid = $poll['polloptionid'][$key];}-->
<p>
<input type="hidden" name="polloptionid[{$poll[polloptionid][$key]}]" value="$poll[polloptionid][$key]" />
<input type="text" name="displayorder[{$poll[polloptionid][$key]}]" class="px pxs vm" autocomplete="off" value="$poll[displayorder][$key]" />
<input type="text" name="polloption[{$poll[polloptionid][$key]}]" class="px vm" autocomplete="off" style="width:230px;" value="$option"{if !$_G['group']['alloweditpoll']} readonly="readonly"{/if} />
<!--img src="$poll[imginfo][$ppid][small]" class="cur1" /-->
<span id="newpoll_{$key}" class="vm"></span>
<span id="pollUploadProgress_{$key}" class="vm">
<!--{if $poll[isimage]}-->
<img src="{IMGDIR}/attachimg_2.png" class="cur1" onmouseover="showMenu({'menuid':'poll_img_preview_{$key}_menu','ctrlclass':'a','duration':2,'timeout':0,'pos':'34'});" onmouseout="hideMenu('poll_img_preview_{$key}_menu');" />
<!--{/if}-->
<input type="hidden" name="pollimage[{$poll[polloptionid][$key]}]" id="pollUploadProgress_{$key}_aid" value="$poll[imginfo][$ppid][aid]" />
<span id="poll_img_preview_{$key}_menu" style="display: none">
<img src="{if $poll[imginfo][$ppid][small]}$poll[imginfo][$ppid][small]{else}{STATICURL}image/common/nophoto.gif{/if}" />
</span>
</span>
</p>
<!--{/loop}-->
<span id="polloption_new"></span>
<p id="polloption_hidden" style="display: none">
<a href="javascript:;" class="d" onclick="delpolloption(this)">del</a>
<input type="text" name="displayorder[]" class="px pxs vm" autocomplete="off" />
<input type="text" name="polloption[]" class="px vm" autocomplete="off" style="width:230px;" />
<span id="newpoll" class="vm"></span>
<span id="pollUploadProgress" class="vm" style="display: none;"></span>
</p>
<p><a href="javascript:;" onclick="addpolloption()">+{lang post_poll_add}</a></p>
<!--{/if}-->
</div>
<div class="sadd z">
<p class="mbn">
<label for="maxchoices">{lang post_poll_allowmultiple}</label>
<input type="text" name="maxchoices" id="maxchoices" class="px pxs" value="{if $_GET[action] == 'edit' && $poll[maxchoices]}$poll[maxchoices]{else}1{/if}" /> {lang post_option}
</p>
<p class="mbn">
<label for="polldatas">{lang post_poll_expiration}</label>
<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}" /> {lang days}
</p>
<p class="mbn">
<input type="checkbox" name="visibilitypoll" id="visibilitypoll" class="pc" value="1"{if $_GET[action] == 'edit' && !$poll[visible]} checked{/if} /><label for="visibilitypoll">{lang poll_after_result}</label>
</p>
<p class="mbn">
<input type="checkbox" name="overt" id="overt" class="pc" value="1"{if $_GET[action] == 'edit' && $poll[overt]} checked{/if} /><label for="overt">{lang post_poll_overt}</label>
</p>
<!--{hook/post_poll_extra}-->
</div>
</div>
<!--{subtemplate common/upload}-->
<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 addUploadEvent(imgid, pollstr) {
<!--{if empty($_G['setting']['pluginhooks']['post_upload_extend']) && empty($_G['setting']['pluginhooks']['post_poll_upload_extend'])}-->
new SWFUpload({
upload_url: SITEURL + 'misc.php?mod=swfupload&action=swfupload&operation=poll&fid=$_G[fid]',
post_params: {"uid":"$_G[uid]", "hash":"$swfconfig[hash]"},
file_size_limit : "2048",
file_types : "*.jpg;*.jpeg;*.gif;*.png;*.bmp",
file_types_description : "{lang pictypefile}",
file_upload_limit : 0,
file_queue_limit : 1,
swfupload_preload_handler : preLoad,
swfupload_load_failed_handler : loadFailed,
file_dialog_start_handler : fileDialogStart,
file_queued_handler : fileQueued,
file_queue_error_handler : fileQueueError,
file_dialog_complete_handler : fileDialogComplete,
upload_start_handler : uploadStart,
upload_progress_handler : uploadProgress,
upload_error_handler : uploadError,
upload_success_handler : uploadSuccess,
upload_complete_handler : uploadComplete,
button_image_url : IMGDIR+"/uploadbutton_small_pic.png",
button_placeholder_id : imgid,
button_width: 26,
button_height: 26,
button_cursor:SWFUpload.CURSOR.HAND,
button_window_mode: "transparent",
custom_settings : {
progressTarget : pollstr,
uploadSource: 'forum',
uploadType: 'poll'
},
debug: false
});
<!--{else}-->
<!--{hook/post_poll_upload_extend}-->
<!--{/if}-->
}
</script>

View File

@@ -0,0 +1,71 @@
<div class="exfm cl">
<!--{if $_GET[action] == 'newthread'}-->
<label for="rewardprice">{lang reward_price}: </label>
<input type="text" name="rewardprice" id="rewardprice" class="px pxs" size="6" onkeyup="getrealprice(this.value)" value="{$_G['group']['minrewardprice']}" />
{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][2]][unit]}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][2]][title]}
, {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]}
<p class="mtn 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]}
</p>
<!--{elseif $_GET[action] == 'edit'}-->
<!--{if $isorigauthor}-->
<!--{if $thread['price'] > 0}-->
<label for="rewardprice">{lang reward_price}:</label>
<input type="text" name="rewardprice" id="rewardprice" class="px pxs" onkeyup="getrealprice(this.value)" size="6" value="$rewardprice" />
{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][2]][title]}
, {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]}
<p class="mtn 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]}
</p>
<!--{else}-->
{lang post_reward_resolved}
<input type="hidden" name="rewardprice" value="$rewardprice" />
<!--{/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}-->
<p class="mtn xg1">$_G['setting']['rewardexpiration'] {lang post_reward_message}</p>
<!--{/if}-->
<!--{hook/post_reward_extra}-->
</div>
<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) {
$('realprice').innerHTML = '<b>{lang reward_price_overflow}</b>';
}<!--{if $_GET[action] == 'edit'}--> else if(price < $rewardprice) {
$('realprice').innerHTML = '<b>{lang reward_cant_fall}</b>';
}<!--{/if}--> else if(price < $_G['group']['minrewardprice'] || ($_G['group']['maxrewardprice'] > 0 && price > $_G['group']['maxrewardprice'])) {
$('realprice').innerHTML = '<b>{lang reward_price_bound}</b>';
} else {
$('realprice').innerHTML = n;
}
}else{
$('realprice').innerHTML = '<b>{lang input_invalid}</b>';
}
}
if($('rewardprice')) {
getrealprice($('rewardprice').value)
}
EXTRAFUNC['validator']['special'] = 'validateextra';
function validateextra() {
if($('postform').rewardprice && $('postform').rewardprice.value == '') {
showDialog('{lang post_reward_error_message}', 'alert', '', function () { $('postform').rewardprice.focus() });
return false;
}
return true;
}
</script>

View File

@@ -0,0 +1,190 @@
<input type="hidden" name="selectsortid" size="45" value="$_G['forum_selectsortid']" />
<!--{if $_G['forum_typetemplate']}-->
<!--{if $_G['forum']['threadsorts']['description'][$_G['forum_selectsortid']] || $_G['forum']['threadsorts']['expiration'][$_G['forum_selectsortid']]}-->
<div class="sinf bw0">
<dl>
<!--{if $_G['forum']['threadsorts']['description'][$_G['forum_selectsortid']]}-->
<dt>{lang threadtype_description}</dt>
<dd>$_G[forum][threadsorts][description][$_G[forum_selectsortid]]</dd>
<!--{/if}-->
<!--{if $_G['forum']['threadsorts']['expiration'][$_G['forum_selectsortid']]}-->
<dt><span class="rq">*</span>{lang threadtype_expiration}</dt>
<dd>
<div class="ftid">
<select name="typeexpiration" id="typeexpiration">
<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>
<!--{if $_G['forum_optiondata']['expiration']}--><span class="fb">{lang valid_before}: $_G[forum_optiondata][expiration]</span><!--{/if}-->
</dd>
<!--{/if}-->
</dl>
</div>
<!--{/if}-->
$_G[forum_typetemplate]
<!--{else}-->
<table cellspacing="0" cellpadding="0" class="tfm">
<!--{if $_G['forum']['threadsorts']['description'][$_G['forum_selectsortid']]}-->
<tr>
<th class="ptm pbm bbda">{lang threadtype_description}</th>
<td class="ptm pbm bbda" colspan="2">$_G[forum][threadsorts][description][$_G[forum_selectsortid]]</td>
</tr>
<!--{/if}-->
<!--{if $_G['forum']['threadsorts']['expiration'][$_G['forum_selectsortid']]}-->
<tr>
<th class="ptm pbm bbda">{lang threadtype_expiration}</th>
<td class="ptm pbm bbda" colspan="2">
<div class="ftid">
<select name="typeexpiration" id="typeexpiration">
<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>
<!--{if $_G['forum_optiondata']['expiration']}-->{lang valid_before}: $_G[forum_optiondata][expiration]<!--{/if}-->
</td>
</tr>
<!--{/if}-->
<!--{loop $_G['forum_optionlist'] $optionid $option}-->
<tr>
<th class="ptm pbm bbda"><!--{if $option['required']}--><span class="rq">*</span><!--{/if}-->$option[title]</th>
<td class="ptm pbm bbda">
<div id="select_$option[identifier]">
<!--{if in_array($option['type'], array('number', 'text', 'email', 'calendar', 'image', 'url', 'range', 'upload', 'range'))}-->
<!--{if $option['type'] == 'calendar'}-->
<script type="text/javascript" src="{$_G['setting']['jspath']}calendar.js?{VERHASH}"></script>
<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]" onclick="showcalendar(event, this, false)" $option[unchangeable] class="px"/>
<!--{elseif $option['type'] == 'image'}-->
<!--{if !($option[unchangeable] && $option['value'])}-->
<button type="button" class="pn" onclick="uploadWindow(function (aid, url){sortaid_{$option[identifier]}_upload(aid, url)})"><em><!--{if $option['value']}-->{lang update}<!--{else}-->{lang upload}<!--{/if}--></em></button>
<input type="hidden" name="typeoption[{$option[identifier]}][aid]" value="$option[value][aid]" id="sortaid_{$option[identifier]}" />
<input type="hidden" name="sortaid_{$option[identifier]}_url" id="sortaid_{$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="sortattachurl_{$option[identifier]}" {if $option[value][url]}value="$option[value][url]"{/if} />
<!--{/if}-->
<div id="sortattach_image_{$option[identifier]}" class="ptn">
<!--{if $option['value']['url']}-->
<a href="$option[value][url]" target="_blank"><img class="spimg" src="$option[value][url]" alt="" /></a>
<!--{/if}-->
</div>
<script type="text/javascript" reload="1">
function sortaid_{$option[identifier]}_upload(aid, url) {
$('sortaid_{$option[identifier]}_url').value = url;
updatesortattach(aid, url, '{$_G['setting']['attachurl']}forum', '{$option[identifier]}');
}
</script>
<!--{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="ps">
<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 onchange="changeselectthreadsort(this.value, '$optionid');checkoption('$option[identifier]', '$option[required]', '$option[type]')" $option[unchangeable] class="ps">
<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="xl2">
<!--{loop $option['choices'] $id $value}-->
<li><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="xl2">
<!--{loop $option['choices'] $id $value}-->
<li><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">$option[value]</textarea>
<!--{/if}-->
$option[unit]
</div>
<!--{if $option['maxnum'] || $option['minnum'] || $option['maxlength'] || $option['unchangeable'] || $option[description]}-->
<div class="d">
<!--{if $option['maxnum']}-->
{lang maxnum} $option[maxnum]&nbsp;
<!--{/if}-->
<!--{if $option['minnum']}-->
{lang minnum} $option[minnum]&nbsp;
<!--{/if}-->
<!--{if $option['maxlength']}-->
{lang maxlength} $option[maxlength]&nbsp;
<!--{/if}-->
<!--{if $option['unchangeable']}-->
{lang unchangeable}&nbsp;
<!--{/if}-->
<!--{if $option[description]}-->
$option[description]
<!--{/if}-->
</div>
<!--{/if}-->
</td>
<td class="ptm pbm bbda" width="180"><span id="check{$option[identifier]}"></span></td>
</tr>
<!--{/loop}-->
</table>
<!--{/if}-->
<script type="text/javascript" reload="1">
var CHECKALLSORT = false;
function warning(obj, msg) {
obj.style.display = '';
obj.innerHTML = '<img src="{IMGDIR}/check_error.gif" width="16" height="16" class="vm" /> ' + msg;
obj.className = "warning";
if(CHECKALLSORT) {
showDialog(msg);
}
}
EXTRAFUNC['validator']['special'] = 'validateextra';
function validateextra() {
CHECKALLSORT = true;
<!--{loop $_G['forum_optionlist'] $optionid $option}-->
if(!checkoption('$option[identifier]', '$option[required]', '$option[type]')) {
return false;
}
<!--{/loop}-->
return true;
}
<!--{if $_G['forum']['threadsorts']['expiration'][$_G['forum_selectsortid']]}-->
simulateSelect('typeexpiration');
<!--{/if}-->
</script>

View File

@@ -0,0 +1,142 @@
<input type="hidden" name="trade" value="yes" />
<input type="hidden" name="item_type" value="1" />
<div class="exfm cl">
<div class="sinf sppoll z">
<dl>
<dt><span class="rq">*</span><label for="item_name">{lang post_trade_name}:</label></dt>
<dd><input type="text" name="item_name" id="item_name" class="px oinf" value="$trade[subject]" /></dd>
<dt><span class="rq">*</span><label for="item_number">{lang post_trade_number}:</label></dt>
<dd>
<div class="spmf">
<em>
<input type="text" name="item_number" id="item_number" class="px" value="$trade[amount]" />
</em>
<em>
<span class="ftid">
<select id="item_quality" class="ps" width="108" 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>
</span>
</em>
</div>
</dd>
<dt><label for="transport">{lang post_trade_transport}:</label></dt>
<dd>
<span class="ftid">
<select name="transport" id="transport" width="108" change="$('logisticssetting').style.display = $('transport').value == 'virtual' ? 'none' : ''" class="ps">
<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>
</span>
</dd>
<dt><span class="rq">*</span>{lang post_trade_price}:</dt>
<dd>
<div class="spmf mbm">
<em>
<input type="text" name="item_price" id="item_price" class="px" value="$trade[price]" />
<label for="item_price">{lang post_current_price}</label>
</em>
<em>
<input type="text" name="item_costprice" id="item_costprice" class="px" value="$trade[costprice]" />
<label for="item_costprice">{lang post_original_price}</label>
</em>
</div>
<!--{if $_G['setting']['creditstransextra'][5] != -1}-->
<div class="spmf mbm">
<em>
<input type="text" name="item_credit" id="item_credit" class="px" value="$trade[credit]" />
<label for="item_credit">{lang post_current_credit}({$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][5]][title]})</label>
</em>
<em>
<input type="text" name="item_costcredit" id="item_costcredit" class="px" value="$trade[costcredit]" />
<label for="item_costcredit">{lang post_original_credit}({$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][5]][title]})</label>
</em>
</div>
<!--{/if}-->
<div class="spmf3 mbm" id="logisticssetting" style="display:{if !$trade['transport'] || $trade['transport'] == 3}none{/if}">
<em>
<input type="text" name="postage_mail" id="postage_mail" class="px" value="$trade[ordinaryfee]" />
<label for="postage_mail">{lang post_trade_transport_mail}</label>
</em>
<em>
<input type="text" name="postage_express" id="postage_express" class="px" value="$trade[expressfee]" />
<label for="postage_express">{lang post_trade_transport_express}</label>
</em>
<em>
<input type="text" name="postage_ems" id="postage_ems" class="px" value="$trade[emsfee]" />
<label for="postage_ems">EMS</label>
</em>
</div>
</dd>
<dt><label for="paymethod">{lang post_trade_paymethod}:</label></dt>
<dd>
<span class="ftid">
<select name="paymethod" id="paymethod" width="108" change="display('tenpayseller')" class="ps">
<!--{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>
</span>
</dd>
</dl>
<dl id="tenpayseller" style="{if !$trade[tenpayaccount]}display:none{/if}">
<dt><label for="tenpay_account">{lang post_trade_tenpay_seller}:</label></dt>
<dd><input type="text" name="tenpay_account" id="tenpay_account" class="px" value="$trade[tenpayaccount]" /></dd>
</dl>
</div>
<div class="sadd z">
<dl class="cl">
<dt><label for="item_locus">{lang post_trade_locus}:</label></dt>
<dd><input type="text" name="item_locus" id="item_locus" class="px" value="$trade[locus]" /></dd>
<dt><label for="item_expiration">{lang valid_before}:</label></dt>
<dd class="hasd">
<input type="text" name="item_expiration" id="item_expiration" class="px" onclick="showcalendar(event, this, false)" autocomplete="off" value="$trade[expiration]" />
<a href="javascript:;" class="dpbtn" onclick="showselect(this, 'item_expiration', 1)">^</a>
</dd>
<!--{if $allowpostimg}-->
<dt>{lang post_trade_picture}:</dt>
<dd class="pns">
<button type="button" class="pn" onclick="uploadWindow(function (aid, url){tradeaid_upload(aid, url)})"><span><!--{if $tradeattach[attachment]}-->{lang update}<!--{else}-->{lang upload}<!--{/if}--></span></button>
<input type="hidden" name="tradeaid" id="tradeaid" {if $tradeattach[attachment]}value="$tradeattach[aid]" {/if}/>
<input type="hidden" name="tradeaid_url" id="tradeaid_url" />
<div id="tradeattach_image" class="ptn">
<!--{if $tradeattach[attachment]}-->
<a href="$tradeattach[url]/$tradeattach[attachment]" target="_blank"><img class="spimg" src="$tradeattach[url]/{if $tradeattach['thumb']}{eval echo getimgthumbname($tradeattach['attachment']);}{else}$tradeattach[attachment]{/if}" alt="" /></a>
<!--{/if}-->
</div>
</dd>
<!--{/if}-->
<!--{hook/post_trade_extra}-->
</dl>
</div>
</div>
<script type="text/javascript" reload="1">
simulateSelect('item_quality');
simulateSelect('paymethod');
simulateSelect('transport');
EXTRAFUNC['validator']['special'] = 'validateextra';
function validateextra() {
if($('postform').item_name.value == '') {
showDialog('{lang post_goods_error_message_1}', 'alert', '', function () { $('postform').item_name.focus() });
return false;
}
if($('postform').item_number.value == '') {
showDialog('{lang post_goods_error_message_2}', 'alert', '', function () { $('postform').item_number.focus() });
return false;
}
if($('postform').item_price.value == '' && $('postform').item_credit.value == '') {
showDialog('{lang post_goods_error_message_3}', 'alert', '', function () { $('postform').item_price.focus() });
return false;
}
return true;
}
function tradeaid_upload(aid, url) {
$('tradeaid_url').value = url;
updatetradeattach(aid, url, '{$_G['setting']['attachurl']}forum');
}
</script>

View File

@@ -0,0 +1,49 @@
<!--{template common/header}-->
<!--{if empty($_GET['infloat'])}-->
<div id="ct" class="wp cl">
<div class="mn">
<div class="bm bw0">
<!--{/if}-->
<form method="post" autocomplete="off" id="postappendform" action="forum.php?mod=misc&action=postappend&tid=$post[tid]&pid=$_GET[pid]&extra=$extra{if !empty($_GET[page])}&page=$_GET[page]{/if}&postappendsubmit=yes&infloat=yes" onsubmit="this.postappendmessage.value = parseurl(this.postappendmessage.value);{if !empty($_GET['infloat'])}ajaxpost('postappendform', 'return_$_GET['handlekey']', 'return_$_GET['handlekey']', 'onerror');return false;{/if}">
<div class="f_c">
<h3 class="flb">
<em id="return_$_GET['handlekey']">{lang postappend}</em>
<span>
<!--{if !empty($_GET['infloat'])}--><a href="javascript:;" class="flbc" onclick="hideWindow('$_GET['handlekey']')" title="{lang close}">{lang close}</a><!--{/if}-->
</span>
</h3>
<input type="hidden" name="formhash" id="formhash" value="{FORMHASH}" />
<input type="hidden" name="handlekey" value="$_GET['handlekey']" />
<div class="c{if empty($_GET['infloat'])} mbm{/if}">
<div class="tedt">
<div class="bar cm">
<!--{eval $seditor = array('postappend', array('bold', 'color'));}-->
<!--{subtemplate common/seditor}-->
<span id="itemdiv"></span>
</div>
<div class="area">
<textarea rows="2" cols="50" name="postappendmessage" id="postappendmessage" onKeyUp="strLenCalc(this, 'checklen_append')" onKeyDown="seditor_ctlent(event, '$(\'postappendsubmit\').click();')" class="pt" style="overflow: auto"></textarea>
</div>
<script type="text/javascript" reload="1">
$('postappendmessage').focus();
</script>
</div>
<!--{if $secqaacheck || $seccodecheck}-->
<!--{block sectpl}--><sec>: <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><!--{/block}-->
<div class="mtm"><!--{subtemplate common/seccheck}--></div>
<!--{/if}-->
</div>
<div class="o pns cl">
<button type="submit" id="postappendsubmit" class="pn pnc z" value="true" name="postappendsubmit"><span>{lang publish}</span></button>
<span class="y">{lang comment_message1} <strong id="checklen_append">200</strong> {lang comment_message2}</span>
</div>
</div>
</form>
<!--{if empty($_GET['infloat'])}-->
</div>
</div>
</div>
<!--{/if}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,173 @@
<!--{template common/header}-->
<!--{if empty($_GET['showratetip'])}-->
<!--{if empty($_GET['infloat'])}-->
<div id="pt" class="bm cl">
<div class="z"><a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em> $navigation</div>
</div>
<div id="ct" class="wp cl">
<div class="mn">
<div class="bm bw0">
<!--{/if}-->
<!--{if $_GET[action] == 'rate'}-->
<div class="tm_c" id="floatlayout_topicadmin">
<h3 class="flb">
<em id="return_rate">{lang rate}</em>
<span>
<!--{if !empty($_GET['infloat'])}--><a href="javascript:;" class="flbc" onclick="hideWindow('rate')" title="{lang close}">{lang close}</a><!--{/if}-->
</span>
</h3>
<form id="rateform" method="post" autocomplete="off" action="forum.php?mod=misc&action=rate&ratesubmit=yes&infloat=yes" onsubmit="ajaxpost('rateform', 'return_rate', 'return_rate', 'onerror');">
<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" />
<!--{if !empty($_GET['infloat'])}--><input type="hidden" name="handlekey" value="rate"><!--{/if}-->
<div class="c">
<table cellspacing="0" cellpadding="0" class="dt mbm">
<tr>
<th>&nbsp;</th>
<th width="65">&nbsp;</th>
<th width="65">{lang rate_raterange}</th>
<th width="55">{lang rate_todayleft}</th>
</tr>
<!--{eval $rateselfflag = 0;}-->
<!--{loop $ratelist $id $options}-->
<tr>
<td>{$_G['setting']['extcredits'][$id][img]} {$_G['setting']['extcredits'][$id][title]}</td>
<td>
<input type="text" name="score$id" id="score$id" class="px z" value="0" style="width: 25px;" />
<a href="javascript:;" class="dpbtn" onclick="showselect(this, 'score$id', 'scoreoption$id')">^</a>
<ul id="scoreoption$id" style="display:none">$options</ul>
</td>
<td>{$_G['group']['raterange'][$id]['min']} ~ {$_G['group']['raterange'][$id]['max']}</td>
<!--{eval $rateselfflag = $_G['group']['raterange'][$id]['isself'] ? 1 : $rateselfflag;}-->
<td>$maxratetoday[$id]</td>
</tr>
<!--{/loop}-->
</table>
<div class="tpclg">
<h4>{lang user_operation_explain}:</h4>
<table cellspacing="0" cellpadding="0" class="reason_slct">
<!--{eval $selectreason = modreasonselect(0, 'userreasons')}-->
<!--{if $selectreason}-->
<tr>
<td>
<ul id="reasonselect" class="reasonselect pt">$selectreason</ul>
<script type="text/javascript" reload="1">
var reasonSelectOption = $('reasonselect').getElementsByTagName('li');
if (reasonSelectOption) {
for (i=0; i<reasonSelectOption.length; i++) {
reasonSelectOption[i].onmouseover = function() { this.className = 'xi2 cur1'; }
reasonSelectOption[i].onmouseout = function() { this.className = ''; }
reasonSelectOption[i].onclick = function() {
$('reason').value = this.innerHTML;
}
}
}
</script>
</td>
</tr>
<!--{/if}-->
<tr>
<td><input type="text" name="reason" id="reason" class="px" onkeyup="seditor_ctlent(event, '$(\'rateform\').ratesubmit.click()')" /></td>
</tr>
</table>
</div>
<!--{if $rateselfflag}-->
<div class="xg1">{lang admin_rate}</div>
<!--{/if}-->
</div>
<p class="o pns">
<label for="sendreasonpm"><input type="checkbox" name="sendreasonpm" id="sendreasonpm" class="pc"{if $_G['group']['reasonpm'] == 2 || $_G['group']['reasonpm'] == 3} checked="checked" disabled="disabled"{/if} />{lang admin_pm}</label>
<button name="ratesubmit" type="submit" value="true" class="pn pnc"><span>{lang confirms}</span></button>
</p>
</form>
</div>
<!--{elseif $_GET[action] == 'removerate'}-->
<form id="rateform" method="post" autocomplete="off" action="forum.php?mod=misc&action=removerate&ratesubmit=yes&infloat=yes" onsubmit="ajaxpost('rateform', 'return_rate', 'return_rate', 'onerror');return false;">
<div class="f_c">
<h3 class="flb">
<em id="return_rate">{lang thread_removerate}</em>
<span>
<!--{if !empty($_GET['infloat'])}--><a href="javascript:;" class="flbc" onclick="hideWindow('rate')" title="{lang close}">{lang close}</a><!--{/if}-->
</span>
</h3>
<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" />
<!--{if !empty($_GET['infloat'])}--><input type="hidden" name="handlekey" value="rate"><!--{/if}-->
<div class="c floatwrap">
<table class="list" cellspacing="0" cellpadding="0">
<thead>
<tr>
<td>&nbsp;</td>
<td>{lang username}</td>
<td>{lang time}</td>
<td>{lang credits}</td>
<td>{lang reason}</td>
</tr>
</thead>
<!--{loop $ratelogs $ratelog}-->
<tr>
<td><input type="checkbox" name="logidarray[]" value="$ratelog[uid] $ratelog[extcredits] $ratelog[dbdateline]" /></td>
<td><a href="home.php?mod=space&uid=$ratelog[uid]">$ratelog[username]</a></td>
<td>$ratelog[dateline]</td>
<td>{$_G['setting']['extcredits'][$ratelog[extcredits]][title]} <span class="xw1">$ratelog[scoreview]</span> {$_G['setting']['extcredits'][$ratelog[extcredits]][unit]}</td>
<td>$ratelog[reason]</td>
</tr>
<!--{/loop}-->
</table>
</div>
</div>
<div class="o pns">
<label class="z" onclick="checkall(this.form, 'logid')"><input class="pc" type="checkbox" name="chkall" />{lang checkall}</label>
<label for="sendreasonpm"><input type="checkbox" name="sendreasonpm" id="sendreasonpm" class="pc"{if $_G['group']['reasonpm'] == 2 || $_G['group']['reasonpm'] == 3} checked="checked" disabled="disabled"{/if} />{lang admin_pm}</label>
{lang admin_operation_explain}: <input name="reason" class="px vm" />
<button class="pn pnc vm" type="submit" value="true" name="ratesubmit"><span>{lang submit}</span></button>
</div>
</form>
<!--{/if}-->
<script type="text/javascript" reload="1">
function succeedhandle_rate(locationhref) {
<!--{if !empty($_GET['from'])}-->
location.href = locationhref;
<!--{else}-->
ajaxget('forum.php?mod=viewthread&tid=$_G[tid]&viewpid={$_GET['pid']}', 'post_{$_GET['pid']}', 'post_{$_GET['pid']}');
hideWindow('rate');
<!--{/if}-->
}
loadcss('forum_moderator');
</script>
<!--{if empty($_GET['infloat'])}-->
</div>
</div>
</div>
<!--{/if}-->
<!--{else}-->
<h3 class="flb">
<em id="return_$_GET[handlekey]">{lang board_message}</em>
<!--{if $_G[inajax]}--><span><a href="javascript:;" onclick="hideWindow('$_GET[handlekey]');" class="flbc" title="{lang close}">{lang close}</a></span><!--{/if}-->
</h3>
<!--{if $_G[inajax]}--><input type="hidden" name="handlekey" value="$_GET[handlekey]" /><!--{/if}-->
<div class="c altw">
<div class="alert_right">
<p>{lang push_succeed}</p>
<p class="alert_btnleft">
<a href="javascript:;" class="xi1" onclick="hideWindow('$_GET[handlekey]');showWindow('rate', 'forum.php?mod=misc&action=rate&tid=$_GET[tid]&pid=$_GET[pid]', 'get', -1);return false;">{lang click_here}</a> {lang rate_thread}
</p>
</div>
</div>
<p class="o pns">
<button onclick="hideWindow('rate');" id="closebtn" class="pn pnc" type="button" fwin="rate"><strong>{lang close}</strong></button>
</p>
<!--{/if}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,51 @@
<!--{template common/header}-->
<!--{if empty($_GET['infloat'])}-->
<div id="pt" class="bm cl">
<div class="z"><a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em> $navigation</div>
</div>
<div id="ct" class="wp cl">
<div class="mn">
<div class="bm bw0">
<!--{/if}-->
<div class="f_c">
<h3 class="flb">
<em id="return_$_GET['handlekey']">{lang rate_view}</em>
<span>
<!--{if !empty($_GET['infloat'])}--><a href="javascript:;" class="flbc" onclick="hideWindow('$_GET['handlekey']')" title="{lang close}">{lang close}</a><!--{/if}-->
</span>
</h3>
<div class="c floatwrap">
<table class="list" cellspacing="0" cellpadding="0">
<thead>
<tr>
<td>{lang credits}</td>
<td>{lang username}</td>
<td>{lang time}</td>
<td>{lang reason}</td>
</tr>
</thead>
<!--{loop $loglist $log}-->
<tr>
<td>{$_G['setting']['extcredits'][$log[extcredits]][title]} $log[score] {$_G['setting']['extcredits'][$log[extcredits]][unit]}</td>
<td><a href="home.php?mod=space&uid=$log[uid]">$log[username]</a></td>
<td>$log[dateline]</td>
<td>$log[reason]</td>
</tr>
<!--{/loop}-->
</table>
</div>
</div>
<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>
<!--{if empty($_GET['infloat'])}-->
</div>
</div>
</div>
<!--{/if}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,32 @@
<!--{if $_G['forum']['recommendlist']['images'] && $_G['forum']['modrecommend']['imagenum']}-->
<div class="cl" style="width: {$_G[forum][modrecommend][imagewidth]}px; margin: 0 auto; float:left;">
<script type="text/javascript">
var slideSpeed = 5000;
var slideImgsize = [{$_G[forum][modrecommend][imagewidth]},{$_G['forum'][modrecommend][imageheight]}];
var slideBorderColor = '{$_G['style']['specialborder']}';
var slideBgColor = '{$_G['style']['commonbg']}';
var slideImgs = new Array();
var slideImgLinks = new Array();
var slideImgTexts = new Array();
var slideSwitchColor = '{$_G['style']['tabletext']}';
var slideSwitchbgColor = '{$_G['style']['commonbg']}';
var slideSwitchHiColor = '{$_G['style']['specialborder']}';
<!--{loop $_G['forum']['recommendlist']['images'] $k $imginfo}-->
slideImgs[<!--{echo $k+1}-->] = '$imginfo[filename]';
slideImgLinks[<!--{echo $k+1}-->] = 'forum.php?mod=viewthread&tid=$imginfo[tid]';
slideImgTexts[<!--{echo $k+1}-->] = '$imginfo[subject]';
<!--{/loop}-->
</script>
<script language="javascript" type="text/javascript" src="{$_G[setting][jspath]}forum_slide.js?{VERHASH}"></script>
</div>
<!--{/if}-->
<div class="cl"{if $_G['forum']['recommendlist']['images'] && $_G['forum']['modrecommend']['imagenum']} style="margin-left: {$_G[forum][modrecommend][imagewidth]}px; padding-left: 20px;"{/if}>
<!--{eval unset($_G['forum']['recommendlist']['images']);}-->
<ul class="xl{if !$_G['forum']['allowside']} xl2{/if} cl">
<!--{loop $_G['forum']['recommendlist'] $rtid $recommend}-->
<li>
<a href="forum.php?mod=viewthread&tid=$rtid" $recommend[subjectstyles] target="_blank">$recommend[subject]</a>
</li>
<!--{/loop}-->
</ul>
</div>

View File

@@ -0,0 +1,25 @@
<!--{template common/header}-->
<!--{if $return}-->
<script type="text/javascript">
var rnd='<!--{echo TIMESTAMP}-->';
var tagsplit = $('tags').value.split(',');
var inssplit = "$return";
var returnsplit = inssplit.split(',');
var result = '';
for(i in tagsplit) {
for(j in returnsplit) {
if(tagsplit[i] == returnsplit[j]) {
tagsplit[i] = '';break;
}
}
}
for(i in tagsplit) {
if(tagsplit[i] != '') {
result += tagsplit[i] + ',';
}
}
$('tags').value = result + "$return";
extraCheck(4);
</script>
<!--{/if}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,118 @@
<script type="text/javascript">
var forum_optionlist = <!--{if $forum_optionlist}-->'$forum_optionlist'<!--{else}-->''<!--{/if}-->;
</script>
<script type="text/javascript" src="{$_G['setting']['jspath']}threadsort.js?{VERHASH}"></script>
<!--{loop $quicksearchlist $optionid $option}-->
<!--{eval $formsearch = '';}-->
<!--{if getstatus($option['search'], 1)}-->
<!--{block formsearch}-->
<div style="{if $option['type'] == 'checkbox'}clear:left;padding-bottom: 5px;{else}float: left;width: 48%;height: 30px; overflow: hidden;{/if}">
<span style="padding-right: 1em;">$option[title]:</span>
<!--{if in_array($option['type'], array('radio', 'checkbox', 'select', 'range'))}-->
<span id="select_$option[identifier]">
<!--{if $option[type] == 'select'}-->
<!--{if $_GET[searchoption][$optionid][value]}-->
<script type="text/javascript">
changeselectthreadsort('$_GET[searchoption][$optionid][value]', $optionid, 'search');
</script>
<!--{else}-->
<select name="searchoption[$optionid][value]" id="$option[identifier]" onchange="changeselectthreadsort(this.value, '$optionid', 'search');" class="ps vm">
<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>
<input type="hidden" name="searchoption[$optionid][type]" value="$option[type]">
<!--{/if}-->
<!--{elseif $option[type] != 'checkbox'}-->
<select name="searchoption[$optionid][value]" id="$option[identifier]" class="ps vm">
<option value="0">{lang please_select}</option>
<!--{loop $option['choices'] $id $value}-->
<option value="$id" {if $_GET[searchoption][$optionid][value] == $id}selected="selected"{/if}>$value</option>
<!--{/loop}-->
</select>
<input type="hidden" name="searchoption[$optionid][type]" value="$option[type]">
<!--{else}-->
<!--{loop $option['choices'] $id $value}-->
<label><input type="checkbox" class="pc" name="searchoption[$optionid][value][$id]" value="$id" {if is_array($_GET[searchoption][$optionid]) && $_GET[searchoption][$optionid][value][$id]}checked="checked"{/if}>$value</label>
<!--{/loop}-->
<input type="hidden" name="searchoption[$optionid][type]" value="checkbox">
<!--{/if}-->
</span>
<!--{else}-->
<!--{if $option['type'] == 'calendar'}-->
<script type="text/javascript" src="{$_G[setting][jspath]}calendar.js?{VERHASH}"></script>
<input type="text" name="searchoption[$optionid][value]" size="15" class="px vm" value="{if is_array($_GET[searchoption][$optionid])}$_GET[searchoption][$optionid][value]{/if}" onclick="showcalendar(event, this, false)" />
<!--{else}-->
<input type="text" name="searchoption[$optionid][value]" size="15" class="px vm" value="{if is_array($_GET[searchoption][$optionid])}$_GET[searchoption][$optionid][value]{/if}" />
<!--{/if}-->
<!--{/if}-->
</div>
<!--{/block}-->
<!--{/if}-->
<!--{eval $formsearch_html .= $formsearch;}-->
<!--{eval $fontsearch = '';$showoption = array();$tmpcount = 0;}-->
<!--{if getstatus($option['search'], 2)}-->
<!--{block fontsearch}-->
<tr>
<th width="8%">$option[title]:</th>
<td>
<ul class="cl tbmu">
<li{if $_GET[''.$option[identifier]] == 'all'} class="a"{/if}><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=sortid&sortid=$_GET['sortid']&searchsort=1$filterurladd&$option[identifier]=all$sorturladdarray[$option[identifier]]" class="xi2">{lang unlimited}</a></li>
<!--{if $option[type] == 'select'}-->
<!--{loop $option['choices'] $id $value}-->
<!--{if $value[foptionid] == 0}-->
<li{if preg_match('/^'.$value[optionid].'\./i', $_GET[''.$option[identifier]]) || preg_match('/^'.$value[optionid].'$/i', $_GET[''.$option[identifier]])} class="a"{/if}><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=sortid&sortid=$_GET[sortid]&searchsort=1&$option[identifier]=$id$sorturladdarray[$option[identifier]]" class="xi2">$value[content]</a></li>
<!--{/if}-->
<!--{/loop}-->
<!--{if !($_GET[''.$option[identifier]] == 'all' || !isset($_GET[''.$option[identifier]]))}-->
<!--{loop $option['choices'] $id $value}-->
<!--{if (preg_match('/^'.$value[foptionid].'\./i', $_GET[''.$option[identifier]]) || preg_match('/^'.$value[foptionid].'$/i', $_GET[''.$option[identifier]])) && ($showoption[$value[count]][$id] = $value)}-->
<!--{/if}-->
<!--{/loop}-->
<!--{if ksort($showoption)}--><!--{/if}-->
<!--{loop $showoption $optioncount $values}-->
<!--{if $tmpcount != $optioncount && ($tmpcount = $optioncount)}-->
</ul><ul class="subtsm cl tbmu">
<!--{loop $values $id $value}-->
<li{if preg_match('/^'.$value[optionid].'\./i', $_GET[''.$option[identifier]]) || preg_match('/^'.$value[optionid].'$/i', $_GET[''.$option[identifier]])} class="a"{/if}><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=sortid&sortid=$_GET[sortid]&searchsort=1&$option[identifier]=$id$sorturladdarray[$option[identifier]]" class="xi2">$value[content]</a></li>
<!--{/loop}-->
</ul><ul>
<!--{/if}-->
<!--{/loop}-->
<!--{/if}-->
<!--{else}-->
<!--{loop $option['choices'] $id $value}-->
<li{if $_GET[''.$option[identifier]] && !strcmp($id, $_GET[''.$option[identifier]])} class="a"{/if}><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=sortid&sortid=$_GET[sortid]&searchsort=1&$option[identifier]=$id$sorturladdarray[$option[identifier]]" class="xi2">$value</a></li>
<!--{/loop}-->
<!--{/if}-->
</ul>
</td>
</tr>
<!--{/block}-->
<!--{/if}-->
<!--{eval $fontsearch_html .= $fontsearch;}-->
<!--{/loop}-->
<!--{if $formsearch_html || $fontsearch_html}-->
<div>
<!--{if $fontsearch_html}-->
<div class="ptn pbn mbm bbs">
<table id="fontsearch" class="tsm cl">
$fontsearch_html
</table>
</div>
<!--{/if}-->
<!--{if $formsearch_html}-->
<form method="post" autocomplete="off" name="searhsort" id="searhsort" class="bbs bm_c pns mfm cl" action="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=sortid&sortid=$_GET[sortid]">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<div class="ptm cl">$formsearch_html
<button type="submit" class="pn pnc" name="searchsortsubmit"><em>{lang search}</em></button></div>
</form>
<!--{/if}-->
</div>
<!--{/if}-->

View File

@@ -0,0 +1,2 @@
<!--{block sectpl}--><sec> <span id="sec<hash>" onclick="showMenu({if !empty($_GET['infloat'])}{'ctrlid':this.id,'win':'{$_GET['handlekey']}'}{else}this.id{/if})"><sec></span><div id="sec<hash>_menu" class="p_pop p_opt" style="display:none"><sec></div><!--{/block}-->
<div class="mtm"><!--{subtemplate common/seccheck}--></div>

View File

@@ -0,0 +1,79 @@
<!--{template common/header}-->
<div id="pt" class="bm cl">
<div class="z">
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a><em>&rsaquo;</em> {lang stats}
</div>
</div>
<div id="ct" class="ct2_a wp cl">
<div class="mn">
<div class="bm bw0">
<h1 class="mt">{lang stats_main}</h1>
<table summary="{lang stats_main_member}" class="dt bm mbw">
<caption><h2 class="mbn">{lang stats_main_member}</h2></caption>
<tr>
<th width="16%">{lang stats_main_members}</th>
<td width="34%">$members</td>
<th width="16%">{lang stats_main_posters}</th>
<td width="34%">$mempost</td>
</tr>
<tr>
<th>{lang stats_main_admins}</th>
<td>$admins</td>
<th>{lang stats_main_nonposters}</th>
<td>$memnonpost</td>
</tr>
<tr>
<th>{lang stats_main_new}</th>
<td>$lastmember</td>
<th>{lang stats_main_posters_percent}</th>
<td>$mempostpercent%</td>
</tr>
<tr>
<th>{lang stats_main_topposter}</th>
<td><!--{if $bestmemposts}-->$bestmem <em title="{lang stats_main_total_posted}">($bestmemposts)</em><!--{else}--><em>{lang none}</em><!--{/if}--></td>
<th>{lang stats_main_posts_avg}</th>
<td>$mempostavg</td>
</tr>
</table>
<table summary="{lang stats}" class="dt bm">
<caption><h2 class="mbn">{lang stats}</h2></caption>
<tr>
<th width="150">{lang stats_main_forums_count}</th>
<td width="60">$forums</td>
<th width="150">{lang stats_main_nppd}</th>
<td width="60">$postsaddavg</td>
<th width="150">{lang stats_main_hot_forum}</th>
<td><a href="forum.php?mod=forumdisplay&fid=$hotforum[fid]" target="_blank">$hotforum[name]</a></td>
</tr>
<tr>
<th>{lang stats_main_threads_count}</th>
<td>$threads</td>
<th>{lang stats_main_nmpd}</th>
<td>$membersaddavg</td>
<th>{lang stats_main_threads_count}</th>
<td>$hotforum[threads]</td>
</tr>
<tr>
<th>{lang stats_main_posts_count}</th>
<td>$posts</td>
<th>{lang stats_main_todays_newposts}</th>
<td>$postsaddtoday</td>
<th>{lang stats_main_posts_count}</th>
<td>$hotforum[posts]</td>
</tr>
<tr>
<th>{lang stats_main_rpt}</th>
<td>$threadreplyavg</td>
<th>{lang stats_main_members_count}</th>
<td>$membersaddtoday</td>
<th>{lang stats_main_board_activity}</th>
<td>$activeindex</td>
</tr>
</table>
<div class="notice">{lang stats_update}</div>
</div>
</div>
<!--{subtemplate common/stat}-->
</div>
<!--{template common/footer}-->

View File

@@ -0,0 +1,47 @@
<!--{template common/header}-->
<div id="pt" class="bm cl">
<div class="z">
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a><em>&rsaquo;</em>
<a href="misc.php?mod=stat">{lang stats}</a><em>&rsaquo;</em>
{lang member_list}
</div>
</div>
<div id="ct" class="ct2_a wp cl">
<div class="mn">
<div class="bm bw0">
<div class="cl">
<form method="post" action="misc.php?mod=stat&op=memberlist" class="mbm y">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="text" name="srchmem" class="px vm" size="15" />
&nbsp;<button type="submit" class="pn vm"><em>{lang search}</em></button>
</form>
<h1 class="mt">{lang member_list}</h1>
</div>
<table summary="{lang member_list}" class="dt bm">
<tr>
<th><a href="misc.php?mod=stat&op=memberlist&order=username{if !$_GET[asc]}&asc=1{/if}" class="showmenu">{lang username}</a></th>
<th><a href="misc.php?mod=stat&op=memberlist&order=uid{if !$_GET[asc]}&asc=1{/if}" class="showmenu">{lang uid}</a></th>
<th><a href="misc.php?mod=stat&op=memberlist&order=gender{if !$_GET[asc]}&asc=1{/if}" class="showmenu">{lang gender}</a></th>
<th><a href="misc.php?mod=stat&op=memberlist&order=regdate{if !$_GET[asc]}&asc=1{/if}" class="showmenu">{lang regdate}</a></th>
<th><a href="misc.php?mod=stat&op=memberlist&order=lastvisit{if !$_GET[asc]}&asc=1{/if}" class="showmenu">{lang lastvisit}</a></th>
<th><a href="misc.php?mod=stat&op=memberlist&order=posts{if !$_GET[asc]}&asc=1{/if}" class="showmenu">{lang posts}</a></th>
<th><a href="misc.php?mod=stat&op=memberlist&order=credits{if !$_GET[asc]}&asc=1{/if}" class="showmenu">{lang credits}</a></th>
</tr>
<!--{loop $memberlist $member}-->
<tr class="{echo swapclass('alt')}">
<td><a href="home.php?mod=space&uid=$member[uid]" class="xw1">$member[username]</a></td>
<td>$member[uid]</td>
<td><!--{if $member['gender'] == '1'}-->{lang male}<!--{elseif $member['gender'] == 2}-->{lang female}<!--{else}-->&nbsp;<!--{/if}--></td>
<td>$member[regdate]</td>
<td>$member[lastvisit]</td>
<td>$member[posts]</td>
<td>$member[credits]</td>
</tr>
<!--{/loop}-->
</table>
<!--{if !empty($multipage)}--><div class="pgs cl">$multipage</div><!--{/if}-->
</div>
</div>
<!--{subtemplate common/stat}-->
</div>
<!--{template common/footer}-->

View File

@@ -0,0 +1,240 @@
<!--{template common/header}-->
<div id="pt" class="bm cl">
<div class="z">
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a><em>&rsaquo;</em>
<a href="misc.php?mod=stat">{lang stats}</a><em>&rsaquo;</em>
<!--{if $op == 'views'}-->
{lang stats_views}
<!--{elseif $op == 'agent'}-->
{lang stats_agent}
<!--{elseif $op == 'posts'}-->
{lang stats_posthist}
<!--{elseif $op == 'modworks'}-->
{lang stats_modworks}
<!--{elseif $op == 'forumstat'}-->
{lang stats_forums_stat}
<!--{/if}-->
</div>
</div>
<div id="ct" class="ct2_a wp cl">
<div class="mn">
<!--{if $op == 'views'}-->
<div class="bm bw0">
<h1 class="mt">{lang stats_views}</h1>
<table summary="{lang stats_week}" class="dt bm">
<caption><h2 class="mbn">{lang stats_week}</h2></caption>
$statsbar_week
</table>
<table summary="{lang stats_hour}" class="dt bm">
<caption><h2 class="mbn">{lang stats_hour}</h2></caption>
$statsbar_hour
</table>
</div>
<!--{elseif $op == 'agent'}-->
<div class="bm bw0">
<h1 class="mt">{lang stats_agent}</h1>
<table summary="{lang stats_agent}" class="dt bm">
<caption><h2 class="mbn">{lang stats_os}</h2></caption>
$statsbar_os
</table>
<table summary="{lang stats_browser}" class="dt bm">
<caption><h2 class="mbn">{lang stats_browser}</h2></caption>
$statsbar_browser
</table>
</div>
<!--{elseif $op == 'posts'}-->
<div class="bm bw0">
<h1 class="mt">{lang stats_posthist}</h1>
<table summary="{lang stats_month_posts}" class="dt bm">
<caption><h2 class="mbn">{lang stats_month_posts}</h2></caption>
$statsbar_monthposts
</table>
<table summary="{lang stats_day_posts}" class="dt bm">
<caption><h2 class="mbn">{lang stats_day_posts}</h2></caption>
$statsbar_dayposts
</table>
<!--{elseif $op == 'forumstat' && !$_GET['fid']}-->
<div class="bm bw0">
<h1 class="mt">{lang stats_forums_stat}</h1>
<table summary="{lang stats_forum_stat}" class="dt bm">
<tr>
<th class="xw1">{lang stats_forums_forumname}</th>
<th class="xw1">{lang stats_main_posts_count}</th>
</tr>
<!--{loop $forums $forum}-->
<tr class="{echo swapclass('alt')}">
<td><a href="misc.php?mod=stat&op=forumstat&fid={$forum['fid']}">$forum['name']</a><!--{if $forum['type'] == 'sub'}--><span class="xg1"> ({lang stats_forums_sub})</span><!--{/if}--></td>
<td>$forum['posts']</td>
</tr>
<!--{/loop}-->
</table>
</div>
<!--{elseif $op == 'forumstat' && $_GET['fid']}-->
<div class="bm bw0">
<h1 class="mt">{lang stats_forum_stat_log} - $foruminfo[name] - $month</h1>
<script src="{STATICURL}js/echarts/echarts.common.min.js"></script>
<script src="{$_G['setting']['jspath']}stat.js"></script>
<div id="statchart"></div>
<script type="text/javascript">drawstatchart('{$statuspara}');</script>
<!--{if $logs}-->
<table summary="{lang stats_forum_stat_log}" class="dt bm mtw mbw">
<tr>
<th width="100">{lang stats_date}</th>
<th>{lang stats_main_total_posted}</th>
</tr>
<!--{loop $logs $log}-->
<tr>
<td>$log['logdate']</td>
<td>$log['value']</td>
</tr>
<!--{/loop}-->
</table>
<!--{/if}-->
<table class="dt bm">
<caption><h2 class="mbn">{lang stats_history} - $foruminfo[name]</h2></caption>
<tr>
<th width="100">{lang stats_forums_month}</th>
<th>{lang stats_main_total_posted}</th>
</tr>
<!--{loop $monthlist $month}-->
<tr>
<td><a href="misc.php?mod=stat&op=forumstat&fid={$_GET['fid']}&month=$month">$month</a></td>
<td>$monthposts[$month]</td>
</tr>
<!--{/loop}-->
</table>
</div>
<!--{elseif $op == 'modworks' && $uid}-->
<div class="bm bw0">
<h1 class="mt">{lang stats_modworks} - $username</h1>
<h3>$username {lang stats_modworks_in} {$starttime} {lang stats_modworks_to} {$endtime} {lang stats_modworks_data} &nbsp; <a href="misc.php?mod=stat&op=modworks&exportexcel=1&uid=$uid&modworks_starttime=$starttime&modworks_endtime=$endtime" class="xi2">[{lang stats_modworks_export}]</a></h3>
<ul class="ttp cl">
<!--{loop $monthlinks $link}-->
$link
<!--{/loop}-->
<li>
<script src="{$_G[setting][jspath]}calendar.js?{VERHASH}" type="text/javascript"></script>
<form action="misc.php?mod=stat&op=modworks&uid=$uid" method="post">
<input type="hidden" name="formhash" value="{FORMHASH}" />
{lang stats_modworks_timerange}: <input type="text" name="modworks_starttime" class="px vm" size="10" onclick="showcalendar(event, this, false)" autocomplete="off" /> {lang stats_modworks_to} <input type="text" name="modworks_endtime" class="px vm" size="10" onclick="showcalendar(event, this, false)" autocomplete="off" />
<button type="submit" class="pn vm" name="modworkssubmit" value="true"><em>{lang focus_show}</em></button>
</form>
</li>
</ul>
<div class="cl">
<div class="stl">
<table class="dt bm">
<tr>
<th>{lang time}</th>
</tr>
<!--{loop $modactions $day $modaction}-->
<tr class="{echo swapclass('alt')}">
<td>$day</td>
</tr>
<!--{/loop}-->
<tr>
<td>{lang stats_modworks_total}</td>
</tr>
</table>
</div>
<div class="str">
<table class="dt" style="width: 3000px;">
<tr>
<!--{loop $modactioncode $key $val}--><th width="$tdwidth">$val</th><!--{/loop}-->
<th width="$tdwidth">{lang stats_modworks_total}</th>
</tr>
<!--{eval unset($swapc);}-->
<!--{loop $modactions $day $modaction}-->
<tr class="{echo swapclass('alt')}">
<!--{loop $modactioncode $key $val}-->
<!--{if $modaction[$key]['posts']}--><td title="{lang posts}: $modaction[$key][posts]">$modaction[$key][count]<!--{else}--><td>&nbsp;<!--{/if}--></td>
<!--{/loop}-->
<td>$modaction[total]</td>
</tr>
<!--{/loop}-->
<tr>
<!--{loop $modactioncode $key $val}-->
<!--{if $totalactions[$key]['posts']}--><td class="{$bgarray[$key]}" title="{lang posts}: {$totalactions[$key][posts]}">$totalactions[$key][count]<!--{else}--><td>&nbsp;<!--{/if}--></td>
<!--{/loop}-->
<td>$totalactions[total]</td>
</tr>
</table>
</div>
</div>
</div>
<!--{elseif $op == 'modworks'}-->
<div class="bm bw0">
<h1 class="mt">{lang stats_modworks} - {lang stats_modworks_all}</h1>
<h3>{$starttime} {lang stats_modworks_to} {$endtime} {lang stats_modworks_data} &nbsp; <a href="misc.php?mod=stat&op=modworks&exportexcel=1&modworks_starttime=$starttime&modworks_endtime=$endtime" class="xi2">[{lang stats_modworks_export}]</a></h3>
<ul class="ttp cl">
<!--{loop $monthlinks $link}-->
$link
<!--{/loop}-->
<li>
<script src="{$_G[setting][jspath]}calendar.js?{VERHASH}" type="text/javascript"></script>
<form action="misc.php?mod=stat&op=modworks" method="post">
<input type="hidden" name="formhash" value="{FORMHASH}" />
{lang stats_modworks_timerange}: <input type="text" name="modworks_starttime" class="px vm" size="10" onclick="showcalendar(event, this, false)" autocomplete="off" /> {lang stats_modworks_to} <input type="text" name="modworks_endtime" class="px vm" size="10" onclick="showcalendar(event, this, false)" autocomplete="off" />
<button type="submit" class="pn vm" name="modworkssubmit" value="true"><em>{lang focus_show}</em></button>
</form>
</li>
</ul>
<div class="cl">
<div class="stl">
<table class="dt bm">
<tr>
<th>{lang username}</th>
</tr>
<!--{loop $members $uid $member}-->
<tr class="{echo swapclass('alt')}">
<td><a href="misc.php?mod=stat&op=modworks{if isset($_GET[before])}&before=$_GET[before]{/if}&uid=$uid{if $starttime || $endtime}&modworks_starttime=$starttime&modworks_endtime=$endtime{/if}" title="{lang stats_modworks_details}">{$member[username]}</a></td>
</tr>
<!--{/loop}-->
<!--{if $members}-->
<tr>
<td>{lang stats_modworks_total}</td>
</tr>
<!--{/if}-->
</table>
</div>
<div class="str">
<table class="dt" style="width: 3000px;">
<tr>
<!--{loop $modactioncode $key $val}--><th width="$tdwidth">$val</th><!--{/loop}-->
<th width="$tdwidth">{lang stats_modworks_total}</th>
</tr>
<!--{eval unset($swapc);}-->
<!--{loop $members $uid $member}-->
<tr class="{echo swapclass('alt')}">
<!--{loop $modactioncode $key $val}-->
<!--{if $member[$key]['posts']}--><td title="{lang posts}: {$member[$key]['posts']}">{$member[$key][count]}<!--{else}--><td>&nbsp;<!--{/if}--></td>
<!--{/loop}-->
<td>$member[total]</td>
</tr>
<!--{/loop}-->
<!--{if $members}-->
<tr>
<!--{loop $modactioncode $key $val}-->
<!--{if $total[$key]['posts']}--><td title="{lang posts}: {$total[$key]['posts']}">{$total[$key][count]}<!--{else}--><td>&nbsp;<!--{/if}--></td>
<!--{/loop}-->
<td>$total[total]</td>
</tr>
<!--{/if}-->
</table>
</div>
</div>
</div>
<!--{/if}-->
</div>
<!--{subtemplate common/stat}-->
</div>
<!--{template common/footer}-->

View File

@@ -0,0 +1,51 @@
<!--{if $op == 'modworks' && $uid}-->
{lang stats_modworks} - $username
<!--{echo "\r\n";}-->
{$starttime} {lang stats_modworks_to} {$endtime} {lang stats_modworks_data}
<!--{echo "\r\n";}-->
{lang time},
<!--{loop $modactioncode $key $val}-->
$val,<!--{/loop}-->
{lang stats_modworks_total}
<!--{echo "\n";}-->
<!--{loop $modactions $day $modaction}-->
$day,
<!--{loop $modactioncode $key $val}-->
<!--{if $modaction[$key]['posts']}-->$modaction[$key][count],<!--{else}-->,<!--{/if}-->
<!--{/loop}-->
$modaction[total]
<!--{echo "\n";}-->
<!--{/loop}-->
{lang stats_modworks_total},
<!--{loop $modactioncode $key $val}-->
<!--{if $totalactions[$key]['posts']}-->$totalactions[$key][count],<!--{else}-->,<!--{/if}-->
<!--{/loop}-->
$totalactions[total]
<!--{elseif $op == 'modworks'}-->
{lang stats_modworks} - {lang stats_modworks_all}
<!--{echo "\r\n";}-->
{$starttime} {lang stats_modworks_to} {$endtime} {lang stats_modworks_data}
<!--{echo "\r\n";}-->
{lang username},
<!--{loop $modactioncode $key $val}-->
$val,<!--{/loop}-->
{lang stats_modworks_total}
<!--{echo "\r\n";}-->
<!--{loop $members $uid $member}-->
<!--{eval echo strip_tags($member['username']);}-->,
<!--{loop $modactioncode $key $val}-->
<!--{if $member[$key]['posts']}-->{$member[$key][count]},<!--{else}-->,<!--{/if}-->
<!--{/loop}-->
$member[total]
<!--{echo "\n";}-->
<!--{/loop}-->
<!--{if $members}-->
{lang stats_modworks_total},
<!--{loop $modactioncode $key $val}-->
<!--{if $total[$key]['posts']}-->{$total[$key][count]},<!--{else}-->,<!--{/if}-->
<!--{/loop}-->
$total[total]
<!--{/if}-->
<!--{/if}-->

View File

@@ -0,0 +1,110 @@
<!--{template common/header}-->
<div id="pt" class="bm cl">
<div class="z">
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a><em>&rsaquo;</em>
<a href="misc.php?mod=stat">{lang stats}</a><em>&rsaquo;</em>
{lang stats_team}
</div>
</div>
<div id="ct" class="ct2_a wp cl">
<div class="mn">
<div class="bm bw0">
<h1 class="mt">{lang stats_team}</h1>
<!--{if $team['admins']}-->
<div id="team_admins_c" class="umh">
<h3 onclick="toggle_collapse('team_admins', 1, 1);">{lang stats_team_admins}</h3>
<div class="umh_act">
<p class="umh_cb" onclick="toggle_collapse('team_admins', 1, 1);">[ {lang open} ]</p>
</div>
</div>
<table summary="{lang stats_team_admins}" id="team_admins" class="dt bm mbw">
<tr>
<th>{lang username}</th>
<th>{lang admin_usergroup_title}</th>
<th>{lang admin_status}</th>
<th>{lang lastvisit}</th>
<th>{lang stats_team_offdays}</th>
<th>{lang credits}</th>
<th>{lang posts}</th>
<th width="50">{lang stats_posts_thismonth}</th>
<!--{if $_G[setting][modworkstatus]}--><th width="30">{lang stats_modworks_thismonth}</th><!--{/if}-->
<!--{if $_G[setting][oltimespan]}-->
<th width="50">{lang onlinetime_total}({lang hours})</th>
<th width="50">{lang onlinetime_thismonth}({lang hours})</th>
<!--{/if}-->
</tr>
<!--{loop $team['admins'] $uid}-->
<tr class="{echo swapclass('alt')}">
<td><a target="_blank" href="home.php?mod=space&uid=$uid">$team[members][$uid][username]</a></td>
<td>$team[members][$uid][grouptitle]</td>
<td><!--{if $team['members'][$uid]['adminid'] == 1}-->{lang admin}<!--{elseif $team['members'][$uid]['adminid'] == 2}-->{lang supermod}<!--{elseif $team['members'][$uid]['adminid'] == 3}-->{lang moderator}<!--{/if}--></td>
<td>$team[members][$uid][lastactivity]</td>
<td>$team[members][$uid][offdays]</td>
<td>$team[members][$uid][credits]</td>
<td>$team[members][$uid][posts]</td>
<td>$team[members][$uid][thismonthposts]</td>
<!--{if $_G[setting][modworkstatus]}-->
<td><a href="misc.php?mod=stat&op=modworks&uid=$uid">$team[members][$uid][modactions]</a></td>
<!--{/if}-->
<!--{if $_G[setting][oltimespan]}-->
<td>$team[members][$uid][totalol]</td>
<td>$team[members][$uid][thismonthol]</td>
<!--{/if}-->
</tr>
<!--{/loop}-->
</table>
<!--{/if}-->
<!--{loop $team['categories'] $category}-->
<div id="category_$category[fid]_c" class="umh">
<h3 onclick="toggle_collapse('category_$category[fid]', 1, 1);">$category[name]</h3>
<div class="umh_act">
<p class="umh_cb" onclick="toggle_collapse('category_$category[fid]', 1, 1);">[ {lang open} ]</p>
</div>
</div>
<table id="category_$category[fid]" summary="$category[fid]" class="dt bm mbw">
<tr>
<th>{lang forum}</th>
<th>{lang username}</th>
<th>{lang admin_usergroup_title}</th>
<th>{lang admin_status}</th>
<th>{lang lastvisit}</th>
<th>{lang stats_team_offdays}</th>
<th>{lang credits}</th>
<th>{lang posts}</th>
<th width="50">{lang stats_posts_thismonth}</th>
<th width="30">{lang stats_modworks_thismonth}</th>
<!--{if $_G['setting']['oltimespan']}-->
<th width="50">{lang onlinetime_total}({lang hours})</th>
<th width="50">{lang onlinetime_thismonth}({lang hours})</th>
<!--{/if}-->
</tr>
<!--{eval unset($swapc);}-->
<!--{loop $team['forums'][$category['fid']] $fid $forum}-->
<!--{loop $team['moderators'][$fid] $key $uid}-->
<tr class="{echo swapclass('alt')}">
<!--{if $key == 0}--><td rowspan="$forum[moderators]"><!--{if $forum[type] == 'group'}--><a href="forum.php?gid=$fid"><!--{else}--><a href="forum.php?mod=forumdisplay&fid=$fid"><!--{/if}-->$forum[name]</a></td><!--{/if}-->
<td><a href="home.php?mod=space&uid=$uid"><!--{if $forum['inheritedmod']}--><b>$team[members][$uid][username]</b><!--{else}-->$team[members][$uid][username]<!--{/if}--></a></td>
<td>$team[members][$uid][grouptitle]</td>
<td><!--{if $team['members'][$uid]['adminid'] == 1}-->{lang admin}<!--{elseif $team['members'][$uid]['adminid'] == 2}-->{lang supermod}<!--{elseif $team['members'][$uid]['adminid'] == 3}-->{lang moderator}<!--{/if}--></td>
<td>$team[members][$uid][lastactivity]</td>
<td>$team[members][$uid][offdays]</td>
<td>$team[members][$uid][credits]</td>
<td>$team[members][$uid][posts]</td>
<td>$team[members][$uid][thismonthposts]</td>
<td><!--{if $_G['setting']['modworkstatus']}--><a href="misc.php?mod=stat&op=modworks&uid=$uid">$team[members][$uid][modactions]</a><!--{else}-->N/A<!--{/if}--></td>
<!--{if $_G['setting']['oltimespan']}-->
<td>$team[members][$uid][totalol]</td>
<td>$team[members][$uid][thismonthol]</td>
<!--{/if}-->
</tr>
<!--{/loop}-->
<!--{/loop}-->
</table>
<!--{/loop}-->
<div class="notice">{lang stats_update}</div>
</div>
</div>
<!--{subtemplate common/stat}-->
</div>
<!--{template common/footer}-->

View File

@@ -0,0 +1,57 @@
<!--{template common/header}-->
<div id="pt" class="bm cl">
<div class="z">
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a><em>&rsaquo;</em>
<a href="misc.php?mod=stat">{lang stats}</a><em>&rsaquo;</em>
{lang stats_trade_rank}
</div>
</div>
<div id="ct" class="ct2_a wp cl">
<div class="mn">
<div class="bm bw0">
<h1 class="mt">{lang stats_trade_rank}</h1>
<!--{if $tradesums}-->
<table class="dt bm mbw">
<caption><h2 class="mbn">{lang trade_price_sort}</h2></caption>
<tr>
<th>{lang post_trade_name}</th>
<th width="160">{lang trade_seller}</th>
<th width="80">{lang trade_totalprice}({lang payment_unit})</th>
</tr>
<!--{loop $tradesums $tradesum}-->
<tr class="{echo swapclass('alt')}">
<td><a target="_blank" href="forum.php?mod=viewthread&do=tradeinfo&tid=$tradesum[tid]&pid=$tradesum[pid]">$tradesum[subject]</a></td>
<td><a target="_blank" href="space.php?uid=$tradesum[sellerid]">$tradesum[seller]</a></td>
<td>$tradesum[tradesum]</td>
</tr>
<!--{/loop}-->
</table>
<!--{/if}-->
<!--{if $totalitems}-->
<table class="dt bm">
<caption><h2 class="mbn">{lang trace_number_sort}</h2></caption>
<tr>
<th>{lang post_trade_name}</th>
<th width="160">{lang trade_seller}</th>
<th width="80">{lang trace_sell_number}</th>
</tr>
<!--{eval unset($swapc);}-->
<!--{loop $totalitems $totalitem}-->
<tr class="{echo swapclass('alt')}">
<td><a target="_blank" href="forum.php?mod=viewthread&do=tradeinfo&tid=$tradesum[tid]&pid=$tradesum[pid]">$totalitem[subject]</a></td>
<td><a target="_blank" href="space.php?uid=$totalitem[sellerid]">$totalitem[seller]</a></td>
<td>$totalitem[totalitems]</td>
</tr>
<!--{/loop}-->
</table>
<!--{/if}-->
<div class="notice">{lang stats_update}</div>
</div>
</div>
<div class="sd">
<!--{subtemplate common/stat}-->
</div>
</div>
<!--{template common/footer}-->

View File

@@ -0,0 +1,79 @@
<!--{template common/header}-->
<!--{if ($op == 'search')}-->
<!--{if $taglist}-->
<!--{loop $taglist $var}-->
<a href="javascript:;" onclick="if(this.className == 'xi2') { window.onbeforeunload = null; parent.document.getElementById('tags').value += parent.document.getElementById('tags').value == '' ? '$var[tagname]' : ',$var[tagname]'; doane(); this.className += ' marked'; }" class="xi2">$var[tagname]</a>
<!--{/loop}-->
<!--{else}-->
<p class="emp">{lang none_tag}</p>
<!--{/if}-->
<!--{elseif ($op == 'set')}-->
<!--{elseif ($op == 'manage')}-->
<h3 class="flb">
<em>{lang post_tag}</em>
</h3>
<div class="c bart">
<p>
<input type="text" name="tags" id="tags" class="px vm" value="$tags" size="60" />
<i class="fico-help fc-n vm" tip="{lang posttag_comment}" onmouseover="showTip(this)"></i>
<input type="hidden" name="tid" id="tid" value="$_GET[tid]" />
</p>
<!--{if $recent_use_tag}-->
<p class="mtn">{lang recent_use_tag}
<!--{eval $tagi = 0;}-->
<!--{loop $recent_use_tag $var}-->
<!--{if $tagi}-->, <!--{/if}--><a href="javascript:;" class="xi2" onclick="$('tags').value == '' ? $('tags').value += '$var' : $('tags').value += ',$var';">$var</a>
<!--{eval $tagi++;}-->
<!--{/loop}-->
</p>
<!--{/if}-->
</div>
<p class="o pns">
<button type="button" name="search_button" class="pn" value="false" onclick="tagset();"><strong>{lang submit}</strong></button>
<button type="button" id="closebtn" class="pn" onclick="hideWindow('$_GET[handlekey]');"><strong>{lang close}</strong></button>
</p>
<!--{else}-->
<h3 class="flb">
<em>{lang choosetag}</em>
<!--{if $_G[inajax]}--><span><a href="javascript:;" onclick="hideWindow('$_GET[handlekey]');" class="flbc" title="{lang close}">{lang close}</a></span><!--{/if}-->
</h3>
<div class="c bart">
<div class="pns mbn cl">
<input type="text" name="searchkey" id="searchkey" class="px vm" value="$searchkey" size="30" />&nbsp;
<button type="button" name="search_button" class="pn vm" value="false" onclick="tagsearch();"><em>{lang search}</em></button>
<i tip="{lang tag_search}" onmouseover="showTip(this)" class="fico-help fc-n vm"></i>
</div>
<div id="taglistarea" style="width: 400px;"></div>
</div>
<p class="o pns">
<button type="button" class="pn pnc" id="closebtn" onclick="hideWindow('$_GET[handlekey]');"><strong>{lang close}</strong></button>
</p>
<!--{/if}-->
<script type="text/javascript">
function tagsearch() {
$('taglistarea').innerHTML = '';
var searchkey = $('searchkey').value;
var url = 'forum.php?mod=tag&op=search&inajax=1&searchkey='+searchkey;
var x = new Ajax();
x.get(url, function(s){
if(s) {
$('taglistarea').innerHTML = s;
}
});
}
function tagset() {
var tags = $('tags').value;
var tid = $('tid').value;
tags = BROWSER.ie && document.charset == 'utf-8' ? encodeURIComponent(tags) : tags;
var url = 'forum.php?mod=tag&op=set&inajax=1&tags='+tags+'&tid='+tid+'&formhash={FORMHASH}';
var x = new Ajax();
x.get(url, function(s){
if(s) {
hideWindow('$_GET[handlekey]');
window.location.reload();
}
});
}
</script>
<!--{template common/footer}-->

View File

@@ -0,0 +1,458 @@
<!--{template common/header}-->
<!--{if empty($_GET['infloat'])}-->
<div id="pt" class="bm cl">
<div class="z"><a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em> $navigation</div>
</div>
<div id="ct" class="wp cl">
<div class="mn">
<div class="bm bw0">
<!--{/if}-->
<div class="tm_c" id="floatlayout_topicadmin">
<h3 class="flb">
<em id="return_mods">{lang admin_select_piece}</em>
<span>
<a href="javascript:;" class="flbc" onclick="hideWindow('mods')" title="{lang close}">{lang close}</a>
</span>
</h3>
<form id="moderateform" method="post" autocomplete="off" action="forum.php?mod=topicadmin&action=moderate&optgroup=$optgroup&modsubmit=yes&infloat=yes" onsubmit="ajaxpost('moderateform', 'return_mods', 'return_mods', 'onerror');return false;">
<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()}" />
<!--{if !empty($_GET['listextra'])}--><input type="hidden" name="listextra" value="$_GET['listextra']" /><!--{/if}-->
<!--{if !empty($_GET['infloat'])}--><input type="hidden" name="handlekey" value="$_GET['handlekey']" /><!--{/if}-->
<!--{loop $threadlist $thread}-->
<input type="hidden" name="moderate[]" value="$thread[tid]" />
<!--{/loop}-->
<div class="c">
<!--{if $_GET['optgroup'] == 1}-->
<ul class="tpcl">
<!--{if count($threadlist) > 1 || empty($defaultcheck[recommend])}-->
<!--{if $_G['group']['allowstickthread']}-->
<li id="itemcp_stick">
<table cellspacing="0" cellpadding="5" width="100%">
<tr>
<td width="15"><input type="checkbox" name="operations[]" class="pc" onclick="if(this.checked) switchitemcp('itemcp_stick')" value="stick" $defaultcheck[stick] /></td>
<td class="hasd">
<label onclick="switchitemcp('itemcp_stick')" class="labeltxt">{lang thread_stick}</label>
<div class="dopt">
<select class="ps" 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>
</td>
</tr>
<tr class="dopt">
<td>&nbsp;</td>
<td>
<p class="hasd">
<label for="expirationstick" class="labeltxt">{lang expire}</label>
<input onclick="showcalendar(event, this, true)" type="text" autocomplete="off" id="expirationstick" name="expirationstick" class="px" value="$expirationstick" />
<a href="javascript:;" class="dpbtn" onclick="showselect(this, 'expirationstick')">^</a>
</p>
</td>
</tr>
</table>
</li>
<!--{/if}-->
<!--{if $_G['group']['allowdigestthread']}-->
<li id="itemcp_digest">
<table cellspacing="0" cellpadding="5">
<tr>
<td width="15"><input type="checkbox" name="operations[]" class="pc" onclick="if(this.checked) switchitemcp('itemcp_digest')" value="digest" $defaultcheck[digest] /></td>
<td class="hasd">
<label onclick="switchitemcp('itemcp_digest')" class="labeltxt">{lang admin_digest_add}</label>
<div class="dopt">
<select 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>
</td>
</tr>
<tr class="dopt">
<td>&nbsp;</td>
<td>
<p class="hasd">
<label for="expirationdigest" class="labeltxt">{lang expire}</label>
<input onclick="showcalendar(event, this, true)" type="text" name="expirationdigest" id="expirationdigest" class="px" autocomplete="off" value="$expirationdigest" />
<a href="javascript:;" class="dpbtn" onclick="showselect(this, 'expirationdigest')">^</a>
</p>
</td>
</tr>
</table>
</li>
<!--{/if}-->
<!--{if $_G['group']['allowbumpthread']}-->
<li id="itemcp_bump">
<table cellspacing="0" cellpadding="5">
<tr>
<td width="15"><input type="checkbox" name="operations[]" class="pc" onclick="if(this.checked) switchitemcp('itemcp_bump')" value="bump" $defaultcheck[bump] /></td>
<td class="hasd">
<label onclick="switchitemcp('itemcp_bump')" class="labeltxt">{lang bump}</label>
</td>
</tr>
<tr class="dopt">
<td>&nbsp;</td>
<td>
<p class="hasd">
<label for="expirationbump" class="labeltxt">{lang expire}</label>
<input onclick="showcalendar(event, this, true)" type="text" name="expirationbump" id="expirationbump" class="px" autocomplete="off" value="" />
<a href="javascript:;" class="dpbtn" onclick="showselect(this, 'expirationbump')">^</a>
</p>
</td>
</tr>
</table>
</li>
<!--{/if}-->
<!--{if $_G['group']['allowhighlightthread']}-->
<li id="itemcp_highlight">
<table cellspacing="0" cellpadding="5">
<tr>
<td width="15"><input type="checkbox" name="operations[]" class="pc" onclick="if(this.checked) switchitemcp('itemcp_highlight')" value="highlight" $defaultcheck[highlight] /></td>
<td class="hasd">
<!--{eval $_G['forum_colorarray'] = array(1=>'#EE1B2E', 2=>'#EE5023', 3=>'#996600', 4=>'#3C9D40', 5=>'#2897C5', 6=>'#2B65B7', 7=>'#8F2A90', 8=>'#EC1282');}-->
<label onclick="switchitemcp('itemcp_highlight')" class="labeltxt">{lang thread_highlight}</label>
<div class="dopt">
<span class="hasd">
<input type="hidden" id="highlight_color" name="highlight_color" value="$colorcheck" />
<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]" />
<a href="javascript:;" id="highlight_color_ctrl" onclick="showHighLightColor('highlight_color')" class="pn colorwd"{if $colorcheck} style="background-color: $_G[forum_colorarray][$colorcheck]"{/if} /></a>
</span>
<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;" title="{lang e_bold}">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;" title="{lang e_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;" title="{lang e_underline}">U</a>
</div>
</td>
</tr>
<tr class="dopt">
<td>&nbsp;</td>
<td>
<p class="hasd">
<label for="expirationhighlight" class="labeltxt">{lang expire}</label>
<input type="text" name="expirationhighlight" id="expirationhighlight" class="px" onclick="showcalendar(event, this, true)" autocomplete="off" value="$expirationhighlight" />
<a href="javascript:;" class="dpbtn" onclick="showselect(this, 'expirationhighlight')">^</a>
</p>
</td>
</tr>
<tr class="dopt">
<td>&nbsp;</td>
<td>
<p class="hasd">
<label class="labeltxt">{lang backgroundcolor}:</label>
<input type="hidden" id="highlight_bgcolor" name="highlight_bgcolor" value="$highlight_bgcolor" />
<input type="button"{if $highlight_bgcolor} style="background-color: $highlight_bgcolor"{/if} value="" class="pn colorwd" onclick="createPalette('highlight_bgcolor_ctrl', 'highlight_bgcolor');" id="chighlight_bgcolor_ctrl">
</p>
</td>
</tr>
</table>
</li>
<!--{/if}-->
<!--{/if}-->
<!--{if $_G['group']['allowrecommendthread'] && !empty($_G['forum']['modrecommend']['open']) && $_G['forum']['modrecommend']['sort'] != 1}-->
<li id="itemcp_recommend">
<table cellspacing="0" cellpadding="5">
<tr>
<td width="15"><input type="checkbox" name="operations[]" class="pc" onclick="if(this.checked) switchitemcp('itemcp_recommend')" value="recommend" $defaultcheck[recommend] /></td>
<td>
<label onclick="switchitemcp('itemcp_recommend')" class="labeltxt">{lang recommend}</label>
<div class="dopt">
<label class="lb"><input type="radio" name="isrecommend" class="pr" value="1" checked="checked" />{lang recommend}</label>
<label><input type="radio" name="isrecommend" class="pr" value="0" />{lang admin_unrecommend}</label>
</div>
</td>
</tr>
<tr class="dopt">
<td>&nbsp;</td>
<td>
<p class="hasd">
<label for="expirationrecommend" class="labeltxt">{lang expire}</label>
<input type="text" name="expirationrecommend" id="expirationrecommend" class="px" onclick="showcalendar(event, this, true)" autocomplete="off" value="$expirationrecommend" />
<a href="javascript:;" class="dpbtn" onclick="showselect(this, 'expirationrecommend')">^</a>
</p>
</td>
</tr>
<!--{if $defaultcheck[recommend] && count($threadlist) == 1}-->
<input type="hidden" name="position" value="1" />
<tr class="dopt">
<td>&nbsp;</td>
<td>
<label for="reducetitle" class="labeltxt">{lang forum_recommend_reducetitle}</label>
<input type="text" name="reducetitle" id="reducetitle" class="px" style="width: 122px" value="$thread[subject]" />
</td>
</tr>
<!--{if $imgattach}-->
<tr class="dopt">
<td>&nbsp;</td>
<td>
<label class="labeltxt">{lang forum_recommend_image}</label>
<select name="selectattach" onchange="updateimginfo(this.value)" class="ps" style="width: 132px">
<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>
</td>
</tr>
<tr class="dopt">
<td>&nbsp;</td>
<td>
<label class="labeltxt">&nbsp;</label>
<img id="selectimg" src="{STATICURL}image/common/none.gif" width="120" height="80" />
<script type="text/javascript" reload="1">
var imgk = new Array();
<!--{loop $imgattach $imginfo}-->
<!--{eval $a = '\"\'\t\\""\\\''."\\\\";$k = getforumimg($imginfo['aid'], 1, 120, 80);}-->
imgk[{$imginfo[aid]}] = '$k';
<!--{/loop}-->
function updateimginfo(aid) {
if(aid) {
$('selectimg').src=imgk[aid];
} else {
$('selectimg').src='{STATICURL}image/common/none.gif';
}
}
<!--{if $selectattach}-->updateimginfo('$selectattach');<!--{/if}-->
</script>
</td>
</tr>
<!--{/if}-->
<!--{/if}-->
</table>
</li>
<!--{/if}-->
</ul>
<!--{elseif $_GET['optgroup'] == 2}-->
<div class="tplw">
<!--{if $operation != 'type'}-->
<input type="hidden" name="operations[]" value="move" />
<p class="mbn tahfx">
{lang admin_target}: <select name="moveto" id="moveto" class="ps vm" onchange="ajaxget('forum.php?mod=ajax&action=getthreadtypes&fid=' + this.value, 'threadtypes');if(this.value) {$('moveext').style.display='';} else {$('moveext').style.display='none';}">
$forumselect
</select>
</p>
<p class="mbn tahfx">
{lang admin_targettype}: <span id="threadtypes"><select name="threadtypeid" class="ps vm"><option value="0" /></option></select></span>
</p>
<ul class="llst" id="moveext" style="display:none;margin:5px 0;">
<li class="wide"><label><input type="radio" name="type" class="pr" value="normal" checked="checked" />{lang admin_move}</label></li>
<li class="wide"><label><input type="radio" name="type" class="pr" value="redirect" />{lang admin_move_hold}</label></li>
</ul>
<!--{else}-->
<!--{if $typeselect}-->
<input type="hidden" name="operations[]" value="type" />
<p>{lang types}: $typeselect</p>
<!--{else}-->
{lang admin_type_msg}<!--{eval $hiddensubmit = true;}-->
<!--{/if}-->
<!--{/if}-->
</div>
<!--{elseif $_GET['optgroup'] == 3}-->
<div class="tplw">
<ul class="llst">
<!--{if $operation == 'delete'}-->
<li>
<!--{if $_G['group']['allowdelpost']}-->
<input name="operations[]" type="hidden" value="delete"/>
<p>{lang admin_delthread_confirm}</p>
<!--{else}-->
<p>{lang admin_delthread_nopermission}</p>
<!--{/if}-->
</li>
<!--{elseif $operation == 'down' || $operation='bump'}-->
<li class="wide" id="itemcp_bump" style="border-top:1px solid #DDD;padding:0px 0 6px 0;">
<table cellspacing="0" cellpadding="5">
<tr>
<td width="15"><input type="radio" name="operations[]" class="pr" onclick="if(this.checked) switchitemcp('itemcp_bump');" value="bump" checked="checked"/></td>
<td class="hasd"><label onclick="switchitemcp('itemcp_bump');" class="labeltxt" style="width:50px;margin:5px 0 10px 0px;">{lang admin_bump}</label></td>
</tr>
<tr class="dopt">
<td>&nbsp;</td>
<td>
<p class="hasd">
<label for="expirationbump" class="labeltxt">{lang expire}</label>
<input onclick="showcalendar(event, this, true)" type="text" name="expirationbump" id="expirationbump" class="px" autocomplete="off" value="" />
<a href="javascript:;" class="dpbtn" onclick="showselect(this, 'expirationbump')">^</a>
</p>
</td>
</tr>
</table>
</li>
<li class="wide" id="itemcp_down" style="padding:0px 0 0px 0;height:28px;">
<table cellspacing="0" cellpadding="5">
<tr>
<td width="15"><input type="radio" name="operations[]" class="pr" onclick="if(this.checked) switchitemcp('itemcp_down');" value="down"/></td>
<td class="hasd"><label onclick="switchitemcp('itemcp_down');" class="labeltxt" style="width:50px;margin:5px 0 10px 0px;">{lang admin_down}</label></td>
</tr>
<!--
<tr class="dopt">
<td>&nbsp;</td>
<td>
<p class="hasd">
<label for="expirationdown" class="labeltxt">{lang expire}</label>
<input onclick="showcalendar(event, this, true)" type="text" name="expirationdown" id="expirationdown" class="px" autocomplete="off" value="" />
<a href="javascript:;" class="dpbtn" onclick="showselect(this, 'expirationdown')">^</a>
</p>
</td>
</tr>
-->
</table>
</li>
<!--{/if}-->
</ul>
<!--{if $operation == 'delete'}-->
<!--{if ($modpostsnum == 1 || $authorcount == 1) && $crimenum > 0}-->
<br /><div style="clear: both; text-align: right;">{lang topicadmin_crime_delpost_nums}</div>
<!--{/if}-->
<!--{/if}-->
</div>
<!--{elseif $_GET['optgroup'] == 4}-->
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td>{lang expire}:&nbsp;</td>
<td>
<p class="hasd">
<input type="text" name="expirationclose" id="expirationclose" class="px" onclick="showcalendar(event, this, true)" autocomplete="off" value="$expirationclose" />
<a href="javascript:;" class="dpbtn" onclick="showselect(this, 'expirationclose')">^</a>
</p>
</td>
</tr>
<tr>
<td colspan="2" style="padding: 5px 0;">
<ul class="llst">
<li class="wide"><label><input type="radio" name="operations[]" class="pr" value="open" $closecheck[0] onclick="$('expirationclose').value='';" />{lang admin_open}</label></li>
<li class="wide"><label><input type="radio" name="operations[]" class="pr" value="close" $closecheck[1] />{lang admin_close}</label></li>
</ul>
</td>
</tr>
</table>
<!--{elseif $_GET['optgroup'] == 5}-->
<div class="tplw">
<!--{if $operation == 'recommend_group'}-->
<input type="hidden" name="operations[]" value="recommend_group" />
<p class="mbn tahfx">
{lang admin_target}: <select id="moveto" name="moveto" class="ps vm">
$forumselect
</select>
</p>
<!--{/if}-->
</div>
<!--{/if}-->
<div class="tpclg">
<!--{if empty($hiddensubmit)}-->
<h4 class="cl"><a onclick="showselect(this, 'reason', 'reasonselect')" class="dpbtn" href="javascript:;">^</a><span>{lang admin_reason}:</span></h4>
<p>
<textarea id="reason" name="reason" class="pt" onkeyup="seditor_ctlent(event, '$(\'modsubmit\').click();')" rows="3"></textarea>
</p>
<ul id="reasonselect" style="display: none"><!--{echo modreasonselect()}--></ul>
<!--{/if}-->
</div>
</div>
<!--{if empty($hiddensubmit)}-->
<!--{if $_GET['optgroup'] == 3 && $operation == 'delete' && $_G['group']['allowbanuser']}-->
<div class="c">
<div class="tpclg">
<h4 class="cl">
<p class="y">
<label for="userban"><input type="checkbox" name="banuser" id="userban" class="pc" />{lang topicadmin_banuser}</label>
<label for="userdelpost"><input type="checkbox" name="userdelpost" id="userdelpost" class="pc" />{lang topicadmin_userdelpost}</label>
</p>
<span>{lang topicadmin_useropt}:</span>
</h4>
</div>
</div>
<!--{/if}-->
<p class="o pns">
<!--{if $_GET['optgroup'] == 3 && $operation == 'delete'}-->
<label for="crimerecord"><input type="checkbox" name="crimerecord" id="crimerecord" class="pc" />{lang crimerecord}</label>
<!--{/if}-->
<label for="sendreasonpm"><input type="checkbox" name="sendreasonpm" id="sendreasonpm" class="pc"{if $_G['group']['reasonpm'] == 2 || $_G['group']['reasonpm'] == 3} checked="checked" disabled="disabled"{/if} />{lang admin_pm}</label>
<button type="submit" name="modsubmit" id="modsubmit" class="pn pnc" value="{lang confirms}"><span>{lang confirms}</span></button>
</p>
<!--{/if}-->
</form>
</div>
<script type="text/javascript" src="{$_G[setting][jspath]}calendar.js?{VERHASH}" reload="1"></script>
<script type="text/javascript" reload="1">
function succeedhandle_mods(locationhref) {
hideWindow('mods');
<!--{if !empty($_GET[from])}-->
location.href = 'forum.php?mod=viewthread&tid=$_GET[from]&extra=$_GET[listextra]';
<!--{else}-->
location.href = locationhref;
<!--{/if}-->
}
var lastsel = null;
function switchitemcp(id) {
if(lastsel) {
lastsel.className = '';
}
$(id).className = 'copt';
lastsel = $(id);
}
<!--{if !empty($operation)}-->
if($('itemcp_$operation')) {
switchitemcp('itemcp_$operation');
}
<!--{/if}-->
function switchhl(obj, v) {
if(parseInt($('highlight_style_' + v).value)) {
$('highlight_style_' + v).value = 0;
obj.className = obj.className.replace(/ cnt/, '');
} else {
$('highlight_style_' + v).value = 1;
obj.className += ' cnt';
}
}
function showHighLightColor(hlid) {
var showid = hlid + '_ctrl';
if(!$(showid + '_menu')) {
var str = '';
var coloroptions = {'0' : '#000', '1' : '#EE1B2E', '2' : '#EE5023', '3' : '#996600', '4' : '#3C9D40', '5' : '#2897C5', '6' : '#2B65B7', '7' : '#8F2A90', '8' : '#EC1282'};
var menu = document.createElement('div');
menu.id = showid + '_menu';
menu.className = 'cmen';
menu.style.display = 'none';
for(var i in coloroptions) {
str += '<a href="javascript:;" onclick="$(\'' + hlid + '\').value=' + i + ';$(\'' + showid + '\').style.backgroundColor=\'' + coloroptions[i] + '\';hideMenu(\'' + menu.id + '\')" style="background:' + coloroptions[i] + ';color:' + coloroptions[i] + ';">' + coloroptions[i] + '</a>';
}
menu.innerHTML = str;
$('append_parent').appendChild(menu);
}
showMenu({'ctrlid':hlid + '_ctrl','evt':'click','showid':showid});
}
if($('moveto')) {
ajaxget('forum.php?mod=ajax&action=getthreadtypes&fid=' + $('moveto').value, 'threadtypes');if($('moveto').value) {$('moveext').style.display='';} else {$('moveext').style.display='none';}
}
</script>
<!--{if empty($_GET['infloat'])}-->
</div>
</div>
</div>
<!--{/if}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,241 @@
<!--{template common/header}-->
<!--{if empty($_GET['infloat'])}-->
<div id="pt" class="bm cl">
<div class="z"><a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em> $navigation</div>
</div>
<div id="ct" class="wp cl">
<div class="mn">
<div class="bm bw0">
<!--{/if}-->
<div class="tm_c" id="floatlayout_topicadmin">
<h3 class="flb">
<em id="return_mods"><!--{if in_array($_GET[action], array('delpost', 'banpost', 'warn', 'stickreply'))}-->{lang admin_select_piece}<!--{elseif $_GET['action'] == 'delcomment'}-->{lang topicadmin_select_comment}<!--{else}-->{lang admin_select_one_piece}<!--{/if}--></em>
<span>
<a href="javascript:;" class="flbc" onclick="{if $_GET[action] == 'stamp'}if ($('threadstamp')) $('threadstamp').innerHTML = oldthreadstamp;{/if}hideWindow('mods')" title="{lang close}">{lang close}</a>
</span>
</h3>
<form id="topicadminform" method="post" autocomplete="off" action="forum.php?mod=topicadmin&action=$_GET[action]&modsubmit=yes&infloat=yes&modclick=yes" onsubmit="ajaxpost('topicadminform', 'return_mods', 'return_mods', 'onerror');return false;">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="fid" value="$_G[fid]">
<input type="hidden" name="tid" value="$_G[tid]">
<!--{if !empty($_GET['page'])}--><input type="hidden" name="page" value="$_GET['page']" /><!--{/if}-->
<!--{if !empty($_GET['infloat'])}--><input type="hidden" name="handlekey" value="$_GET['handlekey']" /><!--{/if}-->
<div class="c">
<div class="{if $_GET[action] != 'split'}tplw{else}tpmh{/if}">
<!--{if $_GET[action] == 'delpost'}-->
$deleteid
{lang admin_delposts}
<!--{if ($modpostsnum == 1 || $authorcount == 1) && $crimenum > 0}-->
<br /><div style="clear: both; text-align: right;">{lang topicadmin_crime_delpost_nums}</div>
<!--{/if}-->
<!--{elseif $_GET[action] == 'delcomment'}-->
$deleteid
{lang topicadmin_delet_comment}
<!--{elseif $_GET[action] == 'restore'}-->
<input type="hidden" name="archiveid" value="$archiveid" />
{lang admin_threadsplit_restore}
<!--{elseif $_GET[action] == 'copy'}-->
<p class="mbn tahfx">
{lang admin_target}: <select name="copyto" id="copyto" class="ps vm" onchange="ajaxget('forum.php?mod=ajax&action=getthreadtypes&fid=' + this.value, 'threadtypes')">
$forumselect
</select>
</p>
<p class="mbn tahfx">
{lang admin_targettype}: <span id="threadtypes"><select name="threadtypeid" class="ps vm"><option value="0" /></option></select></span>
</p>
<!--{elseif $_GET[action] == 'banpost'}-->
$banid
<ul class="llst">
<li><label><input type="radio" name="banned" class="pr" value="1" $checkban />{lang admin_banpost}</label></li>
<li><label><input type="radio" name="banned" class="pr" value="0" $checkunban />{lang admin_unbanpost}</label></li>
</ul>
<!--{if ($modpostsnum == 1 || $authorcount == 1) && $crimenum > 0}-->
<br /><div style="clear: both; text-align: right;">{lang topicadmin_crime_banpost_nums}</div>
<!--{/if}-->
<!--{elseif $_GET[action] == 'warn'}-->
$warnpid
<ul class="llst">
<li><label><input type="radio" name="warned" class="pr" value="1" $checkwarn />{lang topicadmin_warn_add}</label></li>
<li><label><input type="radio" name="warned" class="pr" value="0" $checkunwarn />{lang topicadmin_warn_delete}</label></li>
</ul>
<!--{if ($modpostsnum == 1 || $authorcount == 1) && $authorwarnings > 0}-->
<br /><div style="clear: both; text-align: right;" title="{lang topicadmin_warn_prompt}">{lang topicadmin_warn_nums}</div>
<!--{/if}-->
<!--{elseif $_GET[action] == 'merge'}-->
<table cellspacing="0" cellpadding="0">
<tr>
<td><label for="othertid">{lang admin_merge} &larr;</label></td>
<td>{lang admin_merge_tid}</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input type="text" name="othertid" id="othertid" class="px" size="10" /></td>
</tr>
</table>
<!--{elseif $_GET[action] == 'refund'}-->
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<th>{lang pay_buyers}</th>
<td>$payment[payers]</td>
</tr>
<tr>
<th>{lang pay_author_income}</th>
<td>$payment[income] {$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][unit]}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][title]}</td>
</tr>
</table>
<!--{elseif $_GET[action] == 'split'}-->
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td><label for="subject">{lang admin_split_newsubject}</label></td>
</tr>
<tr>
<td><input type="text" name="subject" id="subject" class="px" size="20" /></td>
</tr>
<tr>
<td><label for="split">{lang admin_split_comment}</label></td>
</tr>
<tr>
<td><textarea name="split" id="split" class="pt" style="width: 212px; height:120px" /></textarea></td>
</tr>
</table>
<!--{elseif $_GET[action] == 'live'}-->
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td>
<ul class="llst">
<li><label><input type="radio" name="live" class="pr" value="1" <!--{if $_G[forum][livetid] != $_G[tid]}-->checked<!--{/if}-->/>{lang admin_live}</label></li>
<li><label><input type="radio" name="live" class="pr" value="0" <!--{if $_G[forum][livetid] == $_G[tid]}-->checked<!--{/if}-->/>{lang admin_live_cancle}</label></li>
</ul>
</td>
</tr>
<tr>
<td><br>{lang admin_live_tips}</td>
</tr>
</table>
<!--{elseif $_GET[action] == 'stamp'}-->
<p>{lang admin_stamp_select}:</p>
<p class="tah_body">
<select name="stamp" id="stamp" class="ps" 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>
</p>
<script type="text/javascript" reload="1">
if($('threadstamp')) {
var oldthreadstamp = $('threadstamp').innerHTML;
}
var stampurls = new Array();
<!--{loop $_G['cache']['stamps'] $stampid $stamp}-->
stampurls[$stampid] = '$stamp[url]';
<!--{/loop}-->
function updatestampimg() {
if($('threadstamp')) {
$('threadstamp').innerHTML = $('stamp').value ? '<img src="{STATICURL}image/stamp/' + stampurls[$('stamp').value] + '">' : '<img src="{STATICURL}image/common/none.gif">';
}
}
</script>
<!--{elseif $_GET[action] == 'stamplist'}-->
<p>{lang admin_stamplist_select}:</p>
<p class="tah_body mbm">
<select name="stamplist" id="stamplist" class="ps" 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>
</p>
<p class="tah_body" id="stamplistprev"></p>
<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 ? $('stamplist').value : icon;
if($('stamplistprev')) {
$('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'}-->
$stickpid
<ul class="llst">
<li><label><input type="radio" name="stickreply" class="pr" value="1"{if empty($_GET['undo'])} checked="checked"{/if}/>{lang admin_stickreply} </label></li>
<li><label><input type="radio" name="stickreply" class="pr" value="0"{if !empty($_GET['undo'])} checked="checked"{/if}/>{lang admin_unstickreply} </label></li>
</ul>
<!--{/if}-->
</div>
<div class="tpclg">
<h4>
<a onclick="showselect(this, 'reason', 'reasonselect')" class="dpbtn y" href="javascript:;">^</a>
{lang admin_operation_explain}:
</h4>
<p><textarea name="reason" id="reason" class="pt" onkeyup="seditor_ctlent(event, '$(\'modsubmit\').click()')"></textarea></p>
<ul id="reasonselect" style="display: none"><!--{echo modreasonselect()}--></ul>
</div>
</div>
<!--{if $_GET[action] == 'delpost' && $_G['group']['allowbanuser']}-->
<div class="c">
<div class="tpclg">
<h4 class="cl">
<p class="y">
<label for="userban"><input type="checkbox" name="banuser" id="userban" class="pc" />{lang topicadmin_banuser}</label>
<label for="userdelpost"><input type="checkbox" name="userdelpost" id="userdelpost" class="pc" />{lang topicadmin_userdelpost}</label>
</p>
<span>{lang topicadmin_useropt}:</span>
</h4>
</div>
</div>
<!--{/if}-->
<div class="o pns">
<!--{if $_GET[action] == 'delpost'}-->
<label for="crimerecord"><input type="checkbox" name="crimerecord" id="crimerecord" class="pc" />{lang crimerecord}</label>
<!--{/if}-->
<label for="sendreasonpm"><input type="checkbox" name="sendreasonpm" id="sendreasonpm" class="pc"{if $_G['group']['reasonpm'] == 2 || $_G['group']['reasonpm'] == 3} checked="checked" disabled="disabled"{/if} />{lang admin_pm}</label>
<button type="submit" name="modsubmit" id="modsubmit" value="ture" class="pn pnc"><span>{lang confirms}</span></button>
</div>
</form>
</div>
<script type="text/javascript" reload="1">
function succeedhandle_mods(locationhref) {
<!--{if $_GET[action] == 'delcomment'}-->
ajaxget('forum.php?mod=misc&action=commentmore&tid=$_G[tid]&pid=$pid', 'comment_$pid');
hideWindow('mods');
<!--{elseif $_GET[action] == 'banpost' || $_GET[action] == 'warn'}-->
<!--{loop $topiclist $pid}-->
ajaxget('forum.php?mod=viewthread&tid=$_G[tid]&viewpid=$pid&modclick=yes', 'post_$pid', 'post_$pid');
if($('topiclist_$pid')) {
$('modactions').removeChild($('topiclist_$pid'));
}
<!--{/loop}-->
hideWindow('mods');
resetmodcount();
<!--{else}-->
hideWindow('mods');
location.href = locationhref;
<!--{/if}-->
}
if($('copyto')) {
ajaxget('forum.php?mod=ajax&action=getthreadtypes&fid=' + $('copyto').value, 'threadtypes');
}
</script>
<!--{if empty($_GET['infloat'])}-->
</div>
</div>
</div>
<!--{/if}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,7 @@
<!--{template common/header}-->
<b>$member[useip]{if $member[port]}:$member[port]{/if}</b> $member[iplocation]
<!--{if $_G['group']['allowviewip']}-->
<br /><a href="admin.php?action=members&operation=ipban&ip=$member[useip]&frames=yes" target="_blank" class="xg2">{lang admin_ban_this_ip}</a>
<a href="admin.php?action=members&operation=search&regip=$member[useip]&submit=yes&frames=yes" target="_blank" class="xg2">{lang admin_user_this_ip}</a>
<!--{/if}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,52 @@
<div id="mdly" style="display: none;{if $_G['forum']['picstyle']} margin-top: 20px;{/if}">
<input type="hidden" name="optgroup" />
<input type="hidden" name="operation" />
<a class="cp" href="javascript:;" title="{lang minimize}" onclick="$('mdly').className='cpd'">{lang minimize}</a>
<label><input type="checkbox" name="chkall" class="pc" onclick="if(!($('mdct').innerHTML = modclickcount = checkall(this.form, 'moderate'))) {$('mdly').style.display = 'none';}" />{lang checkall}</label>
<h6><span>{lang admin_select}</span><strong onclick="$('mdly').className='';" onmouseover="this.title='{lang maximize}'" id="mdct"></strong><span>{lang piece}: </span></h6>
<p>
<!--{if $_G['group']['allowdelpost']}-->
<strong><a href="javascript:;" onclick="tmodthreads(3, 'delete');return false;">{lang delete}</a></strong>
<span class="pipe">|</span>
<!--{/if}-->
<!--{if $_G['group']['allowmovethread'] && $_G['forum']['status'] != 3}-->
<strong><a href="javascript:;" onclick="tmodthreads(2, 'move');return false;">{lang thread_moved}</a></strong>
<span class="pipe">|</span>
<!--{/if}-->
<!--{if $_G['group']['allowedittypethread']}-->
<strong><a href="javascript:;" onclick="tmodthreads(2, 'type');return false;">{lang types}</a></strong>
<!--{/if}-->
<!--{if $_G['forum']['status'] == 3 && in_array($_G['adminid'], array('1','2'))}-->
<span class="pipe">|</span>
<strong><a href="javascript:;" onclick="tmodthreads(5, 'recommend_group');return false;">{lang topicadmin_recommend_forum}</a></strong>
<!--{/if}-->
<!--{if CURMODULE == 'forumdisplay'}-->
<!--{hook/forumdisplay_modlayer}-->
<!--{elseif CURMODULE == 'modcp'}-->
<!--{hook/modcp_modlayer}-->
<!--{/if}-->
</p>
<p>
<!--{if $_G['group']['allowstickthread']}-->
<a href="javascript:;" onclick="tmodthreads(1, 'stick');return false;">{lang thread_stick}</a>
<!--{/if}-->
<!--{if $_G['group']['allowdigestthread']}-->
<a href="javascript:;" onclick="tmodthreads(1, 'digest');return false;">{lang thread_digest}</a>
<!--{/if}-->
<!--{if $_G['group']['allowhighlightthread']}-->
<a href="javascript:;" onclick="tmodthreads(1, 'highlight');return false;">{lang thread_highlight}</a>
<!--{/if}-->
<!--{if $_G['group']['allowrecommendthread'] && $_G['forum']['modrecommend']['open'] && $_G['forum']['modrecommend']['sort'] != 1}-->
<a href="javascript:;" onclick="tmodthreads(1, 'recommend');return false;">{lang recommend}</a>
<!--{/if}-->
<!--{if $_G['group']['allowbumpthread'] || $_G['group']['allowclosethread']}-->
<span class="pipe">|</span>
<!--{/if}-->
<!--{if $_G['group']['allowbumpthread']}-->
<a href="javascript:;" onclick="tmodthreads(3, 'bump');return false;">{lang admin_bump_down}</a>
<!--{/if}-->
<!--{if $_G['forum']['status'] != 3 && $_G['group']['allowclosethread']}-->
<a href="javascript:;" onclick="tmodthreads(4);return false;">{lang admin_openclose}</a>
<!--{/if}-->
</p>
</div>

View File

@@ -0,0 +1,178 @@
<!--{template common/header}-->
<div id="pt" class="bm cl">
<div class="z"><a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em> {lang trade_confirm_buy}</div>
</div>
<div id="ct" class="ct2 wp cl">
<h1 class="mt">{lang trade_confirm_goods}</h1>
<div class="mn">
<script type="text/javascript" src="{$_G[setting][jspath]}forum_viewthread.js?{VERHASH}"></script>
<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}-->
</script>
<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="bm">
<h3 class="bm_h">{lang trade_confirm_buy}</h3>
<div class="torder bm_c cl">
<div class="spvimg">
<!--{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}-->
</div>
<div class="spi cl">
<dl>
<dt>{lang trade_price}</dt>
<dd>
<!--{if $trade[price] > 0}-->
&nbsp;<strong>$trade[price]</strong>&nbsp;{lang payment_unit}
<!--{/if}-->
<!--{if $_G['setting']['creditstransextra'][5] != -1 && $trade[credit]}-->
&nbsp;{$_G[setting][extcredits][$_G['setting']['creditstransextra'][5]][title]}&nbsp;<strong>$trade[credit]</strong>&nbsp;{$_G[setting][extcredits][$_G['setting']['creditstransextra'][5]][unit]}
<!--{/if}-->
</dd>
<!--{if $trade[locus]}-->
<dt>{lang post_trade_locus}</dt><dd>$trade[locus]</dd><!--{/if}-->
<dt>{lang trade_seller}</dt><dd><a href="home.php?mod=space&uid=$trade[sellerid]" target="_blank">$trade[seller]</a></dd>
</dl>
</div>
<table summary="{lang trade_confirm_buy}" cellspacing="0" cellpadding="0" class="tfm">
<tr>
<th>{lang trade_credits_total}</th>
<td>
<!--{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}-->
</td>
</tr>
<tr>
<th><label for="number">{lang trade_nums}</label></th>
<td><input type="text" id="number" name="number" onkeyup="calcsum()" value="1" class="pt" /></td>
</tr>
<tr>
<th>{lang post_trade_transport}</th>
<td>
<p>
<!--{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}-->
</p>
<!--{if $trade['transport'] == 1 or $trade['transport'] == 2 or $trade['transport'] == 4}-->
<!--{if !empty($trade['ordinaryfee'])}--><label class="lb"><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}--><!--{/if}-->
<!--{if !empty($trade['expressfee'])}--><label class="lb"><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}--><!--{/if}-->
<!--{if !empty($trade['emsfee'])}--><label class="lb"><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}--><!--{/if}-->
<!--{/if}-->
</td>
</tr>
<tr>
<th>{lang trade_paymethod}</th>
<td>
<!--{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 class="lb"><input type="radio" class="pr" name="offline" value="0" checked="checked" />{lang trade_pay_alipay}</label>
<label class="lb"><input type="radio" class="pr" name="offline" value="1" />{lang trade_pay_offline}</label>
<!--{/if}-->
</td>
</tr>
<!--{if $trade['transport'] != 3}-->
<tr>
<th><label for="buyername">{lang trade_buyername}</label></th>
<td><input type="text" id="buyername" name="buyername" maxlength="50" value="$lastbuyerinfo[buyername]" class="pt" /></td>
</tr>
<tr>
<th><label for="buyercontact">{lang trade_buyercontact}</label></th>
<td><input type="text" id="buyercontact" name="buyercontact" maxlength="100" size="40" value="$lastbuyerinfo[buyercontact]" class="pt" /></td>
</tr>
<tr>
<th><label for="buyerzip">{lang trade_buyerzip}</label></th>
<td><input type="text" id="buyerzip" name="buyerzip" maxlength="10" value="$lastbuyerinfo[buyerzip]" class="pt" /></td>
</tr>
<tr>
<th><label for="buyerphone">{lang trade_buyerphone}</label></th>
<td><input type="text" id="buyerphone" name="buyerphone" maxlength="20" value="$lastbuyerinfo[buyerphone]" class="pt" /></td>
</tr>
<tr>
<th><label for="buyermobile">{lang trade_buyermobile}</label></th>
<td><input type="text" id="buyermobile" name="buyermobile" maxlength="20" value="$lastbuyerinfo[buyermobile]" class="pt" /></td>
</tr>
<!--{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}-->
<tr>
<th valign="top"><label for="buyermsg">{lang trade_seller_remark}</label></th>
<td>
<textarea id="buyermsg" name="buyermsg" rows="5" class="pt"></textarea>
<div class="xg2">{lang trade_seller_remark_comment}</div>
</td>
</tr>
<tr>
<th>&nbsp;</th>
<td class="pns">
<button class="pn pnc" type="submit" id="tradesubmit" name="tradesubmit" value="true"><span>{lang trade_buy_confirm}</span></button>
<!--{if !$_G['uid']}--><em class="xg2">{lang trade_guest_alarm}</em><!--{/if}-->
</td>
</tr>
</table>
</div>
</div>
</form>
<script type="text/javascript">
function calcsum() {
<!--{if $trade[price] > 0}-->$('caculate').innerHTML = (price * $('tradepost').number.value + feevalue);<!--{/if}-->
<!--{if $_G['setting']['creditstransextra'][5] != -1 && $trade[credit]}-->
v = (credit * $('tradepost').number.value + feevalue);
if(v > currentcredit) {
$('crediterror').innerHTML = '{lang trade_buy_crediterror}';
$('tradesubmit').disabled = true;
} else {
$('crediterror').innerHTML = '';
}
$('caculatecredit').innerHTML = v;
<!--{/if}-->
}
calcsum();
</script>
</div>
<div class="sd">
<!--{if $usertrades}-->
<div class="bm">
<h3 class="bm_h">$trade[seller] {lang trade_recommended_goods}</h3>
<div class="bm_c">
<ul class="ml tradl cl">
<!--{loop $usertrades $usertrade}-->
<li>
<a href="forum.php?mod=viewthread&tid=$usertrade[tid]&do=tradeinfo&pid=$usertrade[pid]" class="tn">
<!--{if $usertrade['displayorder'] > 0}--><em class="hot">{lang post_trade_sticklist}</em><!--{/if}-->
<!--{if $usertrade['aid']}--><img src="{echo getforumimg($usertrade[aid])}" width="130" alt="$usertrade[subject]" /><!--{else}--><div class="nophoto" title="$usertrade[subject]"></div><!--{/if}-->
</a>
<!--{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}-->
<h4><a href="forum.php?mod=viewthread&tid=$usertrade[tid]&do=tradeinfo&pid=$usertrade[pid]">$usertrade[subject]</a></h4>
</li>
<!--{/loop}-->
</ul>
</div>
</div>
<!--{/if}-->
</div>
</div>
<!--{template common/footer}-->

View File

@@ -0,0 +1,106 @@
<!--{template common/header}-->
<!--{if empty($_GET['infloat'])}-->
<div id="pt" class="bm cl">
<div class="z"><a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em> $navigation</div>
</div>
<div id="ct" class="wp cl">
<div class="mn">
<div class="bm bw0">
<!--{/if}-->
<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 < $('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 < $('tradeform').elements.length; i++) {
var e = tradeform.elements[i];
if(e.name.match('stick') && e.disabled) {
e.disabled = false;
}
}
}
}
</script>
<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}"{if !empty($_GET['infloat'])} onsubmit="ajaxpost('tradeform', 'return_$_GET['handlekey']', 'return_$_GET['handlekey']', 'onerror');return false;"{/if}>
<div class="f_c">
<h3 class="flb">
<em id="return_$_GET['handlekey']">{lang trade_displayorder}</em>
<span>
<!--{if !empty($_GET['infloat'])}--><a href="javascript:;" class="flbc" onclick="hideWindow('$_GET['handlekey']')" title="{lang close}">{lang close}</a><!--{/if}-->
</span>
</h3>
<input type="hidden" name="formhash" value="{FORMHASH}" />
<!--{if !empty($_GET['infloat'])}--><input type="hidden" name="handlekey" value="$_GET['handlekey']" /><!--{/if}-->
<div class="c">
<table class="list" cellspacing="0" cellpadding="0" style="width: 700px">
<thead class="th">
<tr>
<td>{lang trade_show_order}</td>
<td style="width: 30px;">{lang trade_update_stick}</td>
<th>{lang post_trade_name}</th>
<td>{lang post_trade_price}</td>
<td style="width: 80px;">{lang trade_remaindays}</td>
<td style="width: 40px;"></td>
</tr>
</thead>
<!--{loop $trades $trade}-->
<tr>
<td><input size="1" name="displayorder[{$trade[pid]}]" value="$trade[displayorderview]" class="px pxs" /></td>
<td><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} /></td>
<th>$trade[subject]</th>
<td>
<!--{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}-->
</td>
<td>
<!--{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}-->
</td>
<td><a href="forum.php?mod=post&action=edit&fid=$thread[fid]&tid=$_G[tid]&pid=$trade[pid]" target="_blank">{lang edit}</a></td>
</tr>
<!--{/loop}-->
</table>
</div>
</div>
<!--{if empty($_GET['infloat'])}--><div class="m_c"><!--{/if}-->
<div class="o pns">
<span class="z">{lang trade_update_stickmax} {$_G['group']['tradestick']}</span>
<button class="pn pnc" type="submit" name="tradesubmit" value="true"><span>{lang save}</span></button>
</div>
<!--{if empty($_GET['infloat'])}--></div><!--{/if}-->
</form>
<script type="text/javascript" reload="1">
function succeedhandle_$_GET['handlekey'](locationhref) {
location.href = locationhref;
}
</script>
<!--{if empty($_GET['infloat'])}-->
</div>
</div>
</div>
<!--{/if}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,272 @@
<!--{template common/header}-->
<!--{if $postlist[$post[pid]]['invisible'] != 0}-->
<div class="trdb">{lang post_trade_removed}</div>
<!--{template common/footer}-->
{eval exit;}
<!--{/if}-->
<!--{if !$_G[inajax]}-->
<script type="text/javascript" src="{$_G[setting][jspath]}forum_viewthread.js?{VERHASH}"></script>
<div id="pt" class="bm cl">
<div class="z">
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a>$navigation <em>&rsaquo;</em> <!--{if $_GET[from]=='home'}--><a href="home.php?mod=space&do=trade">{lang trade}</a> <em>&rsaquo;</em><!--{/if}--> <a href="forum.php?mod=viewthread&tid=$_G[tid]">{lang user_threads}</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 id="ct" class="wp ct2 cl">
<div class="mn">
<div class="bm bw0">
<div class="ih cl bbda">
<div class="icn avt"><a href="home.php?mod=space&uid=$trade[sellerid]"><!--{avatar($trade['sellerid'], 'small')}--></a></div>
<dl>
<dt class="ptn">
<span class="y">
<a href="home.php?mod=spacecp&ac=pm&op=showmsg&handlekey=showmsg_$post[authorid]&touid=$post[authorid]&pmid=0&daterange=2" onclick="showWindow('sendpm', this.href)" style="font-weight: 200"><i class="fico-email fc-p"></i>{lang send_pm}</a>&nbsp;
<!--{if $post['qq']}-->&nbsp;<a href="//wpa.qq.com/msgrd?v=3&uin=$post[qq]&site=$_G['setting']['bbname']&menu=yes&from=discuz" target="_blank" title="QQ"><img src="{IMGDIR}/qq.gif" alt="QQ" style="vertical-align:middle" /></a><!--{/if}-->
<!--{if $post['icq']}-->&nbsp;<a href="//wwp.icq.com/scripts/search.dll?to=$post[icq]" target="_blank" title="ICQ"><img src="{IMGDIR}/icq.gif" alt="ICQ" style="vertical-align:middle" /></a><!--{/if}-->
<!--{if $post['yahoo']}-->&nbsp;<a href="//edit.yahoo.com/config/send_webmesg?.target=$post[yahoo]&.src=pg" target="_blank" title="Yahoo"><img src="{IMGDIR}/yahoo.gif" alt="Yahoo!" style="vertical-align:middle" /></a><!--{/if}-->
<!--{if $post['taobao']}-->&nbsp;<a href="javascript:;" onclick="window.open('//amos.im.alisoft.com/msg.aw?v=2&uid='+encodeURIComponent('$post[taobaoas]')+'&site=cntaobao&s=2&charset=utf-8')" title="{lang taobao}"><img src="{IMGDIR}/taobao.gif" alt="{lang taobao}" style="vertical-align:middle" /></a><!--{/if}-->
</span>
$trade[seller]
<!--{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" alt="$verify[title]" title="$verify[title]" /><!--{else}-->$verify[title]<!--{/if}--></a>&nbsp;
<!--{/if}-->
<!--{/loop}-->
<!--{/if}-->
<!--{if $online}--> <span title="{lang on_line}" class="olicon vm"></span><!--{/if}-->
</dt>
<dd class="mtn"><a href="forum.php?mod=viewthread&tid=$_G[tid]{if $_GET[from]}&from=$_GET[from]{/if}">$_G['forum_thread'][subject]</a> <em>&rsaquo;</em> {lang trade_viewtrade}</dd>
</dl>
</div>
<!--{if $_G[inajax]}--><span class="y"><a href="javascript:;" onclick="$('tradeinfo$trade[pid]').style.display = 'none';display('trade$trade[pid]');" title="{lang pack_up}"><i class="fico-remove fic4 fc-s vm" alt=""></i>{lang pack_up}</a></span><!--{/if}-->
<h1 class="ph mtm"><a href="forum.php?mod=viewthread&tid=$_G[tid]&do=tradeinfo&pid=$post[pid]{if !empty($_GET[modthreadkey])}&modthreadkey=$_GET[modthreadkey]{/if}" target="_blank">$trade[subject]</a></h1>
<!--{/if}-->
<div class="bbda ptm act cl"{if $_G[inajax]} style="border:0"{/if}>
<div class="cl">
<div class="spvimg">
<!--{if $trade['displayorder'] > 0}--><em class="hot">{lang post_trade_sticklist}</em><!--{/if}-->
<!--{if $trade['thumb']}-->
<a href="javascript:;"><img src="$trade[thumb]" onclick="zoom(this, '$trade[attachurl]')" width="{if $trade[width] > 300}300{else}$trade[width]{/if}" _width="300" _height="300" alt="$trade[subject]" /></a>
<!--{else}-->
<div class="nophoto" title="$trade[subject]"></div>
<!--{/if}-->
<!--{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']}-->
<p class="ptm pbm">
<!--{if $_G['forum']['ismoderator'] && $_G['group']['allowdelpost']}--><span class="y"><a href="javascript:;" onclick="modaction('delpost', $_GET[pid])">{lang delete}</a>&nbsp;&nbsp;<!--{/if}--><!--{if $_G['forum']['picstyle'] && ($_G['forum']['ismoderator'] || ($_G['uid'] == $_G['thread']['authorid'] && $_G['forum_thread']['closed'] == 0))}--><a onclick="showWindow('setcover_$trade[aid]',this.href)" href="forum.php?mod=ajax&action=setthreadcover&aid=$trade[aid]&fid=$_G[fid]">{lang set_cover}</a>&nbsp;&nbsp;<!--{/if}--></span>
<a class="xi1 xw1" 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"><i class="fico-edit"></i>{lang edit_trade}</a>
</p>
<!--{/if}-->
<!--{/if}-->
</div>
<div class="spi cl">
<!--{if $_G[inajax]}-->
<span class="y"><a href="javascript:;" onclick="$('tradeinfo$trade[pid]').style.display = 'none';display('trade$trade[pid]');" title="{lang pack_up}"><i class="fico-remove fic4 fc-s vm" alt=""></i>{lang pack_up}</a></span>
<h4 class="wx mbm bbda"><a href="forum.php?mod=viewthread&tid=$_G[tid]&do=tradeinfo&pid=$post[pid]{if !empty($_GET[modthreadkey])}&modthreadkey=$_GET[modthreadkey]{/if}" target="_blank">$trade[subject]</a></h4>
<!--{/if}-->
<dl>
<dt>{lang trade_type_viewthread}:</dt>
<dd>
<!--{if $trade['quality'] == 1}-->{lang trade_new}<!--{/if}-->
<!--{if $trade['quality'] == 2}-->{lang trade_old}<!--{/if}-->
{lang trade_type_buy}
</dd>
<dt>{lang trade_transport}:</dt>
<dd>
<!--{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}-->
</dd>
<dt>{lang trade_remaindays}:</dt>
<dd>
<!--{if $trade[closed]}-->
<em>{lang trade_timeout}</em>
<!--{elseif $trade[expiration] > 0}-->
{$trade[expiration]} {lang days} {$trade[expirationhour]} {lang trade_hour}
<!--{elseif $trade[expiration] == 0}-->
{$trade[expirationhour]} {lang trade_hour}
<!--{elseif $trade[expiration] == -1}-->
<em>{lang trade_timeout}</em>
<!--{else}-->
&nbsp;
<!--{/if}-->
</dd>
<dt>{lang post_trade_number}:</dt><dd>$trade[amount]</dd>
<!--{if $trade[locus]}--><dt>{lang trade_locus}:</dt><dd>$trade[locus]</dd><!--{/if}-->
<dt>{lang post_trade_buynumber}:</dt><dd>$trade[totalitems]</dd>
</dl>
<dl class="nums">
<dt>{lang trade_price}:</dt>
<dd>
<!--{if $trade[price] > 0}-->
<p><em>$trade[price]</em>&nbsp;{lang payment_unit}</p>
<!--{/if}-->
<!--{if $_G['setting']['creditstransextra'][5] != -1 && $trade[credit]}-->
<p><!--{if $trade[price] > 0}-->{lang trade_additional} <!--{/if}--><em>$trade[credit]</em>&nbsp;{$_G[setting][extcredits][$_G['setting']['creditstransextra'][5]][unit]}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][5]][title]}</p>
<!--{/if}-->
</dd>
</dl>
<dl>
<!--{if $trade[price] && $trade['costprice'] > 0 || $_G['setting']['creditstransextra'][5] != -1 && $trade[credit] && $trade['costcredit'] > 0}-->
<dt>{lang trade_costprice}:</dt>
<dd class="xg1">
<!--{if $trade['costprice'] > 0}-->
<del>$trade[costprice] {lang payment_unit}</del><br />
<!--{/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}-->
</dd>
<!--{/if}-->
<!--{hook/viewthread_tradeinfo_extra}-->
</dl>
<!--{if $post['authorid'] != $_G['uid'] && empty($thread['closed']) && $trade[expiration] > -1}-->
<p class="pns mbm">
<!--{if $trade[amount]}-->
<button onclick="{if $_G['uid']}window.open('forum.php?mod=trade&tid=$post[tid]&pid=$post[pid]','','');{else}showWindow('login', 'member.php?mod=logging&action=login&guestmessage=yes');{/if}" class="pn"><span>{lang attachment_buy}</span></button> &nbsp;
<!--{else}-->
<button disabled="yes" class="pn"><span>{lang sold_out}</span></button> &nbsp;
<!--{/if}-->
<!--{if $_G['uid']}--><button onclick="showWindow('sendpm', 'home.php?mod=spacecp&ac=pm&op=showmsg&handlekey=showmsg_$post[authorid]&touid=$post[authorid]&pmid=0&daterange=2&tradeid=$post[pid]')" class="pn"><span><!--{if $online}-->{lang on_line}<!--{/if}-->{lang trade_bargain}</span></button><!--{/if}-->
</p>
<!--{/if}-->
<!--{if $trade['tenpayaccount']}-->
<p><em>({lang post_trade_support_tenpay})</em></p>
<!--{/if}-->
</div>
</div>
<div class="cl mtw">
<div class="c pbm">
$post[message]
</div>
<!--{if $post['attachment']}-->
<div class="notice postattach">{lang attachment}: <em>{lang attach_nopermission}</em></div>
<!--{elseif $post['imagelist'] || $post['attachlist']}-->
<div class="pattl">
<!--{if $post['imagelist']}-->
<!--{echo showattach($post, 1)}-->
<!--{/if}-->
<!--{if $post['attachlist']}-->
<!--{echo showattach($post)}-->
<!--{/if}-->
</div>
<!--{/if}-->
<!--{if !$_G[inajax]}--><div id="comment_$post[pid]" class="cl tpst cm"></div><!--{/if}-->
</div>
<!--{if !$_G[inajax] && $allowpostreply && $post['allowcomment'] && $_G['setting']['commentnumber']}--><div class="pob"><em><a class="fastre" href="javascript:;" onclick="showWindow('comment', 'forum.php?mod=misc&action=comment&pid=$post[pid]', 'get', 0)">{lang comments}</a></em></div><!--{/if}-->
</td></tr>
</td></tr></table></div>
<!--{if !empty($aimgs[$post[pid]])}-->
<script type="text/javascript" reload="1">
var aimgcount = new Array();
aimgcount[{$post[pid]}] = [<!--{echo dimplode($aimgs[$post[pid]]);}-->];
attachimggroup($post['pid']);
<!--{if empty($_G['setting']['lazyload'])}-->
attachimgshow($post[pid]);
<!--{/if}-->
</script>
<!--{/if}-->
<!--{if !$_G[inajax] && $post[comment]}-->
<script type="text/javascript" reload="1">ajaxget('forum.php?mod=misc&action=commentmore&tid=$post[tid]&pid=$post[pid]', 'comment_$post[pid]');</script>
<!--{/if}-->
<!--{if !$_G[inajax]}-->
</div></div>
<div class="sd">
<div class="bm">
<div class="bm_h">
<h2>{lang trade_rate}</h2>
</div>
<div class="bm_c">
<table cellpadding="4" cellspacing="4" border="0" width="100%">
<tr><th width="60">{lang trade_seller_real_name}</th><td><!--{if $post[realname]}-->$post[realname]<!--{/if}--></td></tr>
<tr><th width="60">{lang eccredit_buyerinfo}</th><td><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></td></tr>
<tr><th>{lang eccredit_sellerinfo}</th><td><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></td></tr>
</table>
</div>
</div>
<!--{if $usertrades}-->
<div class="bm">
<div class="bm_h">
<h2>{lang trade_other_goods}</h2>
</div>
<div class="bm_c">
<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" alt="$usertrade[subject]" /><!--{else}--><div class="nophoto" title="$usertrade[subject]" 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>
</div>
<!--{/if}-->
<!--{if $userthreads}-->
<div class="bm">
<div class="bm_h">
<h2>{lang trade_seller_other_goods}</h2>
</div>
<div class="bm_c cl xl">
<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>
</div>
<!--{/if}-->
</div>
</div>
<!--{if !IS_ROBOT && !empty($_G[setting][lazyload])}-->
<script type="text/javascript">
new lazyload();
</script>
<!--{/if}-->
<!--{/if}-->
<!--{template common/footer}-->

View File

@@ -0,0 +1,217 @@
<!--{template common/header}-->
<div id="pt" class="bm cl">
<div class="z"><a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em> {lang trade_order}</div>
</div>
<div id="ct" class="ct2 wp cl">
<h1 class="mt">2.{lang trade_order}</h1>
<div class="mn">
<form method="post" autocomplete="off" id="tradepost" name="tradepost" action="forum.php?mod=trade&orderid=$orderid">
<!--{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}" />
<div class="bm">
<h3 class="bm_h"><!--{if !$tradelog[offline]}-->{lang trade_pay_alipay}<!--{else}-->{lang trade_pay_offline}<!--{/if}--></h3>
<div class="bm_c">
<table summary="{lang trade_order}" cellspacing="0" cellpadding="0" class="tfm" style="table-layout:fixed">
<tr>
<th>{lang status}</th>
<td>$tradelog[statusview] ($tradelog[lastupdate])</td>
</tr>
<!--{if $tradelog[offline] && $offlinenext}-->
<tr>
<th><label for="password">{lang trade_password}</label></th>
<td><input id="password" name="password" type="password" class="px" /></td>
</tr>
<tr>
<th valign="top"><label for="message">{lang trade_message}</label></th>
<td>
<textarea id="buyermsg" id="message" name="message" rows="5" class="pt"></textarea>
<p class="d">$trade_message {lang trade_seller_remark_comment}</p>
</td>
</tr>
<tr>
<th>&nbsp;</th>
<td class="pns">
<!--{loop $offlinenext $nextid $nextbutton}-->
<button class="pn" type="button" onclick="$('tradepost').offlinestatus.value = '$nextid';$('offlinesubmit').click();"><em>$nextbutton</em></button>&nbsp;
<!--{/loop}-->
<input type="hidden" name="offlinestatus" value="" />
<input type="submit" id="offlinesubmit" name="offlinesubmit" style="display: none" />
</td>
</tr>
<!--{/if}-->
<!--{if trade_typestatus('successtrades', $tradelog[status]) || trade_typestatus('refundsuccess', $tradelog[status])}-->
<tr>
<!--{if $tradelog[ratestatus] == 3}-->
<th>{lang eccredit_post_between}</th><td>&nbsp;</td>
<!--{elseif ($_G['uid'] == $tradelog[buyerid] && $tradelog[ratestatus] == 1) || ($_G['uid'] == $tradelog[sellerid] && $tradelog[ratestatus] == 2)}-->
<th>{lang eccredit_post_waiting}</th><td>&nbsp;</td>
<!--{else}-->
<!--{if ($_G['uid'] == $tradelog[buyerid] && $tradelog[ratestatus] == 2) || ($_G['uid'] == $tradelog[sellerid] && $tradelog[ratestatus] == 1)}-->
<th>{lang eccredit_post_already}</th>
<!--{else}-->
<th>&nbsp;</th>
<!--{/if}-->
<td class="pns">
<!--{if $_G['uid'] == $tradelog[buyerid]}-->
<button class="pn" type="button" onclick="window.open('home.php?mod=spacecp&ac=eccredit&op=rate&orderid=$tradelog[orderid]&type=0', '', '')"><span>{lang eccredit1}</span></button>
<!--{elseif $_G['uid'] == $tradelog[sellerid]}-->
<button class="pn" type="button" onclick="window.open('home.php?mod=spacecp&ac=eccredit&op=rate&orderid=$tradelog[orderid]&type=1', '', '')"><span>{lang eccredit1}</span></button>
<!--{/if}-->
</td>
<!--{/if}-->
</td>
</tr>
<!--{elseif !$tradelog[offline]}-->
<tr>
<th>{lang trade_online_tradeurl}</th>
<td class="pns">
<!--{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}-->
</td>
</tr>
<!--{/if}-->
</table>
</div>
</div>
<div class="bm torder">
<h3 class="bm_h">{lang trade_order}</h3>
<div class="bm_c">
<div class="spvimg">
<a href="forum.php?mod=viewthread&do=tradeinfo&tid=$trade[tid]&pid=$trade[pid]"><!--{if $trade['aid']}--><img src="{echo getforumimg($trade[aid])}" width="90" /><!--{else}--><div class="nophoto"></div><!--{/if}--></a>
</div>
<div class="spi cl">
<h4 class="wx mbm bbda"><a href="forum.php?mod=viewthread&do=tradeinfo&tid=$tradelog[tid]&pid=$tradelog[pid]" target="_blank">$tradelog[subject]</a></h4>
<dl>
<dt>{lang trade_payment}</dt>
<dd>
<!--{if $tradelog[price] > 0}--><strong>$tradelog[price]</strong>&nbsp;{lang payment_unit}&nbsp;&nbsp;<!--{/if}-->
<!--{if $_G['setting']['creditstransextra'][5] != -1 && $tradelog[credit]}-->{$_G[setting][extcredits][$_G['setting']['creditstransextra'][5]][title]}&nbsp;<strong>$tradelog[credit]</strong>&nbsp;{$_G[setting][extcredits][$_G['setting']['creditstransextra'][5]][unit]}&nbsp;&nbsp;<!--{/if}-->
<!--{if $tradelog[status] == 0}--><span class="xg2">{lang trade_payment_comment}</span><!--{/if}-->
</dd>
<!--{if $tradelog[tradeno]}-->
<dt>{lang trade_order_no}</dt>
<dd><a href="$loginurl" class="xg2" target="_blank">$tradelog[tradeno]</a></dd>
<!--{/if}-->
<dt>{lang trade_seller}</dt>
<dd>
<a href="home.php?mod=space&uid=$tradelog[sellerid]" class="xg2" target="_blank">$tradelog[seller]</a>
<!--{if $_G['uid'] != $tradelog['sellerid']}-->&nbsp;<a onclick="showWindow('sendpm', this.href)" href="home.php?mod=spacecp&ac=pm&op=showmsg&handlekey=showmsg_$tradelog[sellerid]&touid=$tradelog[sellerid]&pmid=0&daterange=2" class="xg2" target="_blank"><i title="{lang send_pm}" class="fico-email fc-n vm"></i></a><!--{/if}-->
</dd>
<dt style="clear:left">{lang trade_buyer}</dt>
<dd>
<a href="home.php?mod=space&uid=$tradelog[buyerid]" target="_blank">$tradelog[buyer]</a>
<!--{if $_G['uid'] != $tradelog['buyerid']}-->&nbsp;<a onclick="showWindow('sendpm', this.href)" href="home.php?mod=spacecp&ac=pm&op=showmsg&handlekey=showmsg_$tradelog[buyerid]&touid=$tradelog[buyerid]&pmid=0&daterange=2" class="xg2" target="_blank"><i title="{lang send_pm}" class="fico-email fc-n vm"></i></a><!--{/if}-->
</dd>
<!--{if $tradelog[status] == 0 && $tradelog[sellerid] == $_G['uid']}-->
<dt style="clear:left"><label for="newprice">{lang trade_baseprice}</label></dt>
<dd>
<span><input type="text" id="newprice" name="newprice" value="$tradelog[baseprice]" class="px" style="width:100px" /></span> {lang payment_unit}&nbsp;&nbsp;
<!--{if $_G['setting']['creditstransextra'][5] != -1 && $tradelog[credit]}-->
{$_G[setting][extcredits][$_G['setting']['creditstransextra'][5]][title]} <input type="text" id="newcredit" name="newcredit" value="$tradelog[basecredit]" class="px" style="width:100px" /> {$_G[setting][extcredits][$_G['setting']['creditstransextra'][5]][unit]}
<!--{/if}-->
</dd>
<!--{/if}-->
<dt style="clear:left"><label for="newnumber">{lang trade_nums}</label></dt>
<dd><!--{if $tradelog[status] == 0 && $tradelog[buyerid] == $_G['uid']}--><span><input type="text" id="newnumber" name="newnumber" value="$tradelog[number]" class="px" style="width:100px" /></span><!--{else}-->$tradelog[number]<!--{/if}--></dd>
<dt>{lang post_trade_transport}</dt>
<dd>
<!--{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}-->
<!--{if $tradelog['transport']}-->
&nbsp;{lang trade_transportfee}
<!--{if $tradelog[status] == 0 && $tradelog[sellerid] == $_G['uid']}--><span><input type="text" name="newfee" value="$tradelog['transportfee']" class="px" style="width:100px" /></span>&nbsp;<!--{else}-->$tradelog[transportfee]&nbsp;<!--{/if}-->
{lang payment_unit}
<!--{/if}-->
</dd>
<!--{if $tradelog['transport'] != 3}-->
<dt><label for="newbuyername">{lang trade_buyername}</label></dt>
<dd><!--{if $tradelog[status] == 0 && $tradelog[buyerid] == $_G['uid']}--><span><input type="text" id="newbuyername" name="newbuyername" value="$tradelog[buyername]" maxlength="50" class="px" /></span><!--{else}-->$tradelog[buyername]<!--{/if}-->&nbsp;</dd>
<dt><label for="newbuyercontact">{lang trade_buyercontact}</label></dt>
<dd><!--{if $tradelog[status] == 0 && $tradelog[buyerid] == $_G['uid']}--><span><input type="text" id="newbuyercontact" name="newbuyercontact" value="$tradelog[buyercontact]" maxlength="100" size="40" class="px" /></span><!--{else}-->$tradelog[buyercontact]<!--{/if}-->&nbsp;</dd>
<dt><label for="newbuyerzip">{lang trade_buyerzip}</label></dt>
<dd><!--{if $tradelog[status] == 0 && $tradelog[buyerid] == $_G['uid']}--><span><input type="text" id="newbuyerzip" name="newbuyerzip" value="$tradelog[buyerzip]" maxlength="10" class="px" /></span><!--{else}-->$tradelog[buyerzip]<!--{/if}-->&nbsp;</dd>
<dt><label for="newbuyerphone">{lang trade_buyerphone}</label></dt>
<dd><!--{if $tradelog[status] == 0 && $tradelog[buyerid] == $_G['uid']}--><span><input type="text" id="newbuyerphone" name="newbuyerphone" value="$tradelog[buyerphone]" maxlength="20" class="px" /></span><!--{else}-->$tradelog[buyerphone]<!--{/if}-->&nbsp;</dd>
<dt><label for="newbuyermobile">{lang trade_buyermobile}</label></dt>
<dd><!--{if $tradelog[status] == 0 && $tradelog[buyerid] == $_G['uid']}--><span><input type="text" id="newbuyermobile" name="newbuyermobile" value="$tradelog[buyermobile]" maxlength="20" class="px" /></span><!--{else}-->$tradelog[buyermobile]<!--{/if}-->&nbsp;</dd>
<!--{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}-->
<dt valign="top"><label for="newbuyermsg">{lang trade_seller_remark}</label></dt>
<dd><!--{if $tradelog[status] == 0 && $tradelog[buyerid] == $_G['uid']}--><span><textarea id="newbuyermsg" name="newbuyermsg" rows="5" class="pt">$tradelog[buyermsg]</textarea></span><!--{else}-->$tradelog[buyermsg]<!--{/if}--></dd>
<!--{if $tradelog[status] == 0 && ($_G['uid'] == $tradelog['sellerid'] || $_G['uid'] == $tradelog['buyerid'])}-->
<dt>&nbsp;</dt>
<dd class="pns">
<button class="pn" type="submit" name="tradesubmit" value="true"><span>{lang trade_submit_order}</span></button>
</dd>
<!--{/if}-->
</dl>
</div>
</div>
</div>
<!--{if $tradelog['offline'] && !empty($messagelist)}-->
<h3 class="bbda pbm mtw">{lang trade_message}</h3>
<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>
<!--{/if}-->
</form>
</div>
<div class="sd">
<!--{if $usertrades}-->
<div class="bm">
<h3 class="bm_h">$trade[seller] {lang trade_recommended_goods}</h3>
<div class="bm_c">
<ul class="ml tradl cl">
<!--{loop $usertrades $usertrade}-->
<li>
<a href="forum.php?mod=viewthread&tid=$usertrade[tid]&do=tradeinfo&pid=$usertrade[pid]" class="tn">
<!--{if $usertrade['displayorder'] > 0}--><em class="hot">{lang post_trade_sticklist}</em><!--{/if}-->
<!--{if $usertrade['aid']}--><img src="{echo getforumimg($usertrade[aid])}" width="130" alt="$usertrade[subject]" /><!--{else}--><div class="nophoto"></div><!--{/if}-->
</a>
<!--{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}-->
<h4><a href="forum.php?mod=viewthread&tid=$usertrade[tid]&do=tradeinfo&pid=$usertrade[pid]">$usertrade[subject]</a></h4>
</li>
<!--{/loop}-->
</ul>
</div>
</div>
<!--{/if}-->
</div>
</div>
<!--{template common/footer}-->

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