PageRenderTime 60ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/ojs/ojs-2.1.0-1/cache/t_compile/%%C4^C49^C498A7FD%%userProfile.tpl.php

https://github.com/mcrider/pkpUpgradeTestSuite
PHP | 178 lines | 165 code | 13 blank | 0 comment | 13 complexity | 7b3996dde90fb9ec560daa2b23c682ba 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:38
  2. compiled from manager/people/userProfile.tpl */ ?>
  3. <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  4. smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'manager/people/userProfile.tpl', 15, false),array('modifier', 'default', 'manager/people/userProfile.tpl', 28, false),array('modifier', 'to_array', 'manager/people/userProfile.tpl', 51, false),array('modifier', 'assign', 'manager/people/userProfile.tpl', 51, false),array('modifier', 'nl2br', 'manager/people/userProfile.tpl', 69, false),array('modifier', 'strip_unsafe_html', 'manager/people/userProfile.tpl', 77, false),array('modifier', 'date_format', 'manager/people/userProfile.tpl', 90, false),array('function', 'translate', 'manager/people/userProfile.tpl', 17, false),array('function', 'url', 'manager/people/userProfile.tpl', 19, false),array('function', 'icon', 'manager/people/userProfile.tpl', 52, false),)), $this); ?>
  5. <?php $this->assign('pageTitle', "manager.people"); $_smarty_tpl_vars = $this->_tpl_vars;
  6. $this->_smarty_include(array('smarty_include_tpl_file' => "common/header.tpl", 'smarty_include_vars' => array()));
  7. $this->_tpl_vars = $_smarty_tpl_vars;
  8. unset($_smarty_tpl_vars);
  9. ?>
  10. <h3><?php echo ((is_array($_tmp=$this->_tpl_vars['user']->getFullName())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  11. </h3>
  12. <h4><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "user.profile"), $this);?>
  13. </h4>
  14. <p><a href="<?php echo $this->_plugins['function']['url'][0][0]->smartyUrl(array('op' => 'editUser','path' => $this->_tpl_vars['user']->getUserId()), $this);?>
  15. " class="action"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "manager.people.editProfile"), $this);?>
  16. </a></p>
  17. <table width="100%" class="data">
  18. <tr valign="top">
  19. <td width="20%" class="label"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "user.username"), $this);?>
  20. </td>
  21. <td width="80%" class="data"><strong><?php echo ((is_array($_tmp=$this->_tpl_vars['user']->getUsername())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  22. </strong></td>
  23. </tr>
  24. <tr valign="top">
  25. <td class="label"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "user.firstName"), $this);?>
  26. </td>
  27. <td class="value"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['user']->getFirstName())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('default', true, $_tmp, "&mdash;") : smarty_modifier_default($_tmp, "&mdash;")); ?>
  28. </td>
  29. </tr>
  30. <tr valign="top">
  31. <td class="label"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "user.middleName"), $this);?>
  32. </td>
  33. <td class="value"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['user']->getMiddleName())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('default', true, $_tmp, "&mdash;") : smarty_modifier_default($_tmp, "&mdash;")); ?>
  34. </td>
  35. </tr>
  36. <tr valign="top">
  37. <td class="label"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "user.lastName"), $this);?>
  38. </td>
  39. <td class="value"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['user']->getLastName())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('default', true, $_tmp, "&mdash;") : smarty_modifier_default($_tmp, "&mdash;")); ?>
  40. </td>
  41. </tr>
  42. <tr valign="top">
  43. <td class="label"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "user.affiliation"), $this);?>
  44. </td>
  45. <td class="value"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['user']->getAffiliation())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('default', true, $_tmp, "&mdash;") : smarty_modifier_default($_tmp, "&mdash;")); ?>
  46. </td>
  47. </tr>
  48. <tr valign="top">
  49. <td class="label"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "user.initials"), $this);?>
  50. </td>
  51. <td class="value"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['user']->getInitials())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('default', true, $_tmp, "&mdash;") : smarty_modifier_default($_tmp, "&mdash;")); ?>
  52. </td>
  53. </tr>
  54. <tr valign="top">
  55. <td class="label"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "user.email"), $this);?>
  56. </td>
  57. <td class="value">
  58. <?php echo ((is_array($_tmp=$this->_tpl_vars['user']->getEmail())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  59. <?php $this->assign('emailString', ($this->_tpl_vars['user']->getFullName())." <".($this->_tpl_vars['user']->getEmail()).">"); ?>
  60. <?php echo ((is_array($_tmp=$this->_plugins['function']['url'][0][0]->smartyUrl(array('to' => ((is_array($_tmp=$this->_tpl_vars['emailString'])) ? $this->_run_mod_handler('to_array', true, $_tmp) : $this->_plugins['modifier']['to_array'][0][0]->smartyToArray($_tmp)),'redirectUrl' => $this->_tpl_vars['currentUrl']), $this))) ? $this->_run_mod_handler('assign', true, $_tmp, 'url') : $this->_plugins['modifier']['assign'][0][0]->smartyAssign($_tmp, 'url'));?>
  61. <?php echo $this->_plugins['function']['icon'][0][0]->smartyIcon(array('name' => 'mail','url' => $this->_tpl_vars['url']), $this);?>
  62. </td>
  63. </tr>
  64. <tr valign="top">
  65. <td class="label"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "user.phone"), $this);?>
  66. </td>
  67. <td class="value"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['user']->getPhone())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('default', true, $_tmp, "&mdash;") : smarty_modifier_default($_tmp, "&mdash;")); ?>
  68. </td>
  69. </tr>
  70. <tr valign="top">
  71. <td class="label"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "user.fax"), $this);?>
  72. </td>
  73. <td class="value"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['user']->getFax())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('default', true, $_tmp, "&mdash;") : smarty_modifier_default($_tmp, "&mdash;")); ?>
  74. </td>
  75. </tr>
  76. <tr valign="top">
  77. <td class="label"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "user.interests"), $this);?>
  78. </td>
  79. <td class="value"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['user']->getInterests())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('default', true, $_tmp, "&mdash;") : smarty_modifier_default($_tmp, "&mdash;")); ?>
  80. </td>
  81. </tr>
  82. <tr valign="top">
  83. <td class="label"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.mailingAddress"), $this);?>
  84. </td>
  85. <td class="value"><?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['user']->getMailingAddress())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)))) ? $this->_run_mod_handler('default', true, $_tmp, "&mdash;") : smarty_modifier_default($_tmp, "&mdash;")); ?>
  86. </td>
  87. </tr>
  88. <tr valign="top">
  89. <td class="label"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.country"), $this);?>
  90. </td>
  91. <td class="value"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['country'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('default', true, $_tmp, "&mdash;") : smarty_modifier_default($_tmp, "&mdash;")); ?>
  92. </td>
  93. </tr>
  94. <tr valign="top">
  95. <td class="label"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "user.biography"), $this);?>
  96. </td>
  97. <td class="value"><?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['user']->getBiography())) ? $this->_run_mod_handler('strip_unsafe_html', true, $_tmp) : String::stripUnsafeHtml($_tmp)))) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)))) ? $this->_run_mod_handler('default', true, $_tmp, "&mdash;") : smarty_modifier_default($_tmp, "&mdash;")); ?>
  98. </td>
  99. </tr>
  100. <?php if ($this->_tpl_vars['profileLocalesEnabled']): ?>
  101. <tr valign="top">
  102. <td class="label"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "user.workingLanguages"), $this);?>
  103. </td>
  104. <td class="value"><?php $_from = $this->_tpl_vars['user']->getLocales(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['workingLanguages'] = array('total' => count($_from), 'iteration' => 0);
  105. if ($this->_foreach['workingLanguages']['total'] > 0):
  106. foreach ($_from as $this->_tpl_vars['localeKey']):
  107. $this->_foreach['workingLanguages']['iteration']++;
  108. echo ((is_array($_tmp=$this->_tpl_vars['localeNames'][$this->_tpl_vars['localeKey']])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); if (! ($this->_foreach['workingLanguages']['iteration'] == $this->_foreach['workingLanguages']['total'])): ?>; <?php endif; endforeach; else: ?>&mdash;<?php endif; unset($_from); ?></td>
  109. </tr>
  110. <?php endif; ?>
  111. <tr valign="top">
  112. <td colspan="2" class="separator">&nbsp;</td>
  113. </tr>
  114. <tr valign="top">
  115. <td class="label"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "user.dateRegistered"), $this);?>
  116. </td>
  117. <td class="value"><?php echo ((is_array($_tmp=$this->_tpl_vars['user']->getDateRegistered())) ? $this->_run_mod_handler('date_format', true, $_tmp, $this->_tpl_vars['datetimeFormatLong']) : smarty_modifier_date_format($_tmp, $this->_tpl_vars['datetimeFormatLong'])); ?>
  118. </td>
  119. </tr>
  120. <tr valign="top">
  121. <td class="label"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "user.dateLastLogin"), $this);?>
  122. </td>
  123. <td class="value"><?php echo ((is_array($_tmp=$this->_tpl_vars['user']->getDateLastLogin())) ? $this->_run_mod_handler('date_format', true, $_tmp, $this->_tpl_vars['datetimeFormatLong']) : smarty_modifier_date_format($_tmp, $this->_tpl_vars['datetimeFormatLong'])); ?>
  124. </td>
  125. </tr>
  126. </table>
  127. <div class="separator"></div>
  128. <h4><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "manager.people.enrollment"), $this);?>
  129. </h4>
  130. <ul>
  131. <?php unset($this->_sections['role']);
  132. $this->_sections['role']['name'] = 'role';
  133. $this->_sections['role']['loop'] = is_array($_loop=$this->_tpl_vars['userRoles']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
  134. $this->_sections['role']['show'] = true;
  135. $this->_sections['role']['max'] = $this->_sections['role']['loop'];
  136. $this->_sections['role']['step'] = 1;
  137. $this->_sections['role']['start'] = $this->_sections['role']['step'] > 0 ? 0 : $this->_sections['role']['loop']-1;
  138. if ($this->_sections['role']['show']) {
  139. $this->_sections['role']['total'] = $this->_sections['role']['loop'];
  140. if ($this->_sections['role']['total'] == 0)
  141. $this->_sections['role']['show'] = false;
  142. } else
  143. $this->_sections['role']['total'] = 0;
  144. if ($this->_sections['role']['show']):
  145. for ($this->_sections['role']['index'] = $this->_sections['role']['start'], $this->_sections['role']['iteration'] = 1;
  146. $this->_sections['role']['iteration'] <= $this->_sections['role']['total'];
  147. $this->_sections['role']['index'] += $this->_sections['role']['step'], $this->_sections['role']['iteration']++):
  148. $this->_sections['role']['rownum'] = $this->_sections['role']['iteration'];
  149. $this->_sections['role']['index_prev'] = $this->_sections['role']['index'] - $this->_sections['role']['step'];
  150. $this->_sections['role']['index_next'] = $this->_sections['role']['index'] + $this->_sections['role']['step'];
  151. $this->_sections['role']['first'] = ($this->_sections['role']['iteration'] == 1);
  152. $this->_sections['role']['last'] = ($this->_sections['role']['iteration'] == $this->_sections['role']['total']);
  153. ?>
  154. <li><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => $this->_tpl_vars['userRoles'][$this->_sections['role']['index']]->getRoleName()), $this);?>
  155. <a href="<?php echo $this->_plugins['function']['url'][0][0]->smartyUrl(array('op' => 'unEnroll','path' => $this->_tpl_vars['userRoles'][$this->_sections['role']['index']]->getRoleId(),'userId' => $this->_tpl_vars['user']->getUserId()), $this);?>
  156. " onclick="return confirm('<?php echo ((is_array($_tmp=$this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "manager.people.confirmUnenroll"), $this))) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript'));?>
  157. ')" class="action"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "manager.people.unenroll"), $this);?>
  158. </a></li>
  159. <?php endfor; endif; ?>
  160. </ul>
  161. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  162. $this->_smarty_include(array('smarty_include_tpl_file' => "common/footer.tpl", 'smarty_include_vars' => array()));
  163. $this->_tpl_vars = $_smarty_tpl_vars;
  164. unset($_smarty_tpl_vars);
  165. ?>