Location: PHPKode > projects > PowerMovieList > powermovielist-0_14_beta/templates/index/index.tpl
{* powermovielist index-page default template 
 * $Id: index.tpl,v 1.8 2006/01/01 11:32:27 niko Exp $ *}
{*
Don't modify this file, make a copy of it and save it under a different name, you can select the template then 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>

<table width="100%" border="0">
  <tr> 
    <td width="90%" height="211" align="center">{if $ActiveList.image}<img src="image/logos/{$ActiveList.image}"><br>{/if}
        <h3><b>{$ActiveList.title}</b><br>
        <a href="{$ActiveList.url}">{$ActiveList.urlname}</a></h3>
    </td>
    <td align="right"> 
      <table border="0" cellpadding="5" cellspacing="1" class="tblback">
        <tr class="row1"> 
          {if $CFG.LinkListType > 0 && $CFG.ListType < 2}
          <td align="center"><div align="center">{$lang.strAvLists}:</div></td>
	  {/if}
          <td align="center"><div align="center">{$lang.strMenu}:</div></td>
	  {if $ActiveList.showcounter}
          <td><div align="center">{$lang.strCounterTitle}:</div></td>
	  {/if}
	  {if $CFG.UseStatistics}
          <td align="center"><div align="center">{$lang.strStatistics}:</div></td>
	  {/if}
        </tr>
        <tr class="row1"> 
{* LINKLIST *}
	  {if $CFG.LinkListType > 0 && $CFG.ListType < 2}
          <td valign="top">	    	    
          {include file="linklist.tpl"}
	      </td>
	  {/if}
          <td valign="top">
	    {cycle values="row1,row2" print=false advance=true}
	    <table width="100%" border="0" cellpadding="3">
              <tr class="{cycle}"> 
                <td align="right" width="50%">{$lang.strLoggedIn}:</td>
                <td width="50%">{insert name="ActiveUserName"}</td>
              </tr>
              <tr class="{cycle}"> 
                <td align="left" nowrap><div align="right">{$lang.strRights}:</div></td>
                <td align="left" nowrap>{insert name="ActiveUserRights"}</td>
              </tr>
	      {insert name="UserMenu" design="<tr class='_row'><td colspan='2' align='left' nowrap>[<a href='_Url'>_Text</a>]</td></tr>"}
            </table></td>
{if $ActiveList.showcounter}
          <td valign="top">
	    {cycle values="row1,row2" print=false advance=false}
	    <table width="100%" border="0" cellpadding="3">
              <tr class="{cycle}"> 
                <td align="right" width="50%">{$lang.strCounterTitle}:</td>
                <td width="50%">{insert name="CounterTotal"}</td>
              </tr>
              <tr class="{cycle}"> 
                <td align="right">{$lang.strOnline}:</td>
                <td>{insert name="CounterOnline"}</td>
              </tr>
              <tr class="{cycle}"> 
                <td align="right">{$lang.strCounterRekord}:</td>
                <td>{insert name="CounterMaxOnline"}</td>
              </tr>
              <tr class="{cycle}"> 
                <td align="center" colspan="2" nowrap><b>{$lang.strCounterOnlineNow}:</b></td>
              </tr>
							<tr class="{cycle}">
							  <td align="center" colspan="2">{insert name="OnlineUsers" design="<a href='_Url'>_Text</a>, "}{insert name="CounterGuestsOnline"} {$lang.strGuests}</td>
							</tr>
            </table>
{/if}
	  </td>
{if $CFG.UseStatistics}
          <td valign="top">
	    {cycle values="row1,row2" print=false advance=false}
	    <table width="100%" border="0" cellpadding="3">
              <tr class="{cycle}"> 
                <td align="right" width="50%">{$lang.strEntriesInAllLists}:</td>
                <td width="50%">{$Statistics.entries}</td>
              </tr>
              <tr class="{cycle}"> 
                <td align="right">{$lang.strAddedToday}:</td>
                <td>{$Statistics.addedtoday}</td>
              </tr>
              <tr class="{cycle}"> 
                <td align="right">{$lang.strAddedYesterday}:</td>
                <td>{$Statistics.addedyesterday}</td>
              </tr>
	      {if $Statistics.linksize}
              <tr class="{cycle}"> 
                <td align="right">{$lang.strSizeOfAllLinks}:</td>
                <td nowrap>{$Statistics.linksize}</td>
              </tr>
	      {/if}
	      {if $Statistics.downloaded}
              <tr class="{cycle}"> 
                <td align="right">{$lang.strDownloaded}:</td>
                <td nowrap>{$Statistics.downloaded}</td>
              </tr>
	      {/if}
              <tr class="{cycle}"> 
                <td align="right">{$lang.strUsers}:</td>
                <td>{$Statistics.users}</td>
              </tr>
              <tr class="{cycle}"> 
                <td align="right">{$lang.strLists}:</td>
                <td>{$Statistics.lists}</td>
              </tr>
            </table></td>
{/if}
        </tr>
      </table></td>
  </tr>
</table>
{include file="announcments.tpl"}
<br>
{cycle values="row1,row2" print=false advance=false}
<table width="100%" border="0" cellspacing="1" cellpadding="10" class="tblback">
  <tr class="top"> 
    <td colspan="4" align="center">
    - {$lang.strNewEntries} -
    </td>
  </tr>
{* the movie-data is printed out here - you can do almost anything with it :D just look at the
avaliable variables in $MovieData and at the smarty-syntax :D
write somewhere the line {debug output="html"} to get a list of all avaliable MovieData properties *}
{foreach from=$MovieData item=Movie}  
  <tr class='{cycle}'>
    <td wdith='120' align='center' valign='middle'>
      <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;">
        <img src='{if $Movie.Poster|default:""}{$Movie.Poster}{else}image/na.gif{/if}' width='100' height='150' border='0'>
      </a>
    </td>
    <td width='50%' valign='top'>
      <font size='2'><b>{$Movie.Title|default:""} {if $Movie.Year|default:""}({$Movie.Year}){/if}</b><br>
	  {foreach from=$IndexItems item=IndexItem}
		{if !$IndexItem.LoadOnly}
			{$IndexItem.ListHeader}: {$Movie[$IndexItem.Name]}<br>
		{/if}
	  {/foreach}
	  </font>
    </td>
    <td width='20%' align='center' valign='center'>
      <font size='2'>{$lang.strGoToTheList}:<br><a href='index.php{$CFG.GlobalArgWOActive}Active={$Movie.ListName}'>
      <b>{$Movie.ListTitle}</b></a><br><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>{$lang.strInfo}</b>
      </a></font>
    </td>
    <td width='30%' valign='top'>{if $Movie.Plot|default:""}<font size='2'><b>{$lang.strPlot}:</b></font><font size='1'><br>{$Movie.Plot|truncate:500:"..."}</font>{else}&nbsp;{/if}</td>
  </tr>
{/foreach}
  <tr class="top">
    <td colspan="4" align="center">
     {if $LastPageNr}<a href="{$CFG.GlobalArg}Page={$LastPageNr}">&lt; {$lang.strPrevPage}</a>{/if}
     {if $LastPageNr && $NextPageNr} | {/if}
     {if $NextPageNr}<a href="{$CFG.GlobalArg}Page={$NextPageNr}">{$lang.strNextPage} &gt;</a>{/if}
    </td>
  </tr>
</table>
Return current item: PowerMovieList