回帖那美化了下
- <!--{eval $_TPL['titles'] = array($thread['subject'], $mtag['tagname'], $mtag['title'], '话题');}-->
- <!--{template header}-->
- <script language="javascript" src="image/editor/editor_function.js"></script>
- <script type="text/javascript">
- function validate(obj) {
- var subject = $('subject');
- if (subject) {
- var slen = strlen(subject.value);
- if (slen < 1 || slen > 80) {
- alert("标题长度(1~80字符)不符合要求");
- subject.focus();
- return false;
- }
- }
- if($('seccode')) {
- var code = $('seccode').value;
- var x = new Ajax();
- x.get('cp.php?ac=common&op=seccode&code=' + code, function(s){
- s = trim(s);
- if(s.indexOf('succeed') == -1) {
- alert(s);
- $('seccode').focus();
- return false;
- } else {
- uploadEdit(obj);
- return true;
- }
- });
- } else {
- uploadEdit(obj);
- return true;
- }
- }
- function edit_album_show(id) {
- var obj = $('uchome-edit-'+id);
- if(id == 'album') {
- $('uchome-edit-pic').style.display = 'none';
- }
- if(id == 'pic') {
- $('uchome-edit-album').style.display = 'none';
- }
- if(obj.style.display == '') {
- obj.style.display = 'none';
- } else {
- obj.style.display = '';
- }
- }
- </script>
- <h2 class="title">
- <img src="image/app/mtag.gif"><a href="space.php?do=mtag&id=$mtag[fieldid]">$mtag[title]</a> -
- <a href="space.php?do=mtag&tagid=$mtag[tagid]">$mtag[tagname]</a>
- </h2>
- <div class="tabs_header">
- <a href="cp.php?ac=share&type=thread&id=$thread[tid]" id="a_share" onclick="ajaxmenu(event, this.id, 99999, '', -1)" class="a_share">分享</a>
- <div class="r_option">
- <!--{if $_SGLOBAL[supe_uid] == $thread[uid] || checkperm('manageblog')}--><a href="cp.php?ac=common&op=manage&idtype=thread&id=$thread[tid]" id="a_manage" onclick="ajaxmenu(event, this.id, 99999)">管理</a><span class="pipe">|</span><!--{/if}-->
- <a href="cp.php?ac=common&op=report&idtype=thread&id=$thread[tid]" id="a_report" onclick="ajaxmenu(event, this.id, 99999,'' , -1)">举报</a><span class="pipe">|</span>
- </div>
- <ul class="tabs">
- <li><a href="space.php?do=mtag&tagid=$thread[tagid]&view=list"><span>返回讨论区</span></a></li>
- <!--{if empty($mtag['ismember']) && $mtag['joinperm'] < 2}-->
- <li class="null"><a href="cp.php?ac=mtag&op=join&tagid=$mtag[tagid]" id="mtag_join_$mtag[tagid]" onclick="ajaxmenu(event, this.id, 99999)">加入该群组</a></li>
- <!--{elseif $mtag['allowpost']}-->
- <li class="null"><a href="cp.php?ac=thread&tagid=$mtag[tagid]">发起新话题</a></li>
- <!--{/if}-->
- </ul>
- </div>
- <div id="div_post">
- <div class="board">
- <!--{if $thread[content]}-->
- <div id="post_$thread[content][pid]_li">
- <ul class="line_list">
- <li>
- <table width="100%">
- <tr>
- <td width="70" valign="top">
- <div class="avatar48">
- <a href="space.php?uid=$thread[uid]"><img src="<!--{avatar($thread[uid],small)}-->" alt="{$_SN[$thread[uid]]}" class="avatar" /></a>
- </div>
- </td>
- <td>
- <div class="title">
- <div class="r_option">
- <!--{if $thread[uid]==$_SGLOBAL[supe_uid]}-->
- <a href="cp.php?ac=thread&op=edit&pid=$thread[content][pid]&tagid=$thread[tagid]">编辑</a>
- <!--{/if}-->
- <!--{if $mtag[grade]>=8 || $thread[uid]==$_SGLOBAL[supe_uid]}-->
- <a href="cp.php?ac=thread&op=delete&pid=$thread[content][pid]&tagid=$thread[tagid]" id="p_$thread[content][pid]_delete" onclick="ajaxmenu(event, this.id, 99999)">删除</a>
- <!--{/if}-->
- <!--{if $mtag[allowpost]}--><a href="#postform">回复</a><!--{/if}-->
- <!--{if $mtag[grade]>=8}-->
- <!--{if $thread[displayorder]}-->
- <a href="cp.php?ac=thread&op=top&tagid=$thread[tagid]&tid=$thread[tid]&cancel" id="t_$thread[tid]_top" onclick="ajaxmenu(event, this.id, 2000)">取消置顶</a>
- <!--{else}-->
- <a href="cp.php?ac=thread&op=top&tagid=$thread[tagid]&tid=$thread[tid]" id="t_$thread[tid]_top" onclick="ajaxmenu(event, this.id, 2000)">置顶</a>
- <!--{/if}-->
- <!--{if $thread[digest]}-->
- <a href="cp.php?ac=thread&op=digest&tagid=$thread[tagid]&tid=$thread[tid]&cancel" id="t_$thread[tid]_digest" onclick="ajaxmenu(event, this.id, 2000)">取消精华</a>
- <!--{else}-->
- <a href="cp.php?ac=thread&op=digest&tagid=$thread[tagid]&tid=$thread[tid]" id="t_$thread[tid]_digest" onclick="ajaxmenu(event, this.id, 2000)">精华</a>
- <!--{/if}-->
- <!--{/if}-->
- </div>
- <h1>$thread[subject]</h1>
- <a href="space.php?uid=$thread[uid]">{$_SN[$thread[uid]]}</a>
- <span class="time"><!--{date('Y-m-d H:i',$thread[dateline],1)}--></span>
- </div>
- <div class="detail" id="detail_0">
- <!--{if $_SGLOBAL['ad']['rightside']}-->
- <div style="float: right; padding:5px;"><!--{ad/rightside}--></div>
- <!--{/if}-->
- $thread[content][message]
- <!--{if $thread[content][pic]}--><div><a href="$thread[content][pic]" target="_blank"><img src="$thread[content][pic]" alt="" class="resizeimg" /></a></div><!--{/if}-->
- </div>
- </td>
- </tr>
- </table>
- </li>
- </ul>
- </div>
- <!--{/if}-->
- <div id="post_ul">
-
- <!--{if $pid}-->
- <div class="notice">
- 当前只显示与你操作相关的单个帖子,<a href="space.php?uid=$thread[uid]&do=thread&id=$thread[tid]">点击此处查看全部回帖</a>
- </div>
- <!--{/if}-->
- <!--{loop $list $value}-->
- <!--{template space_post_li}-->
- <!--{/loop}-->
- </div>
-
- <div class="page">$multi</div>
-
- <!--{if $mtag[allowpost]}-->
-
- <div class="quickpost" id="postform">
- <form method="post" action="cp.php?ac=thread" class="quickpost" id="quickpostform_{$thread[tid]}" name="quickpostform_{$thread[tid]}">
- <table cellspacing="4" cellpadding="4" width="100%">
- <tr><td>
- <!--a href="###" id="quickpost" onclick="showFace(this.id, 'message');"><img src="image/facelist.gif" align="absmiddle" /></a><br-->
- <textarea id="uchome-ttHtmlEditor" name="message" onkeydown="ctrlEnter(event, 'postsubmit_btn');" col="50" rows="10" style="width: 450px; height: 6em; display:none; border:0px;"></textarea>
- <iframe src="editor.php?charset=$_SC[charset]&allowhtml=<!--{eval echo checkperm('allowhtml')}-->" name="uchome-ifrHtmlEditor" id="uchome-ifrHtmlEditor" scrolling="no" border="0" frameborder="0" style="width:90%;border: 1px solid #C5C5C5;" height="300"></iframe>
- </td></tr>
- <tr><td>
- <input type="hidden" name="tid" value="$thread[tid]" />
- <input type="hidden" name="postsubmit" value="true" />
- <!--input type="button" id="postsubmit_btn" name="postsubmit_btn" value="回复" class="submit" onclick="ajaxpost('quickpostform_{$thread[tid]}', 'post_status', 'post_add')" /-->
- <input type="button" id="threadbutton" name="threadbutton" value="提交发布" onclick="validate(this);" style="display: none;" />
- <div id="post_status"></div>
- <input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
- </td>
- </tr>
- </form>
- <tr><td>
- <input type="button" name="clickbutton[]" value="上传图片" class="button" onclick="edit_album_show('pic')">
- <input type="button" name="clickbutton[]" value="相册图片" class="button" onclick="edit_album_show('album')">
- </td></tr>
- </table>
- <table cellspacing="4" cellpadding="4" width="100%" id="uchome-edit-pic" class="infotable" style="display:none;">
- <tr>
- <td>
- <strong>选择图片</strong>:
- <table summary="Upload" cellspacing="2" cellpadding="0">
- <tbody id="attachbodyhidden" style="display:none">
- <tr>
- <td>
- <form method="post" id="upload" action="cp.php?ac=upload" enctype="multipart/form-data" target="uploadframe" style="background: transparent;">
- <input type="file" name="attach" style="border: 1px solid #CCC;" />
- <span id="localfile"></span>
- <input type="hidden" name="uploadsubmit" id="uploadsubmit" value="true" />
- <input type="hidden" name="albumid" id="albumid" value="0" />
- <input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
- </form>
- </td>
- </tr>
- </tbody>
- <tbody id="attachbody"></tbody>
- </table>
- <strong>存储相册</strong>:
- <table cellspacing="2" cellpadding="0">
- <tr>
- <td>
- <select name="albumid" id="uploadalbum" onchange="addSort(this)">
- <option value="0">请选择相册</option>
- <!--{loop $albums $value}-->
- <option value="$value[albumid]">$value[albumname]</option>
- <!--{/loop}-->
- <option value="addoption" style="color:red;">+新建相册</option>
- </select>
- <script src="source/script_upload.js" type="text/javascript"></script>
- <iframe id="uploadframe" name="uploadframe" width="0" height="0" marginwidth="0" frameborder="0" src="about:blank"></iframe>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <table cellspacing="4" cellpadding="4" width="100%" class="infotable" id="uchome-edit-album" style="display:none;">
- <tr>
- <td>
- 选择相册: <select name="view_albumid" onchange="picView(this.value)">
- <option value="none">选择一个相册</option>
- <option value="0">默认相册</option>
- <!--{loop $albums $value}-->
- <option value="$value[albumid]">$value[albumname]</option>
- <!--{/loop}-->
- </select> (点击图片可以插入到内容中)
- <div id="albumpic_body"></div>
- </td>
- </tr>
- </table>
- <table cellspacing="4" cellpadding="4" width="100%" class="infotable">
- <tr>
- <td><input type="button" id="issuance" onclick="document.getElementById('threadbutton').click();" value="回复" class="submit" /></td>
- </tr>
- </table>
-
-
- </div>
- <!--{else}-->
- <div class="c_form">
- <!--{if $mtag[grade]==-1}-->
- 您现在被群主禁言,不能参与讨论。
- <!--{else}-->
- 你还不是该群组正式成员,不能参与讨论。
- <!--{if $mtag[grade]==-9}-->
- <a href="cp.php?ac=mtag&op=join&tagid=$mtag[tagid]" id="_tag_join_$mtag[tagid]" onclick="ajaxmenu(event, this.id, 99999)">现在就加入</a>。
- <!--{/if}-->
- <!--{/if}-->
- </div>
- <!--{/if}-->
- </div>
- </div>
- <script type="text/javascript">
- resizeImg('div_post','600');
- </script>
-
- <!--{template footer}-->
复制代码
space_thread_view.htm |