First commit
This commit is contained in:
68
template/default/portal/block_more_forum_thread.htm
Normal file
68
template/default/portal/block_more_forum_thread.htm
Normal file
@@ -0,0 +1,68 @@
|
||||
<!--{template common/header}-->
|
||||
<div id="pt" class="bm cl">
|
||||
<div class="z">
|
||||
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>›</em>
|
||||
<a href="$_G[setting][navs][1][filename]">{lang portal}</a> <em>›</em>
|
||||
$navtitle
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--{ad/text/wp a_t}-->
|
||||
<style id="diy_style" type="text/css"></style>
|
||||
<div class="wp">
|
||||
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
|
||||
<div id="ct" class="wp cl">
|
||||
<div class="mn">
|
||||
<!--[diy=listcontenttop]--><div id="listcontenttop" class="area"></div><!--[/diy]-->
|
||||
<div class="bm tl">
|
||||
<div class="th">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<th><h2>$navtitle</h2></th>
|
||||
<td class="by">{lang forum}</td>
|
||||
<td class="by">{lang author}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="bm_c">
|
||||
<!--{if $list}-->
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<!--{loop $list $value}-->
|
||||
<tr>
|
||||
<th>
|
||||
<a href="$value['url']" target="_blank">$value['title']</a>
|
||||
|
||||
</th>
|
||||
<td class="by"><a href="$value['fields']['forumurl']">$value['fields']['forumname']</a></td>
|
||||
<td class="by">
|
||||
<cite>
|
||||
<!--{if $value['fields']['authorid'] && $value['fields']['author']}-->
|
||||
<a href="home.php?mod=space&uid=$value[authorid]" c="1">$value['fields'][author]</a>
|
||||
<!--{else}-->
|
||||
{$_G['setting']['anonymoustext']}
|
||||
<!--{/if}-->
|
||||
</cite>
|
||||
<em><span>$value['fields']['dateline']</span></em>
|
||||
</td>
|
||||
</tr>
|
||||
<!--{/loop}-->
|
||||
</table>
|
||||
<!--{if $multipage}--><div class="pgs mtm cl">$multipage</div><!--{/if}-->
|
||||
<!--{else}-->
|
||||
<p class="emp">{lang no_content}</p>
|
||||
<!--{/if}-->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--[diy=diycontentbottom]--><div id="diycontentbottom" class="area"></div><!--[/diy]-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="wp mtn">
|
||||
<!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
|
||||
<!--{template common/footer}-->
|
68
template/default/portal/block_more_group_thread.htm
Normal file
68
template/default/portal/block_more_group_thread.htm
Normal file
@@ -0,0 +1,68 @@
|
||||
<!--{template common/header}-->
|
||||
<div id="pt" class="bm cl">
|
||||
<div class="z">
|
||||
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>›</em>
|
||||
<a href="$_G[setting][navs][1][filename]">{lang portal}</a> <em>›</em>
|
||||
$navtitle
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--{ad/text/wp a_t}-->
|
||||
<style id="diy_style" type="text/css"></style>
|
||||
<div class="wp">
|
||||
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
|
||||
<div id="ct" class="wp cl">
|
||||
<div class="mn">
|
||||
<!--[diy=listcontenttop]--><div id="listcontenttop" class="area"></div><!--[/diy]-->
|
||||
<div class="bm tl">
|
||||
<div class="th">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<th><h2>$navtitle</h2></th>
|
||||
<td class="by">$_G[setting][navs][3][navname]</td>
|
||||
<td class="by">{lang author}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="bm_c">
|
||||
<!--{if $list}-->
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<!--{loop $list $value}-->
|
||||
<tr>
|
||||
<th>
|
||||
<a href="$value['url']" target="_blank">$value['title']</a>
|
||||
|
||||
</th>
|
||||
<td class="by"><a href="$value['fields']['groupurl']">$value['fields']['groupname']</a></td>
|
||||
<td class="by">
|
||||
<cite>
|
||||
<!--{if $value['fields']['authorid'] && $value['fields']['author']}-->
|
||||
<a href="home.php?mod=space&uid=$value[authorid]" c="1">$value['fields'][author]</a>
|
||||
<!--{else}-->
|
||||
{$_G['setting']['anonymoustext']}
|
||||
<!--{/if}-->
|
||||
</cite>
|
||||
<em><span>$value['fields']['dateline']</span></em>
|
||||
</td>
|
||||
</tr>
|
||||
<!--{/loop}-->
|
||||
</table>
|
||||
<!--{if $multipage}--><div class="pgs mtm cl">$multipage</div><!--{/if}-->
|
||||
<!--{else}-->
|
||||
<p class="emp">{lang no_content}</p>
|
||||
<!--{/if}-->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--[diy=diycontentbottom]--><div id="diycontentbottom" class="area"></div><!--[/diy]-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="wp mtn">
|
||||
<!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
|
||||
<!--{template common/footer}-->
|
56
template/default/portal/block_more_portal_article.htm
Normal file
56
template/default/portal/block_more_portal_article.htm
Normal file
@@ -0,0 +1,56 @@
|
||||
<!--{template common/header}-->
|
||||
|
||||
<div id="pt" class="bm cl">
|
||||
<div class="z">
|
||||
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>›</em>
|
||||
<a href="$_G[setting][navs][1][filename]">{lang portal}</a> <em>›</em>
|
||||
$navtitle
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style id="diy_style" type="text/css"></style>
|
||||
<div class="wp">
|
||||
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
|
||||
<div id="ct" class="wp cl">
|
||||
<div class="mn">
|
||||
<!--[diy=listcontenttop]--><div id="listcontenttop" class="area"></div><!--[/diy]-->
|
||||
<div class="bm">
|
||||
<div class="bm_h cl">
|
||||
<h2>$navtitle</h2>
|
||||
</div>
|
||||
<!--{if $list}-->
|
||||
<div class="bm_c xld">
|
||||
<!--{loop $list $value}-->
|
||||
<!--{eval $article_url = fetch_article_url($value);}-->
|
||||
<dl class="bbda cl">
|
||||
<dt class="xs2"><a href="$article_url" target="_blank" class="xi2">$value[title]</a></dt>
|
||||
<dd class="xs2 cl">
|
||||
<!--{if $value[pic]}--><div class="atc"><a href="$article_url" target="_blank"><img src="$value[pic]" alt="$value[title]" class="tn" /></a></div><!--{/if}-->
|
||||
$value[summary]
|
||||
</dd>
|
||||
<dd>
|
||||
{lang category}: <label><a href="{$value[fields][caturl]}" class="xi2">{$value[fields][catname]}</a></label>
|
||||
<span class="xg1"> {$value[fields][dateline]}</span>
|
||||
</dd>
|
||||
</dl>
|
||||
<!--{/loop}-->
|
||||
</div>
|
||||
<!--[diy=listloopbottom]--><div id="listloopbottom" class="area"></div><!--[/diy]-->
|
||||
<!--{else}-->
|
||||
<p class="emp">{lang no_content}</p>
|
||||
<!--{/if}-->
|
||||
</div>
|
||||
<!--{if $multipage}--><div class="pgs cl">{$multipage}</div><!--{/if}-->
|
||||
|
||||
<!--[diy=diycontentbottom]--><div id="diycontentbottom" class="area"></div><!--[/diy]-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="wp mtn">
|
||||
<!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
|
||||
<!--{template common/footer}-->
|
61
template/default/portal/comment.htm
Normal file
61
template/default/portal/comment.htm
Normal 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>›</em>
|
||||
<a href="$_G[setting][navs][1][filename]">$_G[setting][navs][1][navname]</a> <em>›</em>
|
||||
{lang comment_view}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style id="diy_style" type="text/css"></style>
|
||||
<div class="wp">
|
||||
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
|
||||
<div id="ct" class="wp cl">
|
||||
<div class="mn">
|
||||
<div class="bm vw">
|
||||
<div class="h hm">
|
||||
<h1 class="ph"><a href="$url">$csubject[title]</a></h1>
|
||||
<p>{lang comment} ($csubject[commentnum])<!--{if $csubject['allowcomment'] == 1}--><span class="pipe">|</span><a href="javascript:;" onclick="location.href=location.href.replace(/(\#.*)/, '')+'#message';$('message').focus();return false;" class="xi2 xw1">{lang post_comment}</a><!--{/if}--></p>
|
||||
</div>
|
||||
<div class="bm_c">
|
||||
<!--{loop $commentlist $comment}-->
|
||||
<!--{template portal/comment_li}-->
|
||||
<!--{/loop}-->
|
||||
<!--{if $pricount}-->
|
||||
<p class="mbn mtn y">{lang hide_portal_comment}</p>
|
||||
<!--{/if}-->
|
||||
<div class="pgs cl mtm mbm">$multi</div>
|
||||
<!--{if $csubject['allowcomment'] == 1}-->
|
||||
<form id="cform" name="cform" action="portal.php?mod=portalcp&ac=comment" method="post" autocomplete="off">
|
||||
<div class="tedt">
|
||||
<div class="area">
|
||||
<textarea name="message" cols="60" rows="3" class="pt" id="message"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<!--{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"><!--{subtemplate common/seccheck}--></div>
|
||||
<!--{/if}-->
|
||||
|
||||
<!--{if $idtype == 'topicid' }-->
|
||||
<input type="hidden" name="topicid" value="$id">
|
||||
<!--{else}-->
|
||||
<input type="hidden" name="aid" value="$id">
|
||||
<!--{/if}-->
|
||||
<input type="hidden" name="formhash" value="{FORMHASH}">
|
||||
<p class="ptn"><button type="submit" name="commentsubmit" value="true" class="pn"><strong>{lang comment}</strong></button></p>
|
||||
</form>
|
||||
<!--{/if}-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="wp mtn">
|
||||
<!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
|
||||
<!--{template common/footer}-->
|
20
template/default/portal/comment_li.htm
Normal file
20
template/default/portal/comment_li.htm
Normal file
@@ -0,0 +1,20 @@
|
||||
<a name="comment_anchor_$comment[cid]"></a>
|
||||
<dl id="comment_{$comment[cid]}_li" class="ptm pbm bbda cl">
|
||||
<dt class="mbm">
|
||||
<span class="y xw0 xi2">
|
||||
<!--{if !isset($_G[makehtml])}--><a href="javascript:;" onclick="portal_comment_requote($comment[cid], '$article[aid]');">{lang quote}</a> <!--{/if}-->
|
||||
<!--{if ($_G['group']['allowmanagearticle'] || $_G['uid'] == $comment['uid']) && $_G['groupid'] != 7 && !$article['idtype']}-->
|
||||
<a href="portal.php?mod=portalcp&ac=comment&op=edit&cid=$comment[cid]" id="c_$comment[cid]_edit" onclick="showWindow(this.id, this.href, 'get', 0);">{lang edit}</a>
|
||||
<a href="portal.php?mod=portalcp&ac=comment&op=delete&cid=$comment[cid]" id="c_$comment[cid]_delete" onclick="showWindow(this.id, this.href, 'get', 0);">{lang delete}</a>
|
||||
<!--{/if}-->
|
||||
</span>
|
||||
<!--{if !empty($comment['uid'])}-->
|
||||
<a href="home.php?mod=space&uid=$comment[uid]" class="xi2 xw1" c="1">$comment[username]</a>
|
||||
<!--{else}-->
|
||||
{lang guest}
|
||||
<!--{/if}-->
|
||||
<span class="xg1 xw0"><!--{date($comment['dateline'])}--></span>
|
||||
<!--{if $comment[status] == 1}--><b>({lang moderate_need})</b><!--{/if}-->
|
||||
</dt>
|
||||
<dd><!--{if $_G[adminid] == 1 || $comment[uid] == $_G[uid] || $comment[status] != 1}-->$comment[message]<!--{else}--> {lang moderate_not_validate}<!--{/if}--></dd>
|
||||
</dl>
|
0
template/default/portal/diyxml/index.htm
Normal file
0
template/default/portal/diyxml/index.htm
Normal file
4537
template/default/portal/diyxml/portal_index.xml
Normal file
4537
template/default/portal/diyxml/portal_index.xml
Normal file
File diff suppressed because it is too large
Load Diff
1543
template/default/portal/diyxml/portal_topic_blue.xml
Normal file
1543
template/default/portal/diyxml/portal_topic_blue.xml
Normal file
File diff suppressed because it is too large
Load Diff
1543
template/default/portal/diyxml/portal_topic_green.xml
Normal file
1543
template/default/portal/diyxml/portal_topic_green.xml
Normal file
File diff suppressed because it is too large
Load Diff
1543
template/default/portal/diyxml/portal_topic_grey.xml
Normal file
1543
template/default/portal/diyxml/portal_topic_grey.xml
Normal file
File diff suppressed because it is too large
Load Diff
1543
template/default/portal/diyxml/portal_topic_red.xml
Normal file
1543
template/default/portal/diyxml/portal_topic_red.xml
Normal file
File diff suppressed because it is too large
Load Diff
7
template/default/portal/index.htm
Normal file
7
template/default/portal/index.htm
Normal file
@@ -0,0 +1,7 @@
|
||||
<!--{template common/header}-->
|
||||
<style id="diy_style" type="text/css"></style>
|
||||
<div class="wp">
|
||||
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
<script src="misc.php?mod=diyhelp&action=get&type=index&diy=yes&r={echo random(4)}" type="text/javascript"></script>
|
||||
<!--{template common/footer}-->
|
107
template/default/portal/list.htm
Normal file
107
template/default/portal/list.htm
Normal file
@@ -0,0 +1,107 @@
|
||||
<!--{template common/header}-->
|
||||
<!--[name]{lang portalcategory_listtplname}[/name]-->
|
||||
<!--{eval $list = array();}-->
|
||||
<!--{eval $wheresql = category_get_wheresql($cat);}-->
|
||||
<!--{eval $list = category_get_list($cat, $wheresql, $page);}-->
|
||||
<div id="pt" class="bm cl">
|
||||
<div class="z">
|
||||
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>›</em>
|
||||
<a href="$_G[setting][navs][1][filename]">{lang portal}</a> <em>›</em>
|
||||
<!--{loop $cat[ups] $value}--> <a href="{$portalcategory[$value['catid']]['caturl']}">$value[catname]</a><em>›</em><!--{/loop}-->
|
||||
$cat[catname]
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--{ad/text/wp a_t}-->
|
||||
<style id="diy_style" type="text/css"></style>
|
||||
<div class="wp">
|
||||
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
|
||||
<div id="ct" class="ct2 wp cl">
|
||||
<div class="mn">
|
||||
<!--{ad/articlelist/mbm hm/1}--><!--{ad/articlelist/mbm hm/2}-->
|
||||
<!--[diy=listcontenttop]--><div id="listcontenttop" class="area"></div><!--[/diy]-->
|
||||
<div class="bm">
|
||||
<div class="bm_h cl">
|
||||
<!--{if $_G[setting][rssstatus] && !$_GET['archiveid']}--><a href="portal.php?mod=rss&catid=$cat[catid]" class="y xi2 rss" target="_blank" title="RSS">{lang rss_subscribe_this}</a><!--{/if}-->
|
||||
<!--{if ($_G['group']['allowpostarticle'] || $_G['group']['allowmanagearticle'] || $categoryperm[$catid]['allowmanage'] || $categoryperm[$catid]['allowpublish']) && empty($cat['disallowpublish'])}-->
|
||||
<a href="portal.php?mod=portalcp&ac=article&catid=$cat[catid]" class="y xi2 addnew">{lang article_publish}</a>
|
||||
<!--{/if}-->
|
||||
<h1 class="xs2">$cat[catname]</h1>
|
||||
</div>
|
||||
<!--{if $cat[subs]}-->
|
||||
<div class="bm_c bbda">
|
||||
{lang sub_category}:
|
||||
<!--{eval $i = 1;}-->
|
||||
<!--{loop $cat[subs] $value}-->
|
||||
<!--{if $i != 1}--><span class="pipe">|</span><!--{/if}--><a href="{$portalcategory[$value['catid']]['caturl']}" class="xi2">$value[catname]</a><!--{eval $i--;}-->
|
||||
<!--{/loop}-->
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
<div class="bm_c xld">
|
||||
<!--{loop $list['list'] $value}-->
|
||||
<!--{eval $highlight = article_title_style($value);}-->
|
||||
<!--{eval $article_url = fetch_article_url($value);}-->
|
||||
<dl class="bbda cl">
|
||||
<dt class="xs2"><a href="$article_url" target="_blank" class="xi2" $highlight>$value[title]</a> <!--{if $value[status] == 1}-->({lang moderate_need})<!--{/if}--></dt>
|
||||
<dd class="xs2 cl">
|
||||
<!--{if $value[pic]}--><div class="atc"><a href="$article_url" target="_blank"><img src="$value[pic]" alt="$value[title]" class="tn" /></a></div><!--{/if}-->
|
||||
$value[summary]
|
||||
</dd>
|
||||
<dd>
|
||||
<!--{if $value[catname] && $cat[subs]}-->{lang category}: <label><a href="{$portalcategory[$value['catid']]['caturl']}" class="xi2">$value[catname]</a></label> <!--{/if}-->
|
||||
<span class="xg1"> $value[dateline]</span>
|
||||
<!--{if $_G['group']['allowmanagearticle'] || ($_G['group']['allowpostarticle'] && $value['uid'] == $_G['uid'] && (empty($_G['group']['allowpostarticlemod']) || $_G['group']['allowpostarticlemod'] && $value['status'] == 1)) || $categoryperm[$value['catid']]['allowmanage']}-->
|
||||
<span class="xg1">
|
||||
<span class="pipe">|</span>
|
||||
<label><a href="portal.php?mod=portalcp&ac=article&op=edit&aid=$value[aid]">{lang edit}</a></label>
|
||||
<span class="pipe">|</span>
|
||||
<label><a href="portal.php?mod=portalcp&ac=article&op=delete&aid=$value[aid]" id="article_delete_$value[aid]" onclick="showWindow(this.id, this.href, 'get', 0);">{lang delete}</a></label>
|
||||
</span>
|
||||
<!--{/if}-->
|
||||
</dd>
|
||||
</dl>
|
||||
<!--{/loop}-->
|
||||
</div>
|
||||
<!--[diy=listloopbottom]--><div id="listloopbottom" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
<!--{ad/articlelist/mbm hm/3}--><!--{ad/articlelist/mbm hm/4}-->
|
||||
<!--{if $list['multi']}--><div class="pgs cl">{$list['multi']}</div><!--{/if}-->
|
||||
|
||||
<!--[diy=diycontentbottom]--><div id="diycontentbottom" class="area"></div><!--[/diy]-->
|
||||
|
||||
</div>
|
||||
<div class="sd pph">
|
||||
|
||||
<div class="drag">
|
||||
<!--[diy=diyrighttop]--><div id="diyrighttop" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
|
||||
<!--{if $cat[others]}-->
|
||||
<div class="bm">
|
||||
<div class="bm_h cl">
|
||||
<h2>{lang category_related}</h2>
|
||||
</div>
|
||||
<div class="bm_c">
|
||||
<ul class="xl xl2 cl">
|
||||
<!--{loop $cat[others] $value}-->
|
||||
<li>• <a href="{$portalcategory[$value['catid']]['caturl']}">$value[catname]</a></li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
|
||||
<div class="drag">
|
||||
<!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="wp mtn">
|
||||
<!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
|
||||
<!--{template common/footer}-->
|
122
template/default/portal/list_category_onerank.htm
Normal file
122
template/default/portal/list_category_onerank.htm
Normal file
@@ -0,0 +1,122 @@
|
||||
<!--{template common/header}-->
|
||||
<!--[name]{lang portalcategory_listoneranktplname}[/name]-->
|
||||
<!--{eval $data = array();}-->
|
||||
<!--{eval $wheresql = category_get_wheresql($cat);}-->
|
||||
<!--{eval $data = category_get_list_more($cat, $wheresql);}-->
|
||||
<div id="pt" class="bm cl">
|
||||
<div class="z">
|
||||
<a href="index.php" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>›</em>
|
||||
<a href="$_G[setting][navs][1][filename]">{lang portal}</a> <em>›</em>
|
||||
<!--{loop $cat[ups] $value}--> <a href="{$portalcategory[$value['catid']]['caturl']}">$value[catname]</a><em>›</em><!--{/loop}-->
|
||||
$cat[catname]
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style id="diy_style" type="text/css"></style>
|
||||
<div class="wp">
|
||||
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
|
||||
<div id="ct" class="ct2 wp cl">
|
||||
<div class="mn">
|
||||
<!--[diy=listlooptop]--><div id="listlooptop" class="area"></div><!--[/diy]-->
|
||||
<!--{if $cat[subs]}-->
|
||||
<!--{loop $data $key $item}-->
|
||||
<!--{eval $subcatid = intval(str_replace('subcate', '', $key));}-->
|
||||
<!--{if !empty($portalcategory[$subcatid])}-->
|
||||
<div class="bm">
|
||||
<div class="bm_h cl">
|
||||
<span class="y xi2">
|
||||
<!--{if ($_G['group']['allowpostarticle'] || $_G['group']['allowmanagearticle'] || $categoryperm[$catid]['allowmanage'] || $categoryperm[$catid]['allowpublish']) && empty($portalcategory[$subcatid]['disallowpublish'])}-->
|
||||
<a href="portal.php?mod=portalcp&ac=article&catid=$subcatid">{lang article_publish}</a>
|
||||
<span class="pipe">|</span>
|
||||
<!--{/if}-->
|
||||
<a href="{$portalcategory[$subcatid]['caturl']}">{lang more}›</a>
|
||||
</span>
|
||||
<h2><a href="{$portalcategory[$subcatid]['caturl']}">{$portalcategory[$subcatid]['catname']}</a></h2>
|
||||
</div>
|
||||
<div class="bm_c">
|
||||
<ul class="xs2 xl xl1">
|
||||
<!--{loop $item $value}-->
|
||||
<!--{eval $article_url = fetch_article_url($value);}-->
|
||||
<li><span class="xl1_elp">• <a href="$article_url" target="_blank">$value[title]</a></span>
|
||||
<em><!--{eval echo dgmdate($value['timestamp'], 'm-d')}--></em>
|
||||
</li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
<!--{/loop}-->
|
||||
<!--{/if}-->
|
||||
<!--[diy=listloopbottom]--><div id="listloopbottom" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
<div class="sd">
|
||||
|
||||
<div class="drag">
|
||||
<!--[diy=diyrighttop]--><div id="diyrighttop" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
|
||||
<!--{if $cat[others]}-->
|
||||
<div class="bm">
|
||||
<div class="bm_h cl">
|
||||
<h2>{lang category_related}</h2>
|
||||
</div>
|
||||
<div class="bm_c">
|
||||
<ul class="xl xl2 cl">
|
||||
<!--{loop $cat[others] $value}-->
|
||||
<li><a href="{$portalcategory[$value['catid']]['caturl']}">$value[catname]</a></li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
|
||||
<div class="drag">
|
||||
<!--[diy=newarticletop]--><div id="newarticletop" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
|
||||
<!--{if $data['portalnewarticle']}-->
|
||||
<div class="bm">
|
||||
<div class="bm_h cl">{lang article_last}</div>
|
||||
<div class="bm_c">
|
||||
<ul class="xl xl1">
|
||||
<!--{loop $data['portalnewarticle'] $value}-->
|
||||
<!--{eval $article_url = fetch_article_url($value);}-->
|
||||
<li><a href="$article_url">$value[title]</a></li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
|
||||
<div class="drag">
|
||||
<!--[diy=hotarticletop]--><div id="hotarticletop" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
|
||||
<!--{if $data['portalhotarticle']}-->
|
||||
<div class="bm">
|
||||
<div class="bm_h cl">{lang article_hot}</div>
|
||||
<div class="bm_c">
|
||||
<ul class="xl xl1">
|
||||
<!--{loop $data['portalhotarticle'] $value}-->
|
||||
<!--{eval $article_url = fetch_article_url($value);}-->
|
||||
<li><a href="$article_url">$value[title]</a></li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
|
||||
<div class="drag">
|
||||
<!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="wp mtn">
|
||||
<!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
|
||||
<!--{template common/footer}-->
|
129
template/default/portal/list_category_tworanks.htm
Normal file
129
template/default/portal/list_category_tworanks.htm
Normal file
@@ -0,0 +1,129 @@
|
||||
<!--{template common/header}-->
|
||||
<!--[name]{lang portalcategory_listtworanktplname}[/name]-->
|
||||
<!--{eval $data = array();}-->
|
||||
<!--{eval $wheresql = category_get_wheresql($cat);}-->
|
||||
<!--{eval $data = category_get_list_more($cat, $wheresql);}-->
|
||||
|
||||
<div id="pt" class="bm cl">
|
||||
<div class="z">
|
||||
<a href="index.php" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>›</em>
|
||||
<a href="$_G[setting][navs][1][filename]">{lang portal}</a> <em>›</em>
|
||||
<!--{loop $cat[ups] $value}--> <a href="{echo getportalcategoryurl($value[catid])}">$value[catname]</a><em>›</em><!--{/loop}-->
|
||||
$cat[catname]
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style id="diy_style" type="text/css"></style>
|
||||
<div class="wp">
|
||||
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
|
||||
<div id="ct" class="ct2 wp cl">
|
||||
<div class="mn">
|
||||
<!--[diy=listlooptop]--><div id="listlooptop" class="area"></div><!--[/diy]-->
|
||||
<!--{if $cat[subs]}-->
|
||||
<div class="bm bm2 bw0 cl">
|
||||
<!--{eval $counter = 1;}-->
|
||||
<!--{loop $data $key $item}-->
|
||||
<!--{eval $subcatid = intval(str_replace('subcate', '', $key));}-->
|
||||
<!--{if !empty($portalcategory[$subcatid])}-->
|
||||
<div class="bm2_b {echo swapclass('bm2_b_y');}">
|
||||
<div class="bm_h cl">
|
||||
<span class="y xi2">
|
||||
<!--{if ($_G['group']['allowpostarticle'] || $_G['group']['allowmanagearticle'] || $categoryperm[$catid]['allowmanage'] || $categoryperm[$catid]['allowpublish']) && empty($portalcategory[$subcatid]['disallowpublish'])}-->
|
||||
<a href="portal.php?mod=portalcp&ac=article&catid=$subcatid">{lang article_publish}</a>
|
||||
<span class="pipe">|</span>
|
||||
<!--{/if}-->
|
||||
<a href="{$portalcategory[$subcatid]['caturl']}">{lang more}›</a>
|
||||
</span>
|
||||
<h2>{$portalcategory[$subcatid]['catname']}</h2>
|
||||
</div>
|
||||
<div class="bm_c">
|
||||
<ul class="xl xl1">
|
||||
<!--{loop $item $value}-->
|
||||
<!--{eval $article_url = fetch_article_url($value);}-->
|
||||
<li><span class="xl1_elp">• <a href="$article_url" target="_blank">$value[title]</a></span>
|
||||
<em><!--{eval echo dgmdate($value['timestamp'], 'm-d')}--></em>
|
||||
</li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!--{if $counter % 2 == 0}--></div><div class="bm bm2 bw0 cl"><!--{/if}-->
|
||||
<!--{eval $counter++;}-->
|
||||
<!--{/if}-->
|
||||
<!--{/loop}-->
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
|
||||
<!--[diy=listloopbottom]--><div id="listloopbottom" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
<div class="sd">
|
||||
|
||||
<div class="drag">
|
||||
<!--[diy=diyrighttop]--><div id="diyrighttop" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
|
||||
<!--{if $cat[others]}-->
|
||||
<div class="bm">
|
||||
<div class="bm_h cl">
|
||||
<h2>{lang category_related}</h2>
|
||||
</div>
|
||||
<div class="bm_c">
|
||||
<ul class="xl xl2 cl">
|
||||
<!--{loop $cat[others] $value}-->
|
||||
<li><a href="{echo getportalcategoryurl($value[catid])}">$value[catname]</a></li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
|
||||
<div class="drag">
|
||||
<!--[diy=newarticletop]--><div id="newarticletop" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
|
||||
<!--{if $data['portalnewarticle']}-->
|
||||
<div class="bm">
|
||||
<div class="bm_h cl">{lang article_last}</div>
|
||||
<div class="bm_c">
|
||||
<ul class="xl xl1">
|
||||
<!--{loop $data['portalnewarticle'] $value}-->
|
||||
<!--{eval $article_url = fetch_article_url($value);}-->
|
||||
<li><a href="$article_url">$value[title]</a></li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
|
||||
<div class="drag">
|
||||
<!--[diy=hotarticletop]--><div id="hotarticletop" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
|
||||
<!--{if $data['portalhotarticle']}-->
|
||||
<div class="bm">
|
||||
<div class="bm_h cl">{lang article_hot}</div>
|
||||
<div class="bm_c">
|
||||
<ul class="xl xl1">
|
||||
<!--{loop $data['portalhotarticle'] $value}-->
|
||||
<!--{eval $article_url = fetch_article_url($value);}-->
|
||||
<li><a href="$article_url">$value[title]</a></li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
|
||||
<div class="drag">
|
||||
<!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="wp mtn">
|
||||
<!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
|
||||
<!--{template common/footer}-->
|
9
template/default/portal/list_index.htm
Normal file
9
template/default/portal/list_index.htm
Normal file
@@ -0,0 +1,9 @@
|
||||
<!--{template common/header}-->
|
||||
<!--[name]{lang portalcategory_indextplname}[/name]-->
|
||||
<style id="diy_style" type="text/css"></style>
|
||||
|
||||
<div id="ct" class="ct2 wp cl">
|
||||
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
|
||||
<!--{template common/footer}-->
|
39
template/default/portal/portal_attachment.htm
Normal file
39
template/default/portal/portal_attachment.htm
Normal file
@@ -0,0 +1,39 @@
|
||||
<!--{subtemplate common/header_ajax}-->
|
||||
<!--{if $_GET['type'] == 'attach'}-->
|
||||
<table cellpadding="0" cellspacing="0" id="attach_list_$attach[attachid]" summary="post_attachbody" border="0" width="100%">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="attswf">
|
||||
<p id="attach$attach[attachid]">
|
||||
<span>$attach[filetype] <a href="javascript:;" class="xi2" id="attachname$attach[attachid]" isimage="{if $attach['isimage']}1{else}0{/if}" onclick="{if $attach['isimage']}insertImage('$bigimg'){else}insertFile('$attach[filename]', 'portal.php?mod=attachment&id=$attach['attachid']'){/if};doane(event);">{$attach[filename]}</a></span>
|
||||
</p>
|
||||
</td>
|
||||
<td class="atds">$attach[filesize]</td>
|
||||
<td class="attc"><a href="javascript:;" class="d" onclick="deleteAttach($attach[attachid], 'portal.php?mod=attachment&id=$attach[attachid]&op=delete&formhash={FORMHASH}');;return false;" title="{lang delete}">{lang delete}</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<!--{else}-->
|
||||
<a href="javascript:;" class="opattach">
|
||||
<span class="opattach_ctrl">
|
||||
<span onclick="insertImage('$bigimg');" class="cur1">{lang portal_attachment_big_img}</span><span class="pipe">|</span>
|
||||
<span onclick="insertImage('$smallimg', '$bigimg');" class="cur1">{lang portal_attachment_small_img}</span>
|
||||
</span>
|
||||
<img src="{if $smallimg}$smallimg{else}$bigimg{/if}" onclick="insertImage('$bigimg');" class="cur1" />
|
||||
</a>
|
||||
<label for="setconver$attach['attachid']" class="cur1 xi2">
|
||||
<input type="radio" name="setconver" id="setconver$attach['attachid']" class="pr" value="1" onclick="setConver(this.getAttribute('coverstr'))" coverstr='$coverstr'>{lang portal_attachment_set_cover}
|
||||
</label>
|
||||
<span class="pipe">|</span>
|
||||
<span class="cur1 xi2" onclick="deleteAttach('$attach['attachid']', 'portal.php?mod=attachment&id=$attach['attachid']&op=delete&formhash={FORMHASH}');">{lang delete}</span>
|
||||
|
||||
<!--{/if}-->
|
||||
<script type="text/javascript">
|
||||
parent.$('attach_ids').value += ',' + '$attach['attachid']';
|
||||
<!--{if $coverstr}-->
|
||||
if(parent.$('conver').value == '') {
|
||||
parent.$('conver').value = '$coverstr';
|
||||
}
|
||||
<!--{/if}-->
|
||||
</script>
|
||||
<!--{subtemplate common/footer_ajax}-->
|
52
template/default/portal/portal_comment.htm
Normal file
52
template/default/portal/portal_comment.htm
Normal file
@@ -0,0 +1,52 @@
|
||||
<div id="comment" class="bm">
|
||||
<div class="bm_h cl">
|
||||
<!--{if !$data[htmlmade]}-->
|
||||
<!--{if $data[commentnum]}-->
|
||||
<a href="javascript:;" class="y xi2" onclick="location.href=location.href.replace(/(\#.*)/, '')+'#cform';$('message').focus();return false;">{lang post_comment}</a>
|
||||
<!--{/if}-->
|
||||
<!--{else}-->
|
||||
<a href="$common_url#cform" class="y xi2">{lang post_comment}</a>
|
||||
<!--{/if}-->
|
||||
<h3>{lang latest_comment}</h3>
|
||||
</div>
|
||||
<div id="comment_ul" class="bm_c">
|
||||
<!--{loop $commentlist $comment}-->
|
||||
<!--{template portal/comment_li}-->
|
||||
<!--{if !empty($aimgs[$comment[cid]])}-->
|
||||
<script type="text/javascript" reload="1">aimgcount[{$comment[cid]}] = [<!--{echo implode(',', $aimgs[$comment[cid]]);}-->];attachimgshow($comment[cid]);</script>
|
||||
<!--{/if}-->
|
||||
<!--{/loop}-->
|
||||
<!--{if !empty($pricount)}-->
|
||||
<p class="mtn mbn y">{lang hide_portal_comment}</p>
|
||||
<!--{/if}-->
|
||||
<!--{if $data[commentnum]}--><p class="ptm pbm"><a href="$common_url" class="xi2">{lang view_all_comments}(<em id="_commentnum">$data[commentnum]</em>)</a></p><!--{/if}-->
|
||||
<!--{if !$data[htmlmade]}-->
|
||||
<form id="cform" name="cform" action="$form_url" method="post" autocomplete="off">
|
||||
<div class="tedt">
|
||||
<div class="area">
|
||||
<textarea name="message" rows="3" class="pt" id="message" onkeydown="ctrlEnter(event, 'commentsubmit_btn');"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--{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"><!--{subtemplate common/seccheck}--></div>
|
||||
<!--{/if}-->
|
||||
<!--{if !empty($topicid) }-->
|
||||
<input type="hidden" name="referer" value="$topicurl#comment" />
|
||||
<input type="hidden" name="topicid" value="$topicid">
|
||||
<!--{else}-->
|
||||
<input type="hidden" name="portal_referer" value="$viewurl#comment">
|
||||
<input type="hidden" name="referer" value="$viewurl#comment" />
|
||||
<input type="hidden" name="id" value="$data[id]" />
|
||||
<input type="hidden" name="idtype" value="$data[idtype]" />
|
||||
<input type="hidden" name="aid" value="$aid">
|
||||
<!--{/if}-->
|
||||
<input type="hidden" name="formhash" value="{FORMHASH}">
|
||||
<input type="hidden" name="replysubmit" value="true">
|
||||
<input type="hidden" name="commentsubmit" value="true" />
|
||||
<p class="ptn"><button type="submit" name="commentsubmit_btn" id="commentsubmit_btn" value="true" class="pn"><strong>{lang comment}</strong></button></p>
|
||||
</form>
|
||||
<!--{/if}-->
|
||||
</div>
|
||||
</div>
|
23
template/default/portal/portal_diyhelp.htm
Normal file
23
template/default/portal/portal_diyhelp.htm
Normal file
@@ -0,0 +1,23 @@
|
||||
<!--{if !$ref && $_GET['action'] == 'get'}-->
|
||||
<!--{if $allowdiy}-->
|
||||
if(!$('diypage') && $('wp')) {
|
||||
var dom = document.createElement('div');
|
||||
dom.id = 'diypage';
|
||||
dom.className = 'area';
|
||||
$('wp').appendChild(dom);
|
||||
}
|
||||
$('diypage').innerHTML = '<div class="hm" style="border: 2px dashed #CDCDCD; padding:200px 0;"><p class="mbn"><button type="button" class="pn pnc" onclick="saveUserdata(\'diy_advance_mode\', 1);openDiy();"><strong>{lang diyhelp_start_diy}</strong></button></p>\n\<p>{lang diyhelp_doit}\n\
|
||||
<a href="javascript:saveUserdata(\'diy_advance_mode\', \'1\');saveUserdata(\'openfn\',\'drag.openFrameImport(1)\');openDiy();" class="xi2">{lang diyhelp_import}</a></p></div>';
|
||||
|
||||
<!--{else}-->
|
||||
|
||||
if(!$('diypage') && $('wp')) {
|
||||
var dom = document.createElement('div');
|
||||
dom.id = 'diypage';
|
||||
dom.className = 'area';
|
||||
$('wp').appendChild(dom);
|
||||
}
|
||||
$('diypage').innerHTML = '<div class="bm hm xs2 xg1" style="padding:200px 0;">{lang diyhelp_no_content}</div>';
|
||||
|
||||
<!--{/if}-->
|
||||
<!--{/if}-->
|
30
template/default/portal/portal_topic_content.htm
Normal file
30
template/default/portal/portal_topic_content.htm
Normal file
@@ -0,0 +1,30 @@
|
||||
<!--{template common/header}-->
|
||||
<div id="pt" class="bm cl">
|
||||
<div class="z">
|
||||
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>›</em> $topic[title]
|
||||
</div>
|
||||
</div>
|
||||
<link id="style_css" rel="stylesheet" type="text/css" href="{STATICURL}topic/t1/style.css?{VERHASH}">
|
||||
<style id="diy_style" type="text/css"></style>
|
||||
<div id="widgets">
|
||||
</div>
|
||||
<div class="wp">
|
||||
<!--[diy=diypage]-->
|
||||
<div id="diypage" class="area">
|
||||
<div id="frame1" class="frame move-span frame-1 cl">
|
||||
<div class="frame-title title" id="frame1"><span class="titletext">{lang frame}</span></div>
|
||||
<div id="frame1_left" class="column frame-1-c"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!--[/diy]-->
|
||||
<!--{if $topic['allowcomment']==1}-->
|
||||
{eval
|
||||
$data = &$topic;
|
||||
$common_url = "portal.php?mod=comment&id=$topicid&idtype=topicid";
|
||||
$form_url = "portal.php?mod=portalcp&ac=comment";
|
||||
$commentlist = portaltopicgetcomment($topicid); }
|
||||
<!--{template portal/portal_comment}-->
|
||||
<!--{/if}-->
|
||||
</div>
|
||||
<script src="misc.php?mod=diyhelp&action=get&type=topic&diy=yes&topicid=$topicid&r={echo random(4)}" type="text/javascript"></script>
|
||||
<!--{template common/footer}-->
|
409
template/default/portal/portalcp_article.htm
Normal file
409
template/default/portal/portalcp_article.htm
Normal file
@@ -0,0 +1,409 @@
|
||||
<!--{template common/header}-->
|
||||
|
||||
<!--{if $op == 'delete'}-->
|
||||
|
||||
<h3 class="flb">
|
||||
<em>{lang article_delete}</em>
|
||||
<!--{if $_G[inajax]}--><span><a href="javascript:;" onclick="hideWindow('$_GET[handlekey]');" class="flbc" title="{lang close}">{lang close}</a></span><!--{/if}-->
|
||||
</h3>
|
||||
|
||||
<form method="post" autocomplete="off" action="portal.php?mod=portalcp&ac=article&op=delete&aid=$_GET[aid]">
|
||||
<div class="c">
|
||||
<!--{if $_G['group']['allowpostarticlemod'] && $article['status'] == 1}-->
|
||||
{lang article_delete_sure}
|
||||
<input type="hidden" name="optype" value="0" class="pc" />
|
||||
<!--{else}-->
|
||||
<label class="lb"><input type="radio" name="optype" value="0" class="pc" />{lang article_delete_direct}</label>
|
||||
<label class="lb"><input type="radio" name="optype" value="1" class="pc" checked="checked" />{lang article_delete_recyclebin}</label>
|
||||
<!--{/if}-->
|
||||
</div>
|
||||
<p class="o pns">
|
||||
<button type="submit" name="btnsubmit" value="true" class="pn pnc"><strong>{lang confirms}</strong></button>
|
||||
</p>
|
||||
<input type="hidden" name="aid" value="$_GET[aid]" />
|
||||
<input type="hidden" name="referer" value="{echo dreferer()}" />
|
||||
<input type="hidden" name="deletesubmit" value="true" />
|
||||
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
||||
</form>
|
||||
<!--{elseif $op == 'verify'}-->
|
||||
<h3 class="flb">
|
||||
<em id="return_$_GET[handlekey]">{lang moderate_article}</em>
|
||||
<!--{if $_G[inajax]}--><span><a href="javascript:;" onclick="hideWindow('$_GET[handlekey]');" class="flbc" title="{lang close}">{lang close}</a></span><!--{/if}-->
|
||||
</h3>
|
||||
|
||||
<form method="post" autocomplete="off" id="aritcle_verify_$aid" action="portal.php?mod=portalcp&ac=article&op=verify&aid=$aid">
|
||||
<div class="c">
|
||||
<label for="status_0" class="lb"><input type="radio" class="pr" name="status" value="0" id="status_0"{if $article[status]=='1'} checked="checked"{/if} />{lang passed}</label>
|
||||
<label for="status_x" class="lb"><input type="radio" class="pr" name="status" value="-1" id="status_x" />{lang delete}</label>
|
||||
<label for="status_2" class="lb"><input type="radio" class="pr" name="status" value="2" id="status_2"{if $article[status]=='2'} checked="checked"{/if} />{lang ignore}</label>
|
||||
</div>
|
||||
<p class="o pns">
|
||||
<button type="submit" name="btnsubmit" value="true" class="pn pnc"><strong>{lang confirms}</strong></button>
|
||||
</p>
|
||||
<input type="hidden" name="aid" value="$aid" />
|
||||
<input type="hidden" name="referer" value="{echo dreferer()}" />
|
||||
<input type="hidden" name="handlekey" value="$_GET['handlekey']" />
|
||||
<input type="hidden" name="verifysubmit" value="true" />
|
||||
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
||||
</form>
|
||||
<!--{elseif $op == 'related'}-->
|
||||
|
||||
<!--{if $ra}-->
|
||||
<li id="raid_li_$ra[aid]"><input type="hidden" name="raids[]" value="$ra[aid]" size="5">[ $ra[aid] ] <a href="{echo fetch_article_url($ra);}" target="_blank">$ra[title]</a> <a href="javascript:;" onclick="raid_delete($ra[aid]);">{lang delete}</a></li>
|
||||
<!--{/if}-->
|
||||
|
||||
<!--{elseif $op == 'pushplus'}-->
|
||||
<h3 class="flb">
|
||||
<em>{lang article_pushplus}</em>
|
||||
<!--{if $_G[inajax]}--><span><a href="javascript:;" onclick="hideWindow('$_GET[handlekey]');" class="flbc" title="{lang close}">{lang close}</a></span><!--{/if}-->
|
||||
</h3>
|
||||
<form method="post" target="_blank" action="portal.php?mod=portalcp&ac=article&tid=$tid&aid=$aid">
|
||||
<div class="c">
|
||||
<b>$pushcount</b> {lang portalcp_article_message1}<a href="$article_url" target="_blank" class="xi2">({lang view_article})</a>
|
||||
<!--{if $pushedcount}--><br />{lang portalcp_article_message2}<!--{/if}-->
|
||||
<div id="pushplus_list">
|
||||
<!--{loop $pids $pid}-->
|
||||
<input type="hidden" name="pushpluspids[]" value="$pid" />
|
||||
<!--{/loop}-->
|
||||
</div>
|
||||
</div>
|
||||
<p class="o pns">
|
||||
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
||||
<input type="hidden" name="pushplussubmit" value="1" />
|
||||
|
||||
<input type="hidden" name="toedit" value="1" />
|
||||
<button type="submit" class="pn pnc vm"><span>{lang submit}</span></button>
|
||||
</p>
|
||||
</form>
|
||||
<!--{elseif $op == 'add_success'}-->
|
||||
<div class="nfl">
|
||||
<div class="f_c altw">
|
||||
<div class="alert_right">
|
||||
<p>{lang article_send_succeed}</p>
|
||||
<p class="alert_btnleft">
|
||||
<a href="{$article_add_url}&op=edit&aid=$aid">{lang article_edit}</a>
|
||||
<span class="pipe">|</span>
|
||||
<a href="$article_add_url">{lang article_send_continue}</a>
|
||||
<span class="pipe">|</span>
|
||||
<a href="portal.php?mod=view&aid=$aid" target="_blank">{lang view_article}</a>
|
||||
<!--{if $htmlstatus}-->
|
||||
<span class="pipe">|</span>
|
||||
<span id='makehtml_' mktitle="{lang article}"></span>
|
||||
<!--{/if}-->
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="{STATICURL}js/makehtml.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
<!--{if !empty($_G['cookie']['clearUserdata']) && $_G['cookie']['clearUserdata'] == 'home'}-->
|
||||
saveUserdata('home', '')
|
||||
<!--{/if}-->
|
||||
make_html('portal.php?mod=view&aid={$aid}', $('makehtml_'));
|
||||
</script>
|
||||
<!--{else}-->
|
||||
|
||||
<div id="pt" class="bm cl">
|
||||
<div class="z">
|
||||
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>›</em>
|
||||
<a href="$_G[setting][navs][1][filename]">$_G[setting][navs][1][navname]</a> <em>›</em>
|
||||
<!--{if $catid }-->
|
||||
<a href="$portalcategory[$catid]['caturl']">$portalcategory[$catid]['catname']</a> <em>›</em>
|
||||
<!--{/if}-->
|
||||
<!--{if !empty($aid)}-->
|
||||
<a href="portal.php?mod=portalcp&ac=article&aid=$article[aid]">{lang article_edit}</a>
|
||||
<!--{else}-->
|
||||
<a href="portal.php?mod=portalcp&ac=article&catid=$catid">{lang article_publish}</a>
|
||||
<!--{/if}-->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="ct" class="wp cl">
|
||||
<div class="mn">
|
||||
<div class="bm bw0">
|
||||
<h1 class="mbm bbs mt"><!--{if !empty($aid)}-->{lang article_edit}<!--{else}-->{lang article_publish}<!--{/if}--></h1>
|
||||
<script type="text/javascript" src="{$_G[setting][jspath]}calendar.js?{VERHASH}"></script>
|
||||
<form method="post" autocomplete="off" id="articleform" action="portal.php?mod=portalcp&ac=article{if $_GET[modarticlekey]}&modarticlekey=$_GET[modarticlekey]{/if}" enctype="multipart/form-data">
|
||||
<!--{hook/portalcp_top}-->
|
||||
<div class="dopt cl">
|
||||
<span class="z mtn" style="width: 80px;">{lang article_title}: </span>
|
||||
<input type="text" name="title" id="title" class="px" value="$article[title]" size="80" />
|
||||
<input type="button" id="color_style" class="pn colorwd" title="{lang select_color}" fwin="eleStyle" onclick="change_title_color(this.id);" style="background-color:$stylecheck[0]" />
|
||||
<input type="hidden" id="highlight_style_0" name="highlight_style[0]" value="$stylecheck[0]" />
|
||||
<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_op_1" onclick="switchhl(this, 1)" class="dopt_b{if $stylecheck[1]} cnt{/if}" style="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-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-decoration:underline" title="{lang e_underline}">U</a>
|
||||
</div>
|
||||
<div id="htmlname_" class="dopt mtn cl"{if !$htmlstatus} style="display: none"{/if}>
|
||||
<span class="z mtn" style="width: 80px;">HTML{lang filename}:</span>
|
||||
<input type="text" name="htmlname" id="htmlname" class="px" value="$article[htmlname]" size="80" onblur="check_htmlname_exists(this)"/>.{$_G['setting']['makehtml']['extendname']}
|
||||
<strong id="checkhtmlnamemsg"></strong>
|
||||
<input type="hidden" name="oldhtmlname" id="oldhtmlname" value="$article[htmlname]" />
|
||||
</div>
|
||||
<div id="pagetitle_" class="dopt mtn cl"{if $article[contents] < 2} style="display: none"{/if}>
|
||||
<span class="z mtn" style="width: 80px;">{lang page_title}: </span>
|
||||
<input type="text" name="pagetitle" id="pagetitle" class="px" value="$article_content[title]" size="80" />
|
||||
</div>
|
||||
|
||||
<div class="exfm pns cl">
|
||||
<div class="sinf sppoll z">
|
||||
<dl>
|
||||
<!--{if $_G['cache']['portalcategory'] && $categoryselect}-->
|
||||
<dt>{lang article_category}</dt>
|
||||
<dd><div class="ftid">$categoryselect</div><script type="text/javascript">simulateSelect('catid', 158);</script></dd>
|
||||
<!--{/if}-->
|
||||
|
||||
<dt>{lang article_source}</dt>
|
||||
<dd>
|
||||
<input type="text" id="from" name="from" class="px p_fre" value="$article[from]" {if $from_cookie}size="10"{else}size="30"{/if} />
|
||||
<!--{if $from_cookie}-->
|
||||
<select name="from_cookie" id="from_cookie" class="ps" onchange="$('from').value=this.value;" style="width:96px;">
|
||||
<option value="" selected>{lang choose_please}</option>
|
||||
<!--{loop $from_cookie $var}-->
|
||||
<option value="$var">$var</option>
|
||||
<!--{/loop}-->
|
||||
</select>
|
||||
<!--{/if}-->
|
||||
</dd>
|
||||
<dt>{lang article_source_url}</dt>
|
||||
<dd><input type="text" name="fromurl" class="px p_fre" value="$article[fromurl]" size="30" /></dd>
|
||||
<dt>{lang article_dateline}</dt>
|
||||
<dd><input type="text" name="dateline" class="px p_fre" value="$article[dateline]" size="30" onclick="showcalendar(event, this, true)" /></dd>
|
||||
|
||||
</dl>
|
||||
</div>
|
||||
<div class="sadd z">
|
||||
<dl>
|
||||
<!--{if empty($article['aid'])}-->
|
||||
<dt>{lang article_auto_grab}</dt>
|
||||
<dd>
|
||||
<span class="ftid">
|
||||
<select name="from_idtype" id="from_idtype" class="ps" change="$('ele_getauthorall').style.display=($('from_idtype').value=='tid' ? '' : 'none');">
|
||||
<option value="tid"$idtypes[tid]>{lang thread} tid</option>
|
||||
<option value="blogid"$idtypes[blogid]>{lang blog} id</option>
|
||||
</select>
|
||||
|
||||
</span>
|
||||
<script type="text/javascript">simulateSelect('from_idtype', 81);</script>
|
||||
<input type="text" name="from_id" id="from_id" value="$_GET[from_id]" size="8" class="px p_fre vm" />
|
||||
<!--{if $_GET['from_idtype'] == 'tid'}-->
|
||||
<span id="ele_getauthorall">
|
||||
<label for="getauthorall"><input type="checkbox" name="getauthorall" id="getauthorall" value="1" class="pc" {if $_GET['getauthorall']}checked="checked"{/if}/>{lang article_getauthorall}</label>
|
||||
</span>
|
||||
<!--{/if}-->
|
||||
<button type="button" name="from_button" class="pn vm" onclick="return from_get();"><em>{lang grab}</em></button>
|
||||
<input type="hidden" name="id" value="$_GET[from_id]" />
|
||||
<input type="hidden" name="idtype" value="$_GET[from_idtype]" />
|
||||
</dd>
|
||||
<!--{/if}-->
|
||||
<dt>{lang article_url}</dt>
|
||||
<dd><input type="text" class="px p_fre" name="url" value="$article[url]" size="30" /></dd>
|
||||
<dt>{lang article_author}</dt>
|
||||
<dd><input type="text" name="author" class="px p_fre" value="$article[author]" size="30" /></dd>
|
||||
<!--{if $category[$catid][allowcomment]}-->
|
||||
<dt>{lang article_comment_setup}</dt>
|
||||
<dd><label for="ck_allowcomment"><input type="checkbox" name="forbidcomment" id="ck_allowcomment" class="pc" value="1"{if isset($article['allowcomment']) && empty($article['allowcomment'])}checked="checked"{/if} />{lang article_forbidcomment_description}</label></dd>
|
||||
<!--{/if}-->
|
||||
</dl>
|
||||
<div><input type="hidden" id="conver" name="conver" value="" /></div>
|
||||
</div>
|
||||
<!--{hook/portalcp_extend}-->
|
||||
</div>
|
||||
|
||||
<div class="pbw">
|
||||
<script type="text/javascript" language="javascript" src="{STATICURL}image/editor/editor_function.js?{VERHASH}"></script>
|
||||
<!--{subtemplate home/editor_image_menu}-->
|
||||
<textarea class="userData" name="content" id="uchome-ttHtmlEditor" style="height: 100%; width: 100%; display: none; border: 0px">$article_content[content]</textarea>
|
||||
<div style="border:1px solid #C5C5C5;height:400px;"><iframe src="home.php?mod=editor&charset={CHARSET}&allowhtml=1&isportal=1" name="uchome-ifrHtmlEditor" id="uchome-ifrHtmlEditor" scrolling="no" border="0" frameborder="0" style="width:100%;height:100%;position:relative;"></iframe></div>
|
||||
</div>
|
||||
|
||||
<!--{hook/portalcp_middle}-->
|
||||
|
||||
<div class="bm bml">
|
||||
<div class="bm_h cl">
|
||||
<h2>{lang article_description}</h2>
|
||||
</div>
|
||||
<div class="bm_c"><textarea name="summary" cols="80" class="pt" style="width: 98.7%; height: 51px;">$article[summary]</textarea></div>
|
||||
</div>
|
||||
|
||||
<div class="bm bml">
|
||||
<div class="bm_h cl">
|
||||
<h2>{lang article_tag}</h2>
|
||||
</div>
|
||||
<div class="bm_c">
|
||||
<!--{loop $article_tags $key $tag}-->
|
||||
<input type="checkbox" name="tag[$key]" id="article_tag_$key" class="pc"{if $article_tags[$key]} checked="checked"{/if} />
|
||||
<label for="article_tag_$key" class="lb">$tag_names[$key]</label>
|
||||
<!--{/loop}-->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="exfm">
|
||||
<h2>{lang article_related} <a id="related_article" href="portal.php?mod=portalcp&ac=related&aid=$aid" class="xi2" style="text-decoration: underline;" onclick="showWindow(this.id, this.href+'&catid='+$('catid').value, 'get', 0);return false;">{lang select}</a></h2>
|
||||
<ul id="raid_div" class="xl">
|
||||
<!--{if $article[related]}-->
|
||||
<!--{loop $article[related] $raid $rtitle}-->
|
||||
<li id="raid_li_$raid"><input type="hidden" name="raids[]" value="$raid" size="5"><a href="portal.php?mod=view&aid=$raid" target="_blank">$rtitle</a> ({lang article_id}: $raid) <a href="javascript:;" onclick="raid_delete($raid);" class="xg1">{lang delete}</a></li>
|
||||
<!--{/loop}-->
|
||||
<!--{/if}-->
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!--{hook/portalcp_bottom}-->
|
||||
|
||||
<!--{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="exfm pns"><!--{subtemplate common/seccheck}--></div>
|
||||
<!--{/if}-->
|
||||
|
||||
<div class="ptm pbm">
|
||||
<button type="button" id="issuance" class="pn pnc" name="articlebutton" onclick="validate(this);"><strong>{lang submit}</strong></button>
|
||||
<label id="innernavele"{if $article[contents] < 2} style="display: none"{/if} for="ck_showinnernav"><input type="checkbox" name="showinnernav" id="ck_showinnernav" class="pc" value="1"{if !empty($article['showinnernav'])}checked="checked"{/if} />{lang article_show_inner_navigation}</label>
|
||||
</div>
|
||||
|
||||
<input type="hidden" id="aid" name="aid" value="$article[aid]" />
|
||||
<input type="hidden" name="cid" value="$article_content[cid]" />
|
||||
<input type="hidden" id="attach_ids" name="attach_ids" value="0" />
|
||||
<input type="hidden" name="articlesubmit" value="true" />
|
||||
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<iframe id="uploadframe" name="uploadframe" width="0" height="0" marginwidth="0" frameborder="0" src="about:blank"></iframe>
|
||||
<script type="text/javascript">
|
||||
function from_get() {
|
||||
var el = $('catid');
|
||||
var catid = el ? el.value : 0;
|
||||
window.location.href='portal.php?mod=portalcp&ac=article&from_idtype='+$('from_idtype').value+'&catid='+catid+'&from_id='+$('from_id').value+'&getauthorall='+($('getauthorall').checked ? '1' : '');
|
||||
return true;
|
||||
}
|
||||
function validate(obj) {
|
||||
var title = $('title');
|
||||
if(title) {
|
||||
var slen = dstrlen(title.value);
|
||||
if (slen < $_G['setting']['minsubjectsize'] || slen > $_G['setting']['maxsubjectsize']) {
|
||||
alert("{lang article_validate_title}");
|
||||
title.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if(!check_catid()) {
|
||||
return false;
|
||||
}
|
||||
edit_save();
|
||||
window.onbeforeunload = null;
|
||||
obj.form.submit();
|
||||
return false;
|
||||
}
|
||||
function check_catid(){
|
||||
var catObj = $("catid");
|
||||
if(catObj) {
|
||||
if (catObj.value < 1) {
|
||||
alert("{lang article_validate_category}");
|
||||
catObj.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
function raid_add() {
|
||||
var raid = $('raid').value;
|
||||
if($('raid_li_'+raid)) {
|
||||
alert('{lang article_validate_has_added}');
|
||||
return false;
|
||||
}
|
||||
var url = 'portal.php?mod=portalcp&ac=article&op=related&inajax=1&aid={$article[aid]}&raid='+raid;
|
||||
var x = new Ajax();
|
||||
x.get(url, function(s){
|
||||
s = trim(s);
|
||||
if(s) {
|
||||
$('raid_div').innerHTML += s;
|
||||
} else {
|
||||
alert('{lang article_validate_noexist}');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
function raid_delete(aid) {
|
||||
var node = $('raid_li_'+aid);
|
||||
var p;
|
||||
if(p = node.parentNode) {
|
||||
p.removeChild(node);
|
||||
}
|
||||
}
|
||||
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 change_title_color(hlid) {
|
||||
var showid = hlid;
|
||||
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="$(\'highlight_style_0\').value=\'' + coloroptions[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($('title')) {
|
||||
$('title').focus();
|
||||
}
|
||||
function setConver(attach) {
|
||||
$('conver').value = attach;
|
||||
}
|
||||
|
||||
function deleteAttach(attachid, url) {
|
||||
ajaxget(url);
|
||||
$('attach_list_' + attachid).style.display = 'none';
|
||||
if($('setconver' + attachid).checked) {
|
||||
$('conver').value = '';
|
||||
}
|
||||
}
|
||||
<!--{if !empty($article['conver'])}-->
|
||||
setConver('$article[conver]');
|
||||
<!--{/if}-->
|
||||
function check_htmlname_exists(obj) {
|
||||
name = obj.value;
|
||||
var msg = $('checkhtmlnamemsg');
|
||||
if(name && $('oldhtmlname').value != name) {
|
||||
var catid = $('catid').value;
|
||||
var aid = $('aid').value;
|
||||
var x = new Ajax();
|
||||
x.getJSON('portal.php?mod=portalcp&ac=article&op=checkhtmlname&htmlname='+name+'&catid='+catid+'&aid='+aid, function(s){
|
||||
if(s['message'] == 'html_existed') {
|
||||
obj.focus();
|
||||
msg.style.color = 'red';
|
||||
msg.style.paddingLeft = '10px';
|
||||
msg.innerHTML = '{lang article_html_existed}';
|
||||
$('issuance').disabled = 'disabled';
|
||||
} else {
|
||||
msg.innerHTML = '';
|
||||
$('issuance').disabled = '';
|
||||
}
|
||||
});
|
||||
} else {
|
||||
msg.innerHTML = '';
|
||||
$('issuance').disabled = '';
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<!--{/if}-->
|
||||
|
||||
<!--{template common/footer}-->
|
776
template/default/portal/portalcp_block.htm
Normal file
776
template/default/portal/portalcp_block.htm
Normal file
@@ -0,0 +1,776 @@
|
||||
<!--{template common/header}-->
|
||||
<!--{if !$_G['inajax'] && in_array($op, array('block', 'data', 'itemdata'))}-->
|
||||
<div id="pt" class="bm cl">
|
||||
<div class="z">
|
||||
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>›</em>
|
||||
<a href="$_G[setting][navs][1][filename]">{lang portal}</a> <em>›</em>
|
||||
<a href="portal.php?mod=portalcp"><!--{if $_G['setting']['portalstatus'] }-->{lang portal_manage}<!--{else}-->{lang portal_block_manage}<!--{/if}--></a> <em>›</em>
|
||||
<a href="portal.php?mod=portalcp&ac=portalblock">{lang block_management}</a>
|
||||
<!--{if $bid}--> <em>›</em><a href="portal.php?mod=portalcp&ac=block&op=block&bid=$bid"><!--{if $block[name]}-->$block[name]<!--{else}--># $block[bid]<!--{/if}--></a><!--{/if}-->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="ct" class="ct2_a wp cl">
|
||||
<div class="mn">
|
||||
<div class="bm bw0">
|
||||
<div id="block_selection">
|
||||
|
||||
<ul class="tb cl">
|
||||
<!--{if $allowmanage}-->
|
||||
<li id="li_setting"{if $op=="block"} class="a"{/if}><a href="portal.php?mod=portalcp&ac=block&bid=$bid&op=block{if $_GET[from]}&from=$_GET[from]{/if}">{lang block_properties}</a></li>
|
||||
<!--{/if}-->
|
||||
<!--{if $bid && !$is_htmlblock}-->
|
||||
<!--{if $allowmanage || $allowdata}-->
|
||||
<li id="li_data"{if $op=="data"} class="a"{/if}><a href="portal.php?mod=portalcp&ac=block&bid=$bid&op=data{if $_GET[from]}&from=$_GET[from]{/if}">{lang block_data}</a></li>
|
||||
<!--{/if}-->
|
||||
<!--{/if}-->
|
||||
<!--{if $is_recommendable}-->
|
||||
<li id="li_itemdata"{if $op=="itemdata"} class="a"{/if}><a href="portal.php?mod=portalcp&ac=block&bid=$bid&op=itemdata{if $_GET[from]}&from=$_GET[from]{/if}">{lang block_itemdata}</a></li>
|
||||
<!--{/if}-->
|
||||
<!--{if $op == 'data' && ($allowmanage || $allowdata)}-->
|
||||
<button class="pn pnc y" title="{lang block_adddata_comment}" onclick="showWindow('$_GET[handlekey]', 'portal.php?mod=portalcp&ac=block&bid=$bid&op=additem{if $_G[inajax]}&itemfrom=ajax{/if}{if $_GET[from]}&from=$_GET[from]{/if}')"><em>{lang block_adddata}</em></button>
|
||||
<!--{/if}-->
|
||||
</ul>
|
||||
<!--{/if}-->
|
||||
|
||||
<!--{if $_G['inajax'] && in_array($op, array('block', 'data', 'style', 'moreurl'))}-->
|
||||
<script type="text/javascript" reload="1">
|
||||
function succeedhandle_$_GET[handlekey] (url, message, values) {
|
||||
<!--{if $_GET[from]=='cp'}-->
|
||||
location.reload();
|
||||
<!--{else}-->
|
||||
var bid = values['bid'];
|
||||
var eleid = typeof values['eleid'] == 'undefined' ? 0 : values['eleid'];
|
||||
var x = new Ajax();
|
||||
var openTitle = 0;
|
||||
drag.setClose();
|
||||
x.get('portal.php?mod=portalcp&ac=block&op=getblock&forceupdate=1&bid='+bid+'&tpl=$_GET[tpl]&inajax=1<!--{if $_GET[from]}-->&from=$_GET[from]<!--{/if}-->', function(s) {
|
||||
var obj = document.createElement('div');
|
||||
bid = 'portal_block_'+bid;
|
||||
obj.innerHTML = s;
|
||||
if ($(bid) != null) {
|
||||
drag.stopSlide(bid);
|
||||
if($(bid+'_content')) $(bid+'_content').parentNode.removeChild($(bid+'_content'));
|
||||
$(bid).innerHTML = obj.childNodes[0].innerHTML;
|
||||
if(s.indexOf('runslideshow();') > 0) {
|
||||
runslideshow();
|
||||
}
|
||||
} else {
|
||||
$(eleid).parentNode.replaceChild(obj.childNodes[0],$(eleid));
|
||||
openTitle = 1;
|
||||
}
|
||||
drag.initPosition();
|
||||
evalscript(s);
|
||||
if (openTitle == 1) drag.openTitleEdit(bid);
|
||||
});
|
||||
<!--{/if}-->
|
||||
hideWindow('$_GET[handlekey]');
|
||||
}
|
||||
</script>
|
||||
<!--{block blocknav}-->
|
||||
<!--{if $allowmanage}-->
|
||||
<li id="li_setting"{if $op=="block"} class="a"{/if}><a href="portal.php?mod=portalcp&ac=block&bid=$bid&op=block{if $_GET[from]}&from=$_GET[from]{/if}" onclick="showWindow('$_GET[handlekey]', this.getAttribute('href'));">{lang block_properties}</a></li>
|
||||
<!--{/if}-->
|
||||
<!--{if $bid && !$is_htmlblock}-->
|
||||
<!--{if $allowmanage || $allowdata}-->
|
||||
<li id="li_data"{if $op=="data"} class="a"{/if}><a href="portal.php?mod=portalcp&ac=block&bid=$bid&op=data{if $_GET[from]}&from=$_GET[from]{/if}" onclick="showWindow('$_GET[handlekey]', this.getAttribute('href'));">{lang block_data}</a></li>
|
||||
<!--{/if}-->
|
||||
<!--{if $allowmanage}-->
|
||||
<li id="li_style"{if $op=="style"} class="a"{/if}><a href="portal.php?mod=portalcp&ac=block&bid=$bid&op=style{if $_GET[from]}&from=$_GET[from]{/if}" onclick="showWindow('$_GET[handlekey]', this.getAttribute('href'));">{lang block_template}</a></li>
|
||||
<!--{if $block['moreurl']}-->
|
||||
<li id="li_moreurl"{if $op=="moreurl"} class="a"{/if}><a href="portal.php?mod=portalcp&ac=block&bid=$bid&op=moreurl{if $_GET[from]}&from=$_GET[from]{/if}" onclick="showWindow('$_GET[handlekey]', this.getAttribute('href'));">{lang block_moreurl}</a></li>
|
||||
<!--{/if}-->
|
||||
<!--{/if}-->
|
||||
<!--{/if}-->
|
||||
<!--{/block}-->
|
||||
<!--{/if}-->
|
||||
|
||||
<!--{if $op == 'block'}-->
|
||||
<!--{if $_G[inajax]}-->
|
||||
<h3 class="flb">
|
||||
<em id="return_$_GET[handlekey]">{lang block_edit}</em>
|
||||
<span><a href="javascript:;" class="flbc" onclick="hideWindow('$_GET[handlekey]');{if empty($bid) && $_GET['from']!='cp'}drag.removeBlock('$_GET[eleid]',true);{/if}return false;" title="{lang close}">{lang close}</a></span>
|
||||
</h3>
|
||||
<ul class="tb cl">
|
||||
$blocknav
|
||||
</ul>
|
||||
<!--{/if}-->
|
||||
<form id="blockformsetting" name="blockformsetting" method="post" enctype="multipart/form-data" autocomplete="off" action="portal.php?mod=portalcp&ac=block&op=block&classname=$_GET[classname]&bid=$block[bid]&blocktype=$blocktype&eleid=$_GET['eleid']&tpl=$_GET[tpl]"{if $_G[inajax]} onsubmit="if(checkblockname(this)){ajaxpost('blockformsetting','return_$_GET[handlekey]','return_$_GET[handlekey]','onerror');} else {return false;}"{else} onsubmit="return checkblockname(this);"{/if} class="fdiy">
|
||||
<div class="c diywin"{if $_G[inajax]} style="width: 490px; {if $_GET[from]=='cp'}max-height:260px;{else}max-height:380px;{/if}height:auto !important; {if $_GET[from]=='cp'}height:260px;{else}height:380px;{/if} _padding-right: 17px; overflow-x: hidden; overflow-y: auto;"{/if}>
|
||||
<div id="block_setting">
|
||||
<table class="tfm mbm">
|
||||
<!--{if $showhtmltip}-->
|
||||
<tr>
|
||||
<td colspan="2" style="color: red">
|
||||
{lang block_properties_comment}</td>
|
||||
</tr>
|
||||
<!--{/if}-->
|
||||
<tr>
|
||||
<th width="80">{lang block_id}</th>
|
||||
<td>
|
||||
<input type="text" id="name" name="name" value="$block[name]" class="px" />
|
||||
<script type="text/javascript">document.forms['blockformsetting']['name'].focus();</script>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th width="80">{lang block_type}</th>
|
||||
<td>
|
||||
<!--{eval list($bigclass) = explode('_',$block['blockclass']);}-->
|
||||
<!--{if !empty($_G['cache']['blockconvert']) && !empty($_G['cache']['blockconvert'][$bigclass][$block['blockclass']])}-->
|
||||
<select name="toblockclass" onchange="blockconver(this, '$block[bid]');" class="ps">
|
||||
<option value="$block[blockclass]">$blockclassname</option>
|
||||
<!--{loop $_G['cache']['blockconvert'][$bigclass][$block['blockclass']] $bblockclass $convertarr}-->
|
||||
<option value="$bblockclass">$convertarr[name]</option>
|
||||
<!--{/loop}-->
|
||||
</select>
|
||||
<img src="{IMGDIR}/faq.gif" alt="Tip" class="vm" onmouseover="showTip(this)" tip="{lang block_type_convert_tips}" />
|
||||
<!--{else}-->
|
||||
$blockclassname
|
||||
<!--{/if}-->
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th width="80">{lang block_data_source}</th>
|
||||
<td>
|
||||
<select name="script" onchange="block_get_setting('$_GET[classname]', this.value, '$block[bid]');" class="ps">
|
||||
<!--{loop $theclass[script] $bkey $bname}-->
|
||||
<option value="$bkey"{$scriptarr[$bkey]}>$bname</option>
|
||||
<!--{/loop}-->
|
||||
</select>
|
||||
<!--{if $is_recommendable}-->
|
||||
<label><input type="checkbox" name="isblank" id="isblank" class="pc" value="1" {if $block[isblank]} checked{/if} onclick="switchSetting();" />{lang block_isblank}</label>
|
||||
<img src="{IMGDIR}/faq.gif" alt="Tip" class="vm" onmouseover="showTip(this)" tip="{lang block_isblank_tips}" />
|
||||
<!--{/if}-->
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="l">
|
||||
<th></th>
|
||||
<td>
|
||||
<a id="a_setting_show" href="javascript:;" onclick="toggleSettingShow();"class="xi2">{lang hide_setting}</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tbody id="tbody_setting"{if $block[isblank]} style="display:none;"{/if}>
|
||||
<!--{subtemplate portal/portalcp_block_setting}-->
|
||||
</tbody>
|
||||
<!--{if !$is_htmlblock}-->
|
||||
<tr>
|
||||
<th>{lang block_item_display_num}</th>
|
||||
<td><input type="text" name="shownum" value="$block[shownum]" class="px" /></td>
|
||||
</tr>
|
||||
<!--{/if}-->
|
||||
<!--{if !$nocachetime}-->
|
||||
<tr>
|
||||
<th width="80">{lang block_data_update_cache}</th>
|
||||
<td>
|
||||
<span><input type="text" name="cachetime" id="txt_cachetime" class="px" size="4" maxlength="6" value="$block[cachetime_min]" /> {lang minute}</span>
|
||||
<span id="tbody_range"{if $block[punctualupdate]} style="visibility:hidden;"{/if}>
|
||||
{lang cachetimerange}
|
||||
<select name="cachetimerangestart" class="ps vm" >
|
||||
<!--{loop $cachetimerange $value}-->
|
||||
<option value="$value" {if $value == $block['cachetimerange'][0]} selected="selected"{/if}>{$value}{lang point}</option>
|
||||
<!--{/loop}-->
|
||||
</select> -
|
||||
<select name="cachetimerangeend" class="ps vm" >
|
||||
<!--{loop $cachetimerange $value}-->
|
||||
<option value="$value" {if $value == $block['cachetimerange'][1]} selected="selected"{/if}>{$value}{lang point}</option>
|
||||
<!--{/loop}-->
|
||||
</select>
|
||||
</span>
|
||||
</p>
|
||||
<p class="ptn xi2">
|
||||
<a href="javascript:;" onclick="blockSetCacheTime(10);this.blur();">10{lang minute}</a>
|
||||
<a href="javascript:;" onclick="blockSetCacheTime('60');this.blur();">1{lang hour}</a>
|
||||
<a href="javascript:;" onclick="blockSetCacheTime('1440');this.blur();">1{lang day}</a>
|
||||
<label for="ckpunctualupdate"><input type="checkbox" name="punctualupdate" id="ckpunctualupdate" class="pc" onclick="$('tbody_range').style.visibility = (this.checked ? 'hidden' : 'visible');" value="1"{if $block[punctualupdate]} checked="checked"{/if} />{lang punctualupdate}</label>
|
||||
<img src="{IMGDIR}/faq.gif" alt="Tip" class="vm" onmouseover="showTip(this)" tip="{lang punctualupdate_tips}" />
|
||||
<span class="pipe">|</span>
|
||||
<a href="javascript:;" onclick="blockSetCacheTime('0');this.blur();">{lang not_auto_update}</a>
|
||||
<a href="javascript:;" onclick="blockSetCacheTime('-1');this.blur();">{lang never_update}</a>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<!--{/if}-->
|
||||
<!--{if !$is_htmlblock}-->
|
||||
<tr>
|
||||
<th width="80">{lang block_display_style}</th>
|
||||
<td>
|
||||
<select name="styleid" onchange="block_show_thumbsetting('$_GET[classname]', this.value, '$block[bid]')" class="ps">
|
||||
<!--{if $bid && $block[styleid]==0}-->
|
||||
<option value="0" selected>{lang diy_module}</option>
|
||||
<!--{/if}-->
|
||||
<!--{loop $theclass[style] $key $value}-->
|
||||
<!--{eval $thestyle = count($thestyle) > 1 ? $thestyle : $theclass['style'][$key];}-->
|
||||
<option value="$key"{$stylearr[$key]}>$value[name]</option>
|
||||
<!--{/loop}-->
|
||||
</select>
|
||||
<!--{if $blocktype}-->
|
||||
|
||||
<label for="ck_hidedisplay"><input type="checkbox" name="hidedisplay" id="ck_hidedisplay" class="pc" value="1"{if $block[hidedisplay]} checked="checked"{/if} />{lang hidedisplay}</label>
|
||||
<img src="{IMGDIR}/faq.gif" alt="Tip" class="vm" onmouseover="showTip(this)" tip="{lang hidedisplay_tips}" />
|
||||
<!--{/if}-->
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!--{/if}-->
|
||||
<tbody id="tbody_thumbsetting">
|
||||
<!--{subtemplate portal/portalcp_block_thumbsetting}-->
|
||||
</tbody>
|
||||
<!--{if !$is_htmlblock}-->
|
||||
<tr>
|
||||
<th width="80">{lang block_data_custom}</th>
|
||||
<td>
|
||||
<textarea name="summary" id="block_sumamry_content" cols="40" rows="3" class="pt mbn" style="display:none">$block[summary]</textarea>
|
||||
<p class="pns">
|
||||
<button type="button" id="a_summary_show" class="pn" onclick="showBlockSummary();"><em>{lang edit_diy_content}</em></button>
|
||||
<button type="button" id="a_summary_hide" class="pn" onclick="hideBlockSummary();" style="display:none;"><span>{lang hide}</span></a>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<!--{/if}-->
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="o pns">
|
||||
<input type="hidden" name="blocksubmit" value="true" />
|
||||
<input type="hidden" name="handlekey" value="$_GET['handlekey']" />
|
||||
<input type="hidden" name="eleid" value="$_GET['eleid']" />
|
||||
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
||||
<button type="submit" class="pn pnc"><strong>{lang confirms}</strong></button>
|
||||
<!--{if $_G[inajax]}--><button type="button" class="pn" onclick="hideWindow('$_GET[handlekey]');{if empty($bid) && $_GET['from']!='cp'}drag.removeBlock('$_GET[eleid]',true);{/if}return false;"><strong>{lang cancel}</strong></button><!--{/if}-->
|
||||
</div>
|
||||
</form>
|
||||
<!--{elseif $op == 'data'}-->
|
||||
<!--{if $_G[inajax]}-->
|
||||
<h3 class="flb">
|
||||
<em id="return_$_GET[handlekey]">{lang block_data}</em>
|
||||
<span><a href="javascript:;" class="flbc" onclick="hideWindow('$_GET[handlekey]');{if empty($bid)}drag.removeBlock('$_GET[eleid]',true);{/if}return false;" title="{lang close}">{lang close}</a></span>
|
||||
</h3>
|
||||
<ul class="tb cl">
|
||||
$blocknav
|
||||
<button class="pn pnc y" title="{lang block_adddata_comment}" onclick="showWindow('$_GET[handlekey]', 'portal.php?mod=portalcp&ac=block&bid=$bid&op=additem{if $_G[inajax]}&itemfrom=ajax{/if}{if $_GET[from]}&from=$_GET[from]{/if}')"><em>{lang block_adddata}</em></button>
|
||||
</ul>
|
||||
<!--{/if}-->
|
||||
<form id="blockformdata" name="blockformdata" method="post" autocomplete="off" action="portal.php?mod=portalcp&ac=block&op=data&classname=$_GET[classname]&bid=$block[bid]&eleid=$_GET['eleid']&tpl=$_GET[tpl]"{if $_G[inajax]} onsubmit="ajaxpost('blockformdata','return_$_GET[handlekey]','return_$_GET[handlekey]','onerror');"{/if}>
|
||||
<div class="c"{if $_G[inajax]} style="width:490px; {if $_GET[from]=='cp'}max-height:260px;{else}max-height:380px;{/if}height:auto !important;{if $_GET[from]=='cp'}height:260px;{else}height:380px;{/if} _padding-right: 17px; overflow-x: hidden; overflow-y: auto;"{/if}>
|
||||
<div id="block_data">
|
||||
<table class="dt mtm mbm" style="table-layout:fixed">
|
||||
<tr>
|
||||
<th width="34">{lang locked}</th>
|
||||
<th width="50">{lang position}</th>
|
||||
<th>{lang title}</th>
|
||||
<th width="80">{lang operation}</th>
|
||||
</tr>
|
||||
<!--{if $itemlist}-->
|
||||
<!--{loop $itemlist $item}-->
|
||||
<tr>
|
||||
<!--{if $item[ispreorder]}-->
|
||||
<td>{lang preorder}</td>
|
||||
<td>$item[displayorder]</td>
|
||||
<!--{else}-->
|
||||
<td><input type="checkbox" name="locked[{$item[itemid]}]" value="1"{if $item[itemtype]=='1'} checked="checked"{/if} /></td>
|
||||
<td><input type="text" name="displayorder[{$item[itemid]}]" class="px" size="2" maxlength="2" value="$item[displayorder]" /></td>
|
||||
<!--{/if}-->
|
||||
<td>[{$item['itemtypename']}] $item['title']</td>
|
||||
<td>
|
||||
<a href="portal.php?mod=portalcp&ac=block&op=item&bid=$block[bid]&itemid=$item[itemid]{if $_G[inajax]}&itemfrom=ajax{/if}{if $_GET[from]}&from=$_GET[from]{/if}" onclick="showWindow('showblock', this.getAttribute('href'));">{lang edit}</a><span class="pipe">|</span>
|
||||
<!--{if $item[itemtype]=='1'}-->
|
||||
<a href="javascript:;" onclick="block_delete_item('$block[bid]', '$item[itemid]', 1, '{if $_G[inajax]}ajax{/if}', '{if $_GET[from]}$_GET[from]{/if}'); return false;">{lang delete}</a>
|
||||
<!--{else}-->
|
||||
<a href="javascript:;" onclick="block_delete_item('$block[bid]', '$item[itemid]', 0, '{if $_G[inajax]}ajax{/if}', '{if $_GET[from]}$_GET[from]{/if}'); return false;">{lang block_stop}</a>
|
||||
<!--{/if}-->
|
||||
</td>
|
||||
</tr>
|
||||
<!--{/loop}-->
|
||||
<!--{else}-->
|
||||
<tr>
|
||||
<td colspan="4"><p class="emp">{lang no_data}</p></td>
|
||||
</tr>
|
||||
<!--{/if}-->
|
||||
</table>
|
||||
<!--{if $block[param][bannedids]}-->
|
||||
<h4><a href="javascript:;" onclick="display('p_bannedids');return false;">{lang block_view_banned_data}</a></h4>
|
||||
<p id="p_bannedids" style="display:none;">
|
||||
<label>{lang block_data_block}</label>
|
||||
<input type="text" name="bannedids" id="bannedids" class="px" value="$block[param][bannedids]" />
|
||||
<button type="button" class="pn pnc" id="bannedidssubmit" onclick="blockbanids('$block[bid]');" ><strong>{lang save}</strong></button>
|
||||
</p>
|
||||
<!--{/if}-->
|
||||
</div>
|
||||
</div>
|
||||
<!--{if $_G[inajax] || $itemlist}-->
|
||||
<div class="o pns">
|
||||
<input type="hidden" name="eleid" value="$_GET['eleid']" />
|
||||
<input type="hidden" name="handlekey" value="$_GET['handlekey']" />
|
||||
<input type="hidden" name="updatesubmit" value="true" />
|
||||
<input type="hidden" name="modifiedids" value="" />
|
||||
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
||||
<button type="submit" class="pn xg1" id="blockformdatasubmit" disabled="disabled"><strong>{lang save}</strong></button>
|
||||
<!--{if $_G[inajax]}--><button type="button" class="pn" onclick="hideWindow('$_GET[handlekey]');return false;"><strong>{lang cancel}</strong></button><!--{/if}-->
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
</form>
|
||||
<script type="text/javascript" reload="1">
|
||||
var formoldvalue = {'checkbox':[], 'text':[]};
|
||||
var inputs = $('blockformdata').getElementsByTagName('table')[0].getElementsByTagName('input');
|
||||
for(var i = 0; i < inputs.length; i++){
|
||||
if(inputs[i]['type'].toLowerCase() == 'checkbox') {
|
||||
formoldvalue['checkbox'][inputs[i]['name']] = inputs[i].checked;
|
||||
_attachEvent(inputs[i], 'click', formcheckvalue);
|
||||
} else if(inputs[i]['type'].toLowerCase() == 'text') {
|
||||
formoldvalue['text'][inputs[i]['name']] = inputs[i].value;
|
||||
_attachEvent(inputs[i], 'keyup', formcheckvalue);
|
||||
_attachEvent(inputs[i], 'blur', formcheckvalue);
|
||||
}
|
||||
}
|
||||
|
||||
function formcheckvalue(){
|
||||
var modifiedids = [];
|
||||
var enabled = false;
|
||||
for(i = 0; i < inputs.length; i++){
|
||||
if(inputs[i]['type'].toLowerCase() == 'checkbox') {
|
||||
if(formoldvalue['checkbox'][inputs[i]['name']] != inputs[i].checked){
|
||||
enabled = true;
|
||||
}
|
||||
} else if(inputs[i]['type'].toLowerCase() == 'text') {
|
||||
if(formoldvalue['text'][inputs[i]['name']] != inputs[i].value){
|
||||
enabled = true;
|
||||
var itemid = inputs[i]['name'].match(/\d+/);
|
||||
if(itemid && itemid[0]) {
|
||||
modifiedids.push(itemid[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if(enabled) {
|
||||
$('blockformdatasubmit').disabled = '';
|
||||
$('blockformdatasubmit').className = $('blockformdatasubmit').className.replace(' xg1', ' pnc');
|
||||
} else{
|
||||
$('blockformdatasubmit').disabled = 'disabled';
|
||||
$('blockformdatasubmit').className = $('blockformdatasubmit').className.replace(' pnc', ' xg1');
|
||||
}
|
||||
$('blockformdata')['modifiedids'].value = modifiedids+'';
|
||||
}
|
||||
|
||||
function blockbanids(bid) {
|
||||
var x = new Ajax();
|
||||
x.get('portal.php?mod=portalcp&ac=block&op=banids&inajax=1&bid='+bid+'&bannedids='+$('bannedids').value, function(s){
|
||||
<!--{if $_G[inajax]}-->
|
||||
succeedhandle_$_GET[handlekey] ('', '', {'bid':bid});
|
||||
showWindow('showblock', 'portal.php?mod=portalcp&ac=block&op=data&bid='+bid+'&tpl='+document.diyform.template.value, 'get', -1);
|
||||
<!--{else}-->
|
||||
location.reload();
|
||||
<!--{/if}-->
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<!--{elseif $op == 'style'}-->
|
||||
<!--{if $_G[inajax]}-->
|
||||
<h3 class="flb">
|
||||
<em id="return_$_GET[handlekey]">{lang block_template}</em>
|
||||
<span><a href="javascript:;" class="flbc" onclick="hideWindow('$_GET[handlekey]');{if empty($bid)}drag.removeBlock('$_GET[eleid]',true);{/if}return false;" title="{lang close}">{lang close}</a></span>
|
||||
</h3>
|
||||
<ul class="tb cl">
|
||||
$blocknav
|
||||
</ul>
|
||||
<!--{/if}-->
|
||||
<form id="blockstyleform" name="blockformdata" method="post" autocomplete="off" action="portal.php?mod=portalcp&ac=block&op=style&classname=$_GET[classname]&bid=$block[bid]&eleid=$_GET['eleid']&tpl=$_GET[tpl]{if $_GET[from]}&from=$_GET[from]{/if}"{if $_G[inajax]} onsubmit="ajaxpost('blockstyleform','return_$_GET[handlekey]','return_$_GET[handlekey]','onerror');"{/if}>
|
||||
<div class="c"{if $_G[inajax]} style="width:490px; {if $_GET[from]=='cp'}max-height:260px;{else}max-height:380px;{/if}height:auto !important; {if $_GET[from]=='cp'}height:260px;{else}height:380px;{/if} _padding-right: 17px; overflow-x: hidden; overflow-y: auto;"{/if}>
|
||||
<!--{if $block[hidedisplay]}-->
|
||||
<div>
|
||||
<p style="color:red;">{lang portalcp_block_message1}</p>
|
||||
<p> <b>{lang reference_call_data}:</b></p>
|
||||
<p>$samplecode</p>
|
||||
<p><b>{lang reference_call_field}:</b></p>
|
||||
<table width="100%">
|
||||
<!--{loop $theclass[fields] $key $value}-->
|
||||
<tr>
|
||||
<td>$value[name]</td>
|
||||
<td><!--{echo '$'}-->$key</td>
|
||||
</tr>
|
||||
<!--{/loop}-->
|
||||
</table>
|
||||
</div>
|
||||
<!--{else}-->
|
||||
<div id="block_style">
|
||||
<p class="pns mtn mbn"><button type="button" id="a_summary_show" onclick="$('stylename').style.display='';" class="pn"><em>{lang mod_save_to}</em></button></p>
|
||||
<p class="mtn mbm" id="stylename" style="display:none;">
|
||||
{lang mod_name}: <input type="text" name="name" class="px" />
|
||||
<br />
|
||||
{lang portalcp_block_message2}
|
||||
</p>
|
||||
<textarea name="template" rows="8" class="pt" style="width: 98%;">$template</textarea>
|
||||
</div>
|
||||
<table class="dt mtm mbm">
|
||||
<tr>
|
||||
<th>{lang grammar}</th>
|
||||
<th>{lang statements}</th>
|
||||
</tr>
|
||||
<!--{loop $theclass[fields] $key $value}-->
|
||||
<tr>
|
||||
<td>$value[name]</td>
|
||||
<td>{{$key}}</td>
|
||||
</tr>
|
||||
<!--{/loop}-->
|
||||
<!--{if in_array($block['blockclass'], array('forum_thread', 'portal_article', 'group_thread'), true)}-->
|
||||
<tr>
|
||||
<td>{lang more_url}</td>
|
||||
<td>{{echo 'moreurl'}}</td>
|
||||
</tr>
|
||||
<!--{/if}-->
|
||||
<tr>
|
||||
<td>{lang current_data_order}</td>
|
||||
<td>{{echo 'currentorder'}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{lang current_data_odd}</td>
|
||||
<td>{{echo 'parity'}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{lang default_loop_content}</td>
|
||||
<td>[loop]...[/loop]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{lang replace_loop_content}</td>
|
||||
<td>[order=N]...[/order]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{lang special_data_content}</td>
|
||||
<td>[index=N]...[/index]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{lang set_open_link}</td>
|
||||
<td><a href="{{echo 'url'}}"{{echo 'target'}}>{{echo 'title'}}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{lang set_small_pic}</td>
|
||||
<td><img src="{{echo 'pic'}}" width="{{echo 'picwidth'}}" height="{{echo 'picheight'}}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{lang more_introduction}</td>
|
||||
<td>{lang reference_message}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<!--{/if}-->
|
||||
</div>
|
||||
<div class="o pns">
|
||||
<input type="hidden" name="eleid" value="$_GET['eleid']" />
|
||||
<input type="hidden" name="handlekey" value="$_GET['handlekey']" />
|
||||
<input type="hidden" name="stylesubmit" value="true" />
|
||||
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
||||
<button type="submit" class="pn pnc"><strong>{lang update}</strong></button>
|
||||
<!--{if $_G[inajax]}--><button type="button" class="pn" onclick="hideWindow('$_GET[handlekey]');return false;"><strong>{lang cancel}</strong></button><!--{/if}-->
|
||||
</div>
|
||||
</form>
|
||||
<!--{elseif $op == 'itemdata'}-->
|
||||
<!--{if $datalist}-->
|
||||
<form id="blockformitemdata" name="blockformitemdata" method="post" autocomplete="off" action="portal.php?mod=portalcp&ac=block&op=itemdata&bid=$block[bid]{if $_GET[from]}&from=$_GET[from]{/if}">
|
||||
<table class="dt mtm mbm">
|
||||
<tr>
|
||||
<th width="40">{lang delete}</th>
|
||||
<th>{lang display_order}</th>
|
||||
<th>{lang title}</th>
|
||||
<th>{lang pass_moderate_time}</th>
|
||||
<th>{lang is_stick}</th>
|
||||
<th width="80">{lang operation}</th>
|
||||
</tr>
|
||||
<!--{loop $datalist $item}-->
|
||||
<tr>
|
||||
<td><input type="checkbox" class="pc" name="ids[]" value="$item[dataid]" /></td>
|
||||
<td><input type="hidden" name="olddisplayorder[{$item[dataid]}]" value="$item[displayorder]" />
|
||||
<input type="input" class="px" name="displayorder[{$item[dataid]}]" value="$item[displayorder]" size="2" maxlength="4" /></td>
|
||||
<td><a href="$item[url]" target="_blank">$item['title']</a></td>
|
||||
<td>$item['verifiedtime']</td>
|
||||
<td><!--{if $item['stickgrade']}-->{lang stick} $item[stickgrade]<!--{else}-->{lang no}<!--{/if}--></td>
|
||||
<td>
|
||||
<a href="portal.php?mod=portalcp&ac=block&op=managedata&bid=$block[bid]&dataid=$item[dataid]{if $_GET[from]}&from=$_GET[from]{/if}" onclick="showWindow('showblock', this.getAttribute('href'));">{lang edit}</a>
|
||||
</td>
|
||||
</tr>
|
||||
<!--{/loop}-->
|
||||
<tr>
|
||||
<td colspan="5">
|
||||
<label for="chkall" onclick="checkall(this.form, 'ids')"><input type="checkbox" name="chkall" id="chkall" class="pc" />{lang select_all}</label>
|
||||
<input type="hidden" name="handlekey" value="$_GET['handlekey']" />
|
||||
<input type="hidden" name="deletesubmit" value="true" />
|
||||
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
||||
<button type="submit" class="pn pnc"><strong>{lang confirms}</strong></button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<!--{if $multi}--><div class="">$multi</div><!--{/if}-->
|
||||
</form>
|
||||
<!--{else}-->
|
||||
<p class="emp">{lang no_data_mod}</p>
|
||||
<!--{/if}-->
|
||||
<!--{elseif $op == 'setting'}-->
|
||||
<!--{subtemplate portal/portalcp_block_setting}-->
|
||||
|
||||
<!--{elseif $op == 'item' || $op == 'additem'}-->
|
||||
<script type="text/javascript" src="{$_G[setting][jspath]}calendar.js?{VERHASH}"></script>
|
||||
<h3 class="flb">
|
||||
<em id="return_$_GET[handlekey]">{lang block_edit}</em>
|
||||
<span>
|
||||
<!--{if $_GET[itemfrom]=='ajax'}--><a href="portal.php?mod=portalcp&ac=block&op=data&bid=$bid{if $_GET[from]}&from=$_GET[from]{/if}" onclick="showWindow('showblock', this.href);closecalendar(e);return false;"> <<{lang return} </a><!--{/if}-->
|
||||
<!--{if $_G[inajax]}--><a href="javascript:;" class="flbc" onclick="hideWindow('$_GET[handlekey]');{if empty($bid)}drag.removeBlock('$_GET[eleid]');{/if}return false;" title="{lang close}">{lang close}</a><!--{/if}-->
|
||||
</span>
|
||||
</h3>
|
||||
<form id="blockform" name="blockform" method="post" autocomplete="off" action="portal.php?mod=portalcp&ac=block&op=$op&bid=$block[bid]&itemid=$itemid{if $_GET[from]}&from=$_GET[from]{/if}" onsubmit="if(check_itemdata_lentgh(this)) {ajaxpost('blockform','return_$_GET[handlekey]','return_$_GET[handlekey]','onerror');} else { return false;}" enctype="multipart/form-data">
|
||||
<div class="c" style="height:$height; width: 490px; _padding-right: 17px; overflow-x: hidden; overflow-y: auto;">
|
||||
<table class="tfm">
|
||||
<tr>
|
||||
<th>{lang block_data_from_datasource}</th>
|
||||
<td>
|
||||
<select id="push_idtype" class="ps vm">
|
||||
<option value="tids" selected="selected">{lang thread}id</option>
|
||||
<option value="blogids">{lang blog}id</option>
|
||||
<option value="aids">{lang article}id</option>
|
||||
<option value="picids">{lang image}id</option>
|
||||
</select>
|
||||
<input type="text" name="push_id" id="push_id" class="px p_fre vm" value="" />
|
||||
<button type="button" class="pn" onclick="block_pushitem('$block[bid]', '$itemid')"><span>{lang grab}</span></button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{lang block_display_position}</th>
|
||||
<td>
|
||||
<select name="displayorder" class="ps vm">
|
||||
<!--{loop $orders $value}-->
|
||||
<option value="$value"$orderarr[$value]>$value</option>
|
||||
<!--{/loop}-->
|
||||
</select>
|
||||
|
||||
<!--{if $itemid && $item[idtype] != 'rand'}-->
|
||||
<label for="lock_item"><input type="checkbox" name="locked" id="lock_item" class="pc" onclick="$('tbody_orderitem').style.display=this.checked ? '' : 'none';" value="1"{if $item[itemtype]=='1'}checked="checked"{/if} />{lang locked}</label>
|
||||
<!--{else}-->
|
||||
<input type="hidden" name="locked" value="1" />
|
||||
<label for="lock_item"><input type="checkbox" class="pc" name="locked_disable" id="lock_item" value="1" checked="checked" disabled="disabled" />{lang locked}</label>
|
||||
<!--{/if}-->
|
||||
</td>
|
||||
</tr>
|
||||
<tbody id="tbody_orderitem"{if $itemid && $item[itemtype]!='1'} style="display:none;"{/if}>
|
||||
<tr>
|
||||
<th>{lang block_start_time}</th>
|
||||
<td>
|
||||
<input type="text" class="px p_fre" name="startdate"{if $item[startdate]} value="$blockitem[startdate]"{/if} onclick="showcalendar(event, this, true)" />
|
||||
<p class="d">{lang block_start_time_comment}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{lang block_expire_time}</th>
|
||||
<td>
|
||||
<input type="text" class="px p_fre" name="enddate"{if $item[enddate]} value="$blockitem[enddate]"{/if} onclick="showcalendar(event, this, true)" />
|
||||
<p class="d">{lang block_expire_time_comment}</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tbody id="tbody_pushcontent">
|
||||
<!--{template portal/portalcp_block_itemfields}-->
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="o pns">
|
||||
<input type="hidden" name="itemsubmit" value="true" />
|
||||
<input type="hidden" name="handlekey" value="$_GET['handlekey']" />
|
||||
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
||||
<button type="submit" class="pn pnc"><strong>{lang submit}</strong></button>
|
||||
<!--{if $_G[inajax]}--><button type="button" class="pn" onclick="hideWindow('$_GET[handlekey]');return false;"><strong>{lang cancel}</strong></button><!--{/if}-->
|
||||
</div>
|
||||
</form>
|
||||
<script type="text/javascript" reload="1">
|
||||
if (typeof ctitlepb_frame == 'object' && !BROWSER.ie) {delete ctitlepb_frame;}
|
||||
if (typeof csummarypb_frame == 'object' && !BROWSER.ie) {delete csummarypb_frame;}
|
||||
function succeedhandle_$_GET['handlekey'] (url, message, values) {
|
||||
<!--{if $_GET[itemfrom]=='ajax'}-->
|
||||
showWindow('$_GET[handlekey]', 'portal.php?mod=portalcp&ac=block&op=data<!--{if $_GET[from]}-->&from=$_GET[from]<!--{/if}-->&bid='+values['bid'], 'get' ,0);
|
||||
drag.blockForceUpdate('portal_block_'+values['bid']);
|
||||
<!--{else}-->
|
||||
hideWindow('$_GET[handlekey]');
|
||||
location.reload();
|
||||
<!--{/if}-->
|
||||
}
|
||||
</script>
|
||||
|
||||
<!--{elseif $op == 'push'}-->
|
||||
<!--{template portal/portalcp_block_itemfields}-->
|
||||
|
||||
<!--{elseif $op == 'recommend'}-->
|
||||
<!--{if $isrepeatrecommend}-->
|
||||
<tr>
|
||||
<th colspan="2"><div class="bm"><div class="ntc_l hm">{lang data_repeat_recommend}</div></div></th>
|
||||
</tr>
|
||||
<!--{/if}-->
|
||||
<!--{if $perm[allowmanage] || !$perm[needverify]}-->
|
||||
<tr>
|
||||
<th>{lang todo_updateblock}</th>
|
||||
<td>
|
||||
<label for="ck_updateblock"><input type="checkbox" name="updateblock" id="ck_updateblock" class="pc" value="1" checked="checked" />{lang todo_updateblock_message}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{lang need_moderate}</th>
|
||||
<td>
|
||||
<label for="ck_needverify"><input type="checkbox" name="needverify" id="ck_needverify" class="pc" value="1"{if isset($item[isverified]) && !$item[isverified]} checked="checked"{/if} />{lang moderate_message}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<!--{/if}-->
|
||||
<!--{template portal/portalcp_block_itemfields}-->
|
||||
<!--{if !$perm[allowmanage] && $perm[needverify]}-->
|
||||
<tr><td colspan="2">{lang verify_message}</td></tr>
|
||||
<!--{/if}-->
|
||||
<!--{elseif $op == 'verifydata'}-->
|
||||
<script type="text/javascript" src="{$_G[setting][jspath]}calendar.js?{VERHASH}"></script>
|
||||
<h3 class="flb">
|
||||
<em id="return_$_GET[handlekey]">{lang moderate_data}</em>
|
||||
<!--{if $_G[inajax]}--><span><a href="javascript:;" class="flbc" onclick="hideWindow('$_GET[handlekey]');return false;" title="{lang close}">{lang close}</a></span><!--{/if}-->
|
||||
</h3>
|
||||
<form id="dataform" name="dataform" method="post" autocomplete="off" action="portal.php?mod=portalcp&ac=block&op=verifydata&bid=$block[bid]&dataid=$dataid{if $_GET[from]}&from=$_GET[from]{/if}" onsubmit="ajaxpost('dataform','return_$_GET[handlekey]','return_$_GET[handlekey]','onerror');" enctype="multipart/form-data">
|
||||
<div class="c" style="height:$height; width: 490px; _padding-right: 17px; overflow-x: hidden; overflow-y: auto;">
|
||||
<table class="tfm">
|
||||
<tbody id="tbody_pushcontent">
|
||||
<!--{template portal/portalcp_block_itemfields}-->
|
||||
</tbody>
|
||||
<tr>
|
||||
<th>{lang update_mod}</th>
|
||||
<td>
|
||||
<label for="ckupdateblock"><input type="checkbox" name="updateblock" id="ckupdateblock" value="1" />{lang update_mod_now}</label>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="o pns">
|
||||
<input type="hidden" name="verifydatasubmit" value="true" />
|
||||
<input type="hidden" name="handlekey" value="$_GET['handlekey']" />
|
||||
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
||||
<button type="submit" class="pn pnc"><strong>{lang passed}</strong></button>
|
||||
</div>
|
||||
</form>
|
||||
<script type="text/javascript" reload="1">
|
||||
function succeedhandle_$_GET['handlekey'] (url, message, values) {
|
||||
hideWindow('$_GET[handlekey]');
|
||||
location.reload();
|
||||
}
|
||||
</script>
|
||||
<!--{elseif $op == 'managedata'}-->
|
||||
|
||||
<script type="text/javascript" src="{$_G[setting][jspath]}calendar.js?{VERHASH}"></script>
|
||||
<h3 class="flb">
|
||||
<em id="return_$_GET[handlekey]">{lang edit_data}</em>
|
||||
<!--{if $_G[inajax]}--><span><a href="javascript:;" class="flbc" onclick="hideWindow('$_GET[handlekey]');return false;" title="{lang close}">{lang close}</a></span><!--{/if}-->
|
||||
</h3>
|
||||
<form id="dataform" name="dataform" method="post" autocomplete="off" action="portal.php?mod=portalcp&ac=block&op=managedata&bid=$block[bid]&dataid=$dataid{if $_GET[from]}&from=$_GET[from]{/if}" onsubmit="ajaxpost('dataform','return_$_GET[handlekey]','return_$_GET[handlekey]','onerror');" enctype="multipart/form-data">
|
||||
<div class="c" style="height:$height; width: 490px; _padding-right: 17px; overflow-x: hidden; overflow-y: auto;">
|
||||
<table class="tfm">
|
||||
<tr>
|
||||
<th>{lang stick_level}</th>
|
||||
<td>
|
||||
<select name="stickgrade" class="ps">
|
||||
<option value="0"{if empty($item['stickgrade'])} selected{/if}>{lang not_stick}</option>
|
||||
<!--{loop range(1,10) $k}-->
|
||||
<option value="$k"{if $item['stickgrade']=='$k'} selected{/if}>{lang stick}$k</option>
|
||||
<!--{/loop}-->
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tbody id="tbody_pushcontent">
|
||||
<!--{template portal/portalcp_block_itemfields}-->
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="o pns">
|
||||
<input type="hidden" name="managedatasubmit" value="true" />
|
||||
<input type="hidden" name="handlekey" value="$_GET['handlekey']" />
|
||||
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
||||
<button type="submit" class="pn pnc"><strong>{lang submit}</strong></button>
|
||||
</div>
|
||||
</form>
|
||||
<script type="text/javascript" reload="1">
|
||||
function succeedhandle_$_GET['handlekey'] (url, message, values) {
|
||||
hideWindow('$_GET[handlekey]');
|
||||
location.reload();
|
||||
}
|
||||
</script>
|
||||
<!--{elseif $op == 'thumbsetting'}-->
|
||||
<!--{subtemplate portal/portalcp_block_thumbsetting}-->
|
||||
<!--{elseif $op == 'getblock'}-->
|
||||
<!--{if !$_G[inajax]}-->
|
||||
<div class="wp"><div class="area"><div class="frame move-span frame-1 cl">
|
||||
<!--{/if}-->
|
||||
$html
|
||||
<!--{if !$_G[inajax]}-->
|
||||
</div></div></div>
|
||||
<!--{/if}-->
|
||||
<!--{elseif $op == 'convert'}-->
|
||||
<script type="text/javascript" reload="1">
|
||||
showWindow('showblock', 'portal.php?mod=portalcp&ac=block&op=block<!--{if $_GET[from]}-->&from=$_GET[from]<!--{/if}-->&bid='+$bid+'&tpl='+document.diyform.template.value, 'get', -1);
|
||||
drag.blockForceUpdate('portal_block_$bid');
|
||||
</script>
|
||||
<!--{elseif $op == 'favorite'}-->
|
||||
<script type="text/javascript">
|
||||
$('bfav_$bid').parentNode.onmouseover = '';
|
||||
$('bfav_$bid').parentNode.onmouseout = '';
|
||||
</script>
|
||||
<!--{if $favoriteop == 'add'}-->
|
||||
<img src="{IMGDIR}/fav.gif" alt="fav" title="{lang block_cancel_favorite}" class="favmark" />
|
||||
<!--{else}-->
|
||||
<img src="{IMGDIR}/fav_grey.gif" alt="normal" title="{lang block_favorite}" class="favmark" />
|
||||
<!--{/if}-->
|
||||
<!--{elseif $op == 'moreurl'}-->
|
||||
<!--{if $_G[inajax]}-->
|
||||
<h3 class="flb">
|
||||
<em id="return_$_GET[handlekey]">{lang block_moreurl}</em>
|
||||
<span><a href="javascript:;" class="flbc" onclick="hideWindow('$_GET[handlekey]');return false;" title="{lang close}">{lang close}</a></span>
|
||||
</h3>
|
||||
<ul class="tb cl">
|
||||
$blocknav
|
||||
</ul>
|
||||
<!--{/if}-->
|
||||
<form id="blockmoreurlform" name="blockformdata" method="post" autocomplete="off" action="portal.php?mod=portalcp&ac=block&op=moreurl&classname=$_GET[classname]&bid=$block[bid]{if $_GET[from]}&from=$_GET[from]{/if}"{if $_G[inajax]} onsubmit="ajaxpost('blockmoreurlform','return_$_GET[handlekey]','return_$_GET[handlekey]','onerror');"{/if}>
|
||||
<div class="c"{if $_G[inajax]} style="width:490px; {if $_GET[from]=='cp'}max-height:260px;{else}max-height:380px;{/if}height:auto !important; height:320px; _padding-right: 17px; _margin-right: 0; overflow-x: hidden; overflow-y: auto;"{/if}>
|
||||
|
||||
<table class="tfm">
|
||||
<tr>
|
||||
<th>{lang perpage} <img src="{IMGDIR}/faq.gif" alt="Tip" class="vm" onmouseover="showTip(this)" tip="{lang perpage_tips}" /></th>
|
||||
<td>
|
||||
<input type="input" name="perpage" id="perpage" value="$block['param']['moreurl']['perpage']" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{lang seotitle} <img src="{IMGDIR}/faq.gif" alt="Tip" class="vm" onmouseover="showTip(this)" tip="{lang seotitle_tips}" /></th>
|
||||
<td>
|
||||
<input type="input" class="pt" name="seotitle" id="seotitle" value="$block['param']['moreurl']['seotitle']" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{lang seokeywords} <img src="{IMGDIR}/faq.gif" alt="Tip" class="vm" onmouseover="showTip(this)" tip="{lang seokeywords_tips}" /></th>
|
||||
<td>
|
||||
<textarea class="pt" name="seokeywords" id="seokeywords" >$block['param']['moreurl']['seokeywords']</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{lang seodescription} <img src="{IMGDIR}/faq.gif" alt="Tip" class="vm" onmouseover="showTip(this)" tip="{lang seodescription_tips}" /></th>
|
||||
<td>
|
||||
<textarea class="pt" name="seodescription" rows="4" id="seodescription">$block['param']['moreurl']['seodescription']</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="o pns">
|
||||
<input type="hidden" name="handlekey" value="$_GET['handlekey']" />
|
||||
<input type="hidden" name="moreurlsubmit" value="true" />
|
||||
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
||||
<button type="submit" class="pn pnc"><strong>{lang update}</strong></button>
|
||||
<!--{if $_G[inajax]}--><button type="button" class="pn" onclick="hideWindow('$_GET[handlekey]');return false;"><strong>{lang cancel}</strong></button><!--{/if}-->
|
||||
</div>
|
||||
</form>
|
||||
<!--{/if}-->
|
||||
|
||||
<!--{if !$_G['inajax'] && in_array($op, array('block', 'data', 'itemdata'))}-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="appl">
|
||||
<!--{subtemplate portal/portalcp_nav}-->
|
||||
</div>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
<!--{template common/footer}-->
|
85
template/default/portal/portalcp_block_itemfields.htm
Normal file
85
template/default/portal/portalcp_block_itemfields.htm
Normal file
@@ -0,0 +1,85 @@
|
||||
<!--{loop $theclass[fields] $fieldname $field}-->
|
||||
<tr{if empty($showfields[$fieldname])} style="display:none;"{/if}>
|
||||
<th>$field[name]</th>
|
||||
<td>
|
||||
<!--{if $field[formtype]=='title'}-->
|
||||
<!--{eval $_titlelength = !empty($block['param']['titlelength']) ? $block['param']['titlelength'] : 40;}-->
|
||||
<input type="text" name="title" class="px" value="$itemfields[title]" onkeyup="strLenCalc(this, 'titlechk', $_titlelength);" _maxlength="$_titlelength" />
|
||||
<br><span id="titlechk" style="display:none"></span>
|
||||
<div class="ss mtn">
|
||||
<em $showstylearr[title_b] id="span_title_b" onclick="block_showstyle('title_b')"><b>B</b></em>
|
||||
<input type="hidden" id="value_title_b" name="showstyle[title_b]" value="$blockitem[showstyle][title_b]" />
|
||||
<em $showstylearr[title_i] id="span_title_i" onclick="block_showstyle('title_i')"><i>I</i></em>
|
||||
<input type="hidden" id="value_title_i" name="showstyle[title_i]" value="$blockitem[showstyle][title_i]" />
|
||||
<em $showstylearr[title_u] id="span_title_u" onclick="block_showstyle('title_u')"><u>U</u></em>
|
||||
<input type="hidden" id="value_title_u" name="showstyle[title_u]" value="$blockitem[showstyle][title_u]" />
|
||||
<input type="text" name="showstyle[title_c]" id="title_color_value" class="px p_fre vm" size="6" value="$blockitem[showstyle][title_c]" /><input type="button" id="ctitlepb" class="pn colorwd" onclick="createPalette('titlepb', 'title_color_value');" value="" style="background-color: {$blockitem['showstyle']['title_c']}" />
|
||||
</div>
|
||||
<!--{elseif $field[formtype]=='summary'}-->
|
||||
<!--{eval $_summarylength = !empty($block['param']['summarylength']) ? $block['param']['summarylength'] : 80;}-->
|
||||
<textarea name="summary" class="pt" onkeyup="strLenCalc(this, 'summarychk', $_summarylength);" _maxlength="$_summarylength" >$itemfields[summary]</textarea>
|
||||
<br><span id="summarychk" style="display:none"></span>
|
||||
<div class="ss mtn">
|
||||
<em $showstylearr[summary_b] id="span_summary_b" onclick="block_showstyle('summary_b')"><b>B</b></em>
|
||||
<input type="hidden" id="value_summary_b" name="showstyle[summary_b]" value="$blockitem[showstyle][summary_b]" />
|
||||
<em $showstylearr[summary_i] id="span_summary_i" onclick="block_showstyle('summary_i')"><i>I</i></em>
|
||||
<input type="hidden" id="value_summary_i" name="showstyle[summary_i]" value="$blockitem[showstyle][summary_i]" />
|
||||
<em $showstylearr[summary_u] id="span_summary_u" onclick="block_showstyle('summary_u')"><u>U</u></em>
|
||||
<input type="hidden" id="value_summary_u" name="showstyle[summary_u]" value="$blockitem[showstyle][summary_u]" />
|
||||
<input type="text" name="showstyle[summary_c]" id="summary_color_value" class="px p_fre vm" size="6" value="$blockitem[showstyle][summary_c]" /><input type="button" id="csummarypb" class="pn colorwd" value="" onclick="createPalette('summarypb', 'summary_color_value');" style="background-color: {$blockitem['showstyle']['summary_c']}" />
|
||||
</div>
|
||||
<!--{elseif $field[formtype] == 'textarea'}-->
|
||||
<textarea name="$fieldname" class="pt">$itemfields[$fieldname]</textarea>
|
||||
<!--{elseif $field[formtype] == 'pic'}-->
|
||||
<label for="picway_remote"><input type="radio" class="pr" id="picway_remote" name="picway" onclick="showpicedit()" checked="checked" />{lang remote}</label>
|
||||
<label for="picway_upload"><input type="radio" class="pr" id="picway_upload" name="picway" onclick="showpicedit()" />{lang upload}</label><br />
|
||||
<div id="pic_remote">
|
||||
<input type="text" name="pic" class="px" id="oldpicurl" value="$itemfields[oldpic]" style="width: 280px;" />
|
||||
<a href="javascript:;" onclick="openCropper($('oldpicurl').value);" class="xi2">{lang cut}</a>
|
||||
</div>
|
||||
<input type="hidden" name="picflag" value="$itemfields[picflag]" />
|
||||
<input type="file" name="pic" class="pf" id="pic_upload" style="display: none" />
|
||||
<!--{if $itemfields[pics]}-->
|
||||
<div class="ptm cl" style="width: 300px;">
|
||||
<style type="text/css">
|
||||
#slidePre, #slideNext { float: left; width: 30px; height: 80px; background: #F5F5F5; line-height: 80px; text-align: center; cursor: pointer; }
|
||||
#slidePre:hover, #slideNext:hover { background-color: #C2D5E3; }
|
||||
#slideNext { float: right; }
|
||||
.selected { border: 4px solid #F60; width: 72px; height: 72px; }
|
||||
</style>
|
||||
<!--{if count($itemfields[pics])>3}-->
|
||||
<div id="slideNext" class="nextNormal" onclick="$('smallImgs').scrollLeft+=240;">→</div>
|
||||
<div id="slidePre" class="preNone" onclick="$('smallImgs').scrollLeft-=240;">←</div>
|
||||
<!--{/if}-->
|
||||
<div id="smallImgs" style="width: 240px;height: 80px;overflow: hidden;display: block;">
|
||||
<div id="imgList" style="display: block;height:80px;width:{eval echo count($itemfields['pics'])*80;}px;">
|
||||
<!--{loop $itemfields[pics] $pic}-->
|
||||
<img src="$pic[thumb]" {if $itemfields['picflag']} onerror="this.src='$pic[big]';this.parentNode.href=this.src;"{/if} onclick="$('oldpicurl').value='$pic[attachment]';activateIdent(this);openCropper('$pic[attachment]');" alt="" width="80" height="80" class="z {if $pic['first']}selected{/if}" />
|
||||
<!--{/loop}-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
<input type="hidden" name="icflag" id="icflag" value="0" />
|
||||
<script type="text/javascript">
|
||||
function activateIdent(obj) {
|
||||
var imgList = $('imgList').getElementsByTagName('img');
|
||||
for(i in imgList) {
|
||||
imgList[i].className = 'z';
|
||||
}
|
||||
obj.className = 'z selected';
|
||||
}
|
||||
function openCropper(pic) {
|
||||
$('icflag').value=0;
|
||||
var url = 'misc.php?mod=imgcropper&width=$block[picwidth]&height=$block[picheight]&bid=$bid&ictype=block&picflag=$itemfields[picflag]&img='+pic;
|
||||
showWindow('cropper', url, 'get', 0);
|
||||
}
|
||||
</script>
|
||||
<!--{elseif $field[formtype] == 'date'}-->
|
||||
<input type="text" class="px" name="$fieldname" value="$itemfields[$fieldname]" onclick="showcalendar(event, this, true)" />
|
||||
<!--{else}-->
|
||||
<input type="text" class="px" name="$fieldname" value="$itemfields[$fieldname]" />
|
||||
<!--{/if}-->
|
||||
</td>
|
||||
</tr>
|
||||
<!--{/loop}-->
|
6
template/default/portal/portalcp_block_setting.htm
Normal file
6
template/default/portal/portalcp_block_setting.htm
Normal file
@@ -0,0 +1,6 @@
|
||||
<!--{loop $settings $key $value}-->
|
||||
<tr class="vt">
|
||||
<th>$value[title]<!--{if $value[comment]}--> <img src="{IMGDIR}/faq.gif" alt="Tip" class="vm" style="margin: 0;" onmouseover="showTip(this)" tip="$value[comment]" /><!--{/if}--></th>
|
||||
<td>$value[html]</td>
|
||||
</tr>
|
||||
<!--{/loop}-->
|
37
template/default/portal/portalcp_block_thumbsetting.htm
Normal file
37
template/default/portal/portalcp_block_thumbsetting.htm
Normal file
@@ -0,0 +1,37 @@
|
||||
<!--{if $thestyle[makethumb]}-->
|
||||
<tr>
|
||||
<th width="80">{lang block_thumb_width}</th>
|
||||
<td><input type="text" name="picwidth" value="$block[picwidth]" class="px" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th width="80">{lang block_thumb_height}</th>
|
||||
<td><input type="text" name="picheight" value="$block[picheight]" class="px" /></td>
|
||||
</tr>
|
||||
<!--{/if}-->
|
||||
<!--{if $thestyle[settarget]}-->
|
||||
<tr>
|
||||
<th width="80">{lang block_link_target_type}</th>
|
||||
<td>
|
||||
<select name="a_target">
|
||||
<option value="blank" $targetarr[blank]>{lang block_link_target_blank}</option>
|
||||
<option value="self" $targetarr[self]>{lang block_link_target_self}</option>
|
||||
<option value="top" $targetarr[top]>{lang block_link_target_top}</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<!--{/if}-->
|
||||
<!--{if !$is_htmlblock}-->
|
||||
<tr>
|
||||
<th width="80">{lang dateformat}</th>
|
||||
<td>
|
||||
<select name="dateformat">
|
||||
<!--{loop $dateformats $value}-->
|
||||
<option value="$value[format]"{$value[selected]}>$value[time]</option>
|
||||
<!--{/loop}-->
|
||||
</select>
|
||||
|
||||
<label for="ckdateuformat"><input type="checkbox" name="dateuformat" id="ckdateuformat" class="pc" value="1"{if $block[dateuformat]} checked="checked"{/if} />{lang dateuformat}</label>
|
||||
<img src="{IMGDIR}/faq.gif" alt="Tip" class="vm" style="margin: 0;" onmouseover="showTip(this)" tip="{lang dateuformat_tips}" />
|
||||
</td>
|
||||
</tr>
|
||||
<!--{/if}-->
|
132
template/default/portal/portalcp_category.htm
Normal file
132
template/default/portal/portalcp_category.htm
Normal file
@@ -0,0 +1,132 @@
|
||||
<!--{template common/header}-->
|
||||
|
||||
<div id="pt" class="bm cl">
|
||||
<div class="z">
|
||||
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>›</em>
|
||||
<a href="portal.php">{lang portal}</a> <em>›</em>
|
||||
<a href="portal.php?mod=portalcp">{lang portal_manage}</a> <em>›</em>
|
||||
<a href="portal.php?mod=portalcp&ac=index">{lang category_management}</a> <em>›</em>
|
||||
<a href="portal.php?mod=portalcp&ac=category&catid=$cate[catid]">$cate[catname]</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="ct" class="ct2_a wp cl">
|
||||
<div class="mn">
|
||||
<form method="get" href="portal.php" class="mbm pbm bbda">
|
||||
<input type="hidden" name="mod" value="portalcp" />
|
||||
<input type="hidden" name="ac" value="category" />
|
||||
<input type="hidden" name="type" value="$_GET[type]" />
|
||||
<input type="hidden" value="$cate[catid]" name="catid" />
|
||||
<input type="hidden" value="{FORMHASH}" name="formhash" />
|
||||
<input type="text" name="searchkey" class="px vm" value="$_GET[searchkey]" />
|
||||
<select name="perpage" class="ps vm">
|
||||
<!--{loop $perpagearr $value}-->
|
||||
<option value="$value" {if $value == $perpage} selected="selected"{/if}>{lang portalcp_perpage} $value {lang unit}</option>
|
||||
<!--{/loop}-->
|
||||
</select>
|
||||
<button type="submit" value="true" class="pn vm"><em>{lang search}</em></button>
|
||||
</form>
|
||||
<h1 class="mt">
|
||||
<a href="portal.php?mod=portalcp">{lang article_manage}</a> <!--{if $cate[catname]}--> - $cate[catname] <!--{/if}-->
|
||||
</h1>
|
||||
<div class="bm bw0">
|
||||
<ul class="tb cl">
|
||||
<!--{if $allowmanage || $admincp2}--><li $typearr[all]><a href="portal.php?mod=portalcp&ac=category&catid=$cate[catid]&type=all">{lang all}</a></li><!--{/if}-->
|
||||
<li $typearr[me]><a href="portal.php?mod=portalcp&ac=category&catid=$cate[catid]&type=me">{lang me}</a></li>
|
||||
<!--{if empty($cate['disallowpublish'])}--><li class="o y"><a href="portal.php?mod=portalcp&ac=article&catid=$catid" target="_blank">{lang article_new}</a></li><!--{/if}-->
|
||||
</ul>
|
||||
<form name="articlelist" id="articlelist" action="portal.php?mod=portalcp&ac=article&op=batch" method="post" onsubmit="return checkPushSubmit(this);">
|
||||
<input type="hidden" value="true" name="batchsubmit"/>
|
||||
<input type="hidden" value="{FORMHASH}" name="formhash"/>
|
||||
<input type="hidden" value="$cate[catid]" name="catid"/>
|
||||
<table class="dt mtm">
|
||||
<tr>
|
||||
<th width="20"> </th>
|
||||
<th>{lang article_subject}</th>
|
||||
<th width="80">{lang category}</th>
|
||||
<th width="105">{lang author}</th>
|
||||
<th width="120">{lang article_operation}</th>
|
||||
</tr>
|
||||
<!--{eval $line = '−';}-->
|
||||
<!--{eval $showflag = false;}-->
|
||||
<!--{loop $list $key $value}-->
|
||||
<tr>
|
||||
<td><!--{if $allowmanage || !empty($permission[$value['catid']]['allowmanage'])}-->
|
||||
<!--{eval $showflag = true;}-->
|
||||
<input type="checkbox" value="$value[aid]" name="aids[]" class="pc" />
|
||||
<!--{else}-->
|
||||
$line
|
||||
<!--{/if}-->
|
||||
</td>
|
||||
<td>
|
||||
<a href="{echo fetch_article_url($value);}" title="$value[title]" target="_blank" $value['highlight']><!--{if $value['shorttitle']}-->$value['shorttitle']<!--{else}-->$value['title']<!--{/if}--></a>
|
||||
<!--{if $value[taghtml]}--><em>$value[taghtml]</em><!--{/if}-->
|
||||
<!--{if $value[status] == 1}--><b>({lang moderate_need})</b><!--{/if}-->
|
||||
<!--{if $value[status] == 2}--><b>({lang ignored})</b><!--{/if}-->
|
||||
</td>
|
||||
<td><a href="portal.php?mod=portalcp&ac=category&catid=$value[catid]">$category[$value[catid]][catname]</a></td>
|
||||
<td>
|
||||
<a href="home.php?mod=space&uid=$value[uid]" title="{lang view_space}" target="_blank">$value[username]</a>
|
||||
<br /><span class="xs0 xg1">$value[dateline]</span>
|
||||
</td>
|
||||
<td>
|
||||
<!--{if $value['allowmanage'] || ($value['allowpublish'] && $value['uid'] == $_G['uid'])}-->
|
||||
<a href="portal.php?mod=portalcp&ac=article&op=edit&aid=$value[aid]" target="_blank">{lang edit}</a>
|
||||
<!--{else}-->
|
||||
$line
|
||||
<!--{/if}-->
|
||||
<!--{if $value['allowmanage']}-->
|
||||
<!--{if $value[status]>0}-->
|
||||
<a href="portal.php?mod=portalcp&ac=article&op=verify&aid=$value[aid]" onclick="showWindow('articleverify', this.href, 'get', 0);" id="article_verify_$value[aid]">{lang moderate}</a>
|
||||
<!--{else}-->
|
||||
<a href="portal.php?mod=portalcp&ac=article&op=delete&aid=$value[aid]" onclick="showWindow('articledelete', this.href, 'get', 0);" id="article_delete_$value[aid]">{lang delete}</a>
|
||||
<!--{/if}-->
|
||||
<!--{/if}-->
|
||||
<!--{if $_G['group']['allowdiy'] || $admincp4 || $admincp5 || $admincp6}-->
|
||||
<a href="portal.php?mod=portalcp&ac=portalblock&op=recommend&idtype=aid&id=$value[aid]" onclick="showWindow('recommend', this.href, 'get', 0)">{lang blockdata_recommend}</a>
|
||||
<!--{/if}-->
|
||||
</td>
|
||||
</tr>
|
||||
<!--{/loop}-->
|
||||
<!--{if $showflag}-->
|
||||
<tr>
|
||||
<td colspan="5">
|
||||
<label for="chkall" onclick="checkall(this.form, 'aids')"><input type="checkbox" name="chkall" id="chkall" class="pc" />{lang select_all}</label>
|
||||
<label for="op_trash"><input type="radio" id="op_trash" class="pr" value="trash" name="optype">{lang article_delete_recyclebin}</label>
|
||||
<label for="op_delete"><input type="radio" id="op_delete" class="pr" value="delete" name="optype">{lang article_delete_direct}</label>
|
||||
<label for="op_move"><input type="radio" id="op_move" class="pr" value="move" name="optype">{lang article_category_move}</label>
|
||||
$categoryselect
|
||||
<button type="submit" value="true" class="pn vm"><em>{lang submit}</em></button>
|
||||
</td>
|
||||
</tr>
|
||||
<!--{/if}-->
|
||||
</table>
|
||||
</form>
|
||||
<!--{if $multi}--><div class="pgs mtn cl">$multi</div><!--{/if}-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="appl">
|
||||
<!--{subtemplate portal/portalcp_nav}-->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
function checkPushSubmit(form){
|
||||
var arr = [];
|
||||
var checkbox = form.getElementsByTagName('input');
|
||||
for(var i = 0; i<checkbox.length; i++){
|
||||
if (checkbox[i].name == 'aids[]' && checkbox[i].checked) arr.push(checkbox[i].value);
|
||||
}
|
||||
if (arr.length == 0) {
|
||||
alert('{lang article_not_choose}');
|
||||
return false;
|
||||
}
|
||||
if(!$('op_trash').checked && !$('op_delete').checked && !$('op_move').checked) {
|
||||
alert('{lang action_invalid}');
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
<!--{template common/footer}-->
|
47
template/default/portal/portalcp_comment.htm
Normal file
47
template/default/portal/portalcp_comment.htm
Normal file
@@ -0,0 +1,47 @@
|
||||
<!--{template common/header}-->
|
||||
|
||||
<!--{if $_GET['op'] == 'requote'}-->
|
||||
[quote]{$comment[username]}: {$comment[message]}[/quote]
|
||||
|
||||
<!--{elseif $_GET['op'] == 'edit'}-->
|
||||
|
||||
<h3 class="flb">
|
||||
<em id="return_$_GET[handlekey]">{lang edit}</em>
|
||||
<!--{if $_G[inajax]}--><span><a href="javascript:;" onclick="hideWindow('$_GET[handlekey]');" class="flbc" title="{lang close}">{lang close}</a></span><!--{/if}-->
|
||||
</h3>
|
||||
<form id="editcommentform_{$cid}" name="editcommentform_{$cid}" method="post" autocomplete="off" action="portal.php?mod=portalcp&ac=comment&op=edit&cid=$cid{if $_GET[modarticlecommentkey]}&modarticlecommentkey=$_GET[modarticlecommentkey]{/if}">
|
||||
<input type="hidden" name="referer" value="{echo dreferer()}" />
|
||||
<input type="hidden" name="editsubmit" value="true" />
|
||||
<!--{if $_G[inajax]}--><input type="hidden" name="handlekey" value="$_GET[handlekey]" /><!--{/if}-->
|
||||
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
||||
<div class="c">
|
||||
<p>
|
||||
<label for="message">{lang comment_edit_content}: </label>
|
||||
</p>
|
||||
<textarea id="message_{$cid}" name="message" cols="70" onkeydown="ctrlEnter(event, 'editsubmit_btn');" rows="8" class="pt">$comment[message]</textarea>
|
||||
</div>
|
||||
<p class="o pns">
|
||||
<button type="submit" name="editsubmit_btn" id="editsubmit_btn" value="true" class="pn pnc"><strong>{lang submit}</strong></button>
|
||||
</p>
|
||||
</form>
|
||||
|
||||
<!--{elseif $_GET['op'] == 'delete'}-->
|
||||
|
||||
<h3 class="flb">
|
||||
<em id="return_$_GET[handlekey]">{lang comment_delete}</em>
|
||||
<!--{if $_G[inajax]}--><span><a href="javascript:;" onclick="hideWindow('$_GET[handlekey]');" class="flbc" title="{lang close}">{lang close}</a></span><!--{/if}-->
|
||||
</h3>
|
||||
<form id="deletecommentform_{$cid}" name="deletecommentform_{$cid}" method="post" autocomplete="off" action="portal.php?mod=portalcp&ac=comment&op=delete&cid=$cid">
|
||||
<input type="hidden" name="referer" value="{echo dreferer()}" />
|
||||
<input type="hidden" name="deletesubmit" value="true" />
|
||||
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
||||
<!--{if $_G[inajax]}--><input type="hidden" name="handlekey" value="$_GET[handlekey]" /><!--{/if}-->
|
||||
<div class="c">{lang comment_delete_confirm}</div>
|
||||
<p class="o pns">
|
||||
<button type="submit" name="deletesubmitbtn" value="true" class="pn pnc"><strong>{lang confirms}</strong></button>
|
||||
</p>
|
||||
</form>
|
||||
|
||||
<!--{/if}-->
|
||||
|
||||
<!--{template common/footer}-->
|
224
template/default/portal/portalcp_diy.htm
Normal file
224
template/default/portal/portalcp_diy.htm
Normal file
@@ -0,0 +1,224 @@
|
||||
<!--{template common/header}-->
|
||||
<!--{if $op=='blockclass'}-->
|
||||
<div class="tbmu mbm" id="contentblockclass_nav" style="margin-top: -15px">
|
||||
<!--{eval $isfirst=1;}-->
|
||||
<!--{loop $_G['cache']['blockclass'] $key $value}-->
|
||||
<!--{if $isfirst}-->
|
||||
<!--{eval $isfirst=0;}-->
|
||||
<a href="javascript:;" id="bcnav_$key" class="a" onclick="spaceDiy.switchBlockclass('$key');return false;">$value[name]</a>
|
||||
<!--{else}-->
|
||||
<span class="pipe">|</span>
|
||||
<a href="javascript:;" id="bcnav_$key" onclick="spaceDiy.switchBlockclass('$key');return false;">$value[name]</a>
|
||||
<!--{/if}-->
|
||||
<!--{/loop}-->
|
||||
</div>
|
||||
<!--{eval $isfirst=1;}-->
|
||||
<!--{loop $_G['cache']['blockclass'] $key $value}-->
|
||||
<!--{if $isfirst}-->
|
||||
<!--{eval $isfirst=0;}-->
|
||||
<ul class="blocks content" id="contentblockclass_$key">
|
||||
<!--{else}-->
|
||||
<ul class="blocks content" id="contentblockclass_$key" class="hide">
|
||||
<!--{/if}-->
|
||||
<li class="module-$key">
|
||||
<ol>
|
||||
<!--{loop $value[subs] $skey $svalue}-->
|
||||
<li class="module-$skey"><label onmousedown="drag.createObj (event,'block','$skey');" onmouseover="className='hover';" onmouseout="this.className='';">$svalue[name]</label></li>
|
||||
<!--{/loop}-->
|
||||
</ol>
|
||||
</li>
|
||||
</ul>
|
||||
<!--{/loop}-->
|
||||
<!--{elseif $op == 'style'}-->
|
||||
<ul class="content" style="overflow-y: auto; height: 90px;">
|
||||
<!--{loop $themes $value}-->
|
||||
<li><a href="javascript:;" onclick="spaceDiy.changeStyle('$value[dir]');return false;"><img src="{STATICURL}$value['dir']/preview.jpg" />$value['name']</a></li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
<!--{elseif $_GET['op'] == 'image'}-->
|
||||
<div id="diyimg_prev" class="z">$multi</div>
|
||||
<ul id="imagebody">
|
||||
<!--{loop $list $key $value}-->
|
||||
<li class="thumb"><a href="javascript:;" onclick="return false;"><img src="$value[pic]" alt="" onclick="spaceDiy.setBgImage(this);"/></a></li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
<div id="diyimg_next" class="z">$multi</div>
|
||||
<!--{elseif $_GET['op'] == 'diy'}-->
|
||||
<dl class='diy'>
|
||||
<dt class="cl pns">
|
||||
<div class="y">
|
||||
<button type="button" id="uploadmsg_button" onclick="Util.toggleEle('upload');" class="pn pnc z{if empty($list)} hide{/if}"><span>{lang diy_upload_image}</span></button>
|
||||
<div id="upload" class="z{if $list} hide{/if}"><iframe id="uploadframe" name="uploadframe" width="0" height="0" marginwidth="0" frameborder="0" src="about:blank" style="display: block;"></iframe>
|
||||
<form method="post" autocomplete="off" name="uploadpic" id="uploadpic" action="portal.php?mod=portalcp&ac=diy" enctype="multipart/form-data" target="uploadframe" onsubmit="return spaceDiy.uploadSubmit();">
|
||||
<input type="file" class="t_input" name="attach" size="15">
|
||||
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
||||
<input type="hidden" name="topicid" value="$_GET[topicid]" />
|
||||
<button type="submit" name="uploadsubmit" id="btnupload" class="pn" value="true"><span>{lang diy_update_start}</span></button>
|
||||
</form>
|
||||
</div>
|
||||
<span id="uploadmsg" class="z"></span>
|
||||
</div>
|
||||
{lang diy_editing}:
|
||||
<a id="diy_tag_body" href="javascript:;" onclick="spaceDiy.setCurrentDiy('body');return false;">{lang background}</a>
|
||||
<span class="pipe">|</span><a id="diy_tag_blocktitle" href="javascript:;" onclick="spaceDiy.setCurrentDiy('blocktitle');return false;">{lang title_bar}</a></span>
|
||||
<span class="pipe">|</span><a id="diy_tag_ct" href="javascript:;" onclick="spaceDiy.setCurrentDiy('ct');return false;">{lang content_area}</a>
|
||||
|
||||
<a style="margin-left: 40px;" id="bg_button" href="javascript:;" onclick="spaceDiy.hideBg();return false;">{lang background_image_cancel}</a>
|
||||
<span class="pipe">|</span><a id="recover_button" href="javascript:;" onclick="spaceDiy.recoverStyle();return false;">{lang restore_skin}</a>
|
||||
</dt>
|
||||
<dd>
|
||||
<div class="photo_list cl">
|
||||
<div id="currentimgdiv" class="z" style="width:446px;">
|
||||
<center><ul><li class="thumb" style="border:1px solid #ccc; padding:2px;"><img id="currentimg" alt="" src=""/></li></ul>
|
||||
<div class="z cur1" onclick="spaceDiy.changeBgImgDiv();">{lang diy_change}</div></center>
|
||||
</div>
|
||||
<div id="diyimages" class="z" style="width: 446px; display: none">
|
||||
<div id="diyimg_prev" class="z">$multi</div>
|
||||
<ul id="imagebody">
|
||||
<!--{loop $list $key $value}-->
|
||||
<li class="thumb"><a href="javascript:;" onclick="return false;"><img src="$value[pic]" alt="" onclick="spaceDiy.setBgImage(this);"/></a></li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
<div id="diyimg_next" class="z">$multi</div>
|
||||
</div>
|
||||
<div class="z" style="padding-left: 7px; width: 160px; border: solid #CCC; border-width: 0 1px;">
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><label for="repeat_mode">{lang image_repeat_mode}:</label></td>
|
||||
<td>
|
||||
<select id="repeat_mode" name="repeat_mode" class="ps" onclick="spaceDiy.setBgRepeat(this.value);">
|
||||
<option value="0" selected="selected">{lang image_repeat}</option>
|
||||
<option value="1">{lang image_repeat_direct}</option>
|
||||
<option value="2">{lang image_repeat_horizontal}</option>
|
||||
<option value="3">{lang image_repeat_vertical}</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{lang image_position}:</td>
|
||||
<td>
|
||||
<table cellpadding="0" cellspacing="0" id="positiontable">
|
||||
<tr>
|
||||
<td id="bgimgposition0" onclick="spaceDiy.setBgPosition(this.id)"> </td>
|
||||
<td id="bgimgposition1" onclick="spaceDiy.setBgPosition(this.id)"> </td>
|
||||
<td id="bgimgposition2" onclick="spaceDiy.setBgPosition(this.id)"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id="bgimgposition3" onclick="spaceDiy.setBgPosition(this.id)"> </td>
|
||||
<td id="bgimgposition4" onclick="spaceDiy.setBgPosition(this.id)"> </td>
|
||||
<td id="bgimgposition5" onclick="spaceDiy.setBgPosition(this.id)"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id="bgimgposition6" onclick="spaceDiy.setBgPosition(this.id)"> </td>
|
||||
<td id="bgimgposition7" onclick="spaceDiy.setBgPosition(this.id)"> </td>
|
||||
<td id="bgimgposition8" onclick="spaceDiy.setBgPosition(this.id)"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="z diywin" style="padding-left: 7px; width: 160px;">
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td>{lang background_attach_mode}:</td>
|
||||
<td>
|
||||
<label for="rabga0"><input type="radio" id="rabga0" name="attachment_mode" onclick="spaceDiy.setBgAttachment(0);" class="pr" />{lang background_attach_scroll}</label>
|
||||
<label for="rabga1"><input type="radio" id="rabga1" name="attachment_mode" onclick="spaceDiy.setBgAttachment(1);" class="pr" />{lang background_attach_fixed}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{lang background_color}:</td>
|
||||
<td><input type="text" id="colorValue" value="" size="6" onchange="spaceDiy.setBgColor(this.value);" class="px vm" style="font-size: 12px; padding: 2px;" />
|
||||
<input id="cbpb" onclick="createPalette('bpb', 'colorValue', 'spaceDiy.setBgColor');" type="button" class="pn colorwd" value="" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="z diywin" style="padding-left: 7px; width: 160px;">
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td>{lang text_color}:</td>
|
||||
<td><input type="text" id="textColorValue" value="" size="6" onchange="spaceDiy.setTextColor(this.value);" class="px vm" style="font-size: 12px; padding: 2px;" />
|
||||
<input id="ctpb" onclick="createPalette('tpb', 'textColorValue', 'spaceDiy.setTextColor');" type="button" class="pn colorwd" value="" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{lang link_color}:</td>
|
||||
<td><input type="text" id="linkColorValue" value="" size="6" onchange="spaceDiy.setLinkColor(this.value);" class="px vm" style="font-size: 12px; padding: 2px;" />
|
||||
<input id="clpb" onclick="createPalette('lpb', 'linkColorValue', 'spaceDiy.setLinkColor');" type="button" class="pn colorwd" value="" style="background: #fff;" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</dd>
|
||||
</dl>
|
||||
<!--{elseif $op == 'import'}-->
|
||||
<h3 class="flb">
|
||||
<em id="return_$_GET[handlekey]">{lang import_frame}</em>
|
||||
<span>
|
||||
<!--{if $_G[inajax]}--><a href="javascript:;" class="flbc" onclick="hideWindow('$_GET[handlekey]');return false;" title="{lang close}">{lang close}</a><!--{/if}-->
|
||||
</span>
|
||||
</h3>
|
||||
<ul class="tb cl">
|
||||
<li{if empty($_GET['type'])} class="a"{/if} id="li_import_upload"><a onclick="showWindow('showimport', this.getAttribute('href'));" href="portal.php?mod=portalcp&ac=diy&op=import&type=0&tpl=$_GET['tpl']">{lang diy_uploadfile}</a></li>
|
||||
<li{if $_GET['type'] == 1} class="a"{/if} id="li_import_system"><a onclick="showWindow('showimport', this.getAttribute('href'));" href="portal.php?mod=portalcp&ac=diy&op=import&type=1&tpl=$_GET['tpl']">{lang diy_systemfile}</a></li>
|
||||
</ul>
|
||||
|
||||
<form name="frameimport" id="frameimport" enctype="multipart/form-data" method="post" autocomplete="off" action="portal.php?mod=portalcp&ac=diy&op=import" onsubmit="ajaxpost('frameimport','return_$_GET[handlekey]','','onerror',$('frameimportbutton'));">
|
||||
<div class="c" style="width:420px;line-height:100px; overflow-y: auto; ">
|
||||
<!--{if $_GET['type'] == 1}-->
|
||||
<!--{if $xmlarr}-->
|
||||
{lang import_select_file}:
|
||||
<select id="importfilename" name="importfilename" class="">
|
||||
<!--{loop $xmlarr $key $value}-->
|
||||
<option value="$key">$value</option>
|
||||
<!--{/loop}-->
|
||||
</select>
|
||||
<!--{else}-->
|
||||
<center>{lang import_system_file_no_exists}</center>
|
||||
<!--{/if}-->
|
||||
<!--{else}-->
|
||||
{lang import_text_file_from}: <input type="file" id="importfile" name="importfile" style="margin: 5px;">
|
||||
<!--{/if}-->
|
||||
</div>
|
||||
<div class="o pns">
|
||||
<input type="hidden" name="handlekey" value="$_GET['handlekey']" />
|
||||
<input type="hidden" name="importsubmit" value="true" />
|
||||
<input type="hidden" name="tpl" value="$_GET['tpl']" />
|
||||
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
||||
<button type="submit" class="pn pnc" id="frameimportbutton"><strong>{lang import}</strong></button>
|
||||
</div>
|
||||
</form>
|
||||
<script type="text/javascript" reload="1">
|
||||
function succeedhandle_$_GET['handlekey'] (url, message, values) {
|
||||
if (values['status'] == '1') {
|
||||
if (values['css']) spaceDiy.initDiyStyle(values['css']);
|
||||
|
||||
var areaArr = values['html'];
|
||||
var dom = document.createElement("div");
|
||||
for (var i in areaArr) {
|
||||
var html = areaArr[i].replace(/\[script/g, '<script').replace(/\[\/script\]/g, '<\/script>');
|
||||
var area = $(i) ? $(i) : drag.moveableArea[0];
|
||||
dom.innerHTML = html;
|
||||
var arr = [];
|
||||
for (var i=0, l=dom.childNodes.length; i < l; i++) {
|
||||
arr.push(dom.childNodes[i]);
|
||||
}
|
||||
var one = '';
|
||||
while(one = arr.pop()) {
|
||||
Util.insertBefore(one,area.firstChild);
|
||||
}
|
||||
}
|
||||
drag.initPosition();
|
||||
drag.isChange = true;
|
||||
drag.setClose();
|
||||
var blocks = values['bids'].split(',');
|
||||
drag.blockForceUpdateBatch(blocks);
|
||||
}
|
||||
|
||||
hideWindow('$_GET['handlekey']');
|
||||
}
|
||||
</script>
|
||||
<!--{/if}-->
|
||||
<!--{template common/footer}-->
|
75
template/default/portal/portalcp_index.htm
Normal file
75
template/default/portal/portalcp_index.htm
Normal file
@@ -0,0 +1,75 @@
|
||||
<!--{template common/header}-->
|
||||
|
||||
<style type="text/css">
|
||||
.parentcat {}
|
||||
.cat { margin-left: 20px; }
|
||||
.lastchildcat, .childcat { margin-left: 40px; }
|
||||
</style>
|
||||
<!--{if $op == 'push'}-->
|
||||
<h3 class="flb">
|
||||
<em>{lang article_push}</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" style="width:260px; height: 300px; overflow: hidden; overflow-y: scroll;">
|
||||
<p>{lang category_push_select}</p>
|
||||
<!--{if $categorytree}-->
|
||||
<table class="mtw dt">
|
||||
$categorytree
|
||||
</table>
|
||||
<!--{else}-->
|
||||
<p>{lang portalcp_index_message}</p>
|
||||
<!--{/if}-->
|
||||
</div>
|
||||
<script language="javascript">
|
||||
function toggle_group(oid, obj, conf) {
|
||||
obj = obj ? obj : $('a_'+oid);
|
||||
if(!conf) {
|
||||
var conf = {'show':'[-]','hide':'[+]'};
|
||||
}
|
||||
var obody = $(oid);
|
||||
if(obody.style.display == 'none') {
|
||||
obody.style.display = '';
|
||||
obj.innerHTML = conf.show;
|
||||
} else {
|
||||
obody.style.display = 'none';
|
||||
obj.innerHTML = conf.hide;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<!--{else}-->
|
||||
<div id="pt" class="bm cl">
|
||||
<div class="z">
|
||||
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>›</em>
|
||||
<a href="portal.php">{lang portal}</a> <em>›</em>
|
||||
<a href="portal.php?mod=portalcp">{lang portal_manage}</a> <em>›</em>
|
||||
{lang category_management}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="ct" class="ct2_a wp cl">
|
||||
<div class="mn">
|
||||
<div class="bm bw0">
|
||||
<!--{if $categorytree}-->
|
||||
<table class="dt">
|
||||
<tr>
|
||||
<th>{lang category_name}</th>
|
||||
<th width="80">{lang article_numbers}</th>
|
||||
<th width="120">{lang article_operation}</th>
|
||||
</tr>
|
||||
$categorytree
|
||||
</table>
|
||||
<!--{elseif empty($_G['cache']['portalcategory'])}-->
|
||||
<p>{lang portalcp_has_no_category}</p>
|
||||
<!--{else}-->
|
||||
<p>{lang portalcp_index_message}</p>
|
||||
<!--{/if}-->
|
||||
</div>
|
||||
</div>
|
||||
<div class="appl">
|
||||
<!--{subtemplate portal/portalcp_nav}-->
|
||||
</div>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
<!--{template common/footer}-->
|
63
template/default/portal/portalcp_login.htm
Normal file
63
template/default/portal/portalcp_login.htm
Normal file
@@ -0,0 +1,63 @@
|
||||
<!--{template common/header}-->
|
||||
|
||||
<style type="text/css">
|
||||
.parentcat {}
|
||||
.cat { margin-left: 20px; }
|
||||
.lastchildcat, .childcat { margin-left: 40px; }
|
||||
</style>
|
||||
<!--{if $op == 'push'}-->
|
||||
<h3 class="flb">
|
||||
<em>{lang article_push}</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" style="width:220px; height: 300px; overflow: hidden; overflow-y: scroll;">
|
||||
<p>{lang category_push_select}</p>
|
||||
<table class="mtw dt">
|
||||
$categorytree
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<!--{else}-->
|
||||
<div id="pt" class="bm cl">
|
||||
<div class="z">
|
||||
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>›</em>
|
||||
<!--{if $_G['setting']['portalstatus'] }--><a href="portal.php">{lang portal}</a> <em>›</em><!--{/if}-->
|
||||
<a href="portal.php?mod=portalcp"><!--{if $_G['setting']['portalstatus'] }-->{lang portal_manage}<!--{else}-->{lang portal_block_manage}<!--{/if}--></a> <em>›</em>
|
||||
{lang login}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="ct" class="ct2_a wp cl">
|
||||
<div class="mn">
|
||||
<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="portal.php?mod=portalcp" class="exfm">
|
||||
<input type="hidden" name="formhash" value="{FORMHASH}">
|
||||
<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 id="cppwd" type="password" name="cppwd" class="px" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th></th><td><button type="submit" class="pn" name="submit" id="submit" value="true"><strong>{lang submit}</strong></button></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
$("cppwd").focus();
|
||||
</script>
|
||||
</div>
|
||||
<div class="appl">
|
||||
<!--{subtemplate portal/portalcp_nav}-->
|
||||
</div>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
<!--{template common/footer}-->
|
||||
|
20
template/default/portal/portalcp_nav.htm
Normal file
20
template/default/portal/portalcp_nav.htm
Normal file
@@ -0,0 +1,20 @@
|
||||
<div class="tbn">
|
||||
<h2 class="mt bbda"><!--{if $_G['setting']['portalstatus'] }-->{lang portal_manage}<!--{else}-->{lang portal_block_manage}<!--{/if}--></h2>
|
||||
<ul>
|
||||
<!--{if $_G['setting']['portalstatus'] }-->
|
||||
<!--{if $admincp2 || $_G['group']['allowmanagearticle']}--><li{if $ac == 'index'} class="a"{/if}><a href="portal.php?mod=portalcp&ac=index">{lang category_management}</a></li><!--{/if}-->
|
||||
<!--{if $admincp2 || $admincp3 || $_G['group']['allowmanagearticle'] || $_G['group']['allowpostarticle']}--><li{if $ac == 'category'} class="a"{/if}><a href="portal.php?mod=portalcp&ac=category">{lang article_manage}</a></li><!--{/if}-->
|
||||
<!--{/if}-->
|
||||
<!--{if $admincp4 || $admincp6 || $_G['group']['allowdiy']}-->
|
||||
<li{if $ac == 'portalblock' || $ac=='block'} class="a"{/if}><a href="portal.php?mod=portalcp&ac=portalblock">{lang block_management}</a></li>
|
||||
<!--{/if}-->
|
||||
<!--{if !$_G[inajax] && !empty($_G['setting']['plugins']['portalcp'])}-->
|
||||
<!--{loop $_G['setting']['plugins']['portalcp'] $id $module}-->
|
||||
<!--{if in_array($module['adminid'], array(0, -1)) || ($module['adminid'] && $_G['adminid'] > 0 && $module['adminid'] >= $_G['adminid'])}--><li{if $ac == 'plugin' && $_GET[id] == $id} class="a"{/if}><a href="portal.php?mod=portalcp&ac=plugin&id=$id">$module[name]</a></li><!--{/if}-->
|
||||
<!--{/loop}-->
|
||||
<!--{/if}-->
|
||||
<!--{if !empty($modsession->islogin)}-->
|
||||
<li><a href="portal.php?mod=portalcp&ac=logout">{lang logout}</a></li>
|
||||
<!--{/if}-->
|
||||
</ul>
|
||||
</div>
|
35
template/default/portal/portalcp_pageblock.htm
Normal file
35
template/default/portal/portalcp_pageblock.htm
Normal file
@@ -0,0 +1,35 @@
|
||||
<tr>
|
||||
<td>
|
||||
<div{if $_G[inajax]} style="width:520px;height:{if $hasinblocks}310px{else}225px{/if};overflow-x:hidden;overflow-y:auto;"{/if}>
|
||||
<!--{if $hasinblocks}-->
|
||||
<div id="hasinblocks">
|
||||
<h3 class="ptn pbn">{lang block_recommend_data_in_block}</h3>
|
||||
<ul class="xl xl2 mbm cl" id="recommenditem_ul">
|
||||
<!--{loop $hasinblocks $block}-->
|
||||
<li id="recommenditem_$block[dataid]">
|
||||
<span class="cur1 xi2"{if $op=='recommend'} onclick="if($('recommendto')){$('recommendto').value=(this.innerText ? this.innerText : this.textContent);}recommenditem_byblock('$block[bid]', '$_GET[id]', '$_GET[idtype]')"{/if}><!--{if empty($block['name'])}-->#$block[bid]<!--{else}-->$block[name]<!--{/if}--></span>
|
||||
<a href="javascript:;" onclick="delete_recommenditem($block[dataid], $block[bid]);">[{lang cancel}]</a>
|
||||
</li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
<hr class="mtn mbn da" />
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
|
||||
<!--{if !empty($blocks)}-->
|
||||
<h3 class="ptn pbn">{lang select_block}</h3>
|
||||
<ul class="xl xl2 cl">
|
||||
<!--{loop $blocks $block}-->
|
||||
<li {if !$block[favorite]}onmouseover="display('bfav_$block[bid]');" onmouseout="display('bfav_$block[bid]');"{/if}>
|
||||
<span class="cur1 xi2"{if $op=='recommend'} onclick="if($('recommendto')){$('recommendto').value=(this.innerText ? this.innerText : this.textContent);}recommenditem_byblock('$block[bid]', '$_GET[id]', '$_GET[idtype]')"{/if}>$block[name]</span>
|
||||
<a href="javascript:;" id="bfav_$block[bid]" onclick="blockFavorite($block[bid]);"{if !$block[favorite]} style="visibility:hidden"{/if}><!--{if $block[favorite]}--><img src="{IMGDIR}/fav.gif" alt="fav" title="{lang block_cancel_favorite}" class="favmark" /><!--{else}--><img src="{IMGDIR}/fav_grey.gif" alt="normal" title="{lang block_favorite}" class="favmark" /><!--{/if}--></a>
|
||||
</li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
<!--{else}-->
|
||||
<p class="emp">{lang has_no_block}</p>
|
||||
<!--{/if}-->
|
||||
</div>
|
||||
<!--{if $multi}--><div class="pgs mtm cl">$multi</div><!--{/if}-->
|
||||
</td>
|
||||
</tr>
|
25
template/default/portal/portalcp_plugin.htm
Normal file
25
template/default/portal/portalcp_plugin.htm
Normal file
@@ -0,0 +1,25 @@
|
||||
<!--{template common/header}-->
|
||||
<div id="pt" class="bm cl">
|
||||
<div class="z">
|
||||
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>›</em>
|
||||
<a href="$_G[setting][navs][1][filename]">{lang portal}</a> <em>›</em>
|
||||
<a href="portal.php?mod=portalcp">{lang portal_manage}</a> <em>›</em>
|
||||
$_G['setting']['plugins']['portalcp'][$_GET['id']]['name']
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="ct" class="ct2_a wp cl">
|
||||
<div class="mn">
|
||||
<h1 class="mt">$_G['setting']['plugins']['portalcp'][$_GET['id']]['name']</h1>
|
||||
<div class="bm bw0">
|
||||
<div id="block_selection">
|
||||
<!--{eval include(template($_GET['id']));}-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="appl">
|
||||
<!--{subtemplate portal/portalcp_nav}-->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--{template common/footer}-->
|
279
template/default/portal/portalcp_portalblock.htm
Normal file
279
template/default/portal/portalcp_portalblock.htm
Normal file
@@ -0,0 +1,279 @@
|
||||
<!--{template common/header}-->
|
||||
<!--{if !$_G[inajax]}-->
|
||||
<div id="pt" class="bm cl">
|
||||
<div class="z">
|
||||
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>›</em>
|
||||
<!--{if $_G['setting']['portalstatus'] }--><a href="$_G[setting][navs][1][filename]">{lang portal}</a> <em>›</em><!--{/if}-->
|
||||
<a href="portal.php?mod=portalcp"><!--{if $_G['setting']['portalstatus'] }-->{lang portal_manage}<!--{else}-->{lang portal_block_manage}<!--{/if}--></a> <em>›</em>
|
||||
<!--{if $_G['setting']['portalstatus'] }-->{lang block_management}<!--{/if}-->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="ct" class="ct2_a wp cl">
|
||||
<div class="mn">
|
||||
<h1 class="mt">{lang block_management}</h1>
|
||||
<div class="bm bw0">
|
||||
<div id="block_selection">
|
||||
<!--{/if}-->
|
||||
|
||||
<!--{if $op=='recommend'}-->
|
||||
<!--{if $_GET['getdata']}-->
|
||||
<!--{subtemplate portal/portalcp_pageblock}-->
|
||||
<!--{else}-->
|
||||
<h3 class="flb">
|
||||
<em id="return_$_GET[handlekey]">{lang push}</em>
|
||||
<!--{if $_G[inajax]}--><span><a href="javascript:;" onclick="hideWindow('$_GET[handlekey]');" class="flbc" title="{lang close}">{lang close}</a></span><!--{/if}-->
|
||||
</h3>
|
||||
<script type="text/javascript" src="{$_G[setting][jspath]}portal.js?{VERHASH}"></script>
|
||||
<form id="recommendform" method="post" enctype="multipart/form-data" action="portal.php?mod=portalcp&ac=block&op=recommend&id=$_GET[id]&idtype=$_GET[idtype]" onsubmit="if(recommenditem_check()) { ajaxpost('recommendform','return_$_GET[handlekey]','return_$_GET[handlekey]','onerror');} return false;">
|
||||
<div class="c">
|
||||
<p{if $_G[inajax]} style="width:520px;"{/if}>
|
||||
<!--{if $tpls}-->
|
||||
{lang block_page}:
|
||||
<select name="targettplname" id="rtargettplname"class="ps vm" onchange="$('rsearchkey').value='';listblock_bypage('$_GET[id]', '$_GET[idtype]')">
|
||||
<option value="">{lang all_page}</option>
|
||||
<!--{loop $tpls $tpl $tplname}-->
|
||||
<option value="$tpl"{if $tpl == $_GET['targettplname']}selected{/if}>$tplname</option>
|
||||
<!--{/loop}-->
|
||||
</select>
|
||||
<!--{/if}-->
|
||||
{lang block_id}:
|
||||
<input type="text" class="px vm" name="searchkey" id="rsearchkey" value="$_GET[searchkey]" />
|
||||
<button type="button" class="pn vm" onclick="listblock_bypage('$_GET[id]', '$_GET[idtype]')"><em>{lang find}</em></button>
|
||||
</p>
|
||||
<input type="hidden" name="recommend_bid" id="recommend_bid" value="" />
|
||||
<input type="hidden" name="recommend_thread_pid" id="recommend_thread_pid" value="$_GET[pid]" />
|
||||
<table class="tfm">
|
||||
<tbody id="itemeditarea">
|
||||
<!--{subtemplate portal/portalcp_pageblock}-->
|
||||
</tbody>
|
||||
<tbody id="olditemeditarea" style="display:none;"></tbody>
|
||||
</table>
|
||||
</div>
|
||||
<p class="o pns">
|
||||
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
||||
<input type="hidden" name="recommendsubmit" value="1" />
|
||||
<input type="hidden" name="handlekey" value="$_GET['handlekey']" />
|
||||
<input type="hidden" name="referer" value="{echo dreferer()}">
|
||||
<!--{if ($_GET['idtype'] == 'tid' || $_GET['idtype'] == 'gtid')}-->
|
||||
<input type="hidden" class="px vm" name="recommendto" id="recommendto" value="" />
|
||||
<label for="showrecommendtip"><input type="checkbox" name="showrecommendtip" id="showrecommendtip" class="pc" fwin="mods" value="1">{lang show_push}</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} value="1"/>{lang admin_pm}</label>
|
||||
<!--{/if}-->
|
||||
<button type="submit" class="pn pnc" value="true"><strong>{lang submit}</strong></button>
|
||||
</p>
|
||||
</form>
|
||||
<script type="text/javascript" reload="1">
|
||||
function errorhandle_recommenditem(message) {
|
||||
var editarea = $('itemeditarea');
|
||||
ajaxinnerhtml(editarea, '<tr><td> </td><td>' + message + '</td></tr>');
|
||||
}
|
||||
ajaxupdateevents($('itemeditarea'));
|
||||
</script>
|
||||
<!--{/if}-->
|
||||
|
||||
<!--{else}-->
|
||||
<form action="portal.php?mod=portalcp&ac=portalblock&op=$op" method="get" class="mbm">
|
||||
<input type="hidden" name="mod" value="portalcp" />
|
||||
<input type="hidden" name="ac" value="portalblock" />
|
||||
<input type="hidden" name="op" value="$op" />
|
||||
<!--{if $tpls}-->
|
||||
{lang block_page}:
|
||||
<select name="targettplname" class="vm" onchange="this.form.submit();">
|
||||
<option value="">{lang all_page}</option>
|
||||
<!--{loop $tpls $tpl $tplname}-->
|
||||
<option value="$tpl"{if $tpl == $_GET['targettplname']}selected{/if}>$tplname</option>
|
||||
<!--{/loop}-->
|
||||
</select>
|
||||
<!--{/if}-->
|
||||
{lang block_id}:
|
||||
<input type="text" class="px vm" name="searchkey" id="searchkey" value="$_GET[searchkey]" />
|
||||
<button type="submit" class="pn vm"><em>{lang find}</em></button>
|
||||
</form>
|
||||
|
||||
<!--{if !empty($_GET['targettplname'])}-->
|
||||
<p>
|
||||
{lang view_select_mod}<a href="portal.php?mod=portalcp&ac=portalblock" class="xi2">{lang click_return_list}</a>
|
||||
</p>
|
||||
<!--{/if}-->
|
||||
<!--{if $blocks}-->
|
||||
<!--{if in_array($op, array('getblocklist', 'verifydata', 'verifieddata'))}-->
|
||||
{eval
|
||||
$addurl = $_GET['targettplname'] ? '&targettplname='.$_GET['targettplname'] : '';
|
||||
$addurl .= $_GET['searchkey'] ? '&searchkey='.$_GET['searchkey'] : '';
|
||||
$_block = count($blocks) == 1 ? current($blocks) : array();
|
||||
}
|
||||
<ul class="tb cl">
|
||||
<!--{if $_GET['searchkey'] && $_block}-->
|
||||
<li{if $op === 'getblocklist'} class="a"{/if}><a href="portal.php?mod=portalcp&ac=portalblock&op=getblocklist$addurl">$_block['name']</a></li>
|
||||
<!--{else}-->
|
||||
<li{if $op === 'getblocklist'} class="a"{/if}><a href="portal.php?mod=portalcp&ac=portalblock&op=getblocklist">{lang block_list}</a></li>
|
||||
<!--{/if}-->
|
||||
<li{if $op === 'verifydata'} class="a"{/if}><a href="portal.php?mod=portalcp&ac=portalblock&op=verifydata$addurl">{lang block_verifydata}</a></li>
|
||||
<li{if $op === 'verifieddata'} class="a"{/if}><a href="portal.php?mod=portalcp&ac=portalblock&op=verifieddata$addurl">{lang block_verifieddata}</a></li>
|
||||
<!--{if $_GET['searchkey'] && $_block}-->
|
||||
<li class="o"><a href="portal.php?mod=portalcp&ac=portalblock&op=getblocklist">{lang return}{lang block_list}</a></li>
|
||||
<!--{/if}-->
|
||||
</ul>
|
||||
<form action="portal.php?mod=portalcp&ac=portalblock&op=$op" method="post">
|
||||
<!--{/if}-->
|
||||
<table class="dt mtm">
|
||||
<!--{if $initemdata}-->
|
||||
<!--{if $blockdata}-->
|
||||
<!--{if $op === 'verifieddata'}-->
|
||||
<tr>
|
||||
<th width="40">{lang delete}</th>
|
||||
<th>{lang display_order}</th>
|
||||
<th>{lang title}</th>
|
||||
<th>{lang block_page}</th>
|
||||
<th>{lang block_id}</th>
|
||||
<th>{lang pass_moderate_time}</th>
|
||||
<th>{lang is_stick}</th>
|
||||
<th width="80">{lang operation}</th>
|
||||
</tr>
|
||||
<!--{loop $blockdata $value}-->
|
||||
<tr>
|
||||
<td><input type="checkbox" class="pc" name="ids[]" value="$value[dataid]" /></td>
|
||||
<td><input type="hidden" name="olddisplayorder[{$value[dataid]}]" value="$value[displayorder]" />
|
||||
<input type="input" class="px" name="displayorder[{$value[dataid]}]" value="$value[displayorder]" size="2" maxlength="4" /></td>
|
||||
<td><a href="$value[url]" target="_blank">$value['title']</a></td>
|
||||
<!--{eval $page = empty($blocks[$value['bid']]['page']) ? '{lang unused}' : implode('<br/>' ,$blocks[$value['bid']]['page']);}-->
|
||||
<td>$page</td>
|
||||
<td><a href="portal.php?mod=portalcp&ac=block&bid=$value[bid]" target="_blank">$blocks[$value[bid]][name]</a></td>
|
||||
<td>$value['verifiedtime']</td>
|
||||
<td><!--{if $value['stickgrade']}-->{lang stick} $value[stickgrade]<!--{else}-->{lang no}<!--{/if}--></td>
|
||||
<td>
|
||||
<a href="portal.php?mod=portalcp&ac=block&op=managedata&bid=$value[bid]&dataid=$value[dataid]{if $_GET[from]}&from=$_GET[from]{/if}" onclick="showWindow('showblock', this.getAttribute('href'));">{lang edit}</a>
|
||||
</td>
|
||||
</tr>
|
||||
<!--{/loop}-->
|
||||
<tr>
|
||||
<td colspan="8">
|
||||
<label for="chkall" onclick="checkall(this.form, 'ids')"><input type="checkbox" name="chkall" id="chkall" class="pc" />{lang select_all}</label>
|
||||
<input type="hidden" name="handlekey" value="$_GET['handlekey']" />
|
||||
<input type="hidden" name="verifieddatasubmit" value="true" />
|
||||
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
||||
<button type="submit" class="pn pnc"><strong>{lang confirms}</strong></button>
|
||||
</td>
|
||||
</tr>
|
||||
<!--{elseif $op === 'verifydata'}-->
|
||||
<tr>
|
||||
<th width="40">{lang select}</th>
|
||||
<th>{lang title}</th>
|
||||
<th>{lang block_page}</th>
|
||||
<th>{lang block_id}</th>
|
||||
<th>{lang push_people}</th>
|
||||
<th>{lang push_dateline}</th>
|
||||
<th width="80">{lang block_operation}</th>
|
||||
</tr>
|
||||
<!--{loop $blockdata $value}-->
|
||||
<tr>
|
||||
<td><input type="checkbox" name="ids[]" class="pc" value="$value[dataid]" /></td>
|
||||
<td><a href="$value[url]" target="_blank">$value[title]</a></td>
|
||||
<!--{eval $page = empty($blocks[$value['bid']]['page']) ? '{lang unused}' : implode('<br/>' ,$blocks[$value['bid']]['page']);}-->
|
||||
<td>$page</td>
|
||||
<td><a href="portal.php?mod=portalcp&ac=block&bid=$value[bid]" target="_blank">$blocks[$value[bid]][name]</a></td>
|
||||
<td><a href="home.php?uid=$value[uid]" target="_blank">$value[username]</a></td>
|
||||
<td>$value[dateline]</td>
|
||||
<td>
|
||||
<a href="portal.php?mod=portalcp&ac=block&op=verifydata&bid=$value[bid]&dataid=$value[dataid]" onclick="showWindow('verifydata', this.href, 'get', 0)" class="xi2">{lang moderate}</a>
|
||||
</td>
|
||||
</tr>
|
||||
<!--{/loop}-->
|
||||
<tr>
|
||||
<td colspan="7">
|
||||
<label for="chkall" onclick="checkall(this.form, 'ids')"><input type="checkbox" name="chkall" id="chkall" class="pc" />{lang select_all}</label>
|
||||
<label for="op_delete"><input id="op_delete" class="pr" value="delete" name="optype" type="radio">{lang delete}</label>
|
||||
<label for="op_pass"><input id="op_pass" class="pr" value="pass" name="optype" type="radio">{lang passed}</label>
|
||||
<input type="hidden" name="verifydatasubmit" value="1" />
|
||||
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
||||
<button type="submit" value="true" name="trashsubmit" class="pn vm"><em>{lang submit}</em></button>
|
||||
[{lang update_block_tips}]
|
||||
</td>
|
||||
</tr>
|
||||
<!--{/if}-->
|
||||
<!--{else}-->
|
||||
<tr><td>{lang no_data}</td></tr>
|
||||
<!--{/if}-->
|
||||
<!--{else}-->
|
||||
<!--{if $blocks}-->
|
||||
<tr>
|
||||
<th width="50"> </th>
|
||||
<th width="260">{lang block_id}</th>
|
||||
<th>{lang mod_category}</th>
|
||||
<th>{lang block_data_source}</th>
|
||||
<th>{lang block_page}</th>
|
||||
<th width="120">{lang block_operation}</th>
|
||||
</tr>
|
||||
<!--{loop $blocks $block}-->
|
||||
<tr>
|
||||
<!--{if $op == 'getblocklist'}-->
|
||||
<td><!--{if $block['cachetime']}--><input type="checkbox" name="bids[]" class="pc" value="$block[bid]" /><!--{/if}--></td>
|
||||
<!--{eval $updatetime = $block['cachetime'] ? $block['cachetime'] - (TIMESTAMP - $block['dateline']) : false;}-->
|
||||
<td title="{if $updatetime > 0 }$updatetime{lang block_not_in_updateline}{elseif $updatetime !== false }{lang block_in_updateline}{else}{/if}"{if !$block[favorite]} onmouseover="display('bfav_$block[bid]');" onmouseout="display('bfav_$block[bid]');"{/if}>$block[name] <a href="javascript:;" id="bfav_$block[bid]" onclick="blockFavorite($block[bid]);"{if !$block[favorite]} style="visibility:hidden"{/if}><!--{if $block[favorite]}--><img src="{IMGDIR}/fav.gif" alt="fav" title="{lang block_cancel_favorite}" class="favmark" /><!--{else}--><img src="{IMGDIR}/fav_grey.gif" alt="normal" title="{lang block_favorite}" class="favmark" /><!--{/if}--></a></td>
|
||||
<!--{else}-->
|
||||
<td{if !$block[favorite]} onmouseover="display('bfav_$block[bid]');" onmouseout="display('bfav_$block[bid]');"{/if}>$block[name] <a href="javascript:;" id="bfav_$block[bid]" onclick="blockFavorite($block[bid]);"{if !$block[favorite]} style="visibility:hidden"{/if}><!--{if $block[favorite]}--><img src="{IMGDIR}/fav.gif" alt="fav" title="{lang block_cancel_favorite}" class="favmark" /><!--{else}--><img src="{IMGDIR}/fav_grey.gif" alt="normal" title="{lang block_favorite}" class="favmark" /><!--{/if}--></a></td>
|
||||
<!--{/if}-->
|
||||
<td>$block[blockclassname]</td>
|
||||
<td>$block[datasrc]</td>
|
||||
<!--{eval $page = empty($block['page']) ? '{lang unused}' : implode('<br/>' ,$block['page']);}-->
|
||||
<td>$page</td>
|
||||
<td>
|
||||
<!--{if $block['perm']['allowproperty']}-->
|
||||
<a href="portal.php?mod=portalcp&ac=block&op=block&bid=$block[bid]" target="_blank">{lang property}</a>
|
||||
<!--{else}-->
|
||||
{lang unoperation}
|
||||
<!--{/if}-->
|
||||
<!--{if $block['perm']['allowdata']}-->
|
||||
<a href="portal.php?mod=portalcp&ac=block&op=data&bid=$block[bid]" target="_blank">{lang data}</a>
|
||||
<!--{else}-->
|
||||
{lang unoperation}
|
||||
<!--{/if}-->
|
||||
<!--{if $block['isrecommendable']}-->
|
||||
<a href="portal.php?mod=portalcp&ac=portalblock&op=verifydata&searchkey=$block[bid]">{lang moderate}</a>
|
||||
<a href="portal.php?mod=portalcp&ac=portalblock&op=verifieddata&searchkey=$block[bid]">{lang block_itemdata}</a>
|
||||
<!--{else}-->
|
||||
{lang unoperation}
|
||||
{lang unoperation}
|
||||
<!--{/if}-->
|
||||
</td>
|
||||
</tr>
|
||||
<!--{/loop}-->
|
||||
<!--{if $op == 'getblocklist'}-->
|
||||
<tr>
|
||||
<td>
|
||||
<label for="chkall"><input type="checkbox" name="chkall" id="chkall" class="pc" onclick="checkall(this.form, 'bids')" />{lang select_all}</label>
|
||||
</td>
|
||||
<td colspan="5">
|
||||
<input type="hidden" name="{$op}submit" value="1" />
|
||||
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
||||
<button type="submit" value="true" name="submit" class="pn"><em>{lang push_updateblock}</em></button>
|
||||
<img src="{IMGDIR}/faq.gif" alt="Tip" class="vm" onmouseover="showTip(this)" tip="{lang push_updateblock_tips}" />
|
||||
</td>
|
||||
</tr>
|
||||
<!--{/if}-->
|
||||
<!--{else}-->
|
||||
<tr><td>{lang no_data}</td></tr>
|
||||
<!--{/if}-->
|
||||
<!--{/if}-->
|
||||
</table>
|
||||
<!--{if $multi}--><div class="pgs mtn cl">$multi</div><!--{/if}-->
|
||||
<!--{if in_array($op, array('getblocklist', 'verifydata', 'verifieddata'))}-->
|
||||
</form>
|
||||
<!--{/if}-->
|
||||
|
||||
<!--{else}-->
|
||||
<p class="emp">{lang block_no_managable}</p>
|
||||
<!--{/if}-->
|
||||
<!--{/if}-->
|
||||
|
||||
<!--{if !$_G[inajax]}-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="appl">
|
||||
<!--{subtemplate portal/portalcp_nav}-->
|
||||
</div>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
<!--{template common/footer}-->
|
280
template/default/portal/portalcp_related_article.htm
Normal file
280
template/default/portal/portalcp_related_article.htm
Normal file
@@ -0,0 +1,280 @@
|
||||
<!--{template common/header}-->
|
||||
<!--{if ($op == 'manual')}-->
|
||||
<!--{if $ra}-->
|
||||
<li id="$ra[aid]">
|
||||
<em>$ra[title]</em>
|
||||
<span class="xg1">
|
||||
<a href="javascript:;" onclick="uparticle($ra[aid]);" title="{lang move_up}"><img class="vm" src="{IMGDIR}/icon_top.gif" alt="{lang move_up}" /></a>
|
||||
<a href="javascript:;" onclick="downarticle($ra[aid]);" title="{lang move_down}"><img class="vm" src="{IMGDIR}/icon_down.gif" alt="{lang move_down}" /></a>
|
||||
<a href="javascript:;" onclick="delarticle($ra[aid]);" title="{lang delete}"><img class="vm" src="{IMGDIR}/data_invalid.gif" alt="{lang delete}" /></a>
|
||||
</span>
|
||||
</li>
|
||||
<!--{/if}-->
|
||||
<!--{elseif ($op == 'get')}-->
|
||||
<!--{loop $articlelist $list}-->
|
||||
<li id="$list[aid]">
|
||||
<em>$list[title]</em>
|
||||
<span class="xg1">
|
||||
<a href="javascript:;" onclick="uparticle($list[aid]);" title="{lang move_up}"><img class="vm" src="{IMGDIR}/icon_top.gif" alt="{lang move_up}" /></a>
|
||||
<a href="javascript:;" onclick="downarticle($list[aid]);" title="{lang move_down}"><img class="vm" src="{IMGDIR}/icon_down.gif" alt="{lang move_down}" /></a>
|
||||
<a href="javascript:;" onclick="delarticle($list[aid]);" title="{lang delete}"><img class="vm" src="{IMGDIR}/data_invalid.gif" alt="{lang delete}" /></a>
|
||||
</span>
|
||||
</li>
|
||||
<!--{/loop}-->
|
||||
<!--{elseif ($op == 'search')}-->
|
||||
<!--{loop $articlelist $list}-->
|
||||
<li>
|
||||
<input type="checkbox" name="article" id="article_$list[aid]_pc" class="pc" value="$list[aid]" onclick="getarticlenum();"/>
|
||||
<label for="article_$list[aid]_pc" id="article_$list[aid]">$list[title]</label>
|
||||
</li>
|
||||
<!--{/loop}-->
|
||||
<!--{elseif ($op == 'add')}-->
|
||||
<!--{loop $articlelist $ra}-->
|
||||
<li id="raid_li_$ra[aid]">
|
||||
<input type="hidden" name="raids[]" value="$ra[aid]" size="5">
|
||||
<a href="{echo fetch_article_url($ra);}" target="_blank">$ra[title]</a>
|
||||
({lang article_id}: $ra[aid])
|
||||
<a href="javascript:;" onclick="raid_delete($ra[aid]);" class="xg1">{lang delete}</a>
|
||||
</li>
|
||||
<!--{/loop}-->
|
||||
<!--{else}-->
|
||||
<h3 class="flb">
|
||||
<em>{lang manage_related_article}</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 cl">
|
||||
<div class="y">
|
||||
{lang article_id}:
|
||||
<input type="text" name="manualid" id="manualid" class="px vm" value="0" size="10" />
|
||||
<button type="button" name="raid_button" class="pn" value="false" onclick="manualadd();"><em>{lang add_by_self}</em></button>
|
||||
</div>
|
||||
{$category}
|
||||
<input type="text" name="searchkey" id="searchkey" class="px vm" value="$searchkey" size="10" />
|
||||
<button type="button" name="search_button" class="pn vm" value="false" onclick="articlesearch();"><em>{lang search}</em></button>
|
||||
</div>
|
||||
<div class="cl">
|
||||
<div class="z" id="chkalldiv">
|
||||
<p class="mtm mbn cl">
|
||||
<span class="xg1 y">{lang wait_select}(<span id="articlenum">0</span>/<span id="articlenumall">$count</span> {lang max_wait_select})</span>
|
||||
<label class="chkall"><input type="checkbox" name="chkall" id="chkall" class="pc" value="" onclick="selectall();getarticlenum();"/>{lang select_all}</label>
|
||||
</p>
|
||||
<ul id="articlelist" class="bartl">
|
||||
<!--{loop $articlelist $list}-->
|
||||
<li>
|
||||
<input type="checkbox" name="article" id="article_$list[aid]_pc" class="pc" value="$list[aid]" onclick="getarticlenum();"/><label for="article_$list[aid]_pc" id="article_$list[aid]">$list[title]</label>
|
||||
</li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
</div>
|
||||
<div class="barto">
|
||||
<button name="choosebutton" class="pn" onclick="choosearticle();" title="{lang selected_tag_selected}"><em>></em></button>
|
||||
</div>
|
||||
<div class="y">
|
||||
<p class="mtm mbn">{lang already_select}(<strong id="selectednum" class="xi1">0</strong>)</p>
|
||||
<ul id="selectedarticle" class="bartl"></ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="o pns">
|
||||
<input type="hidden" id="selectedarray" name="selectedarray" value="" />
|
||||
<!--{if $_GET['update']}-->
|
||||
<input type="hidden" id="update" name="update" value="1" />
|
||||
<!--{/if}-->
|
||||
<button type="submit" name="dsf" class="pn pnc" onclick="addrelatearticle();"><span>{lang confirms}</span></button>
|
||||
<button type="reset" name="dsf" class="pn" onclick="hideWindow('$_GET[handlekey]');"><em>{lang cancel}</em></button>
|
||||
</p>
|
||||
|
||||
<script type="text/javascript" reload="1">
|
||||
function choosearticle() {
|
||||
var article = document.getElementsByName("article");
|
||||
for(var i = 0; i < article.length; i++){
|
||||
if(article[i].checked) {
|
||||
var choosed = $("article_"+article[i].value).innerHTML;
|
||||
choosed ='<li id="'+article[i].value+'"><em>'+choosed+'</em><span class="xg1"><a href="javascript:;" onclick="uparticle('+article[i].value+');" title="{lang move_up}"><img class="vm" src="{IMGDIR}/icon_top.gif" alt="{lang move_up}" /></a> <a href="javascript:;" onclick="downarticle('+article[i].value+');" title="{lang move_down}"><img class="vm" src="{IMGDIR}/icon_down.gif" alt="{lang move_down}" /></a> <a href="javascript:;" onclick="delarticle('+article[i].value+');" title="{lang delete}"><img class="vm" src="{IMGDIR}/data_invalid.gif" alt="{lang delete}" /></a></span></li>';
|
||||
if(!$(article[i].value)) {
|
||||
$("selectedarticle").innerHTML += choosed;
|
||||
}
|
||||
}
|
||||
}
|
||||
updatearticlearray();
|
||||
}
|
||||
function uparticle(id) {
|
||||
var lastid = getdivid(id, 'last');
|
||||
if(lastid) {
|
||||
var lastdiv = $(lastid);
|
||||
var div = $(id);
|
||||
$("selectedarticle").insertBefore(div,lastdiv);
|
||||
}
|
||||
updatearticlearray();
|
||||
}
|
||||
function downarticle(id) {
|
||||
var nextid = getdivid(id, 'next');
|
||||
if(nextid) {
|
||||
var nextdiv = $(nextid);
|
||||
var div = $(id);
|
||||
$("selectedarticle").insertBefore(nextdiv,div);
|
||||
}
|
||||
updatearticlearray();
|
||||
}
|
||||
function delarticle(id) {
|
||||
var div = $(id);
|
||||
div.parentNode.removeChild(div);
|
||||
updatearticlearray();
|
||||
}
|
||||
function updatearticlearray() {
|
||||
var list = document.getElementById("selectedarticle").getElementsByTagName("li");
|
||||
var str = '';
|
||||
for(var i = 0; i < list.length; i++)
|
||||
{
|
||||
if(str == '') {
|
||||
str = list[i].id;
|
||||
} else {
|
||||
str = str + ',' + list[i].id;
|
||||
}
|
||||
|
||||
}
|
||||
$('selectedarray').value = str;
|
||||
$('selectednum').innerHTML = list.length;
|
||||
}
|
||||
function getdivid(id,type) {
|
||||
var str = $('selectedarray').value;
|
||||
var arr = new Array();
|
||||
var rstr = '';
|
||||
arr = str.split(",");
|
||||
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (arr[i] == id) {
|
||||
if(type == 'last') {
|
||||
if(arr[i-1]) {
|
||||
rstr = arr[i-1];
|
||||
}
|
||||
} else if(type == 'next') {
|
||||
if(arr[i+1]) {
|
||||
rstr = arr[i+1];
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return rstr;
|
||||
}
|
||||
function manualadd() {
|
||||
var manualid = $('manualid').value;
|
||||
if($(manualid)) {
|
||||
alert('{lang article_validate_has_added}');
|
||||
return false;
|
||||
}
|
||||
var url = 'portal.php?mod=portalcp&ac=related&op=manual&catid=$catid&aid=$aid&inajax=1&manualid='+manualid;
|
||||
var x = new Ajax();
|
||||
x.get(url, function(s){
|
||||
s = trim(s);
|
||||
if(s) {
|
||||
$('selectedarticle').innerHTML += s;
|
||||
updatearticlearray();
|
||||
} else {
|
||||
alert('{lang article_validate_noexist}');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
function articlesearch() {
|
||||
var searchkey = $('searchkey').value;
|
||||
var searchcate = $('searchcate').value;
|
||||
var url = 'portal.php?mod=portalcp&ac=related&op=search&catid=$catid&aid=$aid&inajax=1&searchkey='+searchkey+'&searchcate='+searchcate;
|
||||
var x = new Ajax();
|
||||
x.get(url, function(s){
|
||||
s = trim(s);
|
||||
if(s) {
|
||||
$('articlelist').innerHTML = s;
|
||||
getarticlenum();
|
||||
} else {
|
||||
$('articlelist').innerHTML = '';
|
||||
getarticlenum();
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
function getarticlenum() {
|
||||
var article = document.getElementsByName("article");
|
||||
for(var i = 0, j = 0; i < article.length; i++){
|
||||
if(article[i].checked) {
|
||||
j++;
|
||||
}
|
||||
}
|
||||
$('articlenum').innerHTML = j;
|
||||
$('articlenumall').innerHTML = article.length;
|
||||
}
|
||||
function addrelatearticle() {
|
||||
var relatedid = $("selectedarray").value;
|
||||
if(relatedid) {
|
||||
var url = 'portal.php?mod=portalcp&ac=related&op=add&catid=$catid&aid=$aid&inajax=1&relatedid='+relatedid;
|
||||
if($('update')) {
|
||||
url += '&update=1';
|
||||
}
|
||||
var x = new Ajax();
|
||||
x.get(url, function(s){
|
||||
s = trim(s);
|
||||
if(s) {
|
||||
if($('portalview')) {
|
||||
showDialog('{lang add_portal_related_success}', 'right', '', 'window.location.reload();');
|
||||
} else {
|
||||
$('raid_div').innerHTML = '';
|
||||
$('raid_div').innerHTML = s;
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
$('raid_div').innerHTML = '';
|
||||
}
|
||||
hideWindow('$_GET[handlekey]');
|
||||
}
|
||||
function getrelatedarticle() {
|
||||
var input = document.getElementById("raid_div").getElementsByTagName("input");
|
||||
if(input) {
|
||||
var id = '';
|
||||
for(var i = 0;i < input.length;i++)
|
||||
{
|
||||
if(id) {
|
||||
id = id + ',' + input[i].value;
|
||||
} else {
|
||||
id = input[i].value;
|
||||
}
|
||||
}
|
||||
if(id != '') {
|
||||
var url = 'portal.php?mod=portalcp&ac=related&op=get&catid=$catid&aid=$aid&inajax=1&id='+id;
|
||||
var x = new Ajax();
|
||||
x.get(url, function(s){
|
||||
s = trim(s);
|
||||
if(s) {
|
||||
$("selectedarray").value = id;
|
||||
$('selectedarticle').innerHTML = s;
|
||||
$('selectednum').innerHTML = input.length;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
function selectall() {
|
||||
var input = document.getElementById("chkalldiv").getElementsByTagName("input");
|
||||
var checkall = 'chkall';
|
||||
count = 0;
|
||||
for(var i = 0; i < input.length; i++) {
|
||||
var e = input[i];
|
||||
if(e.name && e.name != checkall) {
|
||||
e.checked = input[checkall].checked;
|
||||
if(e.checked) {
|
||||
count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
return count;
|
||||
}
|
||||
getrelatedarticle();
|
||||
</script>
|
||||
<!--{/if}-->
|
||||
<!--{template common/footer}-->
|
143
template/default/portal/portalcp_topic.htm
Normal file
143
template/default/portal/portalcp_topic.htm
Normal file
@@ -0,0 +1,143 @@
|
||||
<!--{template common/header}-->
|
||||
|
||||
<div id="pt" class="bm cl">
|
||||
<div class="z">
|
||||
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>›</em>
|
||||
<a href="portal.php">{lang portal}</a> <em>›</em>
|
||||
<!--{if $topic}-->
|
||||
<a href="portal.php?mod=portalcp&ac=topic&topicid=$topic[topicid]">{lang topic_edit}</a>
|
||||
<!--{else}-->
|
||||
<a href="portal.php?mod=portalcp&ac=topic">{lang topic_add}</a>
|
||||
<!--{/if}-->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="ct" class="wp cl">
|
||||
<div class="mn">
|
||||
<!--{if $op == 'add' || $op == 'edit'}-->
|
||||
<div class="bm">
|
||||
<div class="bm_h">
|
||||
<h1><!--{if $topic}-->{lang topic_edit}<!--{else}-->{lang topic_add}<!--{/if}--></h1>
|
||||
</div>
|
||||
<div class="bm_c">
|
||||
<form id="topicform" name="topicform" method="post" autocomplete="off" enctype="multipart/form-data" action="portal.php?mod=portalcp&ac=topic&op=$op&topicid={$topic[topicid] or ''}">
|
||||
<table cellspacing="0" cellpadding="0" class="tfm">
|
||||
<tr>
|
||||
<th><span class="rq">*</span>{lang topic_submit}</th>
|
||||
<td><input type="text" name="title" value="{$topic[title] or ''}" class="px" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><span class="rq">*</span>{lang topic_static_name}</th>
|
||||
<td><input type="text" name="name" value="{$topic[name] or ''}" class="px" />
|
||||
<p class="d">{lang topic_static_name_comment}</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>{lang topic_domain}</th>
|
||||
<td>
|
||||
<!--{if !empty($_G['setting']['domain']['root']['topic'])}-->
|
||||
http://<input type="text" name="domain" value="{$topic[domain] or ''}" class="px" style="width:100px" />.$_G['setting']['domain']['root']['topic']
|
||||
<!--{else}-->
|
||||
<input type="text" name="domain" value="" disabled="disabled" class="px" />
|
||||
<!--{/if}-->
|
||||
<p class="d">{lang topic_domain_comment}</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>{lang topic_description}</th>
|
||||
<td><textarea name="summary" rows="4" cols="60" class="pt">{$topic[summary] or ''}</textarea>
|
||||
<p class="d">{lang topic_description_comment}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{lang topic_keyword}</th>
|
||||
<td><textarea name="keyword" rows="4" cols="60" class="pt">{$topic[keyword] or ''}</textarea>
|
||||
<p class="d">{lang topic_keyword_comment}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{lang topic_cover}</th>
|
||||
<td>
|
||||
<p class="mbn">
|
||||
<label class="lb"><input type="radio" name="cover_tg" class="pr" checked="checked" onclick="document.getElementById('cover_tg_1').style.display='block';document.getElementById('cover_tg_2').style.display='none';" />{lang link_to_internet}</label>
|
||||
<label class="lb"><input type="radio" name="cover_tg" class="pr" onclick="document.getElementById('cover_tg_1').style.display='none';document.getElementById('cover_tg_2').style.display='block'" />{lang upload_from_local}</label>
|
||||
</p>
|
||||
<p id="cover_tg_1"><input type="text" name="cover" value="$coverpath" class="px" /></p>
|
||||
<p id="cover_tg_2" style="display: none;"><input type="file" name="cover" /></p>
|
||||
<!--{if !empty($topic[cover])}-->
|
||||
<p class="mtn">
|
||||
{lang topic_cover_current}:
|
||||
<a href="$topic[cover]" target="_blank"><img src="$topic[cover]" alt="{$topic[title] or ''}" width="160" height="160" /></a>
|
||||
<label><input type="checkbox" value="yes" name="deletecover" class="pc" />{lang delete}</label>
|
||||
</p>
|
||||
<!--{/if}-->
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{lang tplname}</th>
|
||||
<td>
|
||||
<!--{eval $pritplhide = empty($topic['primaltplname']) ? '' : ' style="display:none;"';}-->
|
||||
<!--{eval $pritplshow = empty($topic['primaltplname']) ? ' style="display:none;"' : '';}-->
|
||||
<span id="pritplselect"$pritplhide><select name="primaltplname">
|
||||
<!--{loop $tpls $k $v}-->
|
||||
<!--{eval $selected = isset($topic['primaltplname']) && $topic['primaltplname'] == $k ? ' selected' : '';}-->
|
||||
<option value="$k"$selected>$v</option>
|
||||
<!--{/loop}-->
|
||||
</select>
|
||||
<!--{loop $tpls $k $v}-->
|
||||
<input type="hidden" name="signs[{echo dsign($k)}]" value="1"/>
|
||||
<!--{/loop}-->
|
||||
<!--{eval $pritplophide = !empty($topic['primaltplname']) ? '' : ' style="display:none;"';}-->
|
||||
<a href="javascript:;"$pritplophide onclick="$('pritplselect').style.display='none';$('pritplvalue').style.display='';" class="xi2">{lang cancel}</a></span>
|
||||
<!--{eval $html = '<span id="pritplvalue"'.$pritplshow.'>'.getprimaltplname((isset($topic['primaltplname']) ? $topic['primaltplname'] : '').'.htm').' <a href="javascript:;" onclick="$(\'pritplselect\').style.display=\'\';$(\'pritplvalue\').style.display=\'none\';" class="xi2">{lang modify}</a></span>'}-->
|
||||
$html
|
||||
<p class="d">{lang topic_tplname_comment}</p></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{lang topic_allowcomment}</th>
|
||||
<td>
|
||||
<label class="lb"><input type="radio" name="allowcomment" value="1" class="pr"{if !empty($topic[allowcomment])} checked="checked"{/if} />{lang yes}</label>
|
||||
<label class="lb"><input type="radio" name="allowcomment" value="0" class="pr"{if empty($topic[allowcomment])} checked="checked"{/if} />{lang no}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{lang topic_opened}</th>
|
||||
<td>
|
||||
<label class="lb"><input type="radio" name="closed" value="1" class="pr"{if empty($topic)}disabled="disabled"{elseif !$topic[closed]} checked="checked"{/if} />{lang yes}</label>
|
||||
<label class="lb"><input type="radio" name="closed" value="0" class="pr"{if empty($topic)}checked="checked" disabled="disabled"{elseif $topic[closed]} checked="checked" {/if} />{lang no}</label>
|
||||
<!--{if empty($topic)}-->
|
||||
<p class="d">{lang topic_create_closed}</p>
|
||||
<!--{/if}-->
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{lang topic_additional}</th>
|
||||
<td>
|
||||
<label for="useheader" class="lb"><input type="checkbox" id="useheader" name="useheader" class="pc"{if !empty($topic[useheader])} checked="checked"{/if} />{lang topic_navs}</label>
|
||||
<label for="usefooter" class="lb"><input type="checkbox" id="usefooter" name="usefooter" class="pc"{if !empty($topic[usefooter])} checked="checked"{/if} />{lang topic_page_bottom}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th> </th>
|
||||
<td>
|
||||
<input type="hidden" name="editsubmit" value="true" />
|
||||
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
||||
<button type="submit" name="editsubmit_btn" id="editsubmit_btn" value="true" class="pn pnc"><strong>{lang submit}</strong></button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<!--{elseif $op == 'diy'}-->
|
||||
|
||||
{lang topic_custom_start}
|
||||
|
||||
<!--{/if}-->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!--{template common/footer}-->
|
229
template/default/portal/view.htm
Normal file
229
template/default/portal/view.htm
Normal file
@@ -0,0 +1,229 @@
|
||||
<!--{template common/header}-->
|
||||
<!--[name]{lang portalcategory_viewtplname}[/name]-->
|
||||
|
||||
<script type="text/javascript" src="{$_G['setting']['jspath']}forum_viewthread.js?{VERHASH}"></script>
|
||||
<script type="text/javascript">zoomstatus = parseInt($_G['setting']['zoomstatus']), imagemaxwidth = '{$_G['setting']['imagemaxwidth']}', aimgcount = new Array();</script>
|
||||
<div id="pt" class="bm cl">
|
||||
<div class="z">
|
||||
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>›</em>
|
||||
<a href="$_G[setting][navs][1][filename]">{lang nav_index}</a> <em>›</em>
|
||||
<!--{loop $cat[ups] $value}-->
|
||||
<a href="{echo getportalcategoryurl($value[catid])}">$value[catname]</a><em>›</em>
|
||||
<!--{/loop}-->
|
||||
<a href="{echo getportalcategoryurl($cat[catid])}">$cat[catname]</a> <em>›</em>
|
||||
{lang view_content}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--{hook/view_article_top}-->
|
||||
<!--{ad/text/wp a_t}-->
|
||||
<style id="diy_style" type="text/css"></style>
|
||||
<div class="wp">
|
||||
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
<div id="ct" class="ct2 wp cl">
|
||||
<div class="mn">
|
||||
<div class="bm vw">
|
||||
<div class="h hm">
|
||||
<h1 class="ph">$article[title] <!--{if $article['status'] == 1}-->({lang moderate_need})<!--{elseif $article['status'] == 2}-->({lang ignored})<!--{/if}--></h1>
|
||||
<p class="xg1">
|
||||
$article[dateline]<span class="pipe">|</span>
|
||||
{lang view_publisher}: <a href="home.php?mod=space&uid=$article[uid]">$article[username]</a><span class="pipe">|</span>
|
||||
{lang view_views}: <em id="_viewnum"><!--{if $article[viewnum] > 0}-->$article[viewnum]<!--{else}-->0<!--{/if}--></em><span class="pipe">|</span>
|
||||
{lang view_comments}: <!--{if $article[commentnum] > 0}--><a href="$common_url" title="{lang view_all_comments}"><em id="_commentnum">$article[commentnum]</em></a><!--{else}-->0<!--{/if}-->
|
||||
<!--{if $article[author]}--><span class="pipe">|</span>{lang view_author_original}: $article[author]<!--{/if}-->
|
||||
<!--{if $article[from]}--><span class="pipe">|</span>{lang from}: <!--{if $article[fromurl]}--><a href="$article[fromurl]" target="_blank">$article[from]</a><!--{else}-->$article[from]<!--{/if}--><!--{/if}-->
|
||||
|
||||
<!--{if $_G['group']['allowmanagearticle'] || ($_G['group']['allowpostarticle'] && $article['uid'] == $_G['uid'] && (empty($_G['group']['allowpostarticlemod']) || $_G['group']['allowpostarticlemod'] && $article['status'] == 1)) || $categoryperm[$article['catid']]['allowmanage']}-->
|
||||
<span class="pipe">|</span><a href="portal.php?mod=portalcp&ac=article&op=edit&aid=$article[aid]">{lang edit}</a>
|
||||
<!--{if $article[status]>0 && ($_G['group']['allowmanagearticle'] || $categoryperm[$article['catid']]['allowmanage'])}-->
|
||||
<span class="pipe">|</span><a href="portal.php?mod=portalcp&ac=article&op=verify&aid=$article[aid]" id="article_verify_$article[aid]" onclick="showWindow(this.id, this.href, 'get', 0);">{lang moderate}</a>
|
||||
<!--{else}-->
|
||||
<span class="pipe">|</span><a href="portal.php?mod=portalcp&ac=article&op=delete&aid=$article[aid]" id="article_delete_$article[aid]" onclick="showWindow(this.id, this.href, 'get', 0);">{lang delete}</a>
|
||||
<!--{/if}-->
|
||||
<!--{/if}-->
|
||||
<!--{hook/view_article_subtitle}-->
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<!--[diy=diysummarytop]--><div id="diysummarytop" class="area"></div><!--[/diy]-->
|
||||
|
||||
<!--{if $article[summary] && empty($cat[notshowarticlesummay])}--><div class="s"><div><strong>{lang article_description}</strong>: $article[summary]</div><!--{hook/view_article_summary}--></div><!--{/if}-->
|
||||
|
||||
<!--[diy=diysummarybottom]--><div id="diysummarybottom" class="area"></div><!--[/diy]-->
|
||||
|
||||
<div class="d">
|
||||
|
||||
<!--[diy=diycontenttop]--><div id="diycontenttop" class="area"></div><!--[/diy]-->
|
||||
|
||||
<table cellpadding="0" cellspacing="0" class="vwtb"><tr><td id="article_content">
|
||||
<!--{ad/article/a_af/1}-->
|
||||
<!--{if $content[title]}-->
|
||||
<div class="vm_pagetitle xw1">$content[title]</div>
|
||||
<!--{/if}-->
|
||||
$content[content]
|
||||
</td></tr></table>
|
||||
<!--{hook/view_article_content}-->
|
||||
<!--{if $multi}--><div class="ptw pbw cl">$multi</div><!--{/if}-->
|
||||
|
||||
<!--[diy=diycontentbottom]--><div id="diycontentbottom" class="area"></div><!--[/diy]-->
|
||||
|
||||
<script type="text/javascript" src="{$_G[setting][jspath]}home.js?{VERHASH}"></script>
|
||||
<div id="click_div">
|
||||
<!--{template home/space_click}-->
|
||||
</div>
|
||||
|
||||
<!--{if !empty($contents)}-->
|
||||
<div id="inner_nav" class="ptn xs1">
|
||||
<h3>{lang article_inner_navigation}</h3>
|
||||
<ul class="xl xl2 cl">
|
||||
<!--{loop $contents $key $value}-->
|
||||
<!--{eval $curpage = $key+1;}-->
|
||||
<!--{eval $inner_view_url = helper_page::mpurl($viewurl, '&page=', $curpage);}-->
|
||||
<li>• <a href="$inner_view_url"{if $key === $start} class="xi1"{/if}>{lang article_inner_page_pre} {$curpage} {lang article_inner_page} $value[title]</a></li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
|
||||
<!--[diy=diycontentclickbottom]--><div id="diycontentclickbottom" class="area"></div><!--[/diy]-->
|
||||
|
||||
</div>
|
||||
<!--{if !empty($aimgs[$content[pid]])}-->
|
||||
<script type="text/javascript" reload="1">aimgcount[{$content[pid]}] = [<!--{echo implode(',', $aimgs[$content[pid]]);}-->];attachimgshow($content[pid]);</script>
|
||||
<!--{/if}-->
|
||||
|
||||
<!--{if !empty($_G['setting']['pluginhooks']['view_share_method'])}-->
|
||||
<div class="tshare cl">
|
||||
<strong>{lang viewthread_share_to}:</strong>
|
||||
<!--{hook/view_share_method}-->
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
|
||||
<div class="o cl ptm pbm">
|
||||
<!--{hook/view_article_op_extra}-->
|
||||
<!--{if helper_access::check_module('favorite')}-->
|
||||
<a href="home.php?mod=spacecp&ac=favorite&type=article&id=$article[aid]&handlekey=favoritearticlehk_{$article[aid]}" id="a_favorite" onclick="showWindow(this.id, this.href, 'get', 0);" class="oshr ofav">{lang favorite}</a>
|
||||
<!--{/if}-->
|
||||
<!--{if helper_access::check_module('share')}-->
|
||||
<a href="home.php?mod=spacecp&ac=share&type=article&id=$article[aid]&handlekey=sharearticlehk_{$article[aid]}" id="a_share" onclick="showWindow(this.id, this.href, 'get', 0);" class="oshr">{lang share}</a>
|
||||
<!--{/if}-->
|
||||
<!--{if helper_access::check_module('friend')}-->
|
||||
<a href="misc.php?mod=invite&action=article&id=$article[aid]" id="a_invite" onclick="showWindow('invite', this.href, 'get', 0);" class="oshr oivt">{lang invite}</a>
|
||||
<!--{/if}-->
|
||||
<!--{if $_G['group']['allowmanagearticle'] || ($_G['group']['allowpostarticle'] && $article['uid'] == $_G['uid'] && (empty($_G['group']['allowpostarticlemod']) || $_G['group']['allowpostarticlemod'] && $article['status'] == 1)) || $categoryperm[$article['catid']]['allowmanage']}-->
|
||||
<a href="portal.php?mod=portalcp&ac=article&op=edit&aid=$article[aid]">{lang edit}</a><span class="pipe">|</span>
|
||||
<a id="related_article" href="portal.php?mod=portalcp&ac=related&aid=$article[aid]&catid=$article[catid]&update=1" onclick="showWindow(this.id, this.href, 'get', 0);return false;">{lang article_related}</a><span class="pipe">|</span>
|
||||
<!--{if $article[status]>0 && ($_G['group']['allowmanagearticle'] || $categoryperm[$article['catid']]['allowmanage'])}-->
|
||||
<a href="portal.php?mod=portalcp&ac=article&op=verify&aid=$article[aid]" id="article_verify_$article[aid]" onclick="showWindow(this.id, this.href, 'get', 0);">{lang moderate}</a>
|
||||
<!--{else}-->
|
||||
<a href="portal.php?mod=portalcp&ac=article&op=delete&aid=$article[aid]" id="article_delete_$article[aid]" onclick="showWindow(this.id, this.href, 'get', 0);">{lang delete}</a>
|
||||
<!--{/if}-->
|
||||
<span class="pipe">|</span>
|
||||
<!--{/if}-->
|
||||
<!--{if $article[status]==0 && ($_G['group']['allowdiy'] || getstatus($_G['member']['allowadmincp'], 4) || getstatus($_G['member']['allowadmincp'], 5) || getstatus($_G['member']['allowadmincp'], 6))}-->
|
||||
<a href="portal.php?mod=portalcp&ac=portalblock&op=recommend&idtype=aid&id=$article[aid]" onclick="showWindow('recommend', this.href, 'get', 0)">{lang blockdata_recommend}</a><span class="pipe">|</span>
|
||||
<!--{/if}-->
|
||||
</div>
|
||||
<!--{if $article['preaid'] || $article['nextaid']}-->
|
||||
<div class="pren pbm cl">
|
||||
<!--{if $article['prearticle']}--><em>{lang pre_article}<a href="{$article['prearticle']['url']}">{$article['prearticle']['title']}</a></em><!--{/if}-->
|
||||
<!--{if $article['nextarticle']}--><em>{lang next_article}<a href="{$article['nextarticle']['url']}">{$article['nextarticle']['title']}</a></em><!--{/if}-->
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
</div>
|
||||
|
||||
<!--[diy=diycontentrelatetop]--><div id="diycontentrelatetop" class="area"></div><!--[/diy]-->
|
||||
|
||||
<!--{ad/article/mbm hm/2}--><!--{ad/article/mbm hm/3}-->
|
||||
|
||||
<!--{if $article['related']}-->
|
||||
<div id="related_article" class="bm">
|
||||
<div class="bm_h cl">
|
||||
<h3>{lang view_related}</h3>
|
||||
</div>
|
||||
<div class="bm_c">
|
||||
<ul class="xl xl2 cl" id="raid_div">
|
||||
<!--{loop $article['related'] $raid $rvalue}-->
|
||||
<input type="hidden" value="$raid" />
|
||||
<li>• <a href="{$rvalue[uri]}">{$rvalue[title]}</a></li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
|
||||
<!--[diy=diycontentrelate]--><div id="diycontentrelate" class="area"></div><!--[/diy]-->
|
||||
|
||||
<!--{if $article['allowcomment']==1}-->
|
||||
<!--{eval $data = &$article}-->
|
||||
<!--{subtemplate portal/portal_comment}-->
|
||||
<!--{/if}-->
|
||||
|
||||
<!--[diy=diycontentcomment]--><div id="diycontentcomment" class="area"></div><!--[/diy]-->
|
||||
|
||||
|
||||
</div>
|
||||
<div class="sd pph">
|
||||
|
||||
<!--{hook/view_article_side_top}-->
|
||||
|
||||
<div class="drag">
|
||||
<!--[diy=diyrighttop]--><div id="diyrighttop" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
|
||||
<!--{if $cat[others]}-->
|
||||
<div class="bm">
|
||||
<div class="bm_h cl">
|
||||
<h2>{lang category_related}</h2>
|
||||
</div>
|
||||
<div class="bm_c">
|
||||
<ul class="xl xl2 cl">
|
||||
<!--{loop $cat[others] $value}-->
|
||||
<li><a href="{echo getportalcategoryurl($value[catid])}">$value[catname]</a></li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
|
||||
<!--{if $cat[subs]}-->
|
||||
<div class="bm">
|
||||
<div class="bm_h cl">
|
||||
<h2>{lang sub_category}</h2>
|
||||
</div>
|
||||
<div class="bm_c">
|
||||
<ul class="xl xl2 cl">
|
||||
<!--{loop $cat[subs] $value}-->
|
||||
<li><a href="{echo getportalcategoryurl($value[catid])}">$value[catname]</a></li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
|
||||
<div class="drag">
|
||||
<!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
|
||||
<!--{hook/view_article_side_bottom}-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--{if $_G['relatedlinks']}-->
|
||||
<script type="text/javascript">
|
||||
var relatedlink = [];
|
||||
<!--{loop $_G['relatedlinks'] $key $link}-->
|
||||
relatedlink.push({'sname':'$link[name]', 'surl':'$link[url]'});
|
||||
<!--{/loop}-->
|
||||
relatedlinks('article_content');
|
||||
</script>
|
||||
<!--{/if}-->
|
||||
|
||||
<div class="wp mtn">
|
||||
<!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
<input type="hidden" id="portalview" value="1">
|
||||
|
||||
<!--{template common/footer}-->
|
Reference in New Issue
Block a user