PageRenderTime 44ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

/ojs/ojs-2.0.2-1/templates/t_compile/%%CD^CD9^CD9F133B%%peerReviewComment.tpl.php

https://github.com/mcrider/pkpUpgradeTestSuite
PHP | 140 lines | 123 code | 17 blank | 0 comment | 15 complexity | 4754e2bb42c5f103de8e652557493901 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1
  1. <?php /* Smarty version 2.6.10, created on 2005-09-21 12:20:21
  2. compiled from submission/comment/peerReviewComment.tpl */ ?>
  3. <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  4. smarty_core_load_plugins(array('plugins' => array(array('modifier', 'ord', 'submission/comment/peerReviewComment.tpl', 21, false),array('modifier', 'chr', 'submission/comment/peerReviewComment.tpl', 23, false),array('modifier', 'date_format', 'submission/comment/peerReviewComment.tpl', 28, false),array('modifier', 'escape', 'submission/comment/peerReviewComment.tpl', 40, false),array('modifier', 'strip_unsafe_html', 'submission/comment/peerReviewComment.tpl', 46, false),array('modifier', 'nl2br', 'submission/comment/peerReviewComment.tpl', 46, false),array('function', 'translate', 'submission/comment/peerReviewComment.tpl', 23, false),array('function', 'fieldLabel', 'submission/comment/peerReviewComment.tpl', 73, false),)), $this); ?>
  5. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  6. $this->_smarty_include(array('smarty_include_tpl_file' => "submission/comment/header.tpl", 'smarty_include_vars' => array()));
  7. $this->_tpl_vars = $_smarty_tpl_vars;
  8. unset($_smarty_tpl_vars);
  9. ?>
  10. <table class="data" width="100%">
  11. <?php $_from = $this->_tpl_vars['articleComments']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  12. foreach ($_from as $this->_tpl_vars['comment']):
  13. ?>
  14. <tr valign="top">
  15. <td width="25%">
  16. <div class="commentRole">
  17. <?php if ($this->_tpl_vars['showReviewLetters'] && $this->_tpl_vars['comment']->getRoleId() == $this->_tpl_vars['reviewer']): ?>
  18. <?php $this->assign('start', ((is_array($_tmp='A')) ? $this->_run_mod_handler('ord', true, $_tmp) : ord($_tmp))); ?>
  19. <?php $this->assign('reviewId', $this->_tpl_vars['comment']->getAssocId()); ?>
  20. <?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => $this->_tpl_vars['comment']->getRoleName()), $this);?>
  21. <?php echo ((is_array($_tmp=$this->_tpl_vars['reviewLetters'][$this->_tpl_vars['reviewId']]+$this->_tpl_vars['start'])) ? $this->_run_mod_handler('chr', true, $_tmp) : chr($_tmp)); ?>
  22. <?php else: ?>
  23. <?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => $this->_tpl_vars['comment']->getRoleName()), $this);?>
  24. <?php endif; ?>
  25. </div>
  26. <div class="commentDate"><?php echo ((is_array($_tmp=$this->_tpl_vars['comment']->getDatePosted())) ? $this->_run_mod_handler('date_format', true, $_tmp, $this->_tpl_vars['datetimeFormatShort']) : smarty_modifier_date_format($_tmp, $this->_tpl_vars['datetimeFormatShort'])); ?>
  27. </div>
  28. <br />
  29. <div class="commentNote">
  30. <?php if ($this->_tpl_vars['comment']->getViewable()): ?>
  31. <?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "submission.comments.canShareWithAuthor"), $this);?>
  32. <?php else: ?>
  33. <?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "submission.comments.cannotShareWithAuthor"), $this);?>
  34. <?php endif; ?>
  35. </div>
  36. </td>
  37. <td width="75%">
  38. <?php if ($this->_tpl_vars['comment']->getAuthorId() == $this->_tpl_vars['userId'] && ! $this->_tpl_vars['isLocked']): ?>
  39. <div style="float: right"><a href="<?php echo $this->_tpl_vars['requestPageUrl']; ?>
  40. /editComment/<?php echo $this->_tpl_vars['articleId']; ?>
  41. /<?php echo $this->_tpl_vars['comment']->getCommentId(); ?>
  42. " class="action"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.edit"), $this);?>
  43. </a> <a href="<?php echo $this->_tpl_vars['requestPageUrl']; ?>
  44. /deleteComment/<?php echo $this->_tpl_vars['articleId']; ?>
  45. /<?php echo $this->_tpl_vars['comment']->getCommentId(); ?>
  46. " onclick="return confirm('<?php echo ((is_array($_tmp=$this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "submission.comments.confirmDelete"), $this))) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript'));?>
  47. ')" class="action"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.delete"), $this);?>
  48. </a></div>
  49. <?php endif; ?>
  50. <a name="<?php echo $this->_tpl_vars['comment']->getCommentId(); ?>
  51. "></a>
  52. <?php if ($this->_tpl_vars['comment']->getCommentTitle()): ?>
  53. <div class="commentTitle"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "submission.comments.subject"), $this);?>
  54. : <?php echo ((is_array($_tmp=$this->_tpl_vars['comment']->getCommentTitle())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  55. </div>
  56. <?php endif; ?>
  57. <div class="comments"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['comment']->getComments())) ? $this->_run_mod_handler('strip_unsafe_html', true, $_tmp) : $this->_plugins['modifier']['strip_unsafe_html'][0][0]->smartyStripUnsafeHtml($_tmp)))) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
  58. </div>
  59. </td>
  60. </tr>
  61. <?php endforeach; else: ?>
  62. <tr>
  63. <td class="nodata"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "submission.comments.noReviews"), $this);?>
  64. </td>
  65. </tr>
  66. <?php endif; unset($_from); ?>
  67. </table>
  68. <br />
  69. <br />
  70. <?php if (! $this->_tpl_vars['isLocked']): ?>
  71. <form method="post" action="<?php echo $this->_tpl_vars['requestPageUrl']; ?>
  72. /<?php echo $this->_tpl_vars['commentAction']; ?>
  73. ">
  74. <?php if ($this->_tpl_vars['hiddenFormParams']): ?>
  75. <?php $_from = $this->_tpl_vars['hiddenFormParams']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  76. foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['hiddenFormParam']):
  77. ?>
  78. <input type="hidden" name="<?php echo $this->_tpl_vars['key']; ?>
  79. " value="<?php echo $this->_tpl_vars['hiddenFormParam']; ?>
  80. " />
  81. <?php endforeach; endif; unset($_from); endif; ?>
  82. <a name="new"></a>
  83. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  84. $this->_smarty_include(array('smarty_include_tpl_file' => "common/formErrors.tpl", 'smarty_include_vars' => array()));
  85. $this->_tpl_vars = $_smarty_tpl_vars;
  86. unset($_smarty_tpl_vars);
  87. ?>
  88. <table class="data" width="100%">
  89. <tr valign="top">
  90. <td class="label"><?php echo $this->_plugins['function']['fieldLabel'][0][0]->smartyFieldLabel(array('name' => 'commentTitle','key' => "submission.comments.subject"), $this);?>
  91. </td>
  92. <td class="value"><input type="text" name="commentTitle" id="commentTitle" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['commentTitle'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  93. " size="50" maxlength="100" class="textField" /></td>
  94. </tr>
  95. <tr valign="top">
  96. <td class="label"><?php echo $this->_plugins['function']['fieldLabel'][0][0]->smartyFieldLabel(array('name' => 'authorComments'), $this); echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "submission.comments.forAuthorEditor"), $this);?>
  97. </td>
  98. <td class="value"><textarea id="authorComments" name="authorComments" rows="10" cols="50" class="textArea"><?php echo ((is_array($_tmp=$this->_tpl_vars['authorComments'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  99. </textarea></td>
  100. </tr>
  101. <tr valign="top">
  102. <td class="label"><?php echo $this->_plugins['function']['fieldLabel'][0][0]->smartyFieldLabel(array('name' => 'comments'), $this); echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "submission.comments.forEditor"), $this);?>
  103. </td>
  104. <td class="value"><textarea id="comments" name="comments" rows="10" cols="50" class="textArea"><?php echo ((is_array($_tmp=$this->_tpl_vars['comments'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  105. </textarea></td>
  106. </tr>
  107. </table>
  108. <p><input type="submit" name="save" value="<?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.save"), $this);?>
  109. " class="button defaultButton" /> <?php if ($this->_tpl_vars['canEmail']): ?><input type="submit" name="saveAndEmail" value="<?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.saveAndEmail"), $this);?>
  110. " class="button" /><?php endif; ?> <input type="button" value="<?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.close"), $this);?>
  111. " class="button" onclick="window.opener.location.reload(); window.close()" /></p>
  112. <p><span class="formRequired"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.requiredField"), $this);?>
  113. </span></p>
  114. </form>
  115. <?php else: ?>
  116. <input type="button" value="<?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.close"), $this);?>
  117. " class="button defaultButton" style="width: 5em" onclick="window.close()" />
  118. <?php endif; ?>
  119. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  120. $this->_smarty_include(array('smarty_include_tpl_file' => "submission/comment/footer.tpl", 'smarty_include_vars' => array()));
  121. $this->_tpl_vars = $_smarty_tpl_vars;
  122. unset($_smarty_tpl_vars);
  123. ?>