PageRenderTime 34ms CodeModel.GetById 23ms RepoModel.GetById 1ms app.codeStats 0ms

/ojs/ojs-2.0.2-1/templates/t_compile/%%0C^0C4^0C47B79C%%layout.tpl.php

https://github.com/mcrider/pkpUpgradeTestSuite
PHP | 146 lines | 135 code | 11 blank | 0 comment | 11 complexity | 4ecf73230199af2cf436dd3ffc1c25ee 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:12
  2. compiled from author/submission/layout.tpl */ ?>
  3. <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  4. smarty_core_load_plugins(array('plugins' => array(array('function', 'translate', 'author/submission/layout.tpl', 15, false),array('function', 'icon', 'author/submission/layout.tpl', 94, false),array('modifier', 'escape', 'author/submission/layout.tpl', 19, false),array('modifier', 'date_format', 'author/submission/layout.tpl', 33, false),array('modifier', 'default', 'author/submission/layout.tpl', 39, false),)), $this); ?>
  5. <?php $this->assign('layoutAssignment', $this->_tpl_vars['submission']->getLayoutAssignment()); $this->assign('layoutFile', $this->_tpl_vars['layoutAssignment']->getLayoutFile()); ?>
  6. <a name="layout"></a>
  7. <h3><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "submission.layout"), $this);?>
  8. </h3>
  9. <?php if ($this->_tpl_vars['useLayoutEditors']): ?>
  10. <p><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "user.role.layoutEditor"), $this);?>
  11. :
  12. &nbsp; <?php if ($this->_tpl_vars['layoutAssignment']->getEditorId()): echo ((is_array($_tmp=$this->_tpl_vars['layoutAssignment']->getEditorFullName())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); else: echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.none"), $this); endif; ?></p>
  13. <?php endif; ?>
  14. <table width="100%" class="info">
  15. <?php if ($this->_tpl_vars['useLayoutEditors']): ?>
  16. <tr>
  17. <td width="40%" colspan="2"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "submission.layout.layoutVersion"), $this);?>
  18. </td>
  19. <td width="20%" class="heading"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "submission.request"), $this);?>
  20. </td>
  21. <td width="20%" class="heading"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "submission.underway"), $this);?>
  22. </td>
  23. <td width="20%" class="heading"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "submission.complete"), $this);?>
  24. </td>
  25. </tr>
  26. <tr>
  27. <td colspan="2">
  28. <?php if ($this->_tpl_vars['layoutFile']): ?>
  29. <a href="<?php echo $this->_tpl_vars['requestPageUrl']; ?>
  30. /downloadFile/<?php echo $this->_tpl_vars['submission']->getArticleId(); ?>
  31. /<?php echo $this->_tpl_vars['layoutFile']->getFileId(); ?>
  32. " class="file"><?php echo ((is_array($_tmp=$this->_tpl_vars['layoutFile']->getFileName())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  33. </a>&nbsp;&nbsp;<?php echo ((is_array($_tmp=$this->_tpl_vars['layoutFile']->getDateModified())) ? $this->_run_mod_handler('date_format', true, $_tmp, $this->_tpl_vars['dateFormatShort']) : smarty_modifier_date_format($_tmp, $this->_tpl_vars['dateFormatShort'])); ?>
  34. <?php else: ?>
  35. <?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.none"), $this);?>
  36. <?php endif; ?>
  37. </td>
  38. <td>
  39. <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['layoutAssignment']->getDateNotified())) ? $this->_run_mod_handler('date_format', true, $_tmp, $this->_tpl_vars['dateFormatShort']) : smarty_modifier_date_format($_tmp, $this->_tpl_vars['dateFormatShort'])))) ? $this->_run_mod_handler('default', true, $_tmp, "&mdash;") : smarty_modifier_default($_tmp, "&mdash;")); ?>
  40. </td>
  41. <td>
  42. <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['layoutAssignment']->getDateUnderway())) ? $this->_run_mod_handler('date_format', true, $_tmp, $this->_tpl_vars['dateFormatShort']) : smarty_modifier_date_format($_tmp, $this->_tpl_vars['dateFormatShort'])))) ? $this->_run_mod_handler('default', true, $_tmp, "&mdash;") : smarty_modifier_default($_tmp, "&mdash;")); ?>
  43. </td>
  44. <td>
  45. <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['layoutAssignment']->getDateCompleted())) ? $this->_run_mod_handler('date_format', true, $_tmp, $this->_tpl_vars['dateFormatShort']) : smarty_modifier_date_format($_tmp, $this->_tpl_vars['dateFormatShort'])))) ? $this->_run_mod_handler('default', true, $_tmp, "&mdash;") : smarty_modifier_default($_tmp, "&mdash;")); ?>
  46. </td>
  47. </tr>
  48. <tr>
  49. <td colspan="5" class="separator">&nbsp;</td>
  50. </tr>
  51. <?php endif; ?>
  52. <tr>
  53. <td width="40%" colspan="2"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "submission.layout.galleyFormat"), $this);?>
  54. </td>
  55. <td width="40%" colspan="2" class="heading"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.file"), $this);?>
  56. </td>
  57. <td>&nbsp;</td>
  58. </tr>
  59. <?php $_from = $this->_tpl_vars['submission']->getGalleys(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['galleys'] = array('total' => count($_from), 'iteration' => 0);
  60. if ($this->_foreach['galleys']['total'] > 0):
  61. foreach ($_from as $this->_tpl_vars['galley']):
  62. $this->_foreach['galleys']['iteration']++;
  63. ?>
  64. <tr>
  65. <td width="5%"><?php echo $this->_foreach['galleys']['iteration']; ?>
  66. .</td>
  67. <td width="35%"><?php echo ((is_array($_tmp=$this->_tpl_vars['galley']->getLabel())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  68. &nbsp; <a href="<?php echo $this->_tpl_vars['requestPageUrl']; ?>
  69. /proofGalley/<?php echo $this->_tpl_vars['submission']->getArticleId(); ?>
  70. /<?php echo $this->_tpl_vars['galley']->getGalleyId(); ?>
  71. " class="action"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "submission.layout.viewProof"), $this);?>
  72. </td>
  73. <td colspan="3"><a href="<?php echo $this->_tpl_vars['requestPageUrl']; ?>
  74. /downloadFile/<?php echo $this->_tpl_vars['submission']->getArticleId(); ?>
  75. /<?php echo $this->_tpl_vars['galley']->getFileId(); ?>
  76. " class="file"><?php echo ((is_array($_tmp=$this->_tpl_vars['galley']->getFileName())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  77. </a>&nbsp;&nbsp;<?php echo ((is_array($_tmp=$this->_tpl_vars['galley']->getDateModified())) ? $this->_run_mod_handler('date_format', true, $_tmp, $this->_tpl_vars['dateFormatShort']) : smarty_modifier_date_format($_tmp, $this->_tpl_vars['dateFormatShort'])); ?>
  78. </td>
  79. </tr>
  80. <?php endforeach; else: ?>
  81. <tr>
  82. <td colspan="5" class="nodata"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.none"), $this);?>
  83. </td>
  84. </tr>
  85. <?php endif; unset($_from); ?>
  86. <tr>
  87. <td colspan="5" class="separator">&nbsp;</td>
  88. </tr>
  89. <tr>
  90. <td colspan="2"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "submission.supplementaryFiles"), $this);?>
  91. </td>
  92. <td colspan="3" class="heading"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.file"), $this);?>
  93. </td>
  94. </tr>
  95. <?php $_from = $this->_tpl_vars['submission']->getSuppFiles(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['suppFiles'] = array('total' => count($_from), 'iteration' => 0);
  96. if ($this->_foreach['suppFiles']['total'] > 0):
  97. foreach ($_from as $this->_tpl_vars['suppFile']):
  98. $this->_foreach['suppFiles']['iteration']++;
  99. ?>
  100. <tr>
  101. <td width="5%"><?php echo $this->_foreach['suppFiles']['iteration']; ?>
  102. .</td>
  103. <td width="35%"><?php echo ((is_array($_tmp=$this->_tpl_vars['suppFile']->getTitle())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  104. </td>
  105. <td colspan="3"><a href="<?php echo $this->_tpl_vars['requestPageUrl']; ?>
  106. /downloadFile/<?php echo $this->_tpl_vars['submission']->getArticleId(); ?>
  107. /<?php echo $this->_tpl_vars['suppFile']->getFileId(); ?>
  108. " class="file"><?php echo ((is_array($_tmp=$this->_tpl_vars['suppFile']->getFileName())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  109. </a>&nbsp;&nbsp;<?php echo ((is_array($_tmp=$this->_tpl_vars['suppFile']->getDateModified())) ? $this->_run_mod_handler('date_format', true, $_tmp, $this->_tpl_vars['dateFormatShort']) : smarty_modifier_date_format($_tmp, $this->_tpl_vars['dateFormatShort'])); ?>
  110. </td>
  111. </tr>
  112. <?php endforeach; else: ?>
  113. <tr>
  114. <td colspan="5" class="nodata"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.none"), $this);?>
  115. </td>
  116. </tr>
  117. <?php endif; unset($_from); ?>
  118. <tr>
  119. <td colspan="5" class="separator">&nbsp;</td>
  120. </tr>
  121. </table>
  122. <?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "submission.layout.layoutComments"), $this);?>
  123. <?php if ($this->_tpl_vars['submission']->getMostRecentLayoutComment()): ?>
  124. <?php $this->assign('comment', $this->_tpl_vars['submission']->getMostRecentLayoutComment()); ?>
  125. <a href="javascript:openComments('<?php echo $this->_tpl_vars['requestPageUrl']; ?>
  126. /viewLayoutComments/<?php echo $this->_tpl_vars['submission']->getArticleId(); ?>
  127. #<?php echo $this->_tpl_vars['comment']->getCommentId(); ?>
  128. ');" class="icon"><?php echo $this->_plugins['function']['icon'][0][0]->smartyIcon(array('name' => 'comment'), $this);?>
  129. </a><?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'])); ?>
  130. <?php else: ?>
  131. <a href="javascript:openComments('<?php echo $this->_tpl_vars['requestPageUrl']; ?>
  132. /viewLayoutComments/<?php echo $this->_tpl_vars['submission']->getArticleId(); ?>
  133. ');" class="icon"><?php echo $this->_plugins['function']['icon'][0][0]->smartyIcon(array('name' => 'comment'), $this);?>
  134. </a>
  135. <?php endif; ?>