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

/ojs/ojs-2.1.0-1/cache/t_compile/%%62^628^6281BA49%%editorDecisionComment.tpl.php

https://github.com/mcrider/pkpUpgradeTestSuite
PHP | 107 lines | 93 code | 14 blank | 0 comment | 12 complexity | e8de94c25e71c1a6b74c618d5bec9414 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:44
  2. compiled from submission/comment/editorDecisionComment.tpl */ ?>
  3. <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  4. smarty_core_load_plugins(array('plugins' => array(array('function', 'translate', 'submission/comment/editorDecisionComment.tpl', 19, false),array('function', 'url', 'submission/comment/editorDecisionComment.tpl', 24, false),array('function', 'fieldLabel', 'submission/comment/editorDecisionComment.tpl', 58, false),array('modifier', 'date_format', 'submission/comment/editorDecisionComment.tpl', 20, false),array('modifier', 'to_array', 'submission/comment/editorDecisionComment.tpl', 24, false),array('modifier', 'escape', 'submission/comment/editorDecisionComment.tpl', 24, false),array('modifier', 'strip_unsafe_html', 'submission/comment/editorDecisionComment.tpl', 30, false),array('modifier', 'nl2br', 'submission/comment/editorDecisionComment.tpl', 30, 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"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => $this->_tpl_vars['comment']->getRoleName()), $this);?>
  17. </div>
  18. <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'])); ?>
  19. </div>
  20. </td>
  21. <td width="75%">
  22. <?php if ($this->_tpl_vars['comment']->getAuthorId() == $this->_tpl_vars['userId'] && ! $this->_tpl_vars['isLocked']): ?>
  23. <div style="float: right"><a href="<?php echo $this->_plugins['function']['url'][0][0]->smartyUrl(array('op' => 'deleteComment','path' => ((is_array($_tmp=$this->_tpl_vars['articleId'])) ? $this->_run_mod_handler('to_array', true, $_tmp, $this->_tpl_vars['comment']->getCommentId()) : $this->_plugins['modifier']['to_array'][0][0]->smartyToArray($_tmp, $this->_tpl_vars['comment']->getCommentId()))), $this);?>
  24. " 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'));?>
  25. ')" class="action"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.delete"), $this);?>
  26. </a></div>
  27. <?php endif; ?>
  28. <a name="<?php echo $this->_tpl_vars['comment']->getCommentId(); ?>
  29. "></a>
  30. <?php if ($this->_tpl_vars['comment']->getCommentTitle() != ""): ?>
  31. <div class="commentTitle"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "submission.comments.subject"), $this);?>
  32. : <?php echo ((is_array($_tmp=$this->_tpl_vars['comment']->getCommentTitle())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  33. </div>
  34. <?php endif; ?>
  35. <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) : String::stripUnsafeHtml($_tmp)))) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
  36. </div>
  37. </td>
  38. </tr>
  39. <?php endforeach; else: ?>
  40. <tr>
  41. <td class="nodata"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "submission.comments.noComments"), $this);?>
  42. </td>
  43. </tr>
  44. <?php endif; unset($_from); ?>
  45. </table>
  46. <br />
  47. <br />
  48. <?php if (! $this->_tpl_vars['isLocked'] && $this->_tpl_vars['isEditor']): ?>
  49. <form method="post" action="<?php echo $this->_plugins['function']['url'][0][0]->smartyUrl(array('op' => $this->_tpl_vars['commentAction']), $this);?>
  50. ">
  51. <?php if ($this->_tpl_vars['hiddenFormParams']): ?>
  52. <?php $_from = $this->_tpl_vars['hiddenFormParams']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  53. foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['hiddenFormParam']):
  54. ?>
  55. <input type="hidden" name="<?php echo ((is_array($_tmp=$this->_tpl_vars['key'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  56. " value="<?php echo ((is_array($_tmp=$this->_tpl_vars['hiddenFormParam'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  57. " />
  58. <?php endforeach; endif; unset($_from); endif; ?>
  59. <a name="new"></a>
  60. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  61. $this->_smarty_include(array('smarty_include_tpl_file' => "common/formErrors.tpl", 'smarty_include_vars' => array()));
  62. $this->_tpl_vars = $_smarty_tpl_vars;
  63. unset($_smarty_tpl_vars);
  64. ?>
  65. <table class="data" width="100%">
  66. <tr valign="top">
  67. <td class="label"><?php echo $this->_plugins['function']['fieldLabel'][0][0]->smartyFieldLabel(array('name' => 'commentTitle','key' => "submission.comments.subject"), $this);?>
  68. </td>
  69. <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)); ?>
  70. " size="50" maxlength="100" class="textField" /></td>
  71. </tr>
  72. <tr valign="top">
  73. <td class="label"><?php echo $this->_plugins['function']['fieldLabel'][0][0]->smartyFieldLabel(array('name' => 'comments','key' => "submission.comments.addComment"), $this);?>
  74. </td>
  75. <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)); ?>
  76. </textarea></td>
  77. </tr>
  78. </table>
  79. <p><input type="submit" name="save" value="<?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.save"), $this);?>
  80. " class="button defaultButton" /> <input type="button" value="<?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.close"), $this);?>
  81. " class="button" onclick="window.opener.location.reload(); window.close()" /></p>
  82. <p><span class="formRequired"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.requiredField"), $this);?>
  83. </span></p>
  84. </form>
  85. <?php else: ?>
  86. <input type="button" value="<?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.close"), $this);?>
  87. " class="button defaultButton" style="width: 5em" onclick="window.close()" />
  88. <?php endif; ?>
  89. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  90. $this->_smarty_include(array('smarty_include_tpl_file' => "submission/comment/footer.tpl", 'smarty_include_vars' => array()));
  91. $this->_tpl_vars = $_smarty_tpl_vars;
  92. unset($_smarty_tpl_vars);
  93. ?>