All pastes #1224771 Raw Edit

Stuff

public text v1 · immutable
#1224771 ·published 2008-10-10 18:33 UTC
rendered paste body
{if $gPageChild}
<table cellpadding="0" cellspacing="0" style="width: auto">

{if isset($gPage.nNumPages) && $gPage.nNumPages > 1}
  <tr><td style="padding-bottom: 10px" colspan="2">
    <b>:</b>&nbsp;
{foreach from=$gPage.Pages item="nPage" key="n"}{assign var="n1" value=$n-1}
{if $nPage - $gPage.Pages.$n1 > 1}      ...
{/if}
      <a href="{$sRootUrl}{$gPage.sPath}/s-{math equation="(x-1)*y" x=$nPage y=$gPage.nRows}{$sPathSfx}">{
        if $nPage == $gPage.nCurPage}<b>{/if}{$nPage}{if $nPage == $gPage.nCurPage}</b>{/if}</a>
{/foreach}
  </td></tr>

{/if}
{foreach from=$gPageChild item="Page" name="forChild"}
{if file_exists("$sTemplatesDir./ChildOne/$sPageFile.tpl")}
{include file="ChildOne/$sPageFile.tpl"}
{else}
  <tr>
    <td class="SimpTable{$smarty.foreach.forChild.iteration%2}" style="padding: 5px; padding-left: 0px; width: 100%; vertical-align: top">
      {if $Page.dDate && $Page.dDate != "0000-00-00"}{$Page.dDate|date_format:"%d.%m.%y"}{if $Page.dTime && $Page.dTime != "00:00:00"} {$Page.dTime|date_format:"%H:%M"}{/if} - {/if}<b><a href="{$sRootUrl}{$Page.sPath}{$sPathSfx}">{$Page.sName}</a></b><br>
      {if $Page.sDesc}{$Page.sDesc|nl2br}<br>{/if}
    </td>
  </tr>
{/if}

{/foreach}
{if isset($gPage.nNumPages) && $gPage.nNumPages > 1}
  <tr><td style="padding-bottom: 10px" colspan="2"><br>
    <b>:</b>&nbsp;
{foreach from=$gPage.Pages item="nPage" key="n"}{assign var="n1" value=$n-1}
{if $nPage - $gPage.Pages.$n1 > 1}      ...
{/if}
      <a href="{$sRootUrl}{$gPage.sPath}/s-{math equation="(x-1)*y" x=$nPage y=$gPage.nRows}{$sPathSfx}">{
        if $nPage == $gPage.nCurPage}<b>{/if}{$nPage}{if $nPage == $gPage.nCurPage}</b>{/if}</a>
{/foreach}
{/if}
  </td></tr>

</table>
{/if}