template error
| From: | Webmaster | Date: | Mon, 03 Nov 2003 14:13:47 +0000 |
| Subject: | template error | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-10492@lists.php.net to get a copy of this message | ||
Hi,
i am giving up on a problem and hope somebody can help me.
Iam getting the following error message:
Parse error: parse error, unexpected T_ENDFOR in
d:\new\smarty\templates_c\%%-88\%%-887988192\catalog.tpl.php on line 210
The problem is that the template doesn't even have 210 lines. I checked line
by line many times.
Please can anybody tell we what is wrong?
{include file="top.tpl"}
{if $formsent}{include file="confirmation.tpl"}{/if}
<table width="100%" cellpadding="0" cellspacing="10"
border="0">
<tr>
<!-- Column 1 -->
<td width="25%" align="left" valign="top">
{include file="menu.tpl"}
{if $picture}
{section name=i loop=$bilder}
<a href="../images/shop/products/{$bilder[i]}" target="_blank">
<img src="../images/shop/products/{$bilder[i]}" border="0"
alt=""
/></a><br />
<font size="1">{$txt[i]}</font><br /><br />
{/section}
{/if}
</td>
<!-- Column 2 -->
<td width="75%" valign="top">
{include file="catalog_ankermenu.tpl"}
{if $data.bilder}
<table border="0" cellpadding="5" cellspacing="0">
<tr>
<td>
<a href="../images/shop/products/{$data.bilder[i]}" target="_blank">
<img src="../images/shop/products/{$data.bilder[0]}" alt="" />
</a><br />
</td>
</tr>
</table>
{/if}
</td>
</tr>
</table>
</td>
</tr>
</table>
<br /><br />
{include file="catalog_description.tpl"}
{if $isGips}{include file="catalog_gipsspecs.tpl"}{/if}
<h5>{$tBestellinfoueber}</h5>
<p>{$tBestellinfo}</p>
<h3 class="katalogrubrik">
<a href="#top"><img src="images/shop/up.gif" border="0"
alt="" /></a>
<a name="bestellformular">Shopping</a></h3>
<form
action="pages/catalog.php?produktname={$data.produktname}#bestellformular"
method="post">
<table width="100%" bgcolor="#C0C0C0" cellspacing="0"
cellpadding="2">
<tr>
<td colspan="2"><h5>Beachten Sie die vorteilhaften
Staffelpreise:</h5></td>
</tr>
<tr>
<td align="left"><input type="radio" name="discount"
value="4" /> ab
4x</td>
<td align="left"><input type="radio" name="discount"
value="6" /> ab
6x</td>
<td align="left"><input type="radio" name="discount"
value="12" /> ab
12x</td>
<td align="right"><input type="submit" value=">>"
/></td>
</tr>
</table>
</form>
<form name="artikelsuche" action="shoppingcard.php?update=1"
method="post"
onsubmit="return ZahlChecker()">
<table width="100%" border="1" cellspacing="0"
cellpadding="1">
<thead>
<tr align="center">
<th>{$tArt_nr}</th>
<th>{$tBezeichnung}</th>
<th>{$tVpe}</th>
<th>{$tPreis}</th>
<th>{$tPreis}<br />ab {$discountShown} x</th>
<th>{$tAnzahl}</th>
</tr>
</thead>
<tbody>
{section name=i loop=$dataItem}
<tr align="center" onmouseover="this.style.background='#ff0000';"
onmouseout="this.style.background='';">
<td align="right">{$dataItem.d_artikelnummer}</td>
{if $dataItem.d_bild_artikel !=""}
<td align="right">
<a href="../images/shop/products/{$dataItem.d_bild_artikel}.jpg"
target="_blank">{$dataItem.language}</a>
</td>
{else}
<td align="right">{$dataItem.d_language}</td>
{/if}
<td align="right">{$dataItem.d_anz_vpe} x {$dataItem.d_vpe}
{$dataItem.d_mass}</td>
{if $discountShown == 1}
<td align="right">EUR {$dataItem.d_ab1}</td>
{if $discountShown == 6}
<td align="right">EUR {$dataItem.d_ab6}</td>
{if $dicountShown == 12}
<td align="right">EUR {$dataItem.d_ab12}</td>
{else}
<td align="right">EUR {$data.Item.d_ab4}</td>
{/if}
<td align="right">
<input type="text" name="anzahlNeu[{$i}]" size="2"
maxlength="2"
onfocus="document.all.rowcolor.{$zaehler}.style.background='#ffff00'" />
<input type="hidden" name="artikel_id[{$i}]"
value="{$dataItem.d_artikelnummer}" />
</td>
</tr>
{/section}
<tr>
<td colspan="6" align="center">
<input type="submit" value="{$tInDenWarenkorb}" size="50" />
<input type="hidden" name="sid" value="{$sid}" />
</td>
</tr>
</tbody>
</table>
</form>
<br />
<br />
<br />
{include file="catalog_downloads.tpl"}
{if $language == "de"}{include file="catalog_form.tpl"}{/if}
</td>
</tr>
</table>
{include file="bottom.tpl"}