{if isset($content_list)}   {/if} {if isset($content_list) && $npages > 1} {form_start action='defaultadmin'} {$mod->Lang('page')}:  {form_end} {/if}
{form_start action='defaultadmin' id='listform'}
{* everything from here down is part of the ajax stuff *} {if isset($content_list)} {function do_content_row} {foreach $columns as $column => $flag} {if !$flag}{continue}{/if} {if $column == 'expand'} {if $row.expand == 'open'} {admin_icon icon='contract.gif' class="hier_contract"} {elseif $row.expand == 'closed'} {admin_icon icon='expand.gif' class="hier_expand"} {/if} {elseif $column == 'icon1'} {if isset($row.lock)} {admin_icon icon='warning.gif' title=$mod->Lang('title_locked')} {/if} {elseif $column == 'hier'} {$row.hier} {elseif $column == 'page'} {if $row.can_edit} {if $indent}{repeat string='-  ' times=$row.depth-2}{/if} {* the tooltip *} {capture assign='tooltip_pageinfo'}{strip} {$mod->Lang('prompt_content_id')}: {$row.id}
{$mod->Lang('prompt_title')}: {$row.title}
{$mod->Lang('prompt_name')}: {$row.menutext}
{if isset($row.alias)}{$mod->Lang('prompt_alias')}: {$row.alias}
{/if} {if $row.secure}{$mod->Lang('prompt_secure')}: {$mod->Lang('yes')}
{/if} {$mod->Lang('prompt_cachable')}: {if $row.cachable}{$mod->Lang('yes')}{else}{$mod->Lang('no')}{/if}
{$mod->Lang('prompt_showinmenu')}: {if $row.showinmenu}{$mod->Lang('yes')}{else}{$mod->Lang('no')}{/if} {/strip}{/capture} {$row.page|default:''} {else} {if isset($row.lock)} {capture assign='tooltip_lockinfo'}{strip} {if $row.can_steal}{$mod->Lang('locked_steal')}:
{/if} {$mod->Lang('locked_by')}: {$row.lockuser}
{$mod->Lang('locked_since')}: {$row.lock.created|date_format:'%x %H:%M'}
{if $row.lock.expires < $smarty.now} {$mod->Lang('lock_expired')}: {$row.lock.expires|relative_time} {else} {$mod->Lang('lock_expires')}: {$row.lock.expires|relative_time} {/if}
{/strip}{/capture} {if !$row.can_steal} {$row.page} {else} {$row.page} {/if} {else} {$row.page} {/if} {/if} {elseif $column == 'alias'} {$row.alias|default:''} {elseif $column == 'url'} {if $prettyurls_ok} {$row.url} {else} {$row.url} {/if} {elseif $column == 'template'} {if isset($row.template) && $row.template != ''} {if $row.can_edit_tpl} {$row.template} {else} {$row.template} {/if} {elseif $row.viewable} {$mod->Lang('critical_error')} {/if} {elseif $column == 'friendlyname'} {$row.friendlyname} {elseif $column == 'owner'} {capture assign='tooltip_ownerinfo'}{strip} {$mod->Lang('prompt_created')}: {$row.created|cms_date_format}
{$mod->Lang('prompt_lastmodified')}: {$row.lastmodified|cms_date_format}
{if isset($row.lastmodifiedby)} {$mod->Lang('prompt_lastmodifiedby')}: {$row.lastmodifiedby}
{/if} {/strip}{/capture} {$row.owner} {elseif $column == 'active'} {if $row.active == 'inactive'} {admin_icon icon='false.gif' title=$mod->Lang('prompt_page_setactive')} {else if $row.active != 'default' && $row.active != ''} {admin_icon icon='true.gif' title=$mod->Lang('prompt_page_setinactive')} {/if} {elseif $column == 'default'} {if $row.default == 'yes'} {admin_icon icon='true.gif' class='page_default' title=$mod->Lang('prompt_page_default')} {else if $row.default == 'no' && $row.can_edit} {admin_icon icon='false.gif' class='page_setdefault' title=$mod->Lang('prompt_page_setdefault')} {/if} {elseif $column == 'move'} {if isset($row.move)} {if $row.move == 'up'} {admin_icon icon='sort_up.gif' title=$mod->Lang('prompt_page_sortup')} {elseif $row.move == 'down'} {admin_icon icon='sort_down.gif' title=$mod->Lang('prompt_page_sortdown')} {elseif $row.move == 'both'} {admin_icon icon='sort_up.gif' title=$mod->Lang('prompt_page_sortup')} {admin_icon icon='sort_down.gif' title=$mod->Lang('prompt_page_sortdown')} {/if} {/if} {elseif $column == 'view'} {if $row.view != ''} {admin_icon icon='view.gif' title=$mod->Lang('prompt_page_view')} {/if} {elseif $column == 'copy'} {if $row.copy != ''} {admin_icon icon='copy.gif' class='page_copy' title=$mod->Lang('prompt_page_copy')} {/if} {elseif $column == 'edit'} {if $row.can_edit} {admin_icon icon='edit.gif' class='page_edit' title=$mod->Lang('prompt_page_edit')} {else} {if isset($row.lock) && $row.can_steal} {admin_icon icon='permissions.gif' class='page_edit steal_lock' title=$mod->Lang('prompt_steal_lock_edit')} {/if} {/if} {elseif $column == 'delete'} {if $row.can_delete && $row.delete != ''} {admin_icon icon='delete.gif' class='page_delete' title=$mod->Lang('prompt_page_delete')} {/if} {elseif $column == 'multiselect'} {if $row.multiselect != ''} {/if} {else} {* unknown column *} {/if} {/foreach} {/function} {* error container *} {strip} {foreach from=$columns key='column' item='flag'} {if $flag} {if $column == 'expand' or $column == 'hier' or $column == 'icon1' or $column == 'view' or $column == 'copy' or $column == 'edit' or $column == 'delete'}  {* no column header *} {elseif $column == 'multiselect'} {elseif $column == 'page'} {$colhdr_page} {else} {if ($have_locks == '1') && ($column == 'default' || $column == 'move')} ({$mod->Lang("colhdr_{$column}")}) {else} {$mod->Lang("colhdr_{$column}")} {/if} {/if} {/if} {/foreach} {foreach $content_list as $row} {cycle values="row1,row2" assign='rowclass'} {do_content_row row=$row columns=$columns} {/foreach}
{/strip} {/if}
{* #contentlist *} {if isset($content_list)}
{if $can_add_content}
{/if} {if $multiselect && isset($bulk_options)}
  
{/if}
{/if} {form_end}