Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[插件] 帖子列表修改 for 4.0

[复制链接]
hydeist 发表于 2006-3-12 01:22:32 | 显示全部楼层
  1. {template header}
  2. <table cellspacing="0" cellpadding="0" border="0" width="{TABLEWIDTH}" align="center" style="table-layout: fixed">
  3. <tr><td class="nav" width="85%" align="left" nowrap>&nbsp;<a href="index.php">$bbname</a> $navigation</td>
  4. <td align="right" width="15%"><!--{if $rssstatus}--><a href="rss.php?fid=$fid&auth=$rssauth" target="_blank"><img src="images/common/xml.gif" border="0" align="absmiddle" alt="{lang rss_subscribe_this}"></a><!--{/if}-->
  5. &nbsp;<a href="#bottom"><img src="{IMGDIR}/arrow_dw.gif" border="0" align="absmiddle"></a></td>
  6. </tr></table><br></div>

  7. <div class="maintable">
  8. <table width="{TABLEWIDTH}" cellspacing="0" cellpadding="0" align="center" class="outertxt">
  9. <tr class="mediumtxt"><td class="smalltxt">({lang forum_modedby}: <span class="bold">
  10. <!--{if $moderatedby}-->$moderatedby<!--{else}-->{lang forum_opening}<!--{/if}-->
  11. </span>)</td><td align="right" class="smalltxt"><img src="{IMGDIR}/showdigest.gif" border="0" align="absmiddle">
  12. <!--{if $filter == 'digest'}-->
  13.         <a href="forumdisplay.php?fid=$fid">{lang forum_viewall}</a>
  14. <!--{else}-->
  15.         <a href="forumdisplay.php?fid=$fid&filter=digest">{lang forum_viewdigest}</a>
  16. <!--{/if}-->
  17. &nbsp; <img src="{IMGDIR}/mytopic.gif" border="0" align="absmiddle"> <a href="search.php?srchuid=$discuz_uid&srchfid=$fid&mytopics=yes&searchsubmit=yes">{lang show_mytopics}</a>
  18. <!--{if $allowmodpost && $forum['modnewposts']}-->
  19.         &nbsp; <img src="{IMGDIR}/moderate.gif" border="0" align="absmiddle"> {lang forum_moderate}
  20.         <a href="admincp.php?action=modthreads&frames=yes" target="_blank">[{lang forum_moderate_threads}]</a>
  21.         <!--{if $forum['modnewposts'] == 2}--><a href="admincp.php?action=modreplies&frames=yes" target="_blank">[{lang forum_moderate_replies}]</a><!--{/if}-->
  22. <!--{/if}-->
  23. <!--{if $adminid == 1 && $forum['recyclebin']}-->
  24.         &nbsp; <img src="{IMGDIR}/recyclebin.gif" border="0" align="absmiddle"> <a href="admincp.php?action=recyclebin&frames=yes" target="_blank">{lang forum_recyclebin}</a>
  25. <!--{/if}-->
  26. </td></tr></table></div>

  27. <!--{if $whosonlinestatus}-->
  28.         <div class="maintable">
  29.         <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">
  30.         <!--{if $detailstatus}-->
  31.                 <tr class="header"><td width="100%">
  32.                 <a name="online"></a><a href="forumdisplay.php?fid=$fid&page=$page&showoldetails=no#online"><img src="{IMGDIR}/collapsed_no.gif" align="right" border="0"></a>{lang forum_activeusers}
  33.                 </td></tr>
  34.                 <tr><td class="altbg2" onMouseOver="this.className='altbg1'" onMouseOut="this.className='altbg2'">
  35.                 <table cellspacing="0" cellpadding="0" border="0" width="98%" align="center">
  36.                 <tr><td nowrap>
  37.                 <!--{loop $whosonline $key $online}-->
  38.                         <!--{if $key % 7 == 0}--></td></tr><tr><td width="15%" nowrap><!--{else}--></td><td width="15%" nowrap><!--{/if}-->
  39.                         <img src="images/common/$online[icon]" align="absmiddle">
  40.                         <a href="viewpro.php?uid=$online[uid]" title="{lang time}: $online[lastactivity]{LF}
  41.                         {lang action}: $online[action]{LF}
  42.                         {lang forum}: $forumname">$online[username]</a>
  43.                 <!--{/loop}-->
  44.                 </td></tr></table></td></tr>
  45.         <!--{else}-->
  46.                 <tr class="header"><td width="100%">
  47.                 <a name="online"></a><a href="forumdisplay.php?fid=$fid&page=$page&showoldetails=yes#online"><img src="{IMGDIR}/collapsed_yes.gif" align="right" border="0"></a>{lang forum_activeusers}
  48.                 </td></tr>
  49.         <!--{/if}-->
  50.         </table><br></div>
  51. <!--{/if}-->

  52. <!--{if $forum['rules']}-->
  53.         <div class="maintable">
  54.         <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">
  55.         <tr class="header"><td><a href="###" onclick="toggle_collapse('rules_$fid');"><img id="rules_{$fid}_img" src="{IMGDIR}/$rulescollapseimg" align="right" border="0"></a>{lang forum_rules}</td></tr>
  56.         <tbody id="rules_$fid" style="$collapserules">
  57.         <tr><td class="altbg2" colspan="2" onMouseOver="this.className='altbg1'" onMouseOut="this.className='altbg2'">$forum['rules']</td></tr>
  58.         </tbody></table><br>
  59.         </div>
  60. <!--{/if}-->

  61. <!--{if !empty($newpmexists)}-->
  62.         <div class="maintable">
  63.         {template pmprompt}
  64.         </div>
  65. <!--{/if}-->

  66. <!--{if $subexists}-->
  67.         <div class="maintable">
  68.         {template forumdisplay_subforum}
  69.         </div>
  70. <!--{/if}-->

  71. <!--{if !empty($advlist['text'])}--><div class="maintable"><br><table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">$advlist[text]</table><br></div><!--{/if}-->

  72. <form method="post" name="moderate" action="topicadmin.php?action=moderate&fid=$fid">
  73. <input type="hidden" name="formhash" value="{FORMHASH}">

  74. <div class="maintable">
  75. <table width="{TABLEWIDTH}" cellspacing="0" cellpadding="0" align="center">
  76. <tr><td valign="bottom">$multipage</td>
  77. <td align="right" valign="bottom">
  78. <!--{if $allowpost || !$discuz_uid}-->&nbsp;<a href="post.php?action=newthread&fid=$fid&extra=$extra"><img src="{IMGDIR}/newtopic.gif" border="0"></a><!--{/if}-->
  79. <!--{if $allowpostpoll || !$discuz_uid}-->&nbsp;<a href="post.php?action=newthread&fid=$fid&extra=$extra&poll=yes"><img src="{IMGDIR}/poll.gif" border="0"></a><!--{/if}-->
  80. <!--{if ($allowpost || !$discuz_uid) && $allowposttrade}-->&nbsp;<a href="post.php?action=newthread&fid=$fid&extra=$extra&trade=yes"><img src="{IMGDIR}/newtrade.gif" border="0"></a><!--{/if}-->
  81. <!--{if $forum['threadtypes'] && $forum['threadtypes']['listable']}-->
  82.         <br><table cellspacing="0" cellpadding="0" border="0"><tr><td>
  83.         <table cellspacing="{INNERBORDERWIDTH}" cellpadding="2" class="tableborder"><tr class="smalltxt">
  84.                 <td class="altbg1">
  85.             <select onchange="if(this.options[this.selectedIndex].value != '0') {
  86. window.location=('forumdisplay.php?fid=$fid&filter=type&typeid='+this.options[this.selectedIndex].value) }">
  87.                 <option value="0">{lang admin_type}</option>
  88.                 <!--{loop $forum['threadtypes']['types'] $id $name}-->
  89.                     <!--{if $typeid != $id}-->
  90.                             <option value="$id">$name</option>
  91.                     <!--{else}-->
  92.                             <option value="$id" selected>$name</option>
  93.                     <!--{/if}-->
  94.                 <!--{/loop}-->
  95.             </select>
  96.         </td>
  97.         <!--{if $typeid}--><td class="altbg1">&nbsp;<a href="forumdisplay.php?fid=$fid">{lang all}</a>&nbsp;</td><!--{else}--><td class="header">&nbsp;<span class="bold">{lang all}</span>&nbsp;</td><!--{/if}-->
  98.         </tr></table></td></tr><tr><td height="3"></td></tr></table>
  99. <!--{/if}-->
  100. </td></tr></table></div>

  101. <div class="maintable">
  102. <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder" style="border-bottom:none;">
  103. <tr class="header"><td colspan="7">
  104. <table cellspacing="0" cellpadding="0" width="100%" border="0">
  105. <tr><td width="65%" class="smalltxt"><a href="forumdisplay.php?fid=$fid" class="bold">$forum[name]</a></td>
  106. <td width="35%" align="right" nowrap>&nbsp;
  107. <!--{if $searchboxstatus}-->
  108.         <img src="{IMGDIR}/search.gif" border="0" align="bottom" width="16" height="16">&nbsp;&nbsp;<input type="text" name="searchbox" value="{lang qihoo_keyword}" size="30" class="altbg2" onmouseover="this.focus()" onfocus="this.select()">
  109.         <select name="stype"><option value="" selected>{lang qihoo_search_filltext}</option><option value="1">{lang qihoo_search_title}</option></select>
  110.         <input name="button" type="button" style="height: 1.8em" onclick="window.open('search.php?srchtype=qihoo&amp;srchtxt='+findobj('searchbox').value+'&amp;stype='+findobj('stype').value+'&amp;searchsubmit=yes');" value="{lang qihoo_search}">
  111. <!--{/if}-->
  112. </td></tr></table></td></tr>
  113. <tr class="category">

  114. <td width="4%">&nbsp;</td>
  115. <td width="47%" align="center">{lang subject}</td>
  116. <td width="14%" align="center" nowrap>{lang author}</td>
  117. <td width="6%" align="center" nowrap>{lang replies}</td>
  118. <td width="6%" align="center" nowrap>{lang views}</td>
  119. <td width="19%" align="center">{lang lastpost}</td>
  120. </tr>

  121. <!--{if $page == 1 && !empty($announcement)}-->
  122.         <tr>
  123.         <td class="altbg2" align="center"><a href="announcement.php?id=$announcement[id]#$announcement[id]" target="_blank"><img src="{IMGDIR}/lock_folder.gif" border="0"></a></td>
  124.         <td class="altbg2" colspan="2" onMouseOver="this.className='altbg1'" onMouseOut="this.className='altbg2'">{lang announcement}: <a href="announcement.php?id=$announcement[id]#$announcement[id]">$announcement[subject]</a></td>
  125.         <td class="altbg1" align="center"><a href="viewpro.php?uid=$announcement[authorid]">$announcement[author]</a><br><span class="smalltxt">$announcement[starttime]</span></td>
  126.         <td class="altbg2" align="center">-</td>
  127.         <td class="altbg1" align="center">-</td>
  128.         <td class="altbg2" align="center">-</td>
  129.         </tr>
  130. <!--{/if}-->
  131. </table></div>

  132. <!--{if $threadcount}-->
  133.         <!--{loop $threadlist $key $thread}-->
  134.                 <div class="maintable">
  135.                 <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" style="margin-top:-1px;border-bottom:none;border-top:none" class="tableborder">
  136.                 <!--{if $separatepos == $key + 1}-->
  137.                         <tr class="category"><td>&nbsp;</td><td colspan="6"><span class="bold">{lang forum_normal_threads}</span></td></tr>
  138.                 <!--{/if}-->
  139.                 <tr>
  140.                 <td class="altbg2" align="center"><a href="viewthread.php?tid=$thread[tid]" target="_blank">
  141.                 <!--{if $thread['displayorder']}-->
  142.              <!--{if $thread['displayorder'] == 1}--><img src="{IMGDIR}/pin1.gif" border="0"><b>
  143.              <!--{elseif $thread['displayorder'] == 2}--><img src="{IMGDIR}/pin2.gif" border="0"><b>
  144.              <!--{elseif $thread['displayorder'] == 3}--><img src="{IMGDIR}/pin3.gif" border="0"><b>
  145.                          <!--{/if}-->
  146.                 <!--{elseif $thread['poll']}--><img src="{IMGDIR}/pollsmall.gif" border="0">
  147.                 <!--{elseif $thread['digest']}-->
  148.              <!--{if $thread['digest'] == 1}--><img src="{IMGDIR}/digest1.gif" border="0"><b>
  149.              <!--{elseif $thread['digest'] == 2}--><img src="{IMGDIR}/digest2.gif" border="0"><b>
  150.              <!--{elseif $thread['digest'] == 3}--><img src="{IMGDIR}/digest3.gif" border="0"><b>
  151.                          <!--{/if}-->
  152.                 <!--{else}-->
  153.                         <img src="{IMGDIR}/$thread[folder]" border="0">
  154.                 <!--{/if}--></a></td>

  155.                
  156.                 <td width="47%" class="altbg2" onMouseOver="this.className='altbg1'" onMouseOut="this.className='altbg2'">
  157.                 <table cellpadding="0" cellspacing="0" border="0" width="100%" style="table-layout: fixed; word-wrap: break-word"><tr><td>
  158.                 <!--{if $thread['rate'] > 0}--><img src="{IMGDIR}/agree.gif" align="right"><!--{elseif $thread['rate'] < 0}--><img src="{IMGDIR}/disagree.gif" align="right"><!--{/if}-->
  159.                 <!--{if $forum['ismoderator']}--><!--{if $thread['fid'] == $fid}--><input type="checkbox" name="moderate[]" value="$thread[tid]"><!--{else}--><input type="checkbox" disabled><!--{/if}--><!--{/if}-->
  160.                 <!--{if $thread['new']}--><a href="redirect.php?tid=$thread[tid]&goto=newpost$highlight#newpost"><img src="{IMGDIR}/firstnew.gif" border="0" align="absmiddle"></a> <!--{/if}-->
  161.                 <!--{if $thread['moved']}--><!--{if $forum['ismoderator']}--><a href="topicadmin.php?action=delete&tid=$thread[moved]">{lang thread_moved}:</a><!--{else}-->{lang thread_moved}:<!--{/if}-->
  162.                 <!--{elseif $thread['digest']}--> {lang thread_digest}<b>{echo substr('III', - $thread['digest'])}</b>:&nbsp;
  163.                 <!--{elseif $thread['displayorder']}--> {lang thread_sticky}<b>{echo substr('III', - $thread['displayorder'])}</b>:&nbsp;
  164.                 <!--{elseif $thread['poll']}--> {lang thread_poll}:&nbsp;
  165.                 <!--{/if}-->$thread[typeid]
  166.                 <!--{if $thread['attachment']}--><img src="images/attachicons/common.gif"><!--{/if}-->
  167.                 <a href="viewthread.php?tid=$thread[tid]&extra=$extra"$thread[highlight]>$thread[subject]</a>
  168.                 <!--{if $thread['readperm']}--> - [{lang readperm} <span class="bold">$thread[readperm]</span>]<!--{/if}-->
  169.                 <!--{if $thread['price'] > 0}--> - [{lang price} {$extcredits[$creditstrans][title]} <span class="bold">$thread[price]</span> {$extcredits[$creditstrans][unit]}]<!--{/if}-->
  170.                 $thread[multipage]
  171.                 </td></tr></table>
  172.                 </td><td width="14%" class="altbg1" align="center">
  173.                 <!--{if $thread['authorid'] && $thread['author']}-->
  174.                         <a href="viewpro.php?uid=$thread[authorid]">$thread[author]</a>
  175.                 <!--{else}-->
  176.                          <!--{if $forum['ismoderator']}-->
  177.                                 <a href="viewpro.php?uid=$thread[authorid]">{lang anonymous}</a>
  178.                         <!--{else}-->
  179.                                 {lang anonymous}
  180.                         <!--{/if}-->
  181.                 <!--{/if}-->
  182.                 <br><span class="smalltxt">$thread[dateline]</span></td>
  183.                 <td width="6%" class="altbg2" align="center">$thread[replies]</td>
  184.                 <td width="6%" class="altbg1" align="center">$thread[views]</td>
  185.                 <td width="19%" class="altbg2">
  186.                 <table cellpadding="0" cellspacing="0" border="0" width="100%"><tr align="right">
  187.                 <td nowrap><font class="smalltxt">$thread[lastpost]<br>
  188.                 {lang forum_lastpost_by}
  189.                 <!--{if $thread['lastposter']}--><a href="viewpro.php?username=$thread[lastposterenc]">$thread[lastposter]</a><!--{else}-->{lang anonymous}<!--{/if}-->
  190.                 </font></td><td nowrap>&nbsp;<a href="redirect.php?tid=$thread[tid]&goto=lastpost$highlight#lastpost"><img src="{IMGDIR}/lastpost.gif" border="0"></a>
  191.                 </td></tr></table></td></tr></table></div>
  192.         <!--{/loop}-->
  193. <!--{else}-->
  194.         <div class="maintable">
  195.         <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" style="margin-top:-1px;border-top:none" class="tableborder">
  196.         <tr><td colspan="7" class="altbg1">{lang forum_nothreads}</td></tr>
  197.         </table>
  198.         </div>
  199. <!--{/if}-->

  200. <!--{if $forum['ismoderator'] && $threadcount}-->
  201.         <div class="maintable">
  202.         <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" style="border-top:none;" class="tableborder">
  203.         <tr><td colspan="7" class="altbg1" align="center">
  204.         <span class="bold">{lang admin_moderate}</span> &nbsp;
  205.         <input type="checkbox" name="chkall" onclick="checkall(this.form, 'moderate')"> {lang checkall}
  206.         <!--{if $allowdelpost}--><input type="radio" name="operation" value="delete"> {lang admin_delthread} <!--{/if}-->
  207.         <input type="radio" name="operation" value="move"> {lang admin_move}
  208.         <input type="radio" name="operation" value="highlight"> {lang admin_highlight}
  209.         <input type="radio" name="operation" value="type"> {lang admin_type}
  210.         <input type="radio" name="operation" value="close"> {lang admin_openclose}
  211.         <!--{if $allowstickthread}--><input type="radio" name="operation" value="stick"> {lang admin_stick_unstick} <!--{/if}-->
  212.         <input type="radio" name="operation" value="digest"> {lang admin_digest_addremove} &nbsp;
  213.         <a href="###" onclick="javascript: document.moderate.submit()" class="bold">[{lang submit}]</a>
  214.         </td></tr></table></div>
  215. <!--{else}-->
  216.         <div class="maintable">
  217.         <table width="{TABLEWIDTH}" cellspacing="0" cellpadding="0" border="0" align="center">
  218.         <tr><td bgcolor="{BORDERCOLOR}"></td></tr>
  219.         </table></div>
  220. <!--{/if}-->

  221. <div class="maintable">
  222. <table width="{TABLEWIDTH}" cellspacing="0" cellpadding="0" align="center">
  223. <tr><td valign="top">$multipage</td><td align="right">
  224. <!--{if $allowpost || !$discuz_uid}-->&nbsp;<a href="post.php?action=newthread&fid=$fid&extra=$extra"><img src="{IMGDIR}/newtopic.gif" border="0"></a><!--{/if}-->
  225. <!--{if $allowpostpoll || !$discuz_uid}-->&nbsp;<a href="post.php?action=newthread&fid=$fid&extra=$extra&poll=yes"><img src="{IMGDIR}/poll.gif" border="0"></a><!--{/if}-->
  226. <!--{if ($allowpost || !$discuz_uid) && $allowposttrade}-->&nbsp;<a href="post.php?action=newthread&fid=$fid&extra=$extra&trade=yes"><img src="{IMGDIR}/newtrade.gif" border="0"></a><!--{/if}-->
  227. </td></tr></table><br></div></form>

  228. <!--{if $fastpost && $allowpost}-->
  229.         <script language="JavaScript">
  230.         var postminchars = parseInt('$minpostsize');
  231.         var postmaxchars = parseInt('$maxpostsize');
  232.         var disablepostctrl = parseInt('$disablepostctrl');
  233.         var typerequired = parseInt('$forum[threadtypes][required]');
  234.         function validate(theform) {
  235.                 if (theform.typeid && theform.typeid.options[theform.typeid.selectedIndex].value == 0 && typerequired) {
  236.                         alert("{lang post_type_isnull}");
  237.                         return false;
  238.                 } else if (theform.subject.value == "" || theform.message.value == "") {
  239.                         alert("{lang post_subject_or_message_isnull}");
  240.                         return false;
  241.                 } else if (theform.subject.value.length > 80) {
  242.                         alert("{lang post_subject_toolang}");
  243.                         return false;
  244.                 }
  245.                 if (!disablepostctrl && ((postminchars != 0 && theform.message.value.length < postminchars) || (postmaxchars != 0 && theform.message.value.length > postmaxchars))) {
  246.                         alert("{lang post_message_length_invalid}\n\n{lang post_curlength}: "+theform.message.value.length+" {lang bytes}\n{lang board_allowed}: "+postminchars+" {lang to} "+postmaxchars+" {lang bytes}");
  247.                         return false;
  248.                 }
  249.                 theform.topicsubmit.disabled = true;
  250.                 return true;
  251.         }
  252.         </script>
  253.         <form method="post" name="input" action="post.php?action=newthread&fid=$fid&extra=$extra&topicsubmit=yes" onSubmit="return validate(this)">
  254.         <input type="hidden" name="formhash" value="{FORMHASH}">
  255.         <div class="maintable">
  256.         <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">
  257.         <tr><td colspan="2" class="header"><a href="member.php?action=credits&view=forum_post&fid=$fid" target="_blank"><img src="{IMGDIR}/credits.gif" alt="{lang credits_policy_view}" align="right" border="0"></a>{lang post_fastpost}</td></tr>
  258.         <tr>
  259.         <td width="18%" class="altbg1">{lang subject}:</td>
  260.         <td width="82%" class="altbg2">$typeselect <input type="text" name="subject" size="80" value="" tabindex="1"></td>
  261.         </tr>
  262.         <tr>
  263.         <td width="18%" class="altbg1" valign="top">{lang options}:<br><span class="smalltxt">
  264.         <input type="checkbox" name="parseurloff" value="1"> {lang disable} {lang post_parseurl}<br>
  265.         <input type="checkbox" name="smileyoff" value="1"> {lang disable} <a href="faq.php?page=messages#6" target="_blank">{lang post_smilies}</a><br>
  266.         <input type="checkbox" name="bbcodeoff" value="1"> {lang disable} <a href="faq.php?page=misc#1" target="_blank">{lang post_discuzcode}</a><br>
  267.         <!--{if $allowanonymous || $forum['allowanonymous']}--><input type="checkbox" name="isanonymous" value="1"> {lang post_anonymous}<br><!--{/if}-->
  268.         <input type="checkbox" name="usesig" value="1" $usesigcheck> {lang post_show_sig}<br>
  269.         <input type="checkbox" name="emailnotify" value="1"> {lang post_email_notify}
  270.         <!--{if $allowuseblog && $forum['allowblog']}--><br><input type="checkbox" name="addtoblog" value="1"> {lang post_blog_thread}<!--{/if}-->
  271.         </span>
  272.         </td>
  273.         <td width="82%" class="altbg2" valign="middle"><span class="smalltxt">
  274.         <textarea rows="7" name="message" style="width: 80%; word-break: break-all" onKeyDown="ctlent(event);" tabindex="2"></textarea><br>
  275.         <input type="submit" name="topicsubmit" value="{lang post_topicsubmit}" tabindex="3">&nbsp; &nbsp;
  276.         <input type="submit" name="previewpost" value="{lang post_previewpost}" tabindex="4">&nbsp; &nbsp;
  277.         <input type="reset" name="topicsreset" value="{lang post_topicreset}" tabindex="5">&nbsp; &nbsp;{lang post_submit_hotkey}</span>
  278.         </td></tr></table><br></div></form>
  279. <!--{/if}-->

  280. <div class="maintable">
  281. <br>
  282. <form method="get" action="forumdisplay.php">
  283. <input type="hidden" name="fid" value="$fid">
  284. <table width="{TABLEWIDTH}" cellspacing="0" cellpadding="0" align="center" class="outertxt">
  285. <tr class="mediumtxt"><td align="left" class="smalltxt">

  286. <!--{if $forumjump}-->
  287.         <select onchange="if(this.options[this.selectedIndex].value != '') {
  288.         window.location=('forumdisplay.php?fid='+this.options[this.selectedIndex].value+'&sid=$sid') }">
  289.         <option value="">{lang forum_jump}</option>
  290.         $forumselect
  291.         </select>
  292. <!--{/if}-->
  293. <!--{if $visitedforums}-->
  294.         <select onchange="if(this.options[this.selectedIndex].value != '')
  295.         window.location=('forumdisplay.php?fid='+this.options[this.selectedIndex].value+'&sid=$sid')">
  296.         <option value="">{lang visited_forums}</option>
  297.         $visitedforums
  298.         </select>
  299. <!--{/if}-->

  300. </td><td align="right" class="smalltxt">
  301. <!--{if $filter == 'digest' || $filter == 'type'}-->
  302.         <input type="hidden" name="filter" value="$filter">
  303.         <input type="hidden" name="typeid" value="$typeid">
  304. <!--{else}-->
  305.         {lang show} <select name="filter">
  306.         <option value="0" $check[0]>{lang threads_all}</option>
  307.         <option value="86400" $check[86400]>{lang last_1_days}</option>
  308.         <option value="172800" $check[172800]>{lang last_2_days}</option>
  309.         <option value="604800" $check[604800]>{lang last_7_days}</option>
  310.         <option value="2592000" $check[2592000]>{lang last_30_days}</option>
  311.         <option value="7948800" $check[7948800]>{lang last_90_days}</option>
  312.         <option value="15897600" $check[15897600]>{lang last_180_days}</option>
  313.         <option value="31536000" $check[31536000]>{lang last_356_days}</option>
  314.         </select>&nbsp;
  315. <!--{/if}-->
  316. {lang orderby}&nbsp;
  317. <select name="orderby">
  318. <option value="lastpost" $check[lastpost]>{lang order_lastpost}</option>
  319. <option value="dateline" $check[dateline]>{lang order_starttime}</option>
  320. <option value="replies" $check[replies]>{lang order_replies}</option>
  321. <option value="views" $check[views]>{lang order_views}</option>
  322. </select>&nbsp;
  323. <select name="ascdesc">
  324. <option value="ASC" $check[ASC]>{lang order_asc}</option>
  325. <option value="DESC" $check[DESC]>{lang order_desc}</option>
  326. </select>&nbsp;
  327. <input type="submit" value="{lang submit}">
  328. </td></tr></table></form>

  329. <br><table cellspacing="0" cellpadding="0" border="0" width="500" align="center" class="outertxt">
  330. <tr class="smalltxt"><td><img src="{IMGDIR}/red_folder.gif" alt="{lang thread_newposts}" align="absmiddle">&nbsp; {lang thread_newposts}</td><td class="smalltxt">(&nbsp;<img src="{IMGDIR}/hot_red_folder.gif" alt="{lang thread_more_replies}" align="absmiddle">&nbsp; {lang thread_more_replies} )</td><td class="smalltxt"><img src="{IMGDIR}/lock_folder.gif" alt="{lang thread_closed}" align="absmiddle">&nbsp; {lang thread_closed}</td></tr>
  331. <tr class="smalltxt"><td><img src="{IMGDIR}/folder.gif" alt="{lang thread_nonewpost}" align="absmiddle">&nbsp; {lang thread_nonewpost}</td><td class="smalltxt">(&nbsp;<img src="{IMGDIR}/hot_folder.gif" alt="{lang thread_more_replies}" align="absmiddle">&nbsp; {lang thread_more_replies} )</td><td class="smalltxt">&nbsp;</td></tr>
  332. </table>
  333. {template footer}
