158 lines
6.1 KiB
Smarty
158 lines
6.1 KiB
Smarty
|
|
{include file='header.tpl'}
|
||
|
|
|
||
|
|
|
||
|
|
<div class='page_header'>
|
||
|
|
{if $pagecat_languagevar_id}
|
||
|
|
{capture assign=cat_title}{lang_print id=$pagecat_languagevar_id}{/capture}
|
||
|
|
{lang_sprintf id=11010809 1=$cat_title}
|
||
|
|
{else}
|
||
|
|
{lang_print id=11010810}
|
||
|
|
{/if}
|
||
|
|
</div>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<table cellpadding='0' cellspacing='0' class='page_browse'>
|
||
|
|
<tr>
|
||
|
|
<td class='page_browse_leftside'>
|
||
|
|
{* START LEFT COLUMN *}
|
||
|
|
|
||
|
|
|
||
|
|
{* NO pages AT ALL *}
|
||
|
|
{if $pages|@count == 0}
|
||
|
|
<br>
|
||
|
|
<table cellpadding='0' cellspacing='0' align='center'>
|
||
|
|
<tr>
|
||
|
|
<td class='result'>
|
||
|
|
<!--<img src='./images/icons/bulb16.gif' border='0' class='icon' />-->
|
||
|
|
{lang_print id=11010811}
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
{else}
|
||
|
|
|
||
|
|
|
||
|
|
{* START page RESULTS *}
|
||
|
|
<div class="page_results">
|
||
|
|
{section name=page_loop loop=$pages}
|
||
|
|
{assign var='page_updated_at' value=$datetime->timezone($pages[page_loop].page_updated_ts, $global_timezone)}
|
||
|
|
{assign var=updated_at_dateformat value="`$setting.setting_dateformat`, `$setting.setting_timeformat`"}
|
||
|
|
|
||
|
|
<div class='page_result'>
|
||
|
|
<div class='page_result_title'><a href="{$url->url_create('page', $pages[page_loop].page_key)}">{$pages[page_loop].page_name}</a></div>
|
||
|
|
<div class='page_result_meta'>{lang_sprintf id=11010812 1=$datetime->cdate("`$updated_at_dateformat`", $page_updated_at)}
|
||
|
|
- {lang_print id=11010813} <a href="browse_pages.php?cat_id={$pages[page_loop].page_pagecat_id}">{lang_print id=$pages[page_loop].pagecat_title}</a>
|
||
|
|
</div>
|
||
|
|
<div class='page_result_body'>
|
||
|
|
{* $pages[page_loop].page_content_body|strip_tags|truncate:350:"...":true *}
|
||
|
|
{$pages[page_loop].page_content_body}
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
{/section}
|
||
|
|
</div>
|
||
|
|
{* END page RESULTS *}
|
||
|
|
|
||
|
|
{* DISPLAY PAGINATION MENU IF APPLICABLE *}
|
||
|
|
{if $maxpage > 1}
|
||
|
|
<div class='page_pages_bottom'>
|
||
|
|
{if $p != 1}<a href='browse_pages.php?cat_id={$cat_id}&keyword={$keyword}&p={math equation="p-1" p=$p}'>« {lang_print id=182}</a>{else}« {lang_print id=182}{/if}
|
||
|
|
|
|
||
|
|
{if $p_start == $p_end}
|
||
|
|
<b>{lang_sprintf id=184 1=$p_start 2=$total_pages}</b>
|
||
|
|
{else}
|
||
|
|
<b>{lang_sprintf id=185 1=$p_start 2=$p_end 3=$total_pages}</b>
|
||
|
|
{/if}
|
||
|
|
|
|
||
|
|
{if $p != $maxpage}<a href='browse_pages.php?cat_id={$cat_id}&keyword={$keyword}&p={math equation="p+1" p=$p}'>{lang_print id=183} »</a>{else}{lang_print id=183} »{/if}
|
||
|
|
</div>
|
||
|
|
{/if}
|
||
|
|
|
||
|
|
{/if}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
{* END LEFT COLUMN *}
|
||
|
|
</td>
|
||
|
|
<td class='page_browse_rightside'>
|
||
|
|
{* START RIGHT COLUMN *}
|
||
|
|
|
||
|
|
<form action="browse_pages.php?cat_id={$cat_id}">
|
||
|
|
<div class='page_result_preference'>
|
||
|
|
{lang_print id=11010814}
|
||
|
|
<input type='text' name='keyword' size='10' value='{$keyword}' />
|
||
|
|
<input type='submit' value='{lang_print id=11010815}' />
|
||
|
|
</div>
|
||
|
|
</form>
|
||
|
|
<div class='page_result_preference'>
|
||
|
|
{lang_print id=11010816}
|
||
|
|
<select name='s' class="small" onchange="window.location.href='browse_pages.php?cat_id={$cat_id}&keyword={$keyword}&s='+this.options[this.selectedIndex].value;">
|
||
|
|
<option value='title'{if $s == "title"} SELECTED{/if}>{lang_print id=11010817}</option>
|
||
|
|
<option value='created'{if $s == "created"} SELECTED{/if}>{lang_print id=11010818}</option>
|
||
|
|
<option value='updated'{if $s == "updated"} SELECTED{/if}>{lang_print id=11010819}</option>
|
||
|
|
</select>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
|
||
|
|
{* START BROWSE BY CATEGORY *}
|
||
|
|
|
||
|
|
{* CATEGORY JAVASCRIPT *}
|
||
|
|
{literal}
|
||
|
|
<script type="text/javascript">
|
||
|
|
<!--
|
||
|
|
// ADD ABILITY TO MINIMIZE/MAXIMIZE CATS
|
||
|
|
var cat_minimized = new Hash.Cookie('cat_cookie', {duration: 3600});
|
||
|
|
//-->
|
||
|
|
</script>
|
||
|
|
{/literal}
|
||
|
|
<div class='page_categories'>
|
||
|
|
|
||
|
|
<div class='page_category_main'>
|
||
|
|
<a href='browse_pages.php'>{lang_print id=11010820}</a>
|
||
|
|
</div>
|
||
|
|
{section name=cat_loop loop=$cats}
|
||
|
|
{capture assign=cat_title}{lang_print id=$cats[cat_loop].cat_title}{/capture}
|
||
|
|
{* CATEGORY JAVASCRIPT *}
|
||
|
|
{literal}
|
||
|
|
<script type="text/javascript">
|
||
|
|
<!--
|
||
|
|
window.addEvent('domready', function() {
|
||
|
|
if(cat_minimized.get({/literal}{$cats[cat_loop].cat_id}{literal}) == 1) {
|
||
|
|
$('subcats_{/literal}{$cats[cat_loop].cat_id}{literal}').style.display = '';
|
||
|
|
$('icon_{/literal}{$cats[cat_loop].cat_id}{literal}').src = './images/icons/minus16.gif';
|
||
|
|
}
|
||
|
|
});
|
||
|
|
//-->
|
||
|
|
</script>
|
||
|
|
{/literal}
|
||
|
|
|
||
|
|
<div class='page_category_item'>
|
||
|
|
<!--<img id='icon_{$cats[cat_loop].cat_id}' src='./images/icons/{if $cats[cat_loop].subcats|@count >--> 0 && $cats[cat_loop].subcats != ""}plus16{else}minus16_disabled{/if}.gif' {if $cats[cat_loop].subcats|@count > 0 && $cats[cat_loop].subcats != ""}style='cursor: pointer;' onClick="if($('subcats_{$cats[cat_loop].cat_id}').style.display == 'none') {literal}{{/literal} $('subcats_{$cats[cat_loop].cat_id}').style.display = ''; this.src='./images/icons/minus16.gif'; cat_minimized.set({$cats[cat_loop].cat_id}, 1); {literal}} else {{/literal} $('subcats_{$cats[cat_loop].cat_id}').style.display = 'none'; this.src='./images/icons/plus16.gif'; cat_minimized.set({$cats[cat_loop].cat_id}, 0); {literal}}{/literal}"{/if} border='0' class='icon'>
|
||
|
|
<a href='browse_pages.php?cat_id={$cats[cat_loop].cat_id}'>{lang_print id=$cats[cat_loop].cat_title}</a>
|
||
|
|
<div class='page_category_subcats' id='subcats_{$cats[cat_loop].cat_id}' style='display: none;'>
|
||
|
|
{section name=subcat_loop loop=$cats[cat_loop].subcats}
|
||
|
|
{capture assign=cat_title}{lang_print id=$cats[cat_loop].subcats[subcat_loop].subcat_title}{/capture}
|
||
|
|
<div><img src='./images/trans.gif' border='0' class='icon' style='width: 16px;'>
|
||
|
|
<a href='browse_pages.php?cat_id={$cats[cat_loop].subcats[subcat_loop].subcat_id}'>{lang_print id=$cats[cat_loop].subcats[subcat_loop].subcat_title}</a>
|
||
|
|
</div>
|
||
|
|
{/section}
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
{/section}
|
||
|
|
</div>
|
||
|
|
{* END BROWSE BY CATEGORY *}
|
||
|
|
|
||
|
|
|
||
|
|
{* END RIGHT COLUMN *}
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
{include file='footer.tpl'}
|