Unreported: display "no attachments" when no attachments are present.

This commit is contained in:
Kevin
2008-04-27 16:32:48 +00:00
parent 262e0e2bef
commit 09a3c227f6
4 changed files with 45 additions and 37 deletions

View File

@@ -110,6 +110,7 @@ $lang = array_merge($lang, array(
// attachments // attachments
'DOWNLOADS' => 'Downloads', 'DOWNLOADS' => 'Downloads',
'NO_ATTACHMENTS' => 'Keine Dateianhänge',
// links // links
'LINKS' => 'Links', 'LINKS' => 'Links',

View File

@@ -118,6 +118,7 @@ $lang = array_merge($lang, array(
// attachments // attachments
'DOWNLOADS' => 'Downloads', 'DOWNLOADS' => 'Downloads',
'NO_ATTACHMENTS' => 'No attachments',
// links // links
'LINKS' => 'Links', 'LINKS' => 'Links',

View File

@@ -1,8 +1,8 @@
<div class="panel"> <div class="panel">
<div class="inner"> <div class="inner">
<span class="corners-top"><span></span></span> <span class="corners-top"><span></span></span>
<h3>{L_ATTACHMENTS}</h3> <h3>{L_ATTACHMENTS}</h3>
<!-- IF .attach -->
<span style="float:left;"><strong>{L_FILENAME}</strong></span><br /> <span style="float:left;"><strong>{L_FILENAME}</strong></span><br />
<!-- BEGIN attach --> <!-- BEGIN attach -->
<span style="float:left;" class="gensmall"><img src="portal/images/icon_topic_attach.gif" alt="" />&nbsp;<a href="viewtopic.php?p={attach.POST_MSG_ID}#p{attach.POST_MSG_ID}" ><strong>{attach.REAL_FILENAME}</strong></a></span><br style="clear:both" /> <span style="float:left;" class="gensmall"><img src="portal/images/icon_topic_attach.gif" alt="" />&nbsp;<a href="viewtopic.php?p={attach.POST_MSG_ID}#p{attach.POST_MSG_ID}" ><strong>{attach.REAL_FILENAME}</strong></a></span><br style="clear:both" />
@@ -10,9 +10,11 @@
<span style="float:left;padding-right:10px;">{L_FILESIZE}:</span><span style="float:right;padding-right:10px;" class="gensmall"><strong>{attach.FILESIZE}</strong></span><br style="clear:both" /> <span style="float:left;padding-right:10px;">{L_FILESIZE}:</span><span style="float:right;padding-right:10px;" class="gensmall"><strong>{attach.FILESIZE}</strong></span><br style="clear:both" />
<span style="float:left;padding-right:10px;">{L_DOWNLOADS}:</span><span style="float:right;padding-right:10px;" class="gensmall"><strong>{attach.DOWNLOAD_COUNT}</strong></span><br style="clear:both" /> <span style="float:left;padding-right:10px;">{L_DOWNLOADS}:</span><span style="float:right;padding-right:10px;" class="gensmall"><strong>{attach.DOWNLOAD_COUNT}</strong></span><br style="clear:both" />
<hr /> <hr />
<!-- END attach --> <!-- END .attach -->
<!-- ELSE -->
<span style="float:left;" class="gensmall"><strong>{L_NO_ATTACHMENTS}</strong></span><br />
<!-- ENDIF -->
<span class="corners-bottom"><span></span></span> <span class="corners-bottom"><span></span></span>
</div> </div>
</div> </div>
<br style="clear:both" /> <br style="clear:both" />

View File

@@ -1,9 +1,10 @@
<table class="tablebg" cellspacing="1" width="100%"> <table class="tablebg" cellspacing="1" width="100%">
<tr> <tr>
<th>{L_ATTACHMENTS}</th> <th>{L_ATTACHMENTS}</th>
</tr> </tr>
<tr class="row1"> <tr class="row1">
<td> <td>
<!-- IF .attach -->
<span style="float:left;"><strong>{L_FILENAME}</strong></span> <span style="float:left;"><strong>{L_FILENAME}</strong></span>
<span style="float:right;padding-right:10px;"><strong>{L_FILESIZE}</strong></span><br /> <span style="float:right;padding-right:10px;"><strong>{L_FILESIZE}</strong></span><br />
<!-- BEGIN attach --> <!-- BEGIN attach -->
@@ -12,7 +13,10 @@
<span style="float:left;">{L_DOWNLOADS}:</span><span style="float:right;" class="gensmall"><strong>{attach.DOWNLOAD_COUNT}</strong></span><br style="clear:both" /> <span style="float:left;">{L_DOWNLOADS}:</span><span style="float:right;" class="gensmall"><strong>{attach.DOWNLOAD_COUNT}</strong></span><br style="clear:both" />
<hr /> <hr />
<!-- END attach --> <!-- END attach -->
<!-- ELSE -->
<span style="float:left;" class="gensmall"><strong>{L_NO_ATTACHMENTS}</strong></span>
<!-- ENDIF -->
</td> </td>
</tr> </tr>
</table> </table>
<br /> <br />