Viewing file: a99c3406027de06152ec8cbcbfeda32a987c61c5.file.search-result.tpl.php (6.27 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /* Smarty version Smarty3-RC3, created on 2012-06-05 00:11:51 compiled from "user/templates/searchinsite/search-result.tpl" */ ?> <?php /*%%SmartyHeaderCode:16636446954fcd24972a6c80-44106131%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( 'a99c3406027de06152ec8cbcbfeda32a987c61c5' => array ( 0 => 'user/templates/searchinsite/search-result.tpl', 1 => 1338844310, ), ), 'nocache_hash' => '16636446954fcd24972a6c80-44106131', 'function' => array ( ), 'has_nocache_code' => false, )); /*/%%SmartyHeaderCode%%*/?> <br>
<form name="searchinsite-form" method="get" action="/search">
<table class="search-form-table" align="center">
<tr>
<td><?php if ($_smarty_tpl->getVariable('ulang')->value=='ukr'){?>Пошуковий запит:<?php }else{ ?>Search query<?php }?>: </td>
<td><input name="text" type="text" size="60" value="<?php echo htmlspecialchars(stripslashes($_GET['text']));?> " /></td>
</tr>
<tr>
<td> </td>
<td><button type="submit"><?php if ($_smarty_tpl->getVariable('ulang')->value=='ukr'){?>Шукати<?php }else{ ?>Search<?php }?></button></td>
</tr>
</table>
</form><br>
<?php if (count($_smarty_tpl->getVariable('rows')->value)>0){?>
<?php echo $_smarty_tpl->getVariable('navigator')->value;?>
<table class="search-results-table" border="0" cellspacing="1">
<tr>
<th> </th>
<th><?php if ($_smarty_tpl->getVariable('ulang')->value=='ukr'){?>Назва сторінки<?php }else{ ?>Page name<?php }?></th>
</tr>
<?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']); $_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('rows')->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop); $_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['name'] = 'cycle'; $_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['show'] = true; $_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['loop']; $_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['step'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['loop']-1; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['show']) { $_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['loop']; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['total'] == 0) $_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['show'] = false; } else $_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['total'] = 0; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['show']):
for ($_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['iteration']++): $_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['iteration']; $_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['first'] = ($_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['iteration'] == 1); $_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['last'] = ($_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['cycle']['total']); ?>
<tr>
<td width="20" align="right" valign="top"><?php echo $_smarty_tpl->getVariable('rows')->value[$_smarty_tpl->getVariable('smarty')->value['section']['cycle']['index']]['number'];?> </td>
<td><a href="<?php echo $_smarty_tpl->getVariable('rows')->value[$_smarty_tpl->getVariable('smarty')->value['section']['cycle']['index']]['Link'];?> "><?php echo $_smarty_tpl->getVariable('rows')->value[$_smarty_tpl->getVariable('smarty')->value['section']['cycle']['index']]['Title'];?> | <?php echo $_smarty_tpl->getVariable('rows')->value[$_smarty_tpl->getVariable('smarty')->value['section']['cycle']['index']]['Module'];?> </a>
<?php if (isset($_smarty_tpl->getVariable('rows')->value[$_smarty_tpl->getVariable('smarty')->value['section']['cycle']['index']]['NewWindowLink'])){?>
<a target="_blank" href="<?php echo $_smarty_tpl->getVariable('rows')->value[$_smarty_tpl->getVariable('smarty')->value['section']['cycle']['index']]['NewWindowLink'];?> " title="<?php echo $_smarty_tpl->getVariable('ULANG')->value['SearchResultOpenInNewWindow'];?> "><img align="absmiddle" src="/user/icons/new-window.gif" /></a>
<?php }?>
<?php if (isset($_smarty_tpl->getVariable('rows')->value[$_smarty_tpl->getVariable('smarty')->value['section']['cycle']['index']]['Download'])){?>
<a target=_blank href=<?php echo $_smarty_tpl->getVariable('new_rows')->value[$_smarty_tpl->getVariable('i')->value]['Download'];?> title=Download><img align=absmiddle src=/user/icons/download.gif /></a>
<?php }?>
</td>
</tr>
<?php endfor; endif; ?>
</table>
<?php echo $_smarty_tpl->getVariable('navigator')->value;?>
<?php }else{ ?>
<div class="search-result-nothing"><?php echo $_smarty_tpl->getVariable('ULANG')->value['SearchNothingFound'];?> </div>
<?php }?>
|