Location: PHPKode > projects > PowerMovieList > powermovielist-0_14_beta/templates/index/date.tpl
{* 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!
  <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}"> 
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 $lastList != $Movie.ListID}
    » <b>{$Movie.ListTitle}</b><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>
  {foreach from=$IndexItems item=IndexItem}
    {if !$IndexItem.LoadOnly}
      {$IndexItem.ListHeader}: {$Movie[$IndexItem.Name]}<br>

{if !$MovieData}
  keine Einträge gefunden

Return current item: PowerMovieList