大大幫忙我一下
我其他的模板都可以使用 唯獨
AYOYO 模板有問題
幫我看看好嗎??? 紅色是修改的地方 藍色是錯誤的地方 麻煩了!! 謝謝!!
Parse error: parse error, unexpected T_ELSEIF in c:\appserv\www\discuz3\forumdata\templates\3_viewthread.tpl.php on line 150
[code]{template header}
<table cellspacing="0" cellpadding="0" border="0" width="{TABLEWIDTH}" align="center" style="table-layout: fixed">
<tr><td class="nav" width="90%" nowrap> <img src="{IMGDIR}/vb_bullet.gif"> <a href="index.php">$bbname</a> $navigation</td>
<td align="right" width="10%"><a href="#bottom"><img src="{IMGDIR}/arrow_dw.gif" border="0" align="absmiddle"></a></td>
</tr></table><br>
<!--{if $polloptions}-->
{template viewthread_poll}
<!--{/if}-->
<!--{if $newpmexists}-->
{template pmprompt}
<!--{/if}-->
<form name="delpost" method="post" action="topicadmin.php?action=delpost&fid=$fid&tid=$tid&page=$page">
<table width="{TABLEWIDTH}" cellspacing="0" cellpadding="0" align="center">
<tr><td class="multi">$multipage
<!--{if $thread[creditsrequire]}--> {lang creditsrequire_view} {lang credit_title} <span class=\"bold\">$thread[creditsrequire]</span> {lang credit_unit}<!--{/if}-->
</td><td align="right"><a href="post.php?action=newthread&fid=$fid"><img src="{IMGDIR}/newtopic.gif" border="0"></a>
<!--{if $allowpostpoll}--> <a href="post.php?action=newthread&fid=$fid&poll=yes"><img src="{IMGDIR}/poll.gif" border="0"></a><!--{/if}-->
<!--{if !$thread[closed] || ($thread[closed] && !$ismoderator)}--> <a href="post.php?action=reply&fid=$fid&tid=$tid"><img src="{IMGDIR}/reply.gif" border="0"></a><!--{/if}-->
</td></tr></table>
<table border="0" cellspacing="{BORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%">
<tr class="header"><td width="21%">{lang author}:</td>
<td><table cellspacing="0" cellpadding="0" border="0" width="100%" class="smalltxt" style="table-layout: fixed; word-wrap: break-word">
<tr style="color: {HEADERTEXT}"><td class="bold" nowrap>{lang subject}: $thread[subject]</td>
<td align="right" nowrap>
<!--{if $highlightstatus}--><a href="viewthread.php?tid=$tid&page=$page" style="color: {HEADERTEXT};font-weight: normal">{lang disable_highlight}</a> | <!--{/if}-->
<a href="redirect.php?fid=$fid&tid=$tid&goto=nextoldset" style="color: {HEADERTEXT};font-weight: normal">{lang last_thread}</a> |
<a href="redirect.php?fid=$fid&tid=$tid&goto=nextnewset" style="color: {HEADERTEXT};font-weight: normal">{lang next_thread}</a></td>
</tr></table></td>
</tr></table></td></tr></table>
<!--{loop $postlist $post}-->
<a name="pid$post[pid]"><table cellspacing="0" cellpadding="0" border="0" width="{TABLEWIDTH}" align="center">
<tr><td bgcolor="{BORDERCOLOR}">
<table border="0" cellspacing="{BORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%" style="table-layout: fixed; word-wrap: break-word">
<tr bgcolor="$post[thisbg]">
<td valign="top" width="21%">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%">
<tr>
<td valign="top" width="21%">
<table border="0" cellspacing="$borderwidth" cellpadding="$tablespace" width="100%" style="table-layout: fixed; word-wrap: break-word">
<td valign="top" width="21%">
<!--{if $ismoderator}-->
<a href="topicadmin.php?action=getip&fid=$fid&tid=$tid&pid=$post[pid]"><img src="{IMGDIR}/ip.gif" border="0" align="right" alt="{lang admin_getip}"></a><br><br><!--{/if}-->
<fieldset style=width="99%" align="center" >
<align="center"><legend>
<TABLE align="center" style='FILTER: glow(color=#ccffcc,strength=4)'>
<font color=#000066><nobr><b>$post[author]</b></nobr></font>
</TABLE>
</legend>
<!--{if $post['avatar']}-->
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout: fixed">
<tr><td align="center">$post[avatar]<br>
<span class="smalltxt">頭銜: $post[authortitle]<br>
$post[stars]<br></td></tr></table>
<!--{else}-->
<br>
<!--{/if}--> </fieldset>
<table width="100%" border="0" cellspacing="1">
<tr><td> <table width=100% border=1 align="center" cellspacing="1" cellpadding=2 style="BORDER-COLLAPSE: collapse">
<tr>
<td> <img src="{IMGDIR}/joehack.gif"> {lang postnum}﹕ $post[postnum]篇</td></tr></table></td></tr>
<tr><td> <table width=100% border=1 align="center" cellspacing="1" cellpadding=2 style="BORDER-COLLAPSE: collapse">
<tr>
<td> <img src="{IMGDIR}/joehack.gif"> {lang credit_title}﹕ $post[credit]點</td></tr></table></td></tr>
<!--{if $post[location]}-->
<tr><td> <table width=100% border=1 align="center" cellspacing="1" cellpadding=2 style="BORDER-COLLAPSE: collapse">
<tr>
<td> <img src="{IMGDIR}/joehack.gif"> {lang location}﹕ $post[location]</td></tr></table></td></tr>
<!--{/if}-->
<tr><td> <table width=100% border=1 align="center" cellspacing="1" cellpadding=2 style="BORDER-COLLAPSE: collapse">
<tr>
<td> <img src="{IMGDIR}/joehack.gif"> {lang regtime}﹕ $post[regdate]</td></tr></table></td></tr>
</table></td></tr></table></td></tr></table>
</span>
</td>
<td height="100%">
<table height="100%" width="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout: fixed;word-wrap: break-word">
<tr><td valign="top">$post[karma]
<span class="bold"><span class="smalltxt">$post[subject]</span></span>
$post[message]
<!--{if $post['aaid'] }-->
<!--{if $post[payed]==0 || (($post['paymoney']>=$post['needmoney']) && ($post[payed]==2)) }-->
<!--{if $post['attachimg'] == 0}-->
<table cellspacing="0" cellpadding="0" border="0" width="{TABLEWIDTH}" align="center">
<tr><td bgcolor="#cccccc">
<table border="0" cellspacing="{BORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%">
<tr class="header" >
<td width= "100%"colspan="4" align="center"><b>本貼包含附件</b></td>
</tr>
<tr bgcolor="{ALTBG2}">
<td width="15%" > 文件名:</span></td>
<td width="35%" ><span class="small"> $post[filename]</span></td>
<td width="15%"> 文件類型:</td>
<td width="35%"><span class="small">$post[attachicon] $post[attachtype]</span></td>
</tr>
<tr bgcolor="{ALTBG2}">
<td><span class="small"> 文件大小:</span></td>
<td><span class="small"> $post[attachsize]</td>
<td><span class="small"> 人氣指數:</span></td>
<td><span class="smalltxt"> $post[downloads] </span></td>
</tr>
<tr bgcolor="{ALTBG2}">
<td width="100%" colspan=4 align=center>
<a href="attachment.php?aid=$post[aaid]" target="_blank">立即下載</a>
<!--{if $post[creditsrequire]}-->, {lang creditsrequire_attach} {lang credit_title}
$post[creditsrequire] {lang credit_unit}<!--{/if}--></span><br>
</td></tr></table></td></tr></table>
<!--{elseif $post['attachimg'] == 1}-->
{lang attach_img}: <br><br><a href="$attachurl/$post[attachment]" target="_blank"><img src="$attachurl/$post[attachment]" border="0" alt="{lang click_open_newwindow}" onload="javascript:if(this.width>screen.width-333) this.width=screen.width-333"></a>
<!--{elseif $post['attachimg'] == 2}-->
<BR><center>
<br><embed width="400" height="300" src="$attachurl/$post[attachment]" type="application/x-shockwave-flash"></embed>
</cnenter>
<!--{/if}-->
<!--{else}-->
<table cellspacing="0" cellpadding="0" border="0" width="{TABLEWIDTH}" align="center">
<tr><td bgcolor="#cccccc">
<table border="0" cellspacing="{BORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%">
<tr class="header" >
<td width= "100%"colspan="4" align="center"><b>本貼包含附件</b></td>
</tr>
<tr bgcolor="{ALTBG2}">
<td width="15%" > 文件名:</span></td>
<td width="35%" ><span class="small"> $post[filename]</span></td>
<td width="15%"> 文件類型:</td>
<td width="35%"><span class="small">$post[attachicon] $post[attachtype]</span></td>
</tr>
<tr bgcolor="{ALTBG2}">
<td><span class="small"> 文件大小:</span></td>
<td><span class="small"> $post[attachsize]</td>
<td><span class="small"> 人氣指數:</span></td>
<td><span class="smalltxt"> $post[downloads] </span></td>
</tr>
<tr bgcolor="{ALTBG2}"><td width="100%" colspan=4 align=center>
<br><br>您只有支付了貼子中的所有資費才可以察看或者下載。<BR><BR>
</td></tr></table></td></tr></table>
<!--{/if}--><!--{/if}-->
[
[此帖最後由 maxjbl0857 在 2005-6-5 於 01:06 修改]