/data/template/1_1_forum_post.tpl.php
PHP | 1297 lines | 1194 code | 103 blank | 0 comment | 656 complexity | da3a287d3af7b408cc7d99374f073a3d MD5 | raw file
Large files files are truncated, but you can click here to view the full file
- <?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('post');
- 0
- || checktplrefresh('./template/default/forum/post.htm', './template/default/forum/post_editor_extra.htm', 1359612799, '1', './data/template/1_1_forum_post.tpl.php', './template/default', 'forum/post')
- || checktplrefresh('./template/default/forum/post.htm', './template/default/forum/post_editor_body.htm', 1359612799, '1', './data/template/1_1_forum_post.tpl.php', './template/default', 'forum/post')
- || checktplrefresh('./template/default/forum/post.htm', './template/default/forum/post_editor_attribute.htm', 1359612799, '1', './data/template/1_1_forum_post.tpl.php', './template/default', 'forum/post')
- || checktplrefresh('./template/default/forum/post.htm', './template/default/common/seccheck.htm', 1359612799, '1', './data/template/1_1_forum_post.tpl.php', './template/default', 'forum/post')
- || checktplrefresh('./template/default/forum/post.htm', './template/default/forum/post_editor_option.htm', 1359612799, '1', './data/template/1_1_forum_post.tpl.php', './template/default', 'forum/post')
- || checktplrefresh('./template/default/forum/post.htm', './template/default/common/editor_menu.htm', 1359612799, '1', './data/template/1_1_forum_post.tpl.php', './template/default', 'forum/post')
- || checktplrefresh('./template/default/forum/post.htm', './template/default/forum/editor_menu_forum.htm', 1359612799, '1', './data/template/1_1_forum_post.tpl.php', './template/default', 'forum/post')
- || checktplrefresh('./template/default/forum/post.htm', './template/default/common/editor.htm', 1359612799, '1', './data/template/1_1_forum_post.tpl.php', './template/default', 'forum/post')
- || checktplrefresh('./template/default/forum/post.htm', './template/default/forum/post_attachlimit.htm', 1359612799, '1', './data/template/1_1_forum_post.tpl.php', './template/default', 'forum/post')
- || checktplrefresh('./template/default/forum/post.htm', './template/default/forum/post_attachlimit.htm', 1359612799, '1', './data/template/1_1_forum_post.tpl.php', './template/default', 'forum/post')
- || checktplrefresh('./template/default/forum/post.htm', './template/default/forum/post_attachlimit.htm', 1359612799, '1', './data/template/1_1_forum_post.tpl.php', './template/default', 'forum/post')
- || checktplrefresh('./template/default/forum/post.htm', './template/default/forum/post_attachlimit.htm', 1359612799, '1', './data/template/1_1_forum_post.tpl.php', './template/default', 'forum/post')
- ;?><?php include template('common/header'); ?><script type="text/javascript">
- var allowpostattach = parseInt('<?php echo $_G['group']['allowpostattach'];?>');
- var allowpostimg = parseInt('<?php echo $allowpostimg;?>');
- var pid = parseInt('<?php echo $pid;?>');
- var tid = parseInt('<?php echo $_G['tid'];?>');
- var extensions = '<?php echo $_G['group']['attachextensions'];?>';
- var imgexts = '<?php echo $imgexts;?>';
- var postminchars = parseInt('<?php echo $_G['setting']['minpostsize'];?>');
- var postmaxchars = parseInt('<?php echo $_G['setting']['maxpostsize'];?>');
- var disablepostctrl = parseInt('<?php echo $_G['group']['disablepostctrl'];?>');
- var seccodecheck = parseInt('<?php if(checkperm('seccode') && $seccodecheck) { ?>1<?php } else { ?>0<?php } ?>');
- var secqaacheck = parseInt('<?php if(checkperm('seccode') && $secqaacheck) { ?>1<?php } else { ?>0<?php } ?>');
- var typerequired = parseInt('<?php echo $_G['forum']['threadtypes']['required'];?>');
- var sortrequired = parseInt('<?php echo $_G['forum']['threadsorts']['required'];?>');
- var special = parseInt('<?php echo $special;?>');
- var isfirstpost = <?php if($isfirstpost) { ?>1<?php } else { ?>0<?php } ?>;
- var allowposttrade = parseInt('<?php echo $_G['group']['allowposttrade'];?>');
- var allowpostreward = parseInt('<?php echo $_G['group']['allowpostreward'];?>');
- var allowpostactivity = parseInt('<?php echo $_G['group']['allowpostactivity'];?>');
- var sortid = parseInt('<?php echo $sortid;?>');
- var special = parseInt('<?php echo $special;?>');
- var fid = <?php echo $_G['fid'];?>;
- var postaction = '<?php echo $_GET['action'];?>';
- var ispicstyleforum = <?php if($_G['forum']['picstyle']) { ?>1<?php } else { ?>0<?php } ?>;
- </script>
-
- <?php if($_GET['action'] == 'edit') { ?><?php $editor[value] = $postinfo[message];?><?php } else { ?><?php $editor[value] = $message;?><?php } ?>
- <script src="<?php echo $_G['setting']['jspath'];?>forum_post.js?<?php echo VERHASH;?>" type="text/javascript"></script>
-
- <?php if($isfirstpost && $sortid) { ?>
- <script type="text/javascript">
- var forum_optionlist = <?php if($forum_optionlist) { ?>'<?php echo $forum_optionlist;?>'<?php } else { ?>''<?php } ?>;
- </script>
- <script src="<?php echo $_G['setting']['jspath'];?>threadsort.js?<?php echo VERHASH;?>" type="text/javascript"></script>
- <?php } ?><?php
- $actiontitle = <<<EOF
-
- EOF;
- if($_GET['action'] == 'newthread') { if($special == 0) {
- $actiontitle .= <<<EOF
- 发表帖子
- EOF;
- } elseif($special == 1) {
- $actiontitle .= <<<EOF
- 发起投票
- EOF;
- } elseif($special == 2) {
- $actiontitle .= <<<EOF
- 出售商品
- EOF;
- } elseif($special == 3) {
- $actiontitle .= <<<EOF
- 发布悬赏
- EOF;
- } elseif($special == 4) {
- $actiontitle .= <<<EOF
- 发起活动
- EOF;
- } elseif($special == 5) {
- $actiontitle .= <<<EOF
- 发起辩论
- EOF;
- } elseif($specialextra) {
- $actiontitle .= <<<EOF
- {$_G['setting']['threadplugins'][$specialextra]['name']}
- EOF;
- } } elseif($_GET['action'] == 'reply' && !empty($_GET['addtrade'])) {
- $actiontitle .= <<<EOF
-
- 添加商品
- EOF;
- } elseif($_GET['action'] == 'reply') {
- $actiontitle .= <<<EOF
-
- 参与/回复主题
- EOF;
- } elseif($_GET['action'] == 'edit') { if($special == 2) {
- $actiontitle .= <<<EOF
- 编辑商品
- EOF;
- } else {
- $actiontitle .= <<<EOF
- 编辑帖子
- EOF;
- } }
- $actiontitle .= <<<EOF
-
- EOF;
- ?><?php
- $icon = <<<EOF
-
- EOF;
- if($special == 1) {
- $icon .= <<<EOF
- poll
- EOF;
- } elseif($special == 2) {
- $icon .= <<<EOF
- trade
- EOF;
- } elseif($special == 3) {
- $icon .= <<<EOF
- reward
- EOF;
- } elseif($special == 4) {
- $icon .= <<<EOF
- activity
- EOF;
- } elseif($special == 5) {
- $icon .= <<<EOF
- debate
- EOF;
- } elseif($isfirstpost && $sortid) {
- $icon .= <<<EOF
- sort
- EOF;
- }
- $icon .= <<<EOF
-
- EOF;
- ?>
-
- <?php if($_GET['action'] != 'newthread') { ?><?php $subjectcut = cutstr($thread[subject], 30);?><?php } ?><?php
- $actionsubject = <<<EOF
-
- EOF;
- if($_GET['action'] == 'reply') {
- $actionsubject .= <<<EOF
-
- <em>›</em><a href="forum.php?mod=viewthread&tid={$thread['tid']}">{$subjectcut}</a>
- EOF;
- } elseif($_GET['action'] == 'edit') {
- $actionsubject .= <<<EOF
-
- <em>›</em><a href="forum.php?mod=redirect&goto=findpost&ptid={$thread['tid']}&pid={$pid}">{$subjectcut}</a>
- EOF;
- }
- $actionsubject .= <<<EOF
-
- EOF;
- ?>
-
- <div id="pt" class="bm cl">
- <div class="z"><a href="./" class="nvhm" title="首页"><?php echo $_G['setting']['bbname'];?></a> <?php echo $navigation;?><?php echo $actionsubject;?> <em>›</em> <?php echo $actiontitle;?></div>
- </div><?php $adveditor = $isfirstpost && $special || $special == 2 && ($_GET['action'] == 'newthread' || $_GET['action'] == 'reply' && !empty($_GET['addtrade']) || $_GET['action'] == 'edit' && $thread['special'] == 2);?><?php $advmore = !$showthreadsorts && !$special || $_GET['action'] == 'reply' && empty($_GET['addtrade']) || $_GET['action'] == 'edit' && !$isfirstpost && ($thread['special'] == 2 && !$special || $thread['special'] != 2);?><form method="post" autocomplete="off" id="postform"
- <?php if($_GET['action'] == 'newthread') { ?>action="forum.php?mod=post&action=<?php if($special != 2) { ?>newthread<?php } else { ?>newtrade<?php } ?>&fid=<?php echo $_G['fid'];?>&extra=<?php echo $extra;?>&topicsubmit=yes"
- <?php } elseif($_GET['action'] == 'reply') { ?>action="forum.php?mod=post&action=reply&fid=<?php echo $_G['fid'];?>&tid=<?php echo $_G['tid'];?>&extra=<?php echo $extra;?>&replysubmit=yes"
- <?php } elseif($_GET['action'] == 'edit') { ?>action="forum.php?mod=post&action=edit&extra=<?php echo $extra;?>&editsubmit=yes" <?php echo $enctype;?>
- <?php } ?>
- onsubmit="return validate(this)">
- <div id="ct" class="ct2_a ct2_a_r wp cl">
- <div class="mn">
- <input type="hidden" name="formhash" id="formhash" value="<?php echo FORMHASH;?>" />
- <input type="hidden" name="posttime" id="posttime" value="<?php echo TIMESTAMP;?>" />
- <?php if($_GET['action'] == 'edit') { ?>
- <input type="hidden" name="delattachop" id="delattachop" value="0" />
- <?php } if(!empty($_GET['modthreadkey'])) { ?><input type="hidden" name="modthreadkey" id="modthreadkey" value="<?php echo $_GET['modthreadkey'];?>" /><?php } ?>
- <input type="hidden" name="wysiwyg" id="<?php echo $editorid;?>_mode" value="<?php echo $editormode;?>" />
- <?php if($_GET['action'] == 'reply') { ?>
- <input type="hidden" name="noticeauthor" value="<?php echo $noticeauthor;?>" />
- <input type="hidden" name="noticetrimstr" value="<?php echo $noticetrimstr;?>" />
- <input type="hidden" name="noticeauthormsg" value="<?php echo $noticeauthormsg;?>" />
- <?php if($reppid) { ?>
- <input type="hidden" name="reppid" value="<?php echo $reppid;?>" />
- <?php } if($_GET['reppost']) { ?>
- <input type="hidden" name="reppost" value="<?php echo $_GET['reppost'];?>" />
- <?php } elseif($_GET['repquote']) { ?>
- <input type="hidden" name="reppost" value="<?php echo $_GET['repquote'];?>" />
- <?php } } if($_GET['action'] == 'edit') { ?>
- <input type="hidden" name="fid" id="fid" value="<?php echo $_G['fid'];?>" />
- <input type="hidden" name="tid" value="<?php echo $_G['tid'];?>" />
- <input type="hidden" name="pid" value="<?php echo $pid;?>" />
- <input type="hidden" name="page" value="<?php echo $_GET['page'];?>" />
- <?php } if($special) { ?>
- <input type="hidden" name="special" value="<?php echo $special;?>" />
- <?php } if($specialextra) { ?>
- <input type="hidden" name="specialextra" value="<?php echo $specialextra;?>" />
- <?php } ?>
- <div class="bm bw0 cl"<?php if(!$showthreadsorts && !$adveditor) { ?> id="editorbox"<?php } ?>>
- <?php if($_GET['action'] == 'newthread') { ?>
- <ul class="tb cl mbw">
- <?php if($savecount) { ?>
- <li class="y"><a id="draftlist" href="javascript:;" class="xi2" onmouseover="showMenu({'ctrlid':'draftlist','ctrlclass':'a','duration':2,'pos':'34'})">草稿箱(<strong><?php echo $savecount;?></strong>)</a></li>
- <?php } if(!$_G['forum']['threadsorts']['required'] && !$_G['forum']['allowspecialonly']) { ?><li<?php echo $postspecialcheck['0'];?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread')">发表帖子</a></li><?php } if(is_array($_G['forum']['threadsorts']['types'])) foreach($_G['forum']['threadsorts']['types'] as $tsortid => $name) { ?><li<?php if($sortid == $tsortid) { ?> class="a"<?php } ?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&sortid=<?php echo $tsortid;?>')"><?php echo strip_tags($name);; ?></a></li>
- <?php } if($_G['group']['allowpostpoll']) { ?><li<?php echo $postspecialcheck['1'];?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&special=1')">发起投票</a></li><?php } if($_G['group']['allowpostreward']) { ?><li<?php echo $postspecialcheck['3'];?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&special=3')">发布悬赏</a></li><?php } if($_G['group']['allowpostdebate']) { ?><li<?php echo $postspecialcheck['5'];?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&special=5')">发起辩论</a></li><?php } if($_G['group']['allowpostactivity']) { ?><li<?php echo $postspecialcheck['4'];?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&special=4')">发起活动</a></li><?php } if($_G['group']['allowposttrade']) { ?><li<?php echo $postspecialcheck['2'];?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&special=2')">出售商品</a></li><?php } if($_G['setting']['threadplugins']) { if(is_array($_G['forum']['threadplugin'])) foreach($_G['forum']['threadplugin'] as $tpid) { if(array_key_exists($tpid, $_G['setting']['threadplugins']) && @in_array($tpid, $_G['group']['allowthreadplugin'])) { ?>
- <li<?php if($specialextra==$tpid) { ?> class="a"<?php } ?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&specialextra=<?php echo $tpid;?>')"><?php echo $_G['setting']['threadplugins'][$tpid]['name'];?></a></li>
- <?php } } } ?>
- </ul>
-
- <div id="draftlist_menu" style="display:none">
- <ul class="xl xl1">
- <?php if($savethreads) { if(is_array($savethreads)) foreach($savethreads as $savethread) { ?><li>
- <label>[<a href="javascript:;" title="引用" onclick="insertsave(<?php echo $savethread['pid'];?>)">引用</a>]</label>
- <a href="forum.php?mod=post&action=edit&fid=<?php echo $savethread['fid'];?>&tid=<?php echo $savethread['tid'];?>&pid=<?php echo $savethread['pid'];?>" class="xi2" target="_blank"><?php echo $savethread['subject'];?></a>
- <span class="xg1"><?php echo $savethread['dateline'];?></span>
- </li>
- <?php } } if($savethreadothers) { if(is_array($savethreadothers)) foreach($savethreadothers as $savethread) { ?><li>
- <label>[<a href="javascript:;" title="引用" onclick="insertsave(<?php echo $savethread['pid'];?>)">引用</a>]</label>
- <a href="forum.php?mod=post&action=edit&fid=<?php echo $savethread['fid'];?>&tid=<?php echo $savethread['tid'];?>&pid=<?php echo $savethread['pid'];?>" class="xi2" target="_blank"><?php echo $savethread['subject'];?></a>
- <span class="xg1"><?php echo $savethread['dateline'];?></span>
- </li>
- <?php } } ?>
- <li class="xi2"><a href="forum.php?mod=guide&view=my&type=thread&filter=save&fid=0" target="_blank">查看所有草稿</a></li>
- </ul>
- </div>
-
- <?php } elseif($_GET['action'] == 'edit' && $isfirstpost && !$thread['sortid']) { ?>
- <ul class="tb cl mbw">
- <li<?php if(!$sortid) { ?> class="a"<?php } ?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=edit&tid=<?php echo $_G['tid'];?>&pid=<?php echo $pid;?>')"><?php echo $actiontitle;?></a></li>
- <?php if($_GET['action'] == 'edit' && $isfirstpost && !$thread['sortid']) { if(is_array($_G['forum']['threadsorts']['types'])) foreach($_G['forum']['threadsorts']['types'] as $tsortid => $name) { ?><li<?php if($sortid == $tsortid) { ?> class="a"<?php } ?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=edit&tid=<?php echo $_G['tid'];?>&pid=<?php echo $pid;?>&sortid=<?php echo $tsortid;?>')"><?php echo strip_tags($name);; ?></a></li>
- <?php } } ?>
- </ul>
- <?php } ?>
-
- <div id="postbox">
- <?php if($_GET['action'] == 'newthread' && $_G['setting']['sitemessage']['newthread'] || $_GET['action'] == 'reply' && $_G['setting']['sitemessage']['reply']) { ?>
- <span id="custominfo" class="y cur1<?php if($_GET['action'] != 'reply') { ?> mtn<?php } ?>"> <img src="<?php echo IMGDIR;?>/info_small.gif" alt="帮助" /></span>
- <?php } ?>
- <?php if(!empty($_G['setting']['pluginhooks']['post_top'])) echo $_G['setting']['pluginhooks']['post_top'];?><div class="pbt cl">
- <?php if($sortid) { ?>
- <input type="hidden" name="sortid" value="<?php echo $sortid;?>" />
- <?php } if($isfirstpost && !empty($_G['forum']['threadtypes']['types'])) { ?>
- <div class="ftid">
- <?php if($_G['forum']['ismoderator'] || empty($_G['forum']['threadtypes']['moderators'][$thread['typeid']])) { ?>
- <select name="typeid" id="typeid" width="80">
- <option value="0">选择主题分类</option><?php if(is_array($_G['forum']['threadtypes']['types'])) foreach($_G['forum']['threadtypes']['types'] as $typeid => $name) { if(empty($_G['forum']['threadtypes']['moderators'][$typeid]) || $_G['forum']['ismoderator']) { ?>
- <option value="<?php echo $typeid;?>"<?php if($thread['typeid'] == $typeid || $_GET['typeid'] == $typeid) { ?> selected="selected"<?php } ?>><?php echo strip_tags($name);; ?></option>
- <?php } } ?>
- </select>
- <?php } else { ?>
- [<?php echo strip_tags($_G['forum']['threadtypes']['types'][$thread['typeid']]);; ?>]
- <?php } ?>
- </div>
- <?php } ?>
- <div class="z">
- <?php if($_GET['action'] == 'reply' && !empty($_GET['addtrade']) || $_GET['action'] == 'edit' && $thread['special'] == 2 && !$postinfo['first']) { ?>
- <input name="subject" type="hidden" value="" />
- <?php } else { if($_GET['action'] != 'reply') { ?>
- <span><input type="text" name="subject" id="subject" class="px" value="<?php echo $postinfo['subject'];?>" <?php if($_GET['action'] == 'newthread') { ?>onblur="if($('tags')){relatekw('-1','-1'<?php if($_G['group']['allowposttag']) { ?>,function(){extraCheck(4)}<?php } ?>);doane();}"<?php } ?> onkeyup="strLenCalc(this, 'checklen', 80);" style="width: 25em" tabindex="1" /></span>
- <?php } else { ?>
- <span id="subjecthide" class="z">RE: <?php echo $thread['subject'];?> [<a href="javascript:;" onclick="display('subjecthide');display('subjectbox');$('subject').value='RE: <?php echo dhtmlspecialchars(str_replace('\'', '\\\'', $thread['subject'])); ?>';display('subjectchk');strLenCalc($('subject'), 'checklen', 80);return false;">修改</a>]</span>
- <span id="subjectbox" style="display:none"><input type="text" name="subject" id="subject" class="px" value="" onkeyup="strLenCalc(this, 'checklen', 80);" style="width: 25em" /></span>
- <?php } ?>
- <span id="subjectchk"<?php if($_GET['action'] == 'reply') { ?> style="display:none"<?php } ?>>还可输入 <strong id="checklen">80</strong> 个字符</span>
- <?php } if($_GET['action'] == 'newthread' && $modnewthreads) { ?> <span class="xg1 xw0">(需审核)</span><?php } if($_GET['action'] == 'reply' && $modnewreplies) { ?> <span class="xg1 xw0">(需审核)</span><?php } if($_GET['action'] == 'edit' && $isfirstpost && $thread['displayorder'] == -4) { ?> <span class="xg1 xw0">(草稿)</span><?php } ?>
- </div>
- </div>
- <?php if(!$isfirstpost && $thread['special'] == 5 && empty($firststand) && $_GET['action'] != 'edit') { ?>
- <div class="pbt cl">
- <div class="ftid">
- <select name="stand" id="stand">
- <option value="">选择观点</option>
- <option value="0">中立</option>
- <option value="1"<?php if($stand == 1) { ?> selected="selected"<?php } ?>>正方</option>
- <option value="2"<?php if($stand == 2) { ?> selected="selected"<?php } ?>>反方</option>
- </select>
- </div>
- </div>
- <?php } ?>
-
- <div id="attachnotice_attach" class="tbms mbm xl" style="display:none">
- 您有 <span id="unusednum_attach"></span> 个未使用的附件 <a href="javascript:;" class="xi2" onclick="attachoption('attach', 2);" />查看</a><span class="pipe">|</span><a href="javascript:;" class="xi2" onclick="attachoption('attach', 1)">使用</a><span class="pipe">|</span><a href="javascript:;" class="xi2" onclick="attachoption('attach', 0)">删除</a>
- <div id="unusedlist_attach" style="display:none"></div>
- </div>
- <div id="attachnotice_img" class="tbms mbm xl" style="display:none">
- 您有 <span id="unusednum_img"></span> 个未使用的图片 <a href="javascript:;" class="xi2" onclick="attachoption('img', 2);" />查看</a><span class="pipe">|</span><a href="javascript:;" class="xi2" onclick="attachoption('img', 1)">使用</a><span class="pipe">|</span><a href="javascript:;" class="xi2" onclick="attachoption('img', 0)">删除</a>
- <div id="unusedlist_img" style="display:none"></div>
- </div>
-
- <?php if($showthreadsorts) { ?>
- <div class="exfm cl"><?php include template('forum/post_sortoption'); ?></div>
- <?php } elseif($adveditor) { if($special == 1) { include template('forum/post_poll'); } elseif($special == 2 && ($_GET['action'] != 'edit' || ($_GET['action'] == 'edit' && ($thread['authorid'] == $_G['uid'] && $_G['group']['allowposttrade'] || $_G['group']['allowedittrade'])))) { ?><p class="xg1">添加商品信息,完成后可在本帖中继续添加多个商品</p><?php include template('forum/post_trade'); } elseif($special == 3) { include template('forum/post_reward'); } elseif($special == 4) { include template('forum/post_activity'); } elseif($special == 5) { include template('forum/post_debate'); } elseif($specialextra) { ?><div class="specialpost s_clear"><?php echo $threadplughtml;?></div>
- <?php } } if($_GET['action'] == 'reply' && $quotemessage) { ?>
- <div class="pbt cl"><?php echo $quotemessage;?></div>
- <?php } ?><div id="<?php echo $editorid;?>_body_loading"><img src="<?php echo IMGDIR;?>/loading.gif" width="16" height="16" class="vm" /> 请稍后 ...</div>
- <div class="edt" id="<?php echo $editorid;?>_body" style="display: none">
- <div id="<?php echo $editorid;?>_controls" class="bar">
- <div class="y">
- <div class="b2r nbl nbr" id="<?php echo $editorid;?>_adv_5">
- <p>
- <a id="<?php echo $editorid;?>_undo" title="撤销">Undo</a>
- </p>
- <p>
- <a id="<?php echo $editorid;?>_redo" title="重做">Redo</a>
- </p>
- </div>
- <div class="z">
- <span class="mbn"><a id="<?php echo $editorid;?>_fullswitcher"></a><a id="<?php echo $editorid;?>_simple"></a></span>
- <label id="<?php echo $editorid;?>_switcher" class="bar_swch ptn"><input id="<?php echo $editorid;?>_switchercheck" type="checkbox" class="pc" name="checkbox" value="0" <?php if(!$editor['editormode']) { ?>checked="checked"<?php } ?> onclick="switchEditor(this.checked?0:1)" />纯文本</label>
- </div>
- </div>
- <?php if(!empty($_G['setting']['pluginhooks']['post_editorctrl_right'])) { ?>
- <div class="y"><?php if(!empty($_G['setting']['pluginhooks']['post_editorctrl_right'])) echo $_G['setting']['pluginhooks']['post_editorctrl_right'];?></div>
- <?php } ?>
- <div id="<?php echo $editorid;?>_button" class="btn cl">
- <div class="b2r nbr nbl" id="<?php echo $editorid;?>_adv_s2">
- <a id="<?php echo $editorid;?>_fontname" class="dp" title="设置字体" menupos="43!"><span id="<?php echo $editorid;?>_font">字体</span></a>
- <a id="<?php echo $editorid;?>_fontsize" class="dp" title="设置文字大小" menupos="43!" menuwidth="25"><span id="<?php echo $editorid;?>_size">大小</span></a>
- <span id="<?php echo $editorid;?>_adv_1">
- <a id="<?php echo $editorid;?>_inserthorizontalrule" title="分隔线">Hr</a>
- <br />
- </span>
- <a id="<?php echo $editorid;?>_bold" title="文字加粗">B</a>
- <a id="<?php echo $editorid;?>_italic" title="文字斜体">I</a>
- <a id="<?php echo $editorid;?>_underline" title="文字加下划线">U</a>
- <a id="<?php echo $editorid;?>_forecolor" title="设置文字颜色">Color</a>
- <a id="<?php echo $editorid;?>_backcolor" title="设置文字背景色">BgColor</a>
- <a id="<?php echo $editorid;?>_url" title="添加链接">Url</a>
- <span id="<?php echo $editorid;?>_adv_8">
- <a id="<?php echo $editorid;?>_unlink" title="移除链接">Unlink</a>
- </span>
- </div>
- <div class="b2r nbl" id="<?php echo $editorid;?>_adv_2">
- <p id="<?php echo $editorid;?>_adv_3">
- <a id="<?php echo $editorid;?>_tbl" title="添加表格">Table</a>
- </p>
- <p>
- <a id="<?php echo $editorid;?>_removeformat" title="清除文本格式">Removeformat</a>
- </p>
- </div>
- <div class="b2r">
- <p>
- <a id="<?php echo $editorid;?>_autotypeset" title="自动排版">Autotypeset</a>
- <a id="<?php echo $editorid;?>_justifyleft" title="居左">Left</a>
- <a id="<?php echo $editorid;?>_justifycenter" title="居中">Center</a>
- <a id="<?php echo $editorid;?>_justifyright" title="居右">Right</a>
- </p>
- <p id="<?php echo $editorid;?>_adv_4">
- <a id="<?php echo $editorid;?>_floatleft" title="左浮动">FloatLeft</a>
- <a id="<?php echo $editorid;?>_floatright" title="右浮动">FloatRight</a>
- <a id="<?php echo $editorid;?>_insertorderedlist" title="排序的列表">Orderedlist</a>
- <a id="<?php echo $editorid;?>_insertunorderedlist" title="未排序列表">Unorderedlist</a>
- </p>
- </div>
- <div class="b1r" id="<?php echo $editorid;?>_adv_s1">
- <a id="<?php echo $editorid;?>_sml" title="添加表情">表情</a>
- <div id="<?php echo $editorid;?>_imagen" style="display:none">!</div>
- <a id="<?php echo $editorid;?>_image" title="添加图片" menupos="00" menuwidth="600">图片</a>
- <?php if($_G['group']['allowpostattach']) { ?>
- <div id="<?php echo $editorid;?>_attachn" style="display:none">!</div>
- <a id="<?php echo $editorid;?>_attach" title="添加附件" menupos="00" menuwidth="600">附件</a>
- <?php } if($_G['forum']['allowmediacode'] && $_G['group']['allowmediacode']) { ?>
- <a id="<?php echo $editorid;?>_aud" title="添加音乐">音乐</a>
- <a id="<?php echo $editorid;?>_vid" title="添加视频">视频</a>
- <a id="<?php echo $editorid;?>_fls" title="添加 Flash">Flash</a>
- <?php } if(($_GET['action'] == 'newthread' || $_GET['action'] == 'reply' || $_GET['action'] == 'edit') && $_G['group']['allowat']) { ?>
- <a id="<?php echo $editorid;?>_at" title="@好友和关注的人" menupos="43" menuwidth="600">@朋友</a>
- <?php } ?>
- <?php if(!empty($_G['setting']['pluginhooks']['post_editorctrl_left'])) echo $_G['setting']['pluginhooks']['post_editorctrl_left'];?>
- </div>
- <div class="b2r" id="<?php echo $editorid;?>_adv_6">
- <p>
- <a id="<?php echo $editorid;?>_code" title="添加代码文字">代码</a>
- <?php if($isfirstpost) { ?><a id="<?php echo $editorid;?>_free" title="添加免费信息">Free</a><?php } ?>
- <a id="<?php echo $editorid;?>_pasteword" title="从 Word 粘贴内容">Word 粘贴</a>
- <?php if($_G['group']['allowdownremoteimg']) { if(!($_G['setting']['magicstatus'] && !empty($_G['setting']['magics']['doodle']))) { } ?><a id="<?php echo $editorid;?>_downremoteimg" title="下载远程图片">下载图片</a><?php } ?>
- </p>
- <p>
- <a id="<?php echo $editorid;?>_quote" title="添加引用文字">引用</a>
- <?php if($isfirstpost) { ?><a id="<?php echo $editorid;?>_hide" title="添加隐藏内容"<?php if(!$_G['group']['allowhidecode']) { ?> style="visibility:hidden;"<?php } ?>>Hide</a><?php } if($_G['setting']['magicstatus'] && !empty($_G['setting']['magics']['doodle'])) { ?>
- <a id="a_magic_doodle" href="home.php?mod=magic&mid=doodle&showid=comment_doodle&target=<?php echo $editorid;?>_textarea&from=forumeditor" class="cst" onclick="showWindow(this.id, this.href, 'get', 0)"><img src="<?php echo STATICURL;?>image/magic/doodle.small.gif" alt="doodle" title="<?php echo $_G['setting']['magics']['doodle'];?>" style="margin-top:2px" /></a>
- <?php } ?>
- </p>
- </div>
- <?php if($_G['cache']['bbcodes_display'][$_G['groupid']]) { ?>
- <div class="b2r cst nbb" id="<?php echo $editorid;?>_cst" style="display:none">
- <?php if(!empty($_G['setting']['pluginhooks']['post_editorctrl_top'])) echo $_G['setting']['pluginhooks']['post_editorctrl_top'];?><?php if(is_array($_G['cache']['bbcodes_display'][$_G['groupid']])) foreach($_G['cache']['bbcodes_display'][$_G['groupid']] as $tag => $bbcode) { ?><a id="<?php echo $editorid;?>_cst<?php echo $bbcode['params'];?>_<?php echo $tag;?>" class="cst" title="<?php echo $bbcode['explanation'];?>"><img src="<?php echo STATICURL;?>image/common/<?php echo $bbcode['icon'];?>" title="<?php echo $bbcode['explanation'];?>" alt="<?php echo $tag;?>" /></a>
- <?php } ?>
- <?php if(!empty($_G['setting']['pluginhooks']['post_editorctrl_bottom'])) echo $_G['setting']['pluginhooks']['post_editorctrl_bottom'];?>
- </div>
- <?php } ?>
- </div>
- </div>
-
- <div id="rstnotice" class="ntc_l bbs" style="display:none">
- <a href="javascript:;" title="清除内容" class="d y" onclick="userdataoption(0)">close</a>您有上次未提交成功的数据 <a class="xi2" href="javascript:;" onclick="userdataoption(1)"><strong>恢复数据</strong></a>
- </div>
-
- <div class="area">
- <textarea name="<?php echo $editor['textarea'];?>" id="<?php echo $editorid;?>_textarea" class="pt" rows="15" tabindex="2"><?php echo $editor['value'];?></textarea>
- </div><link rel="stylesheet" type="text/css" href="data/cache/style_<?php echo STYLEID;?>_editor.css?<?php echo VERHASH;?>" />
- <script src="<?php echo $_G['setting']['jspath'];?>editor.js?<?php echo VERHASH;?>" type="text/javascript"></script>
- <script src="<?php echo $_G['setting']['jspath'];?>bbcode.js?<?php echo VERHASH;?>" type="text/javascript"></script>
- <script type="text/javascript">
- var editorid = '<?php echo $editorid;?>';
- var textobj = $(editorid + '_textarea');
- var wysiwyg = (BROWSER.ie || BROWSER.firefox || (BROWSER.opera >= 9)) && parseInt('<?php echo $editor['editormode'];?>') == 1 ? 1 : 0;
- var allowswitcheditor = parseInt('<?php echo $editor['allowswitcheditor'];?>');
- var allowhtml = parseInt('<?php echo $editor['allowhtml'];?>');
- var allowsmilies = parseInt('<?php echo $editor['allowsmilies'];?>');
- var allowbbcode = parseInt('<?php echo $editor['allowbbcode'];?>');
- var allowimgcode = parseInt('<?php echo $editor['allowimgcode'];?>');
- var simplodemode = parseInt('<?php if($editor['simplemode'] > 0) { ?>1<?php } else { ?>0<?php } ?>');
- var fontoptions = new Array("宋体", "新宋体", "黑体", "微软雅黑", "Arial", "Verdana", "simsun", "Helvetica", "Trebuchet MS", "Tahoma", "Impact", "Times New Roman", "仿宋,仿宋_GB2312", "楷体,楷体_GB2312");
- var smcols = <?php echo $_G['setting']['smcols'];?>;
- var custombbcodes = new Array();
- <?php if($_G['cache']['bbcodes_display'][$_G['groupid']]) { if(is_array($_G['cache']['bbcodes_display'][$_G['groupid']])) foreach($_G['cache']['bbcodes_display'][$_G['groupid']] as $tag => $bbcode) { ?>custombbcodes["<?php echo $tag;?>"] = {'prompt' : '<?php echo $bbcode['prompt'];?>'};
- <?php } } ?>
- </script>
-
- <div id="<?php echo $editorid;?>_bbar" class="bbar">
- <em id="<?php echo $editorid;?>_tip"></em>
- <span id="<?php echo $editorid;?>_svdsecond"></span>
- <a href="javascript:;" onclick="discuzcode('svd');return false;" id="<?php echo $editorid;?>_svd">保存数据</a> |
- <a href="javascript:;" onclick="discuzcode('rst');return false;" id="<?php echo $editorid;?>_rst">恢复数据</a>
- <?php if($editor['allowchecklength']) { ?>
- <a href="javascript:;" onclick="discuzcode('chck');return false;" id="<?php echo $editorid;?>_chck">字数检查</a> |
- <?php } if($editor['allowtopicreset']) { ?>
- <a href="javascript:;" onclick="discuzcode('tpr');return false;" id="<?php echo $editorid;?>_tpr">清除内容</a>
- <?php } if($editor['allowresize']) { ?>
- <span id="<?php echo $editorid;?>_resize"><a href="javascript:;" onclick="editorsize('+');return false;">加大编辑框</a> | <a href="javascript:;" onclick="editorsize('-');return false;">缩小编辑框</a><img src="<?php echo STATICURL;?>image/editor/resize.gif" onmousedown="editorresize(event)" /></span>
- <?php } ?>
- </div></div>
- <?php if(!empty($_G['setting']['pluginhooks']['post_middle'])) echo $_G['setting']['pluginhooks']['post_middle'];?>
-
- <?php if($_GET['action'] == 'newthread' || $_GET['action'] == 'edit' && $isfirstpost) { ?><div id="post_extra" class="ptm cl">
- <div id="post_extra_tb" class="cl" onselectstart="return false">
- <?php if($_G['group']['allowreplycredit'] && !in_array($special, array(2, 3))) { if($_GET['action'] == 'newthread') { ?><?php $extcreditstype = $_G['setting']['creditstransextra'][10];?><?php } else { ?><?php $extcreditstype = $replycredit_rule['extcreditstype'] ? $replycredit_rule['extcreditstype'] : $_G['setting']['creditstransextra'][10];?><?php } ?><?php $userextcredit = getuserprofile('extcredits'.$extcreditstype);?><?php if(($_GET['action'] == 'newthread' && $userextcredit > 0) || ($_GET['action'] == 'edit' && $isorigauthor && isfirstpost)) { ?>
- <label id="extra_replycredit_b" onclick="showExtra('extra_replycredit')"><span id="extra_replycredit_chk">回帖奖励</span></label>
- <?php } } if($_G['group']['allowsetreadperm']) { ?>
- <label id="extra_readperm_b" onclick="showExtra('extra_readperm')"><span id="extra_readperm_chk">阅读权限</span></label>
- <?php } if($_G['group']['maxprice'] && !$special) { ?>
- <label id="extra_price_b" onclick="showExtra('extra_price')"><span id="extra_price_chk">售价</span></label>
- <?php } if(($_GET['action'] == 'newthread' && $_G['group']['allowpostrushreply'] && $special != 2) || ($_GET['action'] == 'edit' && getstatus($thread['status'], 3))) { ?>
- <label id="extra_rushreplyset_b" onclick="showExtra('extra_rushreplyset')"><span id="extra_rushreplyset_chk">抢楼</span></label>
- <?php } if($_G['group']['allowposttag']) { ?>
- <label id="extra_tag_b" onclick="showExtra('extra_tag')"><span id="extra_tag_chk">设置主题标签</span></label>
- <?php } if($_G['group']['allowsetpublishdate'] && ($_GET['action'] == 'newthread' || ($_GET['action'] == 'edit' && $isfirstpost && $thread['displayorder'] == -4))) { ?>
- <label id="extra_pubdate_b" onclick="showExtra('extra_pubdate')"><span id="extra_pubdate_chk">定时发布</span></label>
- <?php } ?>
- </div>
-
- <div id="post_extra_c">
- <?php if(!empty($userextcredit)) { ?>
- <div id="extra_replycredit_c" class="exfm cl" style="display: none;">
- <div><label>每次回帖奖励: <input type="text" name="replycredit_extcredits" id="replycredit_extcredits" class="px pxs vm" value="<?php if($replycredit_rule['extcredits'] && $thread['replycredit'] > 0) { ?><?php echo $replycredit_rule['extcredits'];?><?php } else { ?>0<?php } ?>" onkeyup="javascript:getreplycredit();" onblur="extraCheck(0)" /> <?php echo $_G['setting']['extcredits'][$extcreditstype]['unit'];?><?php echo $_G['setting']['extcredits'][$extcreditstype]['title'];?></label><span class="xg1">(留空或填 0 为不奖励)</span> , <label>奖励 <input type="text" name="replycredit_times" id="replycredit_times" class="px pxs vm" value="<?php if($replycredit_rule['lasttimes']) { ?><?php echo $replycredit_rule['lasttimes'];?><?php } else { ?>1<?php } ?>" onkeyup="javascript:getreplycredit();" onblur="extraCheck(0)" /> 次</label>, <label>每人最多可获得 <select id="replycredit_membertimes" name="replycredit_membertimes" class="ps vm"><?php for($i=1;$i<11;$i++) {;?><option value="<?php echo $i;?>"<?php if($replycredit_rule['membertimes'] == $i) { ?> selected="selected"<?php } ?>><?php echo $i;?></option><?php };?></select> 次</label>, <label>中奖率 <select id="replycredit_random" name="replycredit_random" class="ps vm">
- <?php for($i=100;$i>9;$i=$i-10) {;?><option value="<?php echo $i;?>"<?php if($replycredit_rule['random'] == $i) { ?> selected="selected"<?php } ?>><?php echo $i;?></option><?php };?></select> %</label></div>
- <div class="xg1">回帖奖励总额: <span id="replycredit_sum"><?php if($thread['replycredit']) { ?><?php echo $thread['replycredit'];?><?php } else { ?>0<?php } ?></span> <?php echo $_G['setting']['extcredits'][$extcreditstype]['unit'];?><?php echo $_G['setting']['extcredits'][$extcreditstype]['title'];?><?php if($thread['replycredit']) { ?><span class="xg1">(本帖尚有 <?php echo $thread['replycredit'];?> <?php echo $_G['setting']['extcredits'][$extcreditstype]['unit'];?><?php echo $_G['setting']['extcredits'][$extcreditstype]['title'];?>)</span><?php } ?>, <span id="replycredit">税后支付 <?php echo $_G['setting']['extcredits'][$extcreditstype]['title'];?> 0</span> <?php echo $_G['setting']['extcredits'][$extcreditstype]['unit'];?>, 您有 <?php echo $_G['setting']['extcredits'][$extcreditstype]['title'];?> <?php echo $userextcredit;?> <?php echo $_G['setting']['extcredits'][$extcreditstype]['unit'];?></div>
- </div>
- <?php } if($_G['group']['allowsetreadperm']) { ?>
- <div id="extra_readperm_c" class="exfm cl" style="display:none">
- <table cellspacing="0" cellpadding="0">
- <tr>
- <td class="xw1">阅读权限</td>
- <td>
- <select name="readperm" id="readperm" class="ps" style="width:90px" onchange="extraCheck(1)">
- <option value="">不限</option><?php if(is_array($_G['cache']['groupreadaccess'])) foreach($_G['cache']['groupreadaccess'] as $val) { ?><option value="<?php echo $val['readaccess'];?>" title="阅读权限: <?php echo $val['readaccess'];?>"<?php if($thread['readperm'] == $val['readaccess']) { ?> selected="selected"<?php } ?>><?php echo $val['grouptitle'];?></option>
- <?php } ?>
- <option value="255">最高权限</option>
- </select>
- <span class="xg1">阅读权限按由高到低排列,高于或等于选中组的用户才可以阅读</span>
- </td>
- </tr>
- </table>
- </div>
- <?php } if($_G['group']['maxprice'] && !$special) { ?>
- <div id="extra_price_c" class="exfm cl" style="display:none">
- 售价:
- <input type="text" id="price" name="price" class="px pxs" value="<?php echo $thread['pricedisplay'];?>" onblur="extraCheck(2)" /> <?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['unit'];?><?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['title'];?>
- <span class="xg1">(最高 <?php echo $_G['group']['maxprice'];?> <?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['unit'];?>)</span>
- <?php if($_G['group']['maxprice'] && ($_GET['action'] == 'newthread' || $_GET['action'] == 'edit' && $isfirstpost)) { if($_G['setting']['maxincperthread']) { ?><p class="xg1">主题出售最高收入上限为 <?php echo $_G['setting']['maxincperthread'];?> <?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['unit'];?> </p><?php } if($_G['setting']['maxchargespan']) { ?><p class="xg1">主题最多能销售 <?php echo $_G['setting']['maxchargespan'];?> 个小时<?php if($_GET['action'] == 'edit' && $freechargehours) { ?>,本主题还能销售 <?php echo $freechargehours;?> 个小时<?php } ?></p><?php } } ?>
- </div>
- <?php } if($_G['group']['allowposttag']) { ?>
- <div id="extra_tag_c" class="exfm cl" style="display: none;">
- <table cellspacing="0" cellpadding="0">
- <tr>
- <td class="xw1">标签 </td>
- <td>
- <input type="text" class="px vm" size="60" id="tags" name="tags" value="<?php echo $postinfo['tag'];?>" onblur="extraCheck(4)" />
- <a href="javascript:;" id="clickbutton[]" class="xi2" onclick="relatekw('-1','-1');doane();">自动获取</a><span class="pipe">|</span><a href="javascript:;" id="choosetag" class="xi2" onclick="showWindow(this.id, 'forum.php?mod=tag', 'get', 0)">选择标签</a>
- </td>
- </tr>
- <tr>
- <td></td>
- <td>
- <p class="xg1">用逗号或空格隔开多个标签,最多可填写 5 个</p><?php $recent_use_tag = recent_use_tag();?><?php if($recent_use_tag) { ?>
- <p class="mtn">最近使用标签: <?php $tagi = 0;?><?php if(is_array($recent_use_tag)) foreach($recent_use_tag as $var) { if($tagi) { ?>, <?php } ?><a href="javascript:;" class="xi2" onclick="$('tags').value == '' ? $('tags').value += '<?php echo $var;?>' : $('tags').value += ',<?php echo $var;?>';extraCheck(4);doane();"><?php echo $var;?></a><?php $tagi++;?><?php } ?>
- </p>
- <?php } ?>
- </td>
- </tr>
- </table>
- </div>
- <?php } if(($_GET['action'] == 'newthread' && $_G['group']['allowpostrushreply'] && $special != 2) || ($_GET['action'] == 'edit' && getstatus($thread['status'], 3))) { ?>
- <div class="exfm cl" id="extra_rushreplyset_c" style="display: none;">
- <div class="sinf sppoll z">
- <dl>
- <dt><span style="width: 4em"> </span></dt>
- <dd><label for="rushreply"><input type="checkbox" name="rushreply" id="rushreply" class="pc vm" value="1" <?php if($_GET['action'] == 'edit' && getstatus($thread['status'], 3)) { ?>disabled="disabled" checked="checked"<?php } ?> onclick="extraCheck(3)" /> 将该帖设为抢楼帖</label></dd>
- <dt><label>抢楼时间:</label></dt>
- <dd>
- <div>
- <input type="text" name="rushreplyfrom" id="rushreplyfrom" class="px" onclick="showcalendar(event, this, true)" autocomplete="off" value="<?php echo $postinfo['rush']['starttimefrom'];?>" onkeyup="$('rushreply').checked = true;" /><span> ~ </span><input type="text" onclick="showcalendar(event, this, true)" autocomplete="off" id="rushreplyto" name="rushreplyto" class="px" value="<?php echo $postinfo['rush']['starttimeto'];?>" onkeyup="$('rushreply').checked = true;" />
- </div>
- </dd>
- <dt><label>奖励楼层:</label></dt>
- <dd>
- <input type="text" name="rewardfloor" id="rewardfloor" class="px oinf" value="<?php echo $postinfo['rush']['rewardfloor'];?>" onkeyup="$('rushreply').checked = true;" />
- <p class="xg1">多楼层用逗号隔开,*号可匹配任意数或空值,如:8,88,*88</p>
- </dd>
- </dl>
- </div>
- <div class="sadd z">
- <dl>
- <dt> </dt>
- <dd> </dd>
- <dt><label for="stopfloor">截止楼层:</label></dt>
- <dd>
- <input type="text" name="stopfloor" id="stopfloor" class="px" autocomplete="off" value="<?php echo $postinfo['rush']['stopfloor'];?>" onkeyup="$('rushreply').checked = true;" />
- </dd>
- <dt><label for="creditlimit"><?php if($_G['setting']['creditstransextra']['11']) { ?><?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['11']]['title'];?><?php } else { ?>积分<?php } ?>下限:</label></dt>
- <dd>
- <input type="text" name="creditlimit" id="creditlimit" class="px" autocomplete="off" value="<?php echo $postinfo['rush']['creditlimit'];?>" onkeyup="$('rushreply').checked = true;" />
- <p class="xg1"><?php if($_G['setting']['creditstransextra']['11']) { ?>(<?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['11']]['title'];?>)<?php } else { ?>总积分<?php } ?>大于此设置才能参与抢楼,可不填</p>
- </dd>
- </dl>
- </div>
- </div>
- <?php } if($_G['group']['allowsetpublishdate'] && ($_GET['action'] == 'newthread' || ($_GET['action'] == 'edit' && $isfirstpost && $thread['displayorder'] == -4))) { ?>
- <div class="exfm cl" id="extra_pubdate_c" style="display: none;">
- <label><input type="checkbox" name="cronpublish" onclick="if(this.checked) {$('cronpublishdate').click();doane(event,false);};extraCheck(5);hidenFollowBtn(this.checked);" id="cronpublish" value="true" class="pc"<?php if($cronpublish) { ?> checked="checked"<?php } ?> />定时发布</label>
- <input type="text" name="cronpublishdate" id="cronpublishdate" class="px" onclick="showcalendar(event, this, true, false, false, true);" autocomplete="off" value="<?php echo $cronpublishdate;?>" onchange="if(this.value) $('cronpublish').checked = true;">
- </div>
- <?php } ?>
- </div>
- </div><?php } if($_GET['action'] != 'edit' && checkperm('seccode') && ($secqaacheck || $seccodecheck)) { ?><?php
- $sectpl = <<<EOF
- <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>
- EOF;
- ?>
- <div class="mtm"><?php $_G['sechashi'] = !empty($_G['cookie']['sechashi']) ? $_G['sechash'] + 1 : 0;
- $sechash = 'S'.($_G['inajax'] ? 'A' : '').$_G['sid'].$_G['sechashi'];
- $sectpl = !empty($sectpl) ? explode("<sec>", $sectpl) : array('<br />',': ','<br />','');
- $sectpldefault = $sectpl;
- $sectplqaa = str_replace('<hash>', 'qaa'.$sechash, $sectpldefault);
- $sectplcode = str_replace('<hash>', 'code'.$sechash, $sectpldefault);
- $secshow = !isset($secshow) ? 1 : $secshow;
- $sectabindex = !isset($sectabindex) ? 1 : $sectabindex;?><?php
- $__STATICURL = STATICURL;$seccheckhtml = <<<EOF
-
- <input name="sechash" type="hidden" value="{$sechash}" />
- EOF;
- if($sectpl) { if($secqaacheck) {
- $seccheckhtml .= <<<EOF
-
- {$sectplqaa['0']}验证问答{$sectplqaa['1']}<input name="secanswer" id="secqaaverify_{$sechash}" type="text" autocomplete="off" style="width:100px" class="txt px vm" onblur="checksec('qaa', '{$sechash}')" tabindex="{$sectabindex}" />
- <a href="javascript:;" onclick="updatesecqaa('{$sechash}');doane(event);" class="xi2">换一个</a>
- <span id="checksecqaaverify_{$sechash}"><img src="{$__STATICURL}image/common/none.gif" width="16" height="16" class="vm" /></span>
- {$sectplqaa['2']}<span id="secqaa_{$sechash}"></span>
- EOF;
- if($secshow) {
- $seccheckhtml .= <<<EOF
- <script type="text/javascript" reload="1">updatesecqaa('{$sechash}');</script>
- EOF;
- }
- $seccheckhtml .= <<<EOF
-
- {$sectplqaa['3']}
- EOF;
- } if($seccodecheck) {
- $seccheckhtml .= <<<EOF
-
- {$sectplcode['0']}验证码{$sectplcode['1']}<input name="seccodeverify" id="seccodeverify_{$sechash}" type="text" autocomplete="off" style="
- EOF;
- if($_G['setting']['seccodedata']['type'] != 1) {
- $seccheckhtml .= <<<EOF
- ime-mode:disabled;
- EOF;
- }
- $seccheckhtml .= <<<EOF
- width:100px" class="txt px vm" onblur="checksec('code', '{$sechash}')" tabindex="{$sectabindex}" />
- <a href="javascript:;" onclick="updateseccode('{$sechash}');doane(event);" class="xi2">换一个</a>
- <span id="checkseccodeverify_{$sechash}"><img src="{$__STATICURL}image/common/none.gif" width="16" height="16" class="vm" /></span>
- {$sectplcode['2']}<span id="seccode_{$sechash}"></span>
- EOF;
- if($secshow) {
- $seccheckhtml .= <<<EOF
- <script type="text/javascript" reload="1">updateseccode('{$sechash}');</script>
- EOF;
- }
- $seccheckhtml .= <<<EOF
-
- {$sectplcode['3']}
- EOF;
- } }
- $seccheckhtml .= <<<EOF
-
- EOF;
- ?><?php unset($secshow);?><?php if(empty($secreturn)) { ?><?php echo $seccheckhtml;?><?php } ?></div>
- <?php } ?>
-
- <div class="mtm mbm pnpost">
- <a href="home.php?mod=spacecp&ac=credit&op=rule&fid=<?php echo $_G['fid'];?>" class="y" target="_blank">本版积分规则</a>
- <button type="submit" id="postsubmit" class="pn pnc" value="true" name="<?php if($_GET['action'] == 'newthread') { ?>topicsubmit<?php } elseif($_GET['action'] == 'reply') { ?>replysubmit<?php } elseif($_GET['action'] == 'edit') { ?>editsubmit<?php } ?>">
- <?php if($_GET['action'] == 'newthread') { if($special == 0) { ?><span>发表帖子</span>
- <?php } elseif($special == 1) { ?><span>发起投票</span>
- <?php } elseif($special == 2) { ?><span>出售商品</span>
- <?php } elseif($special == 3) { ?><span>发布悬赏</span>
- <?php } elseif($special == 4) { ?><span>发起活动</span>
- <?php } elseif($special == 5) { ?><span>发起辩论</span>
- <?php } elseif($special == 127) { ?>
- <span><?php if($buttontext) { ?><?php echo $buttontext;?><?php } else { ?>发表帖子<?php } ?></span>
- <?php } } elseif($_GET['action'] == 'reply' && !empty($_GET['addtrade'])) { ?><span>添加商品</span>
- <?php } elseif($_GET['action'] == 'reply') { ?><span>参与/回复主题</span>
- <?php } elseif($_GET['action'] == 'edit' && $isfirstpost && $thread['displayorder'] == -4) { ?>
- <span>发表帖子</span>
- <?php } elseif($_GET['action'] == 'edit') { ?><span>保存</span>
- <?php } ?>
- </button>
- <?php if($_G['uid']) { ?>
- <input type="hidden" id="postsave" name="save" value="" />
- <?php if($_GET['action'] == 'newthread' && !$modnewthreads || $_GET['action'] == 'edit' && $isfirstpost && !$modnewreplies && $thread['displayorder'] == -4) { ?>
- <button type="button" id="postsubmit" class="pn" value="true" onclick="$('postsave').value = 1;$('postsubmit').click();"><em>保存草稿</em></button>
- <?php } } ?>
- <?php if(!empty($_G['setting']['pluginhooks']['post_btn_extra'])) echo $_G['setting']['pluginhooks']['post_btn_extra'];?>
- <?php if(helper_access::check_module('follow') && $_GET['action'] != 'edit') { ?>
- <span id="adddynamicspan"><label><input type="checkbox" name="adddynamic" id="adddynamic" value="true" class="pc" <?php if($_G['forum']['allowfeed'] && !$_G['tid'] && empty($_G['forum']['viewperm'])) { ?>checked="checked"<?php } ?> />转播给听众</label></span>
- <?php } if(!empty($_G['setting']['pluginhooks']['post_sync_method'])) { ?>
- <span>
- 将此主题同步到:
- <?php if(!empty($_G['setting']['pluginhooks']['post_sync_method'])) echo $_G['setting']['pluginhooks']['post_sync_method'];?>
- </span>
- <?php } if($special == 2) { ?>
- <label><input type="checkbox" name="continueadd" value="yes" class="pc" />继续添加商品</label>
- <?php } ?>
- </div>
-
- <?php if(!empty($_G['setting']['pluginhooks']['post_bottom'])) echo $_G['setting']['pluginhooks']['post_bottom'];?>
- </div>
- </div>
- </div><div id="psd" class="appl">
- <h3 class="mbm pbm bbs">附加选项</h3>
- <div class="bn">
- <?php if(!empty($_G['setting']['pluginhooks']['post_side_top'])) echo $_G['setting']['pluginhooks']['post_side_top'];?>
- <?php if(($_G['forum']['allowhtml'] || ($_GET['action'] == 'edit' && ($orig['htmlon'] & 1))) && $_G['group']['allowhtml']) { ?>
- <p class="mbn"><input type="checkbox" name="htmlon" id="htmlon" class="pc" value="1" <?php echo $htmloncheck;?> /><label for="htmlon">HTML 代码</label></p>
- <?php } else { ?>
- <p class="mbn"><input type="checkbox" name="htmlon" id="htmlon" class="pc" value="0" <?php echo $htmloncheck;?> disabled="disabled" /><label for="htmlon">HTML 代码</label></p>
- <?php } ?>
- <p class="mbn"><input type="checkbox" id="allowimgcode" class="pc" disabled="disabled"<?php if($_G['forum']['allowimgcode']) { ?> checked="checked"<?php } ?> /><label for="allowimgcode">[img] 代码</label></p>
- <?php if($_G['forum']['allowimgcode']) { ?>
- <p class="mbn"><input type="checkbox" id="allowimgurl" class="pc" checked="checked" /><label for="allowimgurl">解析图片链接</label></p>
- <?php } ?>
- <p class="mbn"><input type="checkbox" name="parseurloff" id="parseurloff" class="pc" value="1" <?php echo $urloffcheck;?> /><label for="parseurloff">禁用链接识别</label></p>
- <p class="mbn"><input type="checkbox" name="smileyoff" id="smileyoff" class="pc" value="1" <?php echo $smileyoffcheck;?> /><label for="smileyoff">禁用表情</label></p>
- <p class="mbn"><input type="checkbox" name="bbcodeoff" id="bbcodeoff" class="pc" value="1" <?php echo $codeoffcheck;?> /><label for="bbcodeoff">禁用编辑器代码</label></p>
-
- <hr class="bk" />
-
- <p class="mbn"><input type="checkbox" name="usesig" id="usesig" class="pc" value="1" <?php if(!$_G['group']['maxsigsize']) { ?>disabled <?php } else { ?><?php echo $usesigcheck;?> <?php } ?>/><label for="usesig">使用个人签名</label></p>
- <?php if($_GET['action'] != 'edit') { if($_G['group']['allowanonymous']) { ?><p class="mbn"><input type="checkbox" name="isanonymous" id="isanonymous" class="pc" value="1" /><label for="isanonymous">使用匿名发帖</label></p><?php } } else { if($_G['group']['allowanonymous'] || (!$_G['group']['allowanonymous'] && $orig['anonymous'])) { ?><p class="mbn"><input type="checkbox" name="isanonymous" id="isanonymous" class="pc" value="1" <?php if($orig['anonymous']) { ?>checked="checked"<?php } ?> /><label for="isanonymous">使用匿名发帖</label></p><?php } } if($_GET['action'] == 'newthread' || $_GET['action'] == 'edit' && $isfirstpost) { ?>
- <p class="mbn"><input type="checkbox" name="hiddenreplies" id="hiddenr…
Large files files are truncated, but you can click here to view the full file