{* powermovielist index-page - group by date-template
* $Id: date.tpl,v 1.2 2006/01/19 18:20:24 niko Exp $ *}
{*
Don't modify this file, make a copy of it and select the template in the design-config.
More Information about the syntax on http://smarty.php.net/manual/en/.
If you created a cool template, please send it to us!
www.powermovielist.com
*}
<html>
<head>
<link REL="shortcut icon" HREF="image/divx.ico">
<title>PowerMovieList - {$ActiveList.title}</title>
<meta http-equiv="Content-Type" content="text/html; charset={$lang.LngCharSet}">
<link rel="stylesheet" href="css/{if $ActiveList.designcss}{$ActiveList.designcss}{else}default.css{/if}">
</head>
<body>
{*
this is a better alternative for date_old.tpl which doesn't need php in the template
to get it working right, set in design-config:
- "Index-Type" to "Entries from the last days sorted by Lists"
- "Nr items on the page/days to display" to 3 (if you want to display the new entries from the last days)
*}
{assign var="lastDate" value=""}{* default values *}
{assign var="lastList" value=""}
{foreach from=$MovieData item=Movie}
{if $lastDate != $Movie.DateAdded}
» Update vom {$Movie.DateAdded|date_format:"%d.%m.%Y"}<br><br>
{assign var="lastList" value=""}
{/if}
{if $lastList != $Movie.ListID}
» <b>{$Movie.ListTitle}</b><br>
{/if}
<br>
<a href='popup.php{$CFG.GlobalArgWOActive}Active={$Movie.ListName}&ID={$Movie.ID}' onClick="var popup=window.open(this.href,'infopopup','scrollbars=yes,resizable=yes,width=400,height=500'); popup.focus(); return false;">
<b>{$Movie.Title|default:""} {if $Movie.Year|default:""}({$Movie.Year}){/if}</b>
</a><br>
{foreach from=$IndexItems item=IndexItem}
{if !$IndexItem.LoadOnly}
{$IndexItem.ListHeader}: {$Movie[$IndexItem.Name]}<br>
{/if}
{/foreach}
{/foreach}
{if !$MovieData}
keine Einträge gefunden
{/if}
</body>
</html>