File: /var/www/ilya/data/www/irkboard.ru/cache/skin_cache/cacheid_2/skin_search.php
<?php
/*--------------------------------------------------*/
/* FILE GENERATED BY INVISION POWER BOARD 3 */
/* CACHE FILE: Skin set id: 2 */
/* CACHE FILE: Generated: Wed, 19 Aug 2009 21:44:39 GMT */
/* DO NOT EDIT DIRECTLY - THE CHANGES WILL NOT BE */
/* WRITTEN TO THE DATABASE AUTOMATICALLY */
/*--------------------------------------------------*/
class skin_search_2 {
/**
* Construct
*/
function __construct( ipsRegistry $registry )
{
/* Make object */
$this->registry = $registry;
$this->DB = $this->registry->DB();
$this->settings =& $this->registry->fetchSettings();
$this->request =& $this->registry->fetchRequest();
$this->lang = $this->registry->getClass('class_localization');
$this->member = $this->registry->member();
$this->memberData =& $this->registry->member()->fetchMemberData();
$this->cache = $this->registry->cache();
$this->caches =& $this->registry->cache()->fetchCaches();
}
/* -- activePostsView --*/
function activePostsView($results, $pagination, $total) {
$IPBHTML = "";
$IPBHTML .= "<activecontent>
<total>{$total}</total>
" . (($total) ? ("
<results>
".$this->__f__b328f16d4ab588bf8ea42ebd9bdb13ab($results,$pagination,$total)." </results>
") : ("")) . "
{$pagination}
</activecontent>";
return $IPBHTML;
}
function __f__b328f16d4ab588bf8ea42ebd9bdb13ab($results, $pagination, $total)
{
$_ips___x_retval = '';
foreach( $results as $result )
{
$_ips___x_retval .= "
{$result['html']}
";
}
$_ips___x_retval .= '';
return $_ips___x_retval;
}
/* -- calEventRangedSearchResult --*/
function calEventRangedSearchResult($r, $resultAsTitle=false) {
$IPBHTML = "";
$IPBHTML .= "<result>
<icon>{$this->settings['public_dir']}style_extra/app_icons/calendar.png</icon>
<type>Calendar Ranged Event</type>
<url>" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "app=calendar&module=calendar&cal_id={$r['type_id']}&do=showevent&event_id={$r['type_id_2']}&hl={$this->request['search_term']}", 'public','' ), "", "" ) . "</url>
<title><![CDATA[{$r['content_title']} (" . $this->registry->getClass('class_localization')->getDate($r['updated'],"short", 0) . " to " . $this->registry->getClass('class_localization')->getDate($r['misc'],"short", 0) . ")]]></title>
<content><![CDATA[{$r['content']}]]></content>
<date>" . $this->registry->getClass('class_localization')->getDate($r['updated'],"short", 0) . "</date>
<user>
<id>{$r['member_id']}</id>
<name>{$r['members_display_name']}</name>
<url>" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "showuser={$r['member_id']}", 'public','' ), "", "" ) . "</url>
</user>
</result>";
return $IPBHTML;
}
/* -- calEventSearchResult --*/
function calEventSearchResult($r, $resultAsTitle=false) {
$IPBHTML = "";
$IPBHTML .= "<result>
<icon>{$this->settings['public_dir']}style_extra/app_icons/calendar.png</icon>
<type>Calendar Event</type>
<url>" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "app=calendar&module=calendar&cal_id={$r['type_id']}&do=showevent&event_id={$r['type_id_2']}&hl={$this->request['search_term']}", 'public','' ), "", "" ) . "</url>
<title><![CDATA[{$r['content_title']}]]></title>
<content><![CDATA[{$r['content']}]]></content>
<date>" . $this->registry->getClass('class_localization')->getDate($r['updated'],"short", 0) . "</date>
<user>
<id>{$r['member_id']}</id>
<name>{$r['members_display_name']}</name>
<url>" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "showuser={$r['member_id']}", 'public','' ), "", "" ) . "</url>
</user>
</result>";
return $IPBHTML;
}
/* -- forumAdvancedSearchFilters --*/
function forumAdvancedSearchFilters($forums) {
$IPBHTML = "";
$IPBHTML .= "<fieldset id='app_filter_forums' class='" . IPSLib::next( $this->registry->templateStriping["search"] ) . " extra_filter'>
<ul>
<li>
<label for='forums_filter'>Find in <strong>forum</strong>:</label>
<select name='search_app_filters[forums][]' class='input_select' size='6' multiple='multiple'>
{$forums}
</select>
</li>
</ul>
</fieldset>";
return $IPBHTML;
}
/* -- forumSearchResult --*/
function forumSearchResult($r, $resultAsTitle=false) {
$IPBHTML = "";
$IPBHTML .= "<result>
<icon>{$this->settings['public_dir']}style_extra/app_icons/comments.png</icon>
<type>Forum</type>
<url>" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "showforum={$r['type_id']}", 'public','' ), "", "" ) . "</url>
<title><![CDATA[{$r['content_title']}]]></title>
<content><![CDATA[{$r['content']}]]></content>
<date>" . $this->registry->getClass('class_localization')->getDate($r['updated'],"short", 0) . "</date>
<user>
<id>{$r['member_id']}</id>
<name>{$r['members_display_name']}</name>
<url>" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "showuser={$r['member_id']}", 'public','' ), "", "" ) . "</url>
</user>
</result>";
return $IPBHTML;
}
/* -- galleryCommentSearchResult --*/
function galleryCommentSearchResult($r, $resultAsTitle=false) {
$IPBHTML = "";
$IPBHTML .= "<result>
<icon>{$this->settings['public_dir']}style_extra/app_icons/gallery.png</icon>
<type>Gallery Comment</type>
<url>" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "app=gallery&module=images&img={$r['misc']}&hl={$this->request['search_term']}", 'public','' ), "", "" ) . "</url>
<title><![CDATA[{$r['content_title']}]]></title>
<content><![CDATA[{$r['content']}]]></content>
<date>" . $this->registry->getClass('class_localization')->getDate($r['updated'],"short", 0) . "</date>
<user>
<id>{$r['member_id']}</id>
<name>{$r['members_display_name']}</name>
<url>" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "showuser={$r['member_id']}", 'public','' ), "", "" ) . "</url>
</user>
</result>";
return $IPBHTML;
}
/* -- galleryImageSearchResult --*/
function galleryImageSearchResult($r, $resultAsTitle=false) {
$IPBHTML = "";
$IPBHTML .= "<result>
<icon>{$this->settings['public_dir']}style_extra/app_icons/gallery.png</icon>
<type>Gallery Image</type>
<url>" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "app=gallery&module=images&img={$r['type_id_2']}&hl={$this->request['search_term']}", 'public','' ), "", "" ) . "</url>
<title><![CDATA[{$r['content_title']}]]></title>
<content><![CDATA[{$r['content']}]]></content>
<date>" . $this->registry->getClass('class_localization')->getDate($r['updated'],"short", 0) . "</date>
<user>
<id>{$r['member_id']}</id>
<name>{$r['members_display_name']}</name>
<url>" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "showuser={$r['member_id']}", 'public','' ), "", "" ) . "</url>
</user>
</result>";
return $IPBHTML;
}
/* -- helpSearchResult --*/
function helpSearchResult($r, $resultAsTitle=false) {
$IPBHTML = "";
$IPBHTML .= "<result>
<icon>{$this->settings['public_dir']}style_extra/app_icons/core.png</icon>
<type>Help File</type>
<url>" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "app=core&module=help&do=01&HID={$r['type_id_2']}&hl={$this->request['search_term']}", 'public','' ), "", "" ) . "</url>
<title><![CDATA[{$r['content_title']}]]></title>
<content><![CDATA[{$r['content']}]]></content>
<date>" . $this->registry->getClass('class_localization')->getDate($r['updated'],"short", 0) . "</date>
<user>
<id>{$r['member_id']}</id>
<name>{$r['members_display_name']}</name>
<url>" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "showuser={$r['member_id']}", 'public','' ), "", "" ) . "</url>
</user>
</result>";
return $IPBHTML;
}
/* -- memberSearchResult --*/
function memberSearchResult($r, $resultAsTitle=false) {
$IPBHTML = "";
$IPBHTML .= "<result>
<icon>{$this->settings['public_dir']}style_extra/app_icons/members.png</icon>
<type>Member</type>
<url>" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "showuser={$r['type_id_2']}", 'public','' ), "", "" ) . "</url>
<title><![CDATA[{$r['content_title']}]]></title>
<content><![CDATA[{$r['content']}]]></content>
<date>" . $this->registry->getClass('class_localization')->getDate($r['updated'],"short", 0) . "</date>
<user>
<id>{$r['member_id']}</id>
<name>{$r['members_display_name']}</name>
<url>" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "showuser={$r['member_id']}", 'public','' ), "", "" ) . "</url>
</user>
</result>";
return $IPBHTML;
}
/* -- newPostsView --*/
function newPostsView($results, $pagination, $total) {
$IPBHTML = "";
$IPBHTML .= "<newcontent>
<total>{$total}</total>
" . (($total) ? ("
<results>
".$this->__f__fa6af52c94c8f79ddae9875d2222830c($results,$pagination,$total)." </results>
") : ("")) . "
{$pagination}
</newcontent>";
return $IPBHTML;
}
function __f__fa6af52c94c8f79ddae9875d2222830c($results, $pagination, $total)
{
$_ips___x_retval = '';
foreach( $results as $result )
{
$_ips___x_retval .= "
{$result['html']}
";
}
$_ips___x_retval .= '';
return $_ips___x_retval;
}
/* -- searchAdvancedForm --*/
function searchAdvancedForm($filters='', $msg='', $removed_search_terms=array()) {
$IPBHTML = "";
$IPBHTML .= "";
return $IPBHTML;
}
/* -- searchResults --*/
function searchResults($results, $pagination, $total, $showing, $search_term, $url_string, $current_key, $removed_search_terms=array()) {
$IPBHTML = "";
$IPBHTML .= "<search>
<term>{$search_term}</term>
<total>{$total}</total>
" . (($total) ? ("
<results>
".$this->__f__f742b2681cf5fdc7c1121f67b2d7361d($results,$pagination,$total,$showing,$search_term,$url_string,$current_key,$removed_search_terms)." </results>
") : ("")) . "
{$pagination}
</search>";
return $IPBHTML;
}
function __f__f742b2681cf5fdc7c1121f67b2d7361d($results, $pagination, $total, $showing, $search_term, $url_string, $current_key, $removed_search_terms=array())
{
$_ips___x_retval = '';
foreach( $results as $result )
{
$_ips___x_retval .= "
{$result['html']}
";
}
$_ips___x_retval .= '';
return $_ips___x_retval;
}
/* -- searchRowGenericFormat --*/
function searchRowGenericFormat($r, $resultAsTitle=false) {
$IPBHTML = "";
$IPBHTML .= "<result>
<icon>{$this->settings['public_dir']}style_extra/app_icons/core.png</icon>
<type>Content</type>
<url></url>
<title><![CDATA[{$r['content_title']}]]></title>
<content><![CDATA[{$r['content']}]]></content>
<date>" . $this->registry->getClass('class_localization')->getDate($r['updated'],"short", 0) . "</date>
<user>
<id>{$r['member_id']}</id>
<name>{$r['members_display_name']}</name>
<url>" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "showuser={$r['member_id']}", 'public','' ), "", "" ) . "</url>
</user>
</result>";
return $IPBHTML;
}
/* -- topicPostSearchResult --*/
function topicPostSearchResult($r, $indent, $resultAsTitle=false) {
$IPBHTML = "";
$IPBHTML .= "<result>
<icon>{$this->settings['public_dir']}style_extra/app_icons/forums.png</icon>
<type>Topic</type>
<url>" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "showtopic={$r['type_id_2']}&view=" . (($this->request['do']=='new_posts') ? ("getnewpost") : ("" . (($r['misc']) ? ("findpost&p={$r['misc']}") : ("")) . "")) . "&hl={$this->request['search_term']}&fromsearch=1", 'public','' ), "", "" ) . "</url>
<title><![CDATA[{$r['content_title']}]]></title>
<content><![CDATA[{$r['content']}]]></content>
" . (($r['_forum_trail']) ? ("
<forums>
".$this->__f__634a53adbc4f0648ee07c908cb0cbf75($r,$indent,$resultAsTitle)." </forums>
") : ("")) . "
<replies>{$r['posts']}</replies>
<attachments>{$r['topic_hasattach']}</attachments>
" . (($this->request['do'] == 'new_posts') ? ("
<date>" . $this->registry->getClass('class_localization')->getDate($r['last_post'],"short", 0) . "</date>
<user>
<id>{$r['last_poster_id']}</id>
<name>{$r['last_poster_name']}</name>
<url>" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "showuser={$r['last_poster_id']}", 'public','' ), "", "" ) . "</url>
</user>
") : ("
<date>" . $this->registry->getClass('class_localization')->getDate($r['updated'],"short", 0) . "</date>
<user>
<id>{$r['member_id']}</id>
<name>{$r['members_display_name']}</name>
<url>" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "showuser={$r['member_id']}", 'public','' ), "", "" ) . "</url>
</user>
")) . "
</result>";
return $IPBHTML;
}
function __f__634a53adbc4f0648ee07c908cb0cbf75($r, $indent, $resultAsTitle=false)
{
$_ips___x_retval = '';
foreach( $r['_forum_trail'] as $i => $f )
{
$_ips___x_retval .= "
<forum>
<url>" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "{$f[1]}", 'public','' ), "{$f[2]}", "showforum" ) . "</url>
<name>{$f[0]}</name>
</forum>
";
}
$_ips___x_retval .= '';
return $_ips___x_retval;
}
/* -- topicPostSearchResultAsForum --*/
function topicPostSearchResultAsForum($data, $childEntry=0, $resultAsTitle=false) {
$IPBHTML = "";
$this->registry->templateStriping['forumTable'] = array( FALSE, "row1","row2");
$IPBHTML .= "<tr class='" . IPSLib::next( $this->registry->templateStriping["forumTable"] ) . "' id='trow_{$data['tid']}'>
<td class='short altrow'>" . $this->registry->getClass('output')->getReplacement("{$data['_icon']}") . "</td>
<td>
{$data['prefix']}
" . (($data['topic_hasattach']) ? ("
<!-- SKINNOTE: This is the link for the attachments popup -->
<a href=\"{$this->settings['base_url']}app=forums&module=forums&section=attach&tid={$data['tid']}\" title=\"" . intval($data['topic_hasattach']) . " {$this->lang->words['topic_attach']}\">" . $this->registry->getClass('output')->getReplacement("t_attach") . "</a>
") : ("")) . "
" . ((!$resultAsTitle) ? ("
<strong>
") : ("")) . "
<a href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "showtopic={$data['type_id_2']}&view=" . (($this->request['do']=='new_posts' OR $this->request['do']=='active') ? ("getnewpost") : ("" . (($data['misc']) ? ("findpost&p={$data['misc']}") : ("")) . "")) . "&hl={$this->request['search_higlight']}&fromsearch=1", 'public','' ), "{$data['title_seo']}", "showtopic" ) . "' title='" . (($data['_shortTitle'] != $data['_longTitle']) ? ("{$data['_longTitle']}") : ("{$this->lang->words['view_result']}")) . "'>{$data['_shortTitle']}</a>
" . ((!$resultAsTitle) ? ("
</strong>
") : ("")) . "
" . ((isset( $data['pages'] ) AND is_array( $data['pages'] ) AND count( $data['pages'] )) ? ("
<ul class='mini_pagination'>
".$this->__f__7ebf9aae78bc3b3ce38320ffcc8eb366($data,$childEntry,$resultAsTitle)." </ul>
") : ("")) . "
" . (($data['description']) ? ("<br /><span class='desc'>{$data['description']}</span>") : ("")) . "
" . ((!$resultAsTitle) ? ("
<div class='message unspecific' style='background-image:none;padding-left:10px'>
<div style=\"width:30px;float:left\"><a href=\"" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "showtopic={$data['tid']}&view=findpost&p={$data['pid']}", 'public','' ), "{$data['title_seo']}", "showtopic" ) . "\">" . $this->registry->getClass('output')->getReplacement("snapback") . "</a></div>
{$data['content']}
</div>
") : ("")) . "
</td>
<td class='altrow'>
".$this->__f__8c68efff721ac44acd9a289374ad1dc2($data,$childEntry,$resultAsTitle)." </td>
<td class='short'>{$data['starter']}" . $this->registry->getClass('output')->getTemplate('global')->user_popup($data['starter_id'], $data['seo_first_name']) . "</td>
<td class='stats altrow'>
<ul>
<li>{$data['posts']} " . ((intval($data['posts']) == 1) ? ("{$this->lang->words['reply']}") : ("{$this->lang->words['replies']}")) . "</li>
<li class='views desc'>{$data['views']} {$this->lang->words['views']}</li>
</ul>
</td>
<td>
<ul class='last_post'>
<li>
<a href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "showtopic={$data['tid']}&view=getlastpost", 'public','' ), "{$data['title_seo']}", "showtopic" ) . "' title='{$this->lang->words['goto_last_post']}'>" . $this->registry->getClass('output')->getReplacement("f_lastpost") . "</a> <a href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "showtopic={$data['tid']}&view=getlastpost", 'public','' ), "{$data['title_seo']}", "showtopic" ) . "' title='{$this->lang->words['goto_last_post']}'>{$data['last_post']}</a>
</li>
<li>{$this->lang->words['forum_by']} {$data['last_poster']}" . $this->registry->getClass('output')->getTemplate('global')->user_popup($data['last_poster_id'], $data['seo_last_name']) . "</li>
</ul>
</td>
</tr>";
return $IPBHTML;
}
function __f__7ebf9aae78bc3b3ce38320ffcc8eb366($data, $childEntry=0, $resultAsTitle=false)
{
$_ips___x_retval = '';
foreach( $data['pages'] as $page )
{
$_ips___x_retval .= "
" . (($page['last']) ? ("
<li><a href=\"" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "showtopic={$data['tid']}&st={$page['st']}", 'public','' ), "{$data['title_seo']}", "showtopic" ) . "\" title='{$this->lang->words['topic_goto_page']} {$page['page']}'>{$page['page']} →</a></li>
") : ("
<li><a href=\"" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "showtopic={$data['tid']}&st={$page['st']}", 'public','' ), "{$data['title_seo']}", "showtopic" ) . "\" title='{$this->lang->words['topic_goto_page']} {$page['page']}'>{$page['page']}</a></li>
")) . "
";
}
$_ips___x_retval .= '';
return $_ips___x_retval;
}
function __f__8c68efff721ac44acd9a289374ad1dc2($data, $childEntry=0, $resultAsTitle=false)
{
$_ips___x_retval = '';
foreach( $data['_forum_trail'] as $i => $f )
{
$_ips___x_retval .= "
" . (($i+1 == count( $data['_forum_trail'] )) ? ("<a href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "{$f[1]}", 'public','' ), "{$f[2]}", "showforum" ) . "'>{$f[0]}</a>") : ("")) . "
";
}
$_ips___x_retval .= '';
return $_ips___x_retval;
}
/* -- topicPostSubresultWrap --*/
function topicPostSubresultWrap($content) {
$IPBHTML = "";
$IPBHTML .= "{$content}";
return $IPBHTML;
}
/* -- userPostsView --*/
function userPostsView($results, $pagination, $total) {
$IPBHTML = "";
$IPBHTML .= "<usercontent>
<total>{$total}</total>
" . (($total) ? ("
<results>
".$this->__f__da568fe1251c46a02a5e8fe82d7b8f61($results,$pagination,$total)." </results>
") : ("")) . "
{$pagination}
</usercontent>";
return $IPBHTML;
}
function __f__da568fe1251c46a02a5e8fe82d7b8f61($results, $pagination, $total)
{
$_ips___x_retval = '';
foreach( $results as $result )
{
$_ips___x_retval .= "
{$result['html']}
";
}
$_ips___x_retval .= '';
return $_ips___x_retval;
}
}
/*--------------------------------------------------*/
/* END OF FILE */
/*--------------------------------------------------*/
?>