复制代码
回复

使用道具 举报

hydeist 发表于 2006-3-12 01:32:54 | 显示全部楼层
表格老出问题

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

hklcf 发表于 2006-3-12 08:40:35 | 显示全部楼层
樓上的找
  1. <tr class="category">

  2. <td width="4%">&nbsp;</td>
  3. <td width="47%" align="center">{lang subject}</td>
  4. <td width="14%" align="center" nowrap>{lang author}</td>
  5. <td width="6%" align="center" nowrap>{lang replies}</td>
  6. <td width="6%" align="center" nowrap>{lang views}</td>
  7. <td width="19%" align="center">{lang lastpost}</td>
  8. </tr>
复制代码

改為
  1. <tr class="category">
  2. <td width="4%">&nbsp;</td>
  3. <td width="4%">&nbsp;</td>
  4. <td width="47%" align="center">{lang subject}</td>
  5. <td width="14%" align="center" nowrap>{lang author}</td>
  6. <td width="6%" align="center" nowrap>{lang replies}</td>
  7. <td width="6%" align="center" nowrap>{lang views}</td>
  8. <td width="19%" align="center">{lang lastpost}</td>
  9. </tr>
复制代码
回复

使用道具 举报

 楼主| 123223 发表于 2006-3-12 10:48:30 | 显示全部楼层
