PageRenderTime 42ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/ojs/ojs-2.1.0-1/cache/t_compile/%%29^291^29193AD4%%searchResults.tpl.php

https://github.com/mcrider/pkpUpgradeTestSuite
PHP | 168 lines | 157 code | 11 blank | 0 comment | 20 complexity | 8264d690f03deb7dcc2964ec6e0fcb1f MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1
  1. <?php /* Smarty version 2.6.12, created on 2006-02-03 13:26:41
  2. compiled from search/searchResults.tpl */ ?>
  3. <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  4. smarty_core_load_plugins(array('plugins' => array(array('function', 'translate', 'search/searchResults.tpl', 21, false),array('function', 'url', 'search/searchResults.tpl', 34, false),array('function', 'page_info', 'search/searchResults.tpl', 108, false),array('function', 'page_links', 'search/searchResults.tpl', 110, false),array('modifier', 'escape', 'search/searchResults.tpl', 21, false),array('modifier', 'strip_unsafe_html', 'search/searchResults.tpl', 87, false),array('modifier', 'to_array', 'search/searchResults.tpl', 89, false),array('block', 'iterate', 'search/searchResults.tpl', 77, false),)), $this); ?>
  5. <?php $this->assign('pageTitle', "search.searchResults"); ?>
  6. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  7. $this->_smarty_include(array('smarty_include_tpl_file' => "common/header.tpl", 'smarty_include_vars' => array()));
  8. $this->_tpl_vars = $_smarty_tpl_vars;
  9. unset($_smarty_tpl_vars);
  10. ?>
  11. <script type="text/javascript">
  12. <?php echo '
  13. <!--
  14. function ensureKeyword() {
  15. if (document.search.query.value == \'\') {
  16. alert('; ?>
  17. '<?php echo ((is_array($_tmp=$this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "search.noKeywordError"), $this))) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript'));?>
  18. '<?php echo ');
  19. return false;
  20. }
  21. document.search.submit();
  22. return true;
  23. }
  24. // -->
  25. '; ?>
  26. </script>
  27. <br/>
  28. <?php if ($this->_tpl_vars['basicQuery']): ?>
  29. <form method="post" name="search" action="<?php echo $this->_plugins['function']['url'][0][0]->smartyUrl(array('op' => 'results'), $this);?>
  30. ">
  31. <input type="text" size="40" maxlength="255" class="textField" name="query" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['basicQuery'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  32. "/>&nbsp;&nbsp;
  33. <input type="hidden" name="searchField" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['searchField'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  34. "/>
  35. <input type="submit" class="button defaultButton" onclick="ensureKeyword();" value="<?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.search"), $this);?>
  36. "/>
  37. </form>
  38. <br />
  39. <?php else: ?>
  40. <form name="revise" action="<?php echo $this->_plugins['function']['url'][0][0]->smartyUrl(array('op' => 'advanced'), $this);?>
  41. " method="post">
  42. <input type="hidden" name="query" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['query'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  43. "/>
  44. <input type="hidden" name="searchJournal" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['searchJournal'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  45. "/>
  46. <input type="hidden" name="author" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['author'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  47. "/>
  48. <input type="hidden" name="title" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['title'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  49. "/>
  50. <input type="hidden" name="fullText" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['fullText'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  51. "/>
  52. <input type="hidden" name="supplementaryFiles" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['supplementaryFiles'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  53. "/>
  54. <input type="hidden" name="discipline" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['discipline'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  55. "/>
  56. <input type="hidden" name="subject" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['subject'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  57. "/>
  58. <input type="hidden" name="type" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['type'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  59. "/>
  60. <input type="hidden" name="coverage" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['coverage'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  61. "/>
  62. <input type="hidden" name="dateFromMonth" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['dateFromMonth'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  63. "/>
  64. <input type="hidden" name="dateFromDay" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['dateFromDay'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  65. "/>
  66. <input type="hidden" name="dateFromYear" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['dateFromYear'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  67. "/>
  68. <input type="hidden" name="dateToMonth" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['dateToMonth'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  69. "/>
  70. <input type="hidden" name="dateToDay" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['dateToDay'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  71. "/>
  72. <input type="hidden" name="dateToYear" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['dateToYear'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  73. "/>
  74. </form>
  75. <a href="javascript:document.revise.submit()" class="action"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "search.reviseSearch"), $this);?>
  76. </a><br />&nbsp;
  77. <?php endif; ?>
  78. <?php if ($this->_tpl_vars['currentJournal']): ?>
  79. <?php $this->assign('numCols', 3); else: ?>
  80. <?php $this->assign('numCols', 4); endif; ?>
  81. <table width="100%" class="listing">
  82. <tr><td colspan="<?php echo $this->_tpl_vars['numCols']; ?>
  83. " class="headseparator">&nbsp;</td></tr>
  84. <tr class="heading" valign="bottom">
  85. <?php if (! $this->_tpl_vars['currentJournal']): ?><td width="20%"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "journal.journal"), $this);?>
  86. </td><?php endif; ?>
  87. <td width="<?php if (! $this->_tpl_vars['currentJournal']): ?>20%<?php else: ?>40%<?php endif; ?>"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "issue.issue"), $this);?>
  88. </td>
  89. <td width="60%" colspan="2"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "article.title"), $this);?>
  90. </td>
  91. </tr>
  92. <tr><td colspan="<?php echo $this->_tpl_vars['numCols']; ?>
  93. " class="headseparator">&nbsp;</td></tr>
  94. <?php $this->_tag_stack[] = array('iterate', array('from' => 'results','item' => 'result')); $_block_repeat=true;$this->_plugins['block']['iterate'][0][0]->smartyIterate($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); $this->assign('publishedArticle', $this->_tpl_vars['result']['publishedArticle']); $this->assign('article', $this->_tpl_vars['result']['article']); $this->assign('issue', $this->_tpl_vars['result']['issue']); $this->assign('issueAvailable', $this->_tpl_vars['result']['issueAvailable']); $this->assign('journal', $this->_tpl_vars['result']['journal']); $this->assign('section', $this->_tpl_vars['result']['section']); ?>
  95. <tr valign="top">
  96. <?php if (! $this->_tpl_vars['currentJournal']): ?><td><a href="<?php echo $this->_plugins['function']['url'][0][0]->smartyUrl(array('journal' => $this->_tpl_vars['journal']->getPath()), $this);?>
  97. "><?php echo ((is_array($_tmp=$this->_tpl_vars['journal']->getTitle())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  98. </a></td><?php endif; ?>
  99. <td><a href="<?php echo $this->_plugins['function']['url'][0][0]->smartyUrl(array('journal' => $this->_tpl_vars['journal']->getPath(),'page' => 'issue','op' => 'view','path' => $this->_tpl_vars['issue']->getBestIssueId($this->_tpl_vars['journal'])), $this);?>
  100. "><?php echo ((is_array($_tmp=$this->_tpl_vars['issue']->getIssueIdentification())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  101. </a></td>
  102. <td width="30%"><?php echo ((is_array($_tmp=$this->_tpl_vars['article']->getArticleTitle())) ? $this->_run_mod_handler('strip_unsafe_html', true, $_tmp) : String::stripUnsafeHtml($_tmp)); ?>
  103. </td>
  104. <td width="30%" align="right">
  105. <a href="<?php echo $this->_plugins['function']['url'][0][0]->smartyUrl(array('journal' => $this->_tpl_vars['journal']->getPath(),'page' => 'article','op' => 'view','path' => $this->_tpl_vars['publishedArticle']->getBestArticleId($this->_tpl_vars['journal'])), $this);?>
  106. " class="file"><?php if ($this->_tpl_vars['section']->getAbstractsDisabled()): echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "article.details"), $this); else: echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "article.abstract"), $this); endif; ?></a><?php if ($this->_tpl_vars['publishedArticle']->getAccessStatus() || $this->_tpl_vars['issueAvailable']): $_from = $this->_tpl_vars['publishedArticle']->getGalleys(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['galleyList'] = array('total' => count($_from), 'iteration' => 0);
  107. if ($this->_foreach['galleyList']['total'] > 0):
  108. foreach ($_from as $this->_tpl_vars['galley']):
  109. $this->_foreach['galleyList']['iteration']++;
  110. ?>&nbsp;<a href="<?php echo $this->_plugins['function']['url'][0][0]->smartyUrl(array('journal' => $this->_tpl_vars['journal']->getPath(),'page' => 'article','op' => 'view','path' => ((is_array($_tmp=$this->_tpl_vars['publishedArticle']->getBestArticleId($this->_tpl_vars['journal']))) ? $this->_run_mod_handler('to_array', true, $_tmp, $this->_tpl_vars['galley']->getGalleyId()) : $this->_plugins['modifier']['to_array'][0][0]->smartyToArray($_tmp, $this->_tpl_vars['galley']->getGalleyId()))), $this);?>
  111. " class="file"><?php echo ((is_array($_tmp=$this->_tpl_vars['galley']->getLabel())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  112. </a><?php endforeach; endif; unset($_from); endif; ?>
  113. </td>
  114. </tr>
  115. <tr>
  116. <td colspan="<?php echo $this->_tpl_vars['numCols']; ?>
  117. " style="padding-left: 30px;font-style: italic;">
  118. <?php $_from = $this->_tpl_vars['article']->getAuthors(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['authorList'] = array('total' => count($_from), 'iteration' => 0);
  119. if ($this->_foreach['authorList']['total'] > 0):
  120. foreach ($_from as $this->_tpl_vars['authorItem']):
  121. $this->_foreach['authorList']['iteration']++;
  122. ?>
  123. <?php echo ((is_array($_tmp=$this->_tpl_vars['authorItem']->getFullName())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); if (! ($this->_foreach['authorList']['iteration'] == $this->_foreach['authorList']['total'])): ?>,<?php endif; ?>
  124. <?php endforeach; endif; unset($_from); ?>
  125. </td>
  126. </tr>
  127. <tr><td colspan="<?php echo $this->_tpl_vars['numCols']; ?>
  128. " class="<?php if ($this->_tpl_vars['results']->eof()): ?>end<?php endif; ?>separator">&nbsp;</td></tr>
  129. <?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo $this->_plugins['block']['iterate'][0][0]->smartyIterate($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); if ($this->_tpl_vars['results']->wasEmpty()): ?>
  130. <tr>
  131. <td colspan="<?php echo $this->_tpl_vars['numCols']; ?>
  132. " class="nodata"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "search.noResults"), $this);?>
  133. </td>
  134. </tr>
  135. <tr><td colspan="<?php echo $this->_tpl_vars['numCols']; ?>
  136. " class="endseparator">&nbsp;</td></tr>
  137. <?php else: ?>
  138. <tr>
  139. <td <?php if (! $this->_tpl_vars['currentJournal']): ?>colspan="2" <?php endif; ?>align="left"><?php echo $this->_plugins['function']['page_info'][0][0]->smartyPageInfo(array('iterator' => $this->_tpl_vars['results']), $this);?>
  140. </td>
  141. <?php if ($this->_tpl_vars['basicQuery']): ?>
  142. <td colspan="2" align="right"><?php echo $this->_plugins['function']['page_links'][0][0]->smartyPageLinks(array('iterator' => $this->_tpl_vars['results'],'name' => 'search','query' => $this->_tpl_vars['basicQuery'],'searchField' => $this->_tpl_vars['searchField']), $this);?>
  143. </td>
  144. <?php else: ?>
  145. <td colspan="2" align="right"><?php echo $this->_plugins['function']['page_links'][0][0]->smartyPageLinks(array('iterator' => $this->_tpl_vars['results'],'name' => 'search','query' => $this->_tpl_vars['query'],'searchJournal' => $this->_tpl_vars['searchJournal'],'author' => $this->_tpl_vars['author'],'title' => $this->_tpl_vars['title'],'fullText' => $this->_tpl_vars['fullText'],'supplementaryFiles' => $this->_tpl_vars['supplementaryFiles'],'discipline' => $this->_tpl_vars['discipline'],'subject' => $this->_tpl_vars['subject'],'type' => $this->_tpl_vars['type'],'coverage' => $this->_tpl_vars['coverage'],'dateFromMonth' => $this->_tpl_vars['dateFromMonth'],'dateFromDay' => $this->_tpl_vars['dateFromDay'],'dateFromYear' => $this->_tpl_vars['dateFromYear'],'dateToMonth' => $this->_tpl_vars['dateToMonth'],'dateToDay' => $this->_tpl_vars['dateToDay'],'dateToYear' => $this->_tpl_vars['dateToYear']), $this);?>
  146. </td>
  147. <?php endif; ?>
  148. </tr>
  149. <?php endif; ?>
  150. </table>
  151. <p><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "search.syntaxInstructions"), $this);?>
  152. </p>
  153. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  154. $this->_smarty_include(array('smarty_include_tpl_file' => "common/footer.tpl", 'smarty_include_vars' => array()));
  155. $this->_tpl_vars = $_smarty_tpl_vars;
  156. unset($_smarty_tpl_vars);
  157. ?>