Habe Frage bezüglich dem Smarty-Template

DRose

Well-known member
ID: 449680
L
28 Dezember 2006
4.687
223
Hallo !

Jetzt habe ich wieder eine Frage:

Es geht um folgende Seite:

https://web101.admin.idar3.de/partyflirt/

Die Varaiblen werden an der falschen Stelle ausgegeben.

Der Code von homepage.tpl:

Code:
{strip}
{include file='extra.tpl'}
{include file='werbung.php'}
<table border="0" cellpadding="0"  cellspacing="0" width="100%">
	<tr>
		<td width="571" align="center">
{if $smarty.session.UserId == ''}
			<table width="571" border="0" cellpadding="0"  cellspacing="0">
				<tr>
					<td class="module_detail" width="571">

						<table width="571" border="0" cellpadding="0"  cellspacing="0" style="height:23px">
							<tr>
								<td width="77"><img src="{$image_dir}blue_window_3_bars.jpg" width="77" height="25" alt="" /></td>
								<td class="module_head" width="494">
								{lang mkey='special_offer'}
                                                                 {$werbung}
								</td>
							</tr>
						</table>
						<table width="571" border="0" cellpadding="0" cellspacing="0">
							<tr>
								<td width="100%" align="center">
									<br />
										<table width="571" border="0" cellpadding="0" cellspacing="0" >
											<tr>
												<td width="174" valign="top" height="196" rowspan="2"><img src="{$image_dir}offerimg.jpg" height="196" width="174" alt="" /></td>
												<td width="397" valign="top" height="159" align="center" >
													<table width="95%" border="0" cellpadding="0" cellspacing="0" align="center">
														<tr>
															<td width="100%">
																












															</td>
														</tr>
													</table>
												</td>
											</tr>
											<tr>
												<td width="397" valign="middle"  height="37"  align="center" class="module_head">
													<span class="text_head1">{lang mkey='dont_stay_alone'}</span> 
													<a href="signup.php"><span class="text_head1">{lang mkey='join_now_for_free'}</span></a>
												</td>
											</tr>
										</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
			<br />
{/if}
{if $smarty.session.UserId > 0 }
{* Show the statistics since last login  *}
			<table width="571" border="0" cellpadding="0" cellspacing="0" >
				{if $smarty.get.errid != ''}
				<tr>
					<td width="571">
						<span class="errors">{mylang mkey='errormsgs' skey=$smarty.get.errid}</span>
					</td>
				</tr>
				<tr><td> </td></tr>
				{/if}
				<tr>
					<td class="module_detail" width="571">
						<table width="571" border="0" cellpadding="0" cellspacing="0" style="height:23px">
							<tr>
								<td width="77"><img src="{$image_dir}blue_window_3_bars.jpg" width="77" height="25" alt="" /></td>
								<td class="module_head" width="494">
								{lang mkey='sincelastlogin_hdr'}
								</td>
							</tr>
						</table>
					{if $smarty.session.expired == '1'}
						<table width="571" border="0" cellpadding="{$config.cellpadding}"  cellspacing="{$config.cellspacing}" style="height:23px">
							<tr>
								<td width="6"> </td>
								<td width="494">
									<span class="subhead"><font class="errors">{lang mkey='expired'}</font>
									</span>
								</td>
							</tr>
						</table>
					{/if}

						<table  width="571" cellpadding="{$config.cellpadding}"  cellspacing="{$config.cellspacing}" border="0">
							<tr class="oddrow">
								<td width="42%">
									{lang mkey='current_mship_level'}
								</td>
								<td width="58%">
									{$curlevel}
								</td>
							</tr>
							<tr class="evenrow">
								<td width="42%">
									{lang mkey='expire_on'}:
								</td>
								<td width="58%">
									{$end_date}
								</td>
							</tr>
							<tr class="oddrow">
								<td width="42%">
									{lang mkey='expire_in'}:
								</td>
								<td width="58%">
									{$bal_days}
								</td>
							</tr>
							<tr class="evenrow">
								<td width="42%">
									<a href="mailmessages.php?messages=inbox">
									{lang mkey='newmessages'}</a>
								</td>
								<td width="58%">
									{$new_messages}
								</td>
							</tr>
							<tr class="oddrow">
								<td width="42%">
									<a href="listviewswinks.php?id={$smarty.session.UserId}&act=V">									{lang mkey='profileviewed'}</a>
								</td>
								<td width="58%">
									{$profile_views}
								</td>
							</tr>
							<tr class="evenrow">
								<td width="42%">
									<a href="listviewswinks.php?id={$smarty.session.UserId}&act=W">									{lang mkey='winks_received'}</a>
								</td>
								<td width="58%">
									{$winks}
								</td>
							</tr>
							<tr class="oddrow">
								<td width="42%">
									<a href="onlineusers.php">{lang mkey='online_users'}</a>
								</td>
								<td width="58%">
									{$online_users_count}
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
			<br />
{/if}
{ if $config.show_featured_profiles > 0 && $featured_profiles}
{* This is for showing the Featured Profiles  *}
			<table width="571" border="0" cellpadding="0" cellspacing="0" >
				<tr>
					<td class="module_detail" width="571">
						<table width="571" border="0" cellpadding="0" cellspacing="0" style="height:23px">
							<tr>
                <td width="77"><img src="{$image_dir}blue_window_3_bars.jpg" width="77" height="25" alt="" /></td>
								<td class="module_head" width="494">
								{lang mkey='featured_profiles'}
								</td>
							</tr>
						</table>

						<table  width="571" cellpadding="{$config.cellpadding}"  cellspacing="{$config.cellspacing}" border="0">
						{assign var="ccount" value="0"}
						{foreach item="item" key=key from=$featured_profiles}
							{if $ccount is div by 2}
								<tr>
							{/if}
								<td>{include file="userresultviewsmall.tpl"}</td>
							{if $ccount is not div by 2}
								</tr>
							{/if}
							{math equation="$ccount+1" assign="ccount"}
						{/foreach}
              {if $ccount is not div by 2}
                </tr>
              {/if}
						</table>

					</td>
				</tr>
			</table>
			
{ /if }Hallo
{if $config.list_newmembers > 0 && $newUsersList }
{* Now show the latest members names *}
			<table width="571" border="0" cellpadding="0" cellspacing="0" >
				<tr>
					<td class="module_detail" width="571">
						<table width="571" border="0" cellpadding="0" cellspacing="0" style="height:23px">Nun
							<tr>
                <td width="77"><img src="{$image_dir}blue_window_3_bars.jpg" width="77" height="25" alt="" /></td>
								<td class="module_head" width="494">
								{lang mkey='newmemberlist'} {*if $smarty.session.lastvisit ne ''} {lang mkey='since_last_login'}{/if*}



								</td>
							</tr>
						</table>

						<table  width="571" cellpadding="{$config.cellpadding}"  cellspacing="{$config.cellspacing}" border="0">

<tr>
<th>Datum</th>
<th>Veranstaltung</th>
<th>Ort</th>
</tr>

<tr>
<th>{php}echo "$datum1";{/php}</th>
<th>{php} echo "$veranstaltung1"; {/php}</th>
<th> {php} echo $ort1; {/php}</th>
</tr>

<tr>
<th>{php}echo $datum2;{/php}</th>
<th>{php}echo $veranstaltung2;{/php}</th>
<th>{php}echo $ort2;{/php}</th>
</tr>

<tr>
<th>{php}echo $datum3;{/php}</th>
<th>{php}echo $veranstaltung3;{/php}</th>
<th>{php}echo $ort3;{/php}</th>
</tr>

<tr>
<th>{php}echo $datum4; {/php}</th>
<th>{php}echo $veranstaltung4;{/php}</th>
<th>{php}echo $ort4;{/php}</th>
</tr>

<tr>
<th>{php}echo ($datum5);{/php}</th>
<th>{php}echo $veranstaltung5;{/php}</th>
<th>{php}echo $ort5;{/php}</th>
</tr>

<tr>
<th>{php}echo $datum6;{/php}</th>
<th>{php}echo $veranstaltung6;{/php}</th>
<th>{php}echo $ort6;{/php}</th>
</tr>

<tr>
<th>{php}echo $datum7;{/php}</th>
<th>{php}echo $veranstaltung7;{/php}</th>
<th>{php}echo $ort7;{/php}</th>
</tr>

<tr>
<th>{php}echo $datum8;{/php}</th>
<th>{php}echo $veranstaltung8;{/php}</th>
<th>{php}echo $ort8;{/php}</th>
</tr>

<tr>
<th>{php}echo $datum9;{/php}</th>
<th>{php}echo $veranstaltung9;{/php}</th>
<th>{php}echo $ort9;{/php}</th>
</tr>

<tr>
<th>{php}echo $datum10;{/php}</th>
<th>{php}echo $veranstaltung10;{/php}</th>
<th>{php}echo $ort10;{/php}</th>
</tr>

						</table>
					</td>
				</tr>
			</table>
			<br />
{/if}
{if $config.no_last_new_users > 0 && $users}
{* Now show newest profiles       *}
			<table width="571" border="0" cellpadding="0" cellspacing="0" >
				<tr>
					<td class="module_detail" width="571">

						<table width="571" border="0" cellpadding="0" cellspacing="0" style="height:23px">
							<tr>
                <td width="77"><img src="{$image_dir}blue_window_3_bars.jpg" width="77" height="25" alt="" /></td>
								<td class="module_head" width="494">
								{lang mkey='newest_profiles'} {*if $smarty.session.lastvisit ne ''} {lang mkey='since_last_login'}{/if*}
								</td>
							</tr>
						</table>

						<table  width="571" cellpadding="{$config.cellpadding}"  cellspacing="{$config.cellspacing}" border="0">
						{assign var="ccount" value="0"}
						{foreach item=item key=key from=$users}
							{if $ccount==0}
								<tr>
							{/if}
								<td>{include file="userresultviewsmall.tpl"}</td>
							{if $ccount==1}
								</tr>
							{/if}
							{math equation="$ccount+1" assign="ccount"}
							{math equation="$ccount%2" assign="ccount"}
						{/foreach}
						</table>

					</td>
				</tr>
			</table>
{/if}
		<br /><br />
		{$banner}
		</td>
	</tr>

</table>
{/strip}

Und der Code von extra.tpl

Code:
"1.Block"
{php}$datum1 = "27.05.2156"; {/php}        //Datum
{php}$veranstaltung1 = "Party"; {/php}    //Veranstaltung
{php}$ort1 = "Dortmund";{/php}         //Ort

"2.Block"
{php}$datum2 = "27.05.2156";{/php}
{php}$veranstaltung2 = "27.05.2156";{/php}
{php}$ort2 = "27.05.2156";{/php}

"3.Block"
$datum3 = "27.05.2156";
$veranstaltung3 = "27.05.2156";
$ort3 = "27.05.2156";

"4.Block"
$datum4 = "27.05.2156";
$veranstaltung4 = "27.05.2156";
$ort4 = "27.05.2156";

"5.Block"
$datum5 = "27.05.2156";
$veranstaltung5 = "27.05.2156";
$ort5 = "27.05.2156";

"6.Block"
$datum6 = "27.05.2156";
$veranstaltung6 = "27.05.2156";
$ort6 = "27.05.2156";

"7.Block"
$datum7 = "27.05.2156";
$veranstaltung7 = "27.05.2156";
$ort7 = "27.05.2156";

"8.Block"
$datum8 = "27.05.2156";
$veranstaltung8 = "27.05.2156";
$ort8 = "27.05.2156";

"9.Block"
$datum9 = "27.05.2156";
$veranstaltung9 = "27.05.2156";
$ort9 = "27.05.2156";

"10.Block"
$datum10 = "27.05.2156";
$veranstaltung10 = "27.05.2156";
$ort10 = "27.05.2156";


Könnte mir bitte jemand helfe ?

Danke im voraus

Gruß Hp-Ecke