晕 呵呵  才看到hydeist 的求助,sry

总认为这种修改感兴趣得人不多,就没再来看这帖。

其实我就是像你说得那样改的,但是发现很多坛子都在用那列,所以发的是现在这种,我更喜欢你那种,因为我的坛子,那一列从来没人用过,
非常占显示空间。
回复

使用道具 举报

 楼主| 123223 发表于 2006-3-12 10:55:20 | 显示全部楼层
显得更简介

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

hydeist 发表于 2006-3-12 15:46:05 | 显示全部楼层
原帖由 123223 于 2006-3-12 10:48 发表
晕 呵呵  才看到hydeist 的求助,sry

总认为这种修改感兴趣得人不多,就没再来看这帖。

其实我就是像你说得那样改的,但是发现很多坛子都在用那列,所以发的是现在这种,我更喜欢你那种,因为我的坛子,那一 ...

我是一直感兴趣的,就是不会改,老出错。

到现在还没改到完美,来的时候,我想加你QQ,帮我最后搞定一下吧。
回复

使用道具 举报

hydeist 发表于 2006-3-12 15:49:43 | 显示全部楼层
搞成这样的代码后,右上角的表格正常,就是主题前面的表格还是太宽
  1. <tr class="category">
  2. <td width="4%">&nbsp;</td>
  3. <td width="4%">&nbsp;</td>
  4. <td width="47%" align="center">{lang subject}</td>
  5. <td width="14%" align="center" nowrap>{lang author}</td>
  6. <td width="6%" align="center" nowrap>{lang replies}</td>
  7. <td width="6%" align="center" nowrap>{lang views}</td>
  8. <td width="19%" align="center">{lang lastpost}</td>
  9. </tr>
复制代码

[ 本帖最后由 hydeist 于 2006-3-12 15:50 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

折翼の天使♂ 发表于 2006-3-12 18:52:02 | 显示全部楼层
不错``顶!
回复

使用道具 举报

 楼主| 123223 发表于 2006-3-13 02:05:18 | 显示全部楼层
to #27

晕 你的是DIV的 ,不太明白,  头都搞大了,  好像每一列都得加上宽度才能对齐。
你试试吧。


  1. {template header}
  2. <table cellspacing="0" cellpadding="0" border="0" width="{TABLEWIDTH}" align="center" style="table-layout: fixed">
  3. <tr><td class="nav" width="85%" align="left" nowrap>&nbsp;<a href="index.php">$bbname</a> $navigation</td>
  4. <td align="right" width="15%"><!--{if $rssstatus}--><a href="rss.php?fid=$fid&auth=$rssauth" target="_blank"><img src="images/common/xml.gif" border="0" align="absmiddle" alt="{lang rss_subscribe_this}"></a><!--{/if}-->
  5. &nbsp;<a href="#bottom"><img src="{IMGDIR}/arrow_dw.gif" border="0" align="absmiddle"></a></td>
  6. </tr></table><br></div>

  7. <div class="maintable">
  8. <table width="{TABLEWIDTH}" cellspacing="0" cellpadding="0" align="center" class="outertxt">
  9. <tr class="mediumtxt"><td class="smalltxt">({lang forum_modedby}: <span class="bold">
  10. <!--{if $moderatedby}-->$moderatedby<!--{else}-->{lang forum_opening}<!--{/if}-->
  11. </span>)</td><td align="right" class="smalltxt"><img src="{IMGDIR}/showdigest.gif" border="0" align="absmiddle">
  12. <!--{if $filter == 'digest'}-->
  13.         <a href="forumdisplay.php?fid=$fid">{lang forum_viewall}</a>
  14. <!--{else}-->
  15.         <a href="forumdisplay.php?fid=$fid&filter=digest">{lang forum_viewdigest}</a>
  16. <!--{/if}-->
  17. &nbsp; <img src="{IMGDIR}/mytopic.gif" border="0" align="absmiddle"> <a href="search.php?srchuid=$discuz_uid&srchfid=$fid&mytopics=yes&searchsubmit=yes">{lang show_mytopics}</a>
  18. <!--{if $allowmodpost && $forum['modnewposts']}-->
  19.         &nbsp; <img src="{IMGDIR}/moderate.gif" border="0" align="absmiddle"> {lang forum_moderate}
  20.         <a href="admincp.php?action=modthreads&frames=yes" target="_blank">[{lang forum_moderate_threads}]</a>
  21.         <!--{if $forum['modnewposts'] == 2}--><a href="admincp.php?action=modreplies&frames=yes" target="_blank">[{lang forum_moderate_replies}]</a><!--{/if}-->
  22. <!--{/if}-->
  23. <!--{if $adminid == 1 && $forum['recyclebin']}-->
  24.         &nbsp; <img src="{IMGDIR}/recyclebin.gif" border="0" align="absmiddle"> <a href="admincp.php?action=recyclebin&frames=yes" target="_blank">{lang forum_recyclebin}</a>
  25. <!--{/if}-->
  26. </td></tr></table></div>

  27. <!--{if $whosonlinestatus}-->
  28.         <div class="maintable">
  29.         <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">
  30.         <!--{if $detailstatus}-->
  31.                 <tr class="header"><td width="100%">
  32.                 <a name="online"></a><a href="forumdisplay.php?fid=$fid&page=$page&showoldetails=no#online"><img src="{IMGDIR}/collapsed_no.gif" align="right" border="0"></a>{lang forum_activeusers}
  33.                 </td></tr>
  34.                 <tr><td class="altbg2" onMouseOver="this.className='altbg1'" onMouseOut="this.className='altbg2'">
  35.                 <table cellspacing="0" cellpadding="0" border="0" width="98%" align="center">
  36.                 <tr><td nowrap>
  37.                 <!--{loop $whosonline $key $online}-->
  38.                         <!--{if $key % 7 == 0}--></td></tr><tr><td width="15%" nowrap><!--{else}--></td><td width="15%" nowrap><!--{/if}-->
  39.                         <img src="images/common/$online[icon]" align="absmiddle">
  40.                         <a href="viewpro.php?uid=$online[uid]" title="{lang time}: $online[lastactivity]{LF}
  41.                         {lang action}: $online[action]{LF}
  42.                         {lang forum}: $forumname">$online[username]</a>
  43.                 <!--{/loop}-->
  44.                 </td></tr></table></td></tr>
  45.         <!--{else}-->
  46.                 <tr class="header"><td width="100%">
  47.                 <a name="online"></a><a href="forumdisplay.php?fid=$fid&page=$page&showoldetails=yes#online"><img src="{IMGDIR}/collapsed_yes.gif" align="right" border="0"></a>{lang forum_activeusers}
  48.                 </td></tr>
  49.         <!--{/if}-->
  50.         </table><br></div>
  51. <!--{/if}-->

  52. <!--{if $forum['rules']}-->
  53.         <div class="maintable">
  54.         <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">
  55.         <tr class="header"><td><a href="###" onclick="toggle_collapse('rules_$fid');"><img id="rules_{$fid}_img" src="{IMGDIR}/$rulescollapseimg" align="right" border="0"></a>{lang forum_rules}</td></tr>
  56.         <tbody id="rules_$fid" style="$collapserules">
  57.         <tr><td class="altbg2" colspan="2" onMouseOver="this.className='altbg1'" onMouseOut="this.className='altbg2'">$forum['rules']</td></tr>
  58.         </tbody></table><br>
  59.         </div>
  60. <!--{/if}-->

  61. <!--{if !empty($newpmexists)}-->
  62.         <div class="maintable">
  63.         {template pmprompt}
  64.         </div>
  65. <!--{/if}-->

  66. <!--{if $subexists}-->
  67.         <div class="maintable">
  68.         {template forumdisplay_subforum}
  69.         </div>
  70. <!--{/if}-->

  71. <!--{if !empty($advlist['text'])}--><div class="maintable"><br><table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">$advlist[text]</table><br></div><!--{/if}-->

  72. <form method="post" name="moderate" action="topicadmin.php?action=moderate&fid=$fid">
  73. <input type="hidden" name="formhash" value="{FORMHASH}">

  74. <div class="maintable">
  75. <table width="{TABLEWIDTH}" cellspacing="0" cellpadding="0" align="center">
  76. <tr><td valign="bottom">$multipage</td>
  77. <td align="right" valign="bottom">
  78. <!--{if $allowpost || !$discuz_uid}-->&nbsp;<a href="post.php?action=newthread&fid=$fid&extra=$extra"><img src="{IMGDIR}/newtopic.gif" border="0"></a><!--{/if}-->
  79. <!--{if $allowpostpoll || !$discuz_uid}-->&nbsp;<a href="post.php?action=newthread&fid=$fid&extra=$extra&poll=yes"><img src="{IMGDIR}/poll.gif" border="0"></a><!--{/if}-->
  80. <!--{if ($allowpost || !$discuz_uid) && $allowposttrade}-->&nbsp;<a href="post.php?action=newthread&fid=$fid&extra=$extra&trade=yes"><img src="{IMGDIR}/newtrade.gif" border="0"></a><!--{/if}-->
  81. <!--{if $forum['threadtypes'] && $forum['threadtypes']['listable']}-->
  82.         <br><table cellspacing="0" cellpadding="0" border="0"><tr><td>
  83.         <table cellspacing="{INNERBORDERWIDTH}" cellpadding="2" class="tableborder"><tr class="smalltxt">
  84.                 <td class="altbg1">
  85.             <select onchange="if(this.options[this.selectedIndex].value != '0') {
  86. window.location=('forumdisplay.php?fid=$fid&filter=type&typeid='+this.options[this.selectedIndex].value) }">
  87.                 <option value="0">{lang admin_type}</option>
  88.                 <!--{loop $forum['threadtypes']['types'] $id $name}-->
  89.                     <!--{if $typeid != $id}-->
  90.                             <option value="$id">$name</option>
  91.                     <!--{else}-->
  92.                             <option value="$id" selected>$name</option>
  93.                     <!--{/if}-->
  94.                 <!--{/loop}-->
  95.             </select>
  96.         </td>
  97.         <!--{if $typeid}--><td class="altbg1">&nbsp;<a href="forumdisplay.php?fid=$fid">{lang all}</a>&nbsp;</td><!--{else}--><td class="header">&nbsp;<span class="bold">{lang all}</span>&nbsp;</td><!--{/if}-->
  98.         </tr></table></td></tr><tr><td height="3"></td></tr></table>
  99. <!--{/if}-->
  100. </td></tr></table></div>

  101. <div class="maintable">
  102. <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder" style="border-bottom:none;">
  103. <tr class="header"><td colspan="7">
  104. <table cellspacing="0" cellpadding="0" width="100%" border="0">
  105. <tr><td width="65%" class="smalltxt"><a href="forumdisplay.php?fid=$fid" class="bold">$forum[name]</a></td>
  106. <td width="35%" align="right" nowrap>&nbsp;
  107. <!--{if $searchboxstatus}-->
  108.         <img src="{IMGDIR}/search.gif" border="0" align="bottom" width="16" height="16">&nbsp;&nbsp;<input type="text" name="searchbox" value="{lang qihoo_keyword}" size="30" class="altbg2" onmouseover="this.focus()" onfocus="this.select()">
  109.         <select name="stype"><option value="" selected>{lang qihoo_search_filltext}</option><option value="1">{lang qihoo_search_title}</option></select>
  110.         <input name="button" type="button" style="height: 1.8em" onclick="window.open('search.php?srchtype=qihoo&amp;srchtxt='+findobj('searchbox').value+'&amp;stype='+findobj('stype').value+'&amp;searchsubmit=yes');" value="{lang qihoo_search}">
  111. <!--{/if}-->
  112. </td></tr></table></td></tr>
  113. <tr class="category">

  114. <td width="4%">&nbsp;</td>
  115. <td width="51%" colspan="2" align="center">{lang subject}</td>
  116. <td width="14%" align="center" nowrap>{lang author}</td>
  117. <td width="6%" align="center" nowrap>{lang replies}</td>
  118. <td width="6%" align="center" nowrap>{lang views}</td>
  119. <td width="19%" align="center">{lang lastpost}</td>
  120. </tr>

  121. <!--{if $page == 1 && !empty($announcement)}-->
  122.         <tr>
  123.         <td width="4%" class="altbg2" align="center"><a href="announcement.php?id=$announcement[id]#$announcement[id]" target="_blank"><img src="{IMGDIR}/lock_folder.gif" border="0"></a></td>
  124.         <td width="51%" class="altbg2" colspan="2" onMouseOver="this.className='altbg1'" onMouseOut="this.className='altbg2'">{lang announcement}: <a href="announcement.php?id=$announcement[id]#$announcement[id]">$announcement[subject]</a></td>
  125.         <td width="14%" class="altbg1" align="center"><a href="viewpro.php?uid=$announcement[authorid]">$announcement[author]</a><br><span class="smalltxt">$announcement[starttime]</span></td>
  126.         <td width="6%" class="altbg2" align="center">-</td>
  127.         <td width="6%" class="altbg1" align="center">-</td>
  128.         <td width="19%" class="altbg2" align="center">-</td>
  129.         </tr>
  130. <!--{/if}-->
  131. </table></div>

  132. <!--{if $threadcount}-->
  133.         <!--{loop $threadlist $key $thread}-->
  134.                 <div class="maintable">
  135.                 <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" style="margin-top:-1px;border-bottom:none;border-top:none" class="tableborder">
  136.                 <!--{if $separatepos == $key + 1}-->
  137.                         <tr class="category"><td>&nbsp;</td><td colspan="6"><span class="bold">{lang forum_normal_threads}</span></td></tr>
  138.                 <!--{/if}-->
  139.                 <tr>
  140.                 <td width="4%" class="altbg2" align="center"><a href="viewthread.php?tid=$thread[tid]" target="_blank">
  141.                 <!--{if $thread['displayorder']}-->
  142.                      <!--{if $thread['displayorder'] == 1}--><img alt="{lang thread_sticky}:I" src="{IMGDIR}/pin1.gif" border="0" align="absmiddle">
  143.                      <!--{elseif $thread['displayorder'] == 2}--><img alt="{lang thread_sticky}:II" src="{IMGDIR}/pin2.gif" border="0" align="absmiddle">
  144.                      <!--{elseif $thread['displayorder'] == 3}--><img alt="{lang thread_sticky}:III" src="{IMGDIR}/pin3.gif" border="0" align="absmiddle">
  145.                          <!--{/if}-->
  146.              <!--{elseif $thread['poll']}--><img alt="{lang thread_poll} "  src="{IMGDIR}/pollsmall.gif" border="0">
  147.                 <!--{elseif $thread['digest']}-->
  148.                      <!--{if $thread['digest'] == 1}--><img alt="{lang thread_digest}:I" src="{IMGDIR}/digest1.gif" border="0" align="absmiddle">
  149.                      <!--{elseif $thread['digest'] == 2}--><img alt="{lang thread_digest}:II" src="{IMGDIR}/digest2.gif" border="0" align="absmiddle">
  150.                      <!--{elseif $thread['digest'] == 3}--><img alt="{lang thread_digest}:III" src="{IMGDIR}/digest3.gif" border="0" align="absmiddle">
  151.                          <!--{/if}-->
  152.                 <!--{else}-->
  153.                  <img src="{IMGDIR}/$thread[folder]" align="absmiddle" border="0">
  154.                 <!--{/if}--></a></td>

  155.                
  156.                 <td width="51%" colspan="2" class="altbg2" onMouseOver="this.className='altbg1'" onMouseOut="this.className='altbg2'">
  157.                 <table cellpadding="0" cellspacing="0" border="0" width="100%" style="table-layout: fixed; word-wrap: break-word"><tr><td>
  158.                 <!--{if $thread['rate'] > 0}--><img src="{IMGDIR}/agree.gif" align="right"><!--{elseif $thread['rate'] < 0}--><img src="{IMGDIR}/disagree.gif" align="right"><!--{/if}-->
  159.                 <!--{if $forum['ismoderator']}--><!--{if $thread['fid'] == $fid}--><input type="checkbox" name="moderate[]" value="$thread[tid]"><!--{else}--><input type="checkbox" disabled><!--{/if}--><!--{/if}-->
  160.                 <!--{if $thread['new']}--><a href="redirect.php?tid=$thread[tid]&goto=newpost$highlight#newpost"><img src="{IMGDIR}/firstnew.gif" border="0" align="absmiddle"></a> <!--{/if}-->
  161.                 <!--{if $thread['moved']}--><!--{if $forum['ismoderator']}--><a href="topicadmin.php?action=delete&tid=$thread[moved]">{lang thread_moved}:</a><!--{else}-->{lang thread_moved}:<!--{/if}-->

  162.                 <!--{/if}-->$thread[typeid]
  163.                 <!--{if $thread['attachment']}--><img src="images/attachicons/common.gif"><!--{/if}-->
  164.                 <a href="viewthread.php?tid=$thread[tid]&extra=$extra"$thread[highlight]>$thread[subject]</a>
  165.                 <!--{if $thread['readperm']}--> - [{lang readperm} <span class="bold">$thread[readperm]</span>]<!--{/if}-->
  166.                 <!--{if $thread['price'] > 0}--> - [{lang price} {$extcredits[$creditstrans][title]} <span class="bold">$thread[price]</span> {$extcredits[$creditstrans][unit]}]<!--{/if}-->
  167.                 $thread[multipage]
  168.                 </td></tr></table>
  169.                 </td><td width="14%" class="altbg1" align="center">
  170.                 <!--{if $thread['authorid']}--><a href="viewpro.php?uid=$thread[authorid]">$thread[author]</a><!--{else}-->{lang guest}<!--{/if}-->
  171.                 <br><span class="smalltxt">$thread[dateline]</span></td>
  172.                 <td width="6%" class="altbg2" align="center">$thread[replies]</td>
  173.                 <td width="6%" class="altbg1" align="center">$thread[views]</td>
  174.                 <td width="19%" class="altbg2">
  175.                 <table cellpadding="0" cellspacing="0" border="0" width="100%"><tr align="right">
  176.                 <td nowrap><font class="smalltxt">$thread[lastpost]<br>
  177.                 {lang forum_lastpost_by}
  178.                 <!--{if $thread['lastposter']}--><a href="viewpro.php?username=$thread[lastposterenc]">$thread[lastposter]</a><!--{else}-->{lang anonymous}<!--{/if}-->
  179.                 </font></td><td nowrap>&nbsp;<a href="redirect.php?tid=$thread[tid]&goto=lastpost$highlight#lastpost"><img src="{IMGDIR}/lastpost.gif" border="0"></a>
  180.                 </td></tr></table></td></tr></table></div>
  181.         <!--{/loop}-->
  182. <!--{else}-->
  183.         <div class="maintable">
  184.         <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" style="margin-top:-1px;border-top:none" class="tableborder">
  185.         <tr><td colspan="7" class="altbg1">{lang forum_nothreads}</td></tr>
  186.         </table>
  187.         </div>
  188. <!--{/if}-->

  189. <!--{if $forum['ismoderator'] && $threadcount}-->
  190.         <div class="maintable">
  191.         <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" style="border-top:none;" class="tableborder">
  192.         <tr><td colspan="7" class="altbg1" align="center">
  193.         <span class="bold">{lang admin_moderate}</span> &nbsp;
  194.         <input type="checkbox" name="chkall" onclick="checkall(this.form, 'moderate')"> {lang checkall}
  195.         <!--{if $allowdelpost}--><input type="radio" name="operation" value="delete"> {lang admin_delthread} <!--{/if}-->
  196.         <input type="radio" name="operation" value="move"> {lang admin_move}
  197.         <input type="radio" name="operation" value="highlight"> {lang admin_highlight}
  198.         <input type="radio" name="operation" value="type"> {lang admin_type}
  199.         <input type="radio" name="operation" value="close"> {lang admin_openclose}
  200.         <!--{if $allowstickthread}--><input type="radio" name="operation" value="stick"> {lang admin_stick_unstick} <!--{/if}-->
  201.         <input type="radio" name="operation" value="digest"> {lang admin_digest_addremove} &nbsp;
  202.         <a href="###" onclick="javascript: document.moderate.submit()" class="bold">[{lang submit}]</a>
  203.         </td></tr></table></div>
  204. <!--{else}-->
  205.         <div class="maintable">
  206.         <table width="{TABLEWIDTH}" cellspacing="0" cellpadding="0" border="0" align="center">
  207.         <tr><td bgcolor="{BORDERCOLOR}"></td></tr>
  208.         </table></div>
  209. <!--{/if}-->

  210. <div class="maintable">
  211. <table width="{TABLEWIDTH}" cellspacing="0" cellpadding="0" align="center">
  212. <tr><td valign="top">$multipage</td><td align="right">
  213. <!--{if $allowpost || !$discuz_uid}-->&nbsp;<a href="post.php?action=newthread&fid=$fid&extra=$extra"><img src="{IMGDIR}/newtopic.gif" border="0"></a><!--{/if}-->
  214. <!--{if $allowpostpoll || !$discuz_uid}-->&nbsp;<a href="post.php?action=newthread&fid=$fid&extra=$extra&poll=yes"><img src="{IMGDIR}/poll.gif" border="0"></a><!--{/if}-->
  215. <!--{if ($allowpost || !$discuz_uid) && $allowposttrade}-->&nbsp;<a href="post.php?action=newthread&fid=$fid&extra=$extra&trade=yes"><img src="{IMGDIR}/newtrade.gif" border="0"></a><!--{/if}-->
  216. </td></tr></table><br></div></form>

  217. <!--{if $fastpost && $allowpost}-->
  218.         <script language="JavaScript">
  219.         var postminchars = parseInt('$minpostsize');
  220.         var postmaxchars = parseInt('$maxpostsize');
  221.         var disablepostctrl = parseInt('$disablepostctrl');
  222.         var typerequired = parseInt('$forum[threadtypes][required]');
  223.         function validate(theform) {
  224.                 if (theform.typeid && theform.typeid.options[theform.typeid.selectedIndex].value == 0 && typerequired) {
  225.                         alert("{lang post_type_isnull}");
  226.                         return false;
  227.                 } else if (theform.subject.value == "" || theform.message.value == "") {
  228.                         alert("{lang post_subject_or_message_isnull}");
  229.                         return false;
  230.                 } else if (theform.subject.value.length > 80) {
  231.                         alert("{lang post_subject_toolang}");
  232.                         return false;
  233.                 }
  234.                 if (!disablepostctrl && ((postminchars != 0 && theform.message.value.length < postminchars) || (postmaxchars != 0 && theform.message.value.length > postmaxchars))) {
  235.                         alert("{lang post_message_length_invalid}\n\n{lang post_curlength}: "+theform.message.value.length+" {lang bytes}\n{lang board_allowed}: "+postminchars+" {lang to} "+postmaxchars+" {lang bytes}");
  236.                         return false;
  237.                 }
  238.                 theform.topicsubmit.disabled = true;
  239.                 return true;
  240.         }
  241.         </script>
  242.         <form method="post" name="input" action="post.php?action=newthread&fid=$fid&extra=$extra&topicsubmit=yes" onSubmit="return validate(this)">
  243.         <input type="hidden" name="formhash" value="{FORMHASH}">
  244.         <div class="maintable">
  245.         <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">
  246.         <tr><td colspan="2" class="header"><a href="member.php?action=credits&view=forum_post&fid=$fid" target="_blank"><img src="{IMGDIR}/credits.gif" alt="{lang credits_policy_view}" align="right" border="0"></a>{lang post_fastpost}</td></tr>
  247.         <tr>
  248.         <td width="18%" class="altbg1">{lang subject}:</td>
  249.         <td width="82%" class="altbg2">$typeselect <input type="text" name="subject" size="80" value="" tabindex="1"></td>
  250.         </tr>
  251.         <tr>
  252.         <td width="18%" class="altbg1" valign="top">{lang options}:<br><span class="smalltxt">
  253.         <input type="checkbox" name="parseurloff" value="1"> {lang disable} {lang post_parseurl}<br>
  254.         <input type="checkbox" name="smileyoff" value="1"> {lang disable} <a href="faq.php?page=messages#6" target="_blank">{lang post_smilies}</a><br>
  255.         <input type="checkbox" name="bbcodeoff" value="1"> {lang disable} <a href="faq.php?page=misc#1" target="_blank">{lang post_discuzcode}</a><br>
  256.         <!--{if $allowanonymous || $forum['allowanonymous']}--><input type="checkbox" name="isanonymous" value="1"> {lang post_anonymous}<br><!--{/if}-->
  257.         <input type="checkbox" name="usesig" value="1" $usesigcheck> {lang post_show_sig}<br>
  258.         <input type="checkbox" name="emailnotify" value="1"> {lang post_email_notify}
  259.         <!--{if $allowuseblog && $forum['allowblog']}--><br><input type="checkbox" name="addtoblog" value="1"> {lang post_blog_thread}<!--{/if}-->
  260.         </span>
  261.         </td>
  262.         <td width="82%" class="altbg2" valign="middle"><span class="smalltxt">
  263.         <textarea rows="7" name="message" style="width: 80%; word-break: break-all" onKeyDown="ctlent(event);" tabindex="2"></textarea><br>
  264.         <input type="submit" name="topicsubmit" value="{lang post_topicsubmit}" tabindex="3">&nbsp; &nbsp;
  265.         <input type="submit" name="previewpost" value="{lang post_previewpost}" tabindex="4">&nbsp; &nbsp;
  266.         <input type="reset" name="topicsreset" value="{lang post_topicreset}" tabindex="5">&nbsp; &nbsp;{lang post_submit_hotkey}</span>
  267.         </td></tr></table><br></div></form>
  268. <!--{/if}-->

  269. <div class="maintable">
  270. <br>
  271. <form method="get" action="forumdisplay.php">
  272. <input type="hidden" name="fid" value="$fid">
  273. <table width="{TABLEWIDTH}" cellspacing="0" cellpadding="0" align="center" class="outertxt">
  274. <tr class="mediumtxt"><td align="left" class="smalltxt">

  275. <!--{if $forumjump}-->
  276.         <select onchange="if(this.options[this.selectedIndex].value != '') {
  277.         window.location=('forumdisplay.php?fid='+this.options[this.selectedIndex].value+'&sid=$sid') }">
  278.         <option value="">{lang forum_jump}</option>
  279.         $forumselect
  280.         </select>
  281. <!--{/if}-->
  282. <!--{if $visitedforums}-->
  283.         <select onchange="if(this.options[this.selectedIndex].value != '')
  284.         window.location=('forumdisplay.php?fid='+this.options[this.selectedIndex].value+'&sid=$sid')">
  285.         <option value="">{lang visited_forums}</option>
  286.         $visitedforums
  287.         </select>
  288. <!--{/if}-->

  289. </td><td align="right" class="smalltxt">
  290. <!--{if $filter == 'digest' || $filter == 'type'}-->
  291.         <input type="hidden" name="filter" value="$filter">
  292.         <input type="hidden" name="typeid" value="$typeid">
  293. <!--{else}-->
  294.         {lang show} <select name="filter">
  295.         <option value="0" $check[0]>{lang threads_all}</option>
  296.         <option value="86400" $check[86400]>{lang last_1_days}</option>
  297.         <option value="172800" $check[172800]>{lang last_2_days}</option>
  298.         <option value="604800" $check[604800]>{lang last_7_days}</option>
  299.         <option value="2592000" $check[2592000]>{lang last_30_days}</option>
  300.         <option value="7948800" $check[7948800]>{lang last_90_days}</option>
  301.         <option value="15897600" $check[15897600]>{lang last_180_days}</option>
  302.         <option value="31536000" $check[31536000]>{lang last_356_days}</option>
  303.         </select>&nbsp;
  304. <!--{/if}-->
  305. {lang orderby}&nbsp;
  306. <select name="orderby">
  307. <option value="lastpost" $check[lastpost]>{lang order_lastpost}</option>
  308. <option value="dateline" $check[dateline]>{lang order_starttime}</option>
  309. <option value="replies" $check[replies]>{lang order_replies}</option>
  310. <option value="views" $check[views]>{lang order_views}</option>
  311. </select>&nbsp;
  312. <select name="ascdesc">
  313. <option value="ASC" $check[ASC]>{lang order_asc}</option>
  314. <option value="DESC" $check[DESC]>{lang order_desc}</option>
  315. </select>&nbsp;
  316. <input type="submit" value="{lang submit}">
  317. </td></tr></table></form>

  318. <br><table cellspacing="0" cellpadding="0" border="0" width="500" align="center" class="outertxt">
  319. <tr class="smalltxt"><td><img src="{IMGDIR}/red_folder.gif" alt="{lang thread_newposts}" align="absmiddle">&nbsp; {lang thread_newposts}</td><td class="smalltxt">(&nbsp;<img src="{IMGDIR}/hot_red_folder.gif" alt="{lang thread_more_replies}" align="absmiddle">&nbsp; {lang thread_more_replies} )</td><td class="smalltxt"><img src="{IMGDIR}/lock_folder.gif" alt="{lang thread_closed}" align="absmiddle">&nbsp; {lang thread_closed}</td></tr>
  320. <tr class="smalltxt"><td><img src="{IMGDIR}/folder.gif" alt="{lang thread_nonewpost}" align="absmiddle">&nbsp; {lang thread_nonewpost}</td><td class="smalltxt">(&nbsp;<img src="{IMGDIR}/hot_folder.gif" alt="{lang thread_more_replies}" align="absmiddle">&nbsp; {lang thread_more_replies} )</td><td class="smalltxt">&nbsp;</td></tr>
  321. </table>
  322. {template footer}
复制代码
回复

使用道具 举报

hydeist 发表于 2006-3-13 20:44:29 | 显示全部楼层

谢谢123223的热心帮助,就是有一点点的细微的表格对不齐

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-12-23 01:22 , Processed in 0.032990 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表