Location: PHPKode > projects > Blandware AtLeap Lite - CMS on PHP > atleaplite/smarty/templates/browser/pages.tpl
{* Smarty template *}
{assign var="buttonsNumber" value="1"}
{assign var="columnsNumber" value=5}
{math assign="totalCells" equation="x+y" x=$columnsNumber y=$buttonsNumber}
<table border="0" cellpadding="0" cellspacing="0" class="grid" id="pageList">
    <tr class="filter">
    <form action="{buildUrl}" method="GET">
        {initFilters}
        <td>
            {textFilter colon='title'}
        </td>
        <td>
            {textFilter colon='identifier'}
        </td>
        <td>
            {filterValue colon='language' assign='languageFilter' escape=false}
            <select name="{filterName colon='language'}" class="form_filter">
                {html_options options=$languagesForSelect selected=$languageFilter}
            </select>
        </td>
        <td>
            {filterValue colon='layout' assign='layoutFilter' escape=false}
            <select name="{filterName colon='layout'}" class="form_filter">
                {html_options options=$layouts selected=$layoutFilter}
            </select>
        </td>
        <td>
            {*{filterValue colon='page_active' assign='page_activeFilter' escape=false}
            <select name="{filterName colon='page_active'}" class="form_filter_short">
                {html_options options=$allYesNoList selected=$page_activeFilter}
            </select>*}
        </td>
        <td align="center" colspan="{$buttonsNumber}"><input type="submit" value="{message key='common.button.filter'}" class="form_filter_button noTopBottomMargin"></td>
    </form>
    </tr>
    
    <tr>
        <th><a href="{sortLink colon='title'}">{message key='page.form.title'}</a></th>
        <th><a href="{sortLink colon='identifier'}">{message key='page.form.identifier'}</a></th>
        <th><a href="{sortLink colon='language'}">{message key='page.form.language'}</a></th>
        <th><a href="{sortLink colon='layout'}">{message key='page.form.layout'}</a></th>
        <th>{*<a href="{sortLink colon='page_active'}">*}{message key='page.form.active'}{*</a>*}</th>
        <th colspan="{$buttonsNumber}"></th>
    </tr>
    {if !$dataIsEmpty}
    {foreach name="mainLoop" from=$data item=page}
    {cycle name="pages" values="oddRow,evenRow" assign=parity}
    <tr class="{$parity}" onMouseOver="onMouseOverRow(this)" onMouseOut="onMouseOutRow(this)">
        <td>{$page->title|escape}</td>
        <td>{$page->identifier|escape}</td>
        {assign var=lang value=$page->language}
        <td>{message key="language.$lang"}</td>
        <td>{$page->getLayoutTitle()|escape}</td>
        <td>{$page->isActiveYesno()|escape}</td>
        <td class="gridIcon">
            <a href="javascript:sendUrl('{buildUrl identifier=$page->identifier friendly='page' language=$page->language}')" title="{message key='common.select'}">
                <img src="images/select.gif" border="0" alt="{message key='common.select'}">
            </a>
        </td>
    </tr>
    {/foreach}
    {else}
        <tr>
            <td class="tfoot" colspan="{$totalCells}" align="center">
                <em>{message key='page.message.nothing'}</em>
            </td>
        </tr>
    {/if}
</table>

{include file="after_grid.tpl"}
Return current item: Blandware AtLeap Lite - CMS on PHP