PageRenderTime 73ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms

/ojs/ojs-2.1.0-1/cache/t_compile/%%FF^FFF^FFF4BFA6%%editorDecision.tpl.php

https://github.com/mcrider/pkpUpgradeTestSuite
PHP | 163 lines | 142 code | 21 blank | 0 comment | 29 complexity | f8aa6ac4405fcacbf9908186ab56638e 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 sectionEditor/submission/editorDecision.tpl */ ?>
  3. <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  4. smarty_core_load_plugins(array('plugins' => array(array('function', 'translate', 'sectionEditor/submission/editorDecision.tpl', 13, false),array('function', 'url', 'sectionEditor/submission/editorDecision.tpl', 19, false),array('function', 'html_options_translate', 'sectionEditor/submission/editorDecision.tpl', 22, false),array('function', 'icon', 'sectionEditor/submission/editorDecision.tpl', 45, false),array('modifier', 'escape', 'sectionEditor/submission/editorDecision.tpl', 24, false),array('modifier', 'date_format', 'sectionEditor/submission/editorDecision.tpl', 35, false),array('modifier', 'assign', 'sectionEditor/submission/editorDecision.tpl', 44, false),array('modifier', 'count', 'sectionEditor/submission/editorDecision.tpl', 70, false),array('modifier', 'to_array', 'sectionEditor/submission/editorDecision.tpl', 73, false),)), $this); ?>
  5. <a name="editorDecision"></a>
  6. <h3><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "submission.editorDecision"), $this);?>
  7. </h3>
  8. <table width="100%" class="data">
  9. <tr valign="top">
  10. <td class="label" width="20%"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "editor.article.selectDecision"), $this);?>
  11. </td>
  12. <td width="80%" class="value" colspan="2">
  13. <form method="post" action="<?php echo $this->_plugins['function']['url'][0][0]->smartyUrl(array('op' => 'recordDecision'), $this);?>
  14. ">
  15. <input type="hidden" name="articleId" value="<?php echo $this->_tpl_vars['submission']->getArticleId(); ?>
  16. " />
  17. <select name="decision" size="1" class="selectMenu"<?php if (! $this->_tpl_vars['allowRecommendation']): ?> disabled="disabled"<?php endif; ?>>
  18. <?php echo $this->_plugins['function']['html_options_translate'][0][0]->smartyHtmlOptionsTranslate(array('options' => $this->_tpl_vars['editorDecisionOptions'],'selected' => $this->_tpl_vars['lastDecision']), $this);?>
  19. </select>
  20. <input type="submit" onclick="return confirm('<?php echo ((is_array($_tmp=$this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "editor.submissionReview.confirmDecision"), $this))) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript'));?>
  21. ')" name="submit" value="<?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "editor.article.recordDecision"), $this);?>
  22. " <?php if (! $this->_tpl_vars['allowRecommendation']): ?>disabled="disabled"<?php endif; ?> class="button" />
  23. <?php if (! $this->_tpl_vars['allowRecommendation']): ?><br /><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "editor.article.cannotRecord"), $this); endif; ?>
  24. </form>
  25. </td>
  26. </tr>
  27. <tr valign="top">
  28. <td class="label"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "editor.article.decision"), $this);?>
  29. </td>
  30. <td class="value" colspan="2">
  31. <?php $_from = $this->_tpl_vars['submission']->getDecisions($this->_tpl_vars['round']); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  32. foreach ($_from as $this->_tpl_vars['decisionKey'] => $this->_tpl_vars['editorDecision']):
  33. ?>
  34. <?php if ($this->_tpl_vars['decisionKey'] != 0): ?> | <?php endif; ?>
  35. <?php $this->assign('decision', $this->_tpl_vars['editorDecision']['decision']); ?>
  36. <?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => $this->_tpl_vars['editorDecisionOptions'][$this->_tpl_vars['decision']]), $this);?>
  37. &nbsp;&nbsp;<?php echo ((is_array($_tmp=$this->_tpl_vars['editorDecision']['dateDecided'])) ? $this->_run_mod_handler('date_format', true, $_tmp, $this->_tpl_vars['dateFormatShort']) : smarty_modifier_date_format($_tmp, $this->_tpl_vars['dateFormatShort'])); ?>
  38. <?php endforeach; else: ?>
  39. <?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.none"), $this);?>
  40. <?php endif; unset($_from); ?>
  41. </td>
  42. </tr>
  43. <tr valign="top">
  44. <td class="label"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "submission.notifyAuthor"), $this);?>
  45. </td>
  46. <td class="value" colspan="2">
  47. <?php echo ((is_array($_tmp=$this->_plugins['function']['url'][0][0]->smartyUrl(array('op' => 'emailEditorDecisionComment','articleId' => $this->_tpl_vars['submission']->getArticleId()), $this))) ? $this->_run_mod_handler('assign', true, $_tmp, 'notifyAuthorUrl') : $this->_plugins['modifier']['assign'][0][0]->smartyAssign($_tmp, 'notifyAuthorUrl'));?>
  48. <?php echo $this->_plugins['function']['icon'][0][0]->smartyIcon(array('name' => 'mail','url' => $this->_tpl_vars['notifyAuthorUrl']), $this);?>
  49. &nbsp;&nbsp;&nbsp;&nbsp;
  50. <?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "submission.editorAuthorRecord"), $this);?>
  51. <?php if ($this->_tpl_vars['submission']->getMostRecentEditorDecisionComment()): ?>
  52. <?php $this->assign('comment', $this->_tpl_vars['submission']->getMostRecentEditorDecisionComment()); ?>
  53. <a href="javascript:openComments('<?php echo $this->_plugins['function']['url'][0][0]->smartyUrl(array('op' => 'viewEditorDecisionComments','path' => $this->_tpl_vars['submission']->getArticleId(),'anchor' => $this->_tpl_vars['comment']->getCommentId()), $this);?>
  54. ');" class="icon"><?php echo $this->_plugins['function']['icon'][0][0]->smartyIcon(array('name' => 'comment'), $this);?>
  55. </a>&nbsp;&nbsp;<?php echo ((is_array($_tmp=$this->_tpl_vars['comment']->getDatePosted())) ? $this->_run_mod_handler('date_format', true, $_tmp, $this->_tpl_vars['dateFormatShort']) : smarty_modifier_date_format($_tmp, $this->_tpl_vars['dateFormatShort'])); ?>
  56. <?php else: ?>
  57. <a href="javascript:openComments('<?php echo $this->_plugins['function']['url'][0][0]->smartyUrl(array('op' => 'viewEditorDecisionComments','path' => $this->_tpl_vars['submission']->getArticleId()), $this);?>
  58. ');" class="icon"><?php echo $this->_plugins['function']['icon'][0][0]->smartyIcon(array('name' => 'comment'), $this);?>
  59. </a>
  60. <?php endif; ?>
  61. </td>
  62. </tr>
  63. </table>
  64. <form method="post" action="<?php echo $this->_plugins['function']['url'][0][0]->smartyUrl(array('op' => 'editorReview'), $this);?>
  65. " enctype="multipart/form-data">
  66. <input type="hidden" name="articleId" value="<?php echo $this->_tpl_vars['submission']->getArticleId(); ?>
  67. " />
  68. <?php $this->assign('authorFiles', $this->_tpl_vars['submission']->getAuthorFileRevisions($this->_tpl_vars['round'])); $this->assign('editorFiles', $this->_tpl_vars['submission']->getEditorFileRevisions($this->_tpl_vars['round'])); $this->assign('authorRevisionExists', false); $this->assign('editorRevisionExists', false); ?>
  69. <table class="data" width="100%">
  70. <?php $_from = $this->_tpl_vars['authorFiles']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  71. foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['authorFile']):
  72. ?>
  73. <tr valign="top">
  74. <?php if (! $this->_tpl_vars['authorRevisionExists']): ?>
  75. <?php $this->assign('authorRevisionExists', true); ?>
  76. <td width="20%" rowspan="<?php echo count($this->_tpl_vars['authorFiles']); ?>
  77. " class="label"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "submission.authorVersion"), $this);?>
  78. </td>
  79. <?php endif; ?>
  80. <td width="80%" class="value" colspan="3">
  81. <?php if ($this->_tpl_vars['lastDecision'] == SUBMISSION_EDITOR_DECISION_ACCEPT || $this->_tpl_vars['lastDecision'] == SUBMISSION_EDITOR_DECISION_RESUBMIT): ?><input type="radio" name="editorDecisionFile" value="<?php echo $this->_tpl_vars['authorFile']->getFileId(); ?>
  82. ,<?php echo $this->_tpl_vars['authorFile']->getRevision(); ?>
  83. " /> <?php endif; ?><a href="<?php echo $this->_plugins['function']['url'][0][0]->smartyUrl(array('op' => 'downloadFile','path' => ((is_array($_tmp=$this->_tpl_vars['submission']->getArticleId())) ? $this->_run_mod_handler('to_array', true, $_tmp, $this->_tpl_vars['authorFile']->getFileId(), $this->_tpl_vars['authorFile']->getRevision()) : $this->_plugins['modifier']['to_array'][0][0]->smartyToArray($_tmp, $this->_tpl_vars['authorFile']->getFileId(), $this->_tpl_vars['authorFile']->getRevision()))), $this);?>
  84. " class="file"><?php echo $this->_tpl_vars['authorFile']->getFileName(); ?>
  85. </a>&nbsp;&nbsp;
  86. <?php echo ((is_array($_tmp=$this->_tpl_vars['authorFile']->getDateModified())) ? $this->_run_mod_handler('date_format', true, $_tmp, $this->_tpl_vars['dateFormatShort']) : smarty_modifier_date_format($_tmp, $this->_tpl_vars['dateFormatShort'])); ?>
  87. </td>
  88. </tr>
  89. <?php endforeach; else: ?>
  90. <tr valign="top">
  91. <td width="20%" class="label"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "submission.authorVersion"), $this);?>
  92. </td>
  93. <td width="80%" colspan="3" class="nodata"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.none"), $this);?>
  94. </td>
  95. </tr>
  96. <?php endif; unset($_from); ?>
  97. <?php $_from = $this->_tpl_vars['editorFiles']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  98. foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['editorFile']):
  99. ?>
  100. <tr valign="top">
  101. <?php if (! $this->_tpl_vars['editorRevisionExists']): ?>
  102. <?php $this->assign('editorRevisionExists', true); ?>
  103. <td width="20%" rowspan="<?php echo count($this->_tpl_vars['editorFiles']); ?>
  104. " class="label"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "submission.editorVersion"), $this);?>
  105. </td>
  106. <?php endif; ?>
  107. <td width="50%" class="value" colspan="2">
  108. <?php if ($this->_tpl_vars['lastDecision'] == SUBMISSION_EDITOR_DECISION_ACCEPT || $this->_tpl_vars['lastDecision'] == SUBMISSION_EDITOR_DECISION_RESUBMIT): ?><input type="radio" name="editorDecisionFile" value="<?php echo $this->_tpl_vars['editorFile']->getFileId(); ?>
  109. ,<?php echo $this->_tpl_vars['editorFile']->getRevision(); ?>
  110. " /> <?php endif; ?><a href="<?php echo $this->_plugins['function']['url'][0][0]->smartyUrl(array('op' => 'downloadFile','path' => ((is_array($_tmp=$this->_tpl_vars['submission']->getArticleId())) ? $this->_run_mod_handler('to_array', true, $_tmp, $this->_tpl_vars['editorFile']->getFileId(), $this->_tpl_vars['editorFile']->getRevision()) : $this->_plugins['modifier']['to_array'][0][0]->smartyToArray($_tmp, $this->_tpl_vars['editorFile']->getFileId(), $this->_tpl_vars['editorFile']->getRevision()))), $this);?>
  111. " class="file"><?php echo $this->_tpl_vars['editorFile']->getFileName(); ?>
  112. </a>&nbsp;&nbsp;
  113. <?php echo ((is_array($_tmp=$this->_tpl_vars['editorFile']->getDateModified())) ? $this->_run_mod_handler('date_format', true, $_tmp, $this->_tpl_vars['dateFormatShort']) : smarty_modifier_date_format($_tmp, $this->_tpl_vars['dateFormatShort'])); ?>
  114. </td>
  115. <td width="30%" class="value"><a href="<?php echo $this->_plugins['function']['url'][0][0]->smartyUrl(array('op' => 'deleteArticleFile','path' => ((is_array($_tmp=$this->_tpl_vars['submission']->getArticleId())) ? $this->_run_mod_handler('to_array', true, $_tmp, $this->_tpl_vars['editorFile']->getFileId(), $this->_tpl_vars['editorFile']->getRevision()) : $this->_plugins['modifier']['to_array'][0][0]->smartyToArray($_tmp, $this->_tpl_vars['editorFile']->getFileId(), $this->_tpl_vars['editorFile']->getRevision()))), $this);?>
  116. " class="action"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.delete"), $this);?>
  117. </a></td>
  118. </tr>
  119. <?php endforeach; else: ?>
  120. <tr valign="top">
  121. <td width="20%" class="label"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "submission.editorVersion"), $this);?>
  122. </td>
  123. <td width="80%" colspan="3" class="nodata"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.none"), $this);?>
  124. </td>
  125. </tr>
  126. <?php endif; unset($_from); ?>
  127. </table>
  128. <div>
  129. <?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "editor.article.uploadEditorVersion"), $this);?>
  130. <input type="file" name="upload" class="uploadField" />
  131. <input type="submit" name="submit" value="<?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.upload"), $this);?>
  132. " class="button" />
  133. </div>
  134. <?php if ($this->_tpl_vars['lastDecision'] == SUBMISSION_EDITOR_DECISION_RESUBMIT): echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "editor.article.resubmitFileForPeerReview"), $this);?>
  135. <input type="submit" name="resubmit" <?php if (! ( $this->_tpl_vars['editorRevisionExists'] || $this->_tpl_vars['authorRevisionExists'] )): ?>disabled="disabled" <?php endif; ?>value="<?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "form.resubmit"), $this);?>
  136. " class="button" />
  137. <?php elseif ($this->_tpl_vars['lastDecision'] == SUBMISSION_EDITOR_DECISION_ACCEPT): echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "editor.article.sendFileToCopyedit"), $this);?>
  138. <input type="submit" <?php if (! ( $this->_tpl_vars['editorRevisionExists'] || $this->_tpl_vars['authorRevisionExists'] )): ?>disabled="disabled" <?php endif; ?>name="setCopyeditFile" value="<?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "form.send"), $this);?>
  139. " class="button" />
  140. <?php endif; ?>
  141. <div class="separator"></div>
  142. </form>