PageRenderTime 38ms CodeModel.GetById 11ms RepoModel.GetById 0ms app.codeStats 0ms

/ojs/ojs-2.1.1/cache/t_compile/%%37^37F^37F26BBC%%profile.tpl.php

https://github.com/mcrider/pkpUpgradeTestSuite
PHP | 204 lines | 189 code | 15 blank | 0 comment | 22 complexity | 235e60e41f56e5a7309b7ba118c59a2d MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1
  1. <?php /* Smarty version 2.6.12, created on 2006-07-17 16:34:39
  2. compiled from user/profile.tpl */ ?>
  3. <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  4. smarty_core_load_plugins(array('plugins' => array(array('function', 'url', 'user/profile.tpl', 13, false),array('function', 'fieldLabel', 'user/profile.tpl', 22, false),array('function', 'translate', 'user/profile.tpl', 39, false),array('function', 'html_options', 'user/profile.tpl', 74, false),array('modifier', 'assign', 'user/profile.tpl', 13, false),array('modifier', 'escape', 'user/profile.tpl', 23, false),)), $this); ?>
  5. <?php $this->assign('pageTitle', "user.profile.editProfile"); echo ((is_array($_tmp=$this->_plugins['function']['url'][0][0]->smartyUrl(array('op' => 'profile'), $this))) ? $this->_run_mod_handler('assign', true, $_tmp, 'url') : $this->_plugins['modifier']['assign'][0][0]->smartyAssign($_tmp, 'url'));?>
  6. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  7. $this->_smarty_include(array('smarty_include_tpl_file' => "common/header.tpl", 'smarty_include_vars' => array()));
  8. $this->_tpl_vars = $_smarty_tpl_vars;
  9. unset($_smarty_tpl_vars);
  10. ?>
  11. <form method="post" action="<?php echo $this->_plugins['function']['url'][0][0]->smartyUrl(array('op' => 'saveProfile'), $this);?>
  12. ">
  13. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  14. $this->_smarty_include(array('smarty_include_tpl_file' => "common/formErrors.tpl", 'smarty_include_vars' => array()));
  15. $this->_tpl_vars = $_smarty_tpl_vars;
  16. unset($_smarty_tpl_vars);
  17. ?>
  18. <table class="data" width="100%">
  19. <tr valign="top">
  20. <td width="20%" class="label"><?php echo $this->_plugins['function']['fieldLabel'][0][0]->smartyFieldLabel(array('suppressId' => 'true','name' => 'username','key' => "user.username"), $this);?>
  21. </td>
  22. <td width="80%" class="value"><?php echo ((is_array($_tmp=$this->_tpl_vars['username'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  23. </td>
  24. </tr>
  25. <tr valign="top">
  26. <td class="label"><?php echo $this->_plugins['function']['fieldLabel'][0][0]->smartyFieldLabel(array('name' => 'firstName','required' => 'true','key' => "user.firstName"), $this);?>
  27. </td>
  28. <td class="value"><input type="text" name="firstName" id="firstName" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['firstName'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  29. " size="20" maxlength="40" class="textField" /></td>
  30. </tr>
  31. <tr valign="top">
  32. <td class="label"><?php echo $this->_plugins['function']['fieldLabel'][0][0]->smartyFieldLabel(array('name' => 'middleName','key' => "user.middleName"), $this);?>
  33. </td>
  34. <td class="value"><input type="text" name="middleName" id="middleName" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['middleName'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  35. " size="20" maxlength="40" class="textField" /></td>
  36. </tr>
  37. <tr valign="top">
  38. <td class="label"><?php echo $this->_plugins['function']['fieldLabel'][0][0]->smartyFieldLabel(array('name' => 'lastName','required' => 'true','key' => "user.lastName"), $this);?>
  39. </td>
  40. <td class="value"><input type="text" name="lastName" id="lastName" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['lastName'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  41. " size="20" maxlength="90" class="textField" /></td>
  42. </tr>
  43. <tr valign="top">
  44. <td class="label"><?php echo $this->_plugins['function']['fieldLabel'][0][0]->smartyFieldLabel(array('name' => 'initials','key' => "user.initials"), $this);?>
  45. </td>
  46. <td class="value"><input type="text" name="initials" id="initials" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['initials'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  47. " size="5" maxlength="5" class="textField" />&nbsp;&nbsp;<?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "user.initialsExample"), $this);?>
  48. </td>
  49. </tr>
  50. <tr valign="top">
  51. <td class="label"><?php echo $this->_plugins['function']['fieldLabel'][0][0]->smartyFieldLabel(array('name' => 'affiliation','key' => "user.affiliation"), $this);?>
  52. </td>
  53. <td class="value"><input type="text" name="affiliation" id="affiliation" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['affiliation'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  54. " size="30" maxlength="255" class="textField" /></td>
  55. </tr>
  56. <tr valign="top">
  57. <td class="label"><?php echo $this->_plugins['function']['fieldLabel'][0][0]->smartyFieldLabel(array('name' => 'email','required' => 'true','key' => "user.email"), $this);?>
  58. </td>
  59. <td class="value"><input type="text" name="email" id="email" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['email'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  60. " size="30" maxlength="90" class="textField" /></td>
  61. </tr>
  62. <tr valign="top">
  63. <td class="label"><?php echo $this->_plugins['function']['fieldLabel'][0][0]->smartyFieldLabel(array('name' => 'userUrl','key' => "user.url"), $this);?>
  64. </td>
  65. <td class="value"><input type="text" name="userUrl" id="url" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['userUrl'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  66. " size="30" maxlength="90" class="textField" /></td>
  67. </tr>
  68. <tr valign="top">
  69. <td class="label"><?php echo $this->_plugins['function']['fieldLabel'][0][0]->smartyFieldLabel(array('name' => 'phone','key' => "user.phone"), $this);?>
  70. </td>
  71. <td class="value"><input type="text" name="phone" id="phone" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['phone'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  72. " size="15" maxlength="24" class="textField" /></td>
  73. </tr>
  74. <tr valign="top">
  75. <td class="label"><?php echo $this->_plugins['function']['fieldLabel'][0][0]->smartyFieldLabel(array('name' => 'fax','key' => "user.fax"), $this);?>
  76. </td>
  77. <td class="value"><input type="text" name="fax" id="fax" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['fax'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  78. " size="15" maxlength="24" class="textField" /></td>
  79. </tr>
  80. <tr valign="top">
  81. <td class="label"><?php echo $this->_plugins['function']['fieldLabel'][0][0]->smartyFieldLabel(array('name' => 'interests','key' => "user.interests"), $this);?>
  82. </td>
  83. <td class="value"><input type="text" name="interests" id="interests" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['interests'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  84. " size="30" maxlength="255" class="textField" /></td>
  85. </tr>
  86. <tr valign="top">
  87. <td class="label"><?php echo $this->_plugins['function']['fieldLabel'][0][0]->smartyFieldLabel(array('name' => 'mailingAddress','key' => "common.mailingAddress"), $this);?>
  88. </td>
  89. <td class="value"><textarea name="mailingAddress" id="mailingAddress" rows="3" cols="40" class="textArea"><?php echo ((is_array($_tmp=$this->_tpl_vars['mailingAddress'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  90. </textarea></td>
  91. </tr>
  92. <tr valign="top">
  93. <td class="label"><?php echo $this->_plugins['function']['fieldLabel'][0][0]->smartyFieldLabel(array('name' => 'country','key' => "common.country"), $this);?>
  94. </td>
  95. <td class="value">
  96. <select name="country" id="country" class="selectMenu">
  97. <option value=""></option>
  98. <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['countries'],'selected' => $this->_tpl_vars['country']), $this);?>
  99. </select>
  100. </td>
  101. </tr>
  102. <tr valign="top">
  103. <td class="label"><?php echo $this->_plugins['function']['fieldLabel'][0][0]->smartyFieldLabel(array('name' => 'biography','key' => "user.biography"), $this);?>
  104. <br /><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "user.biography.description"), $this);?>
  105. </td>
  106. <td class="value"><textarea name="biography" id="biography" rows="5" cols="40" class="textArea"><?php echo ((is_array($_tmp=$this->_tpl_vars['biography'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  107. </textarea></td>
  108. </tr>
  109. <?php if ($this->_tpl_vars['profileLocalesEnabled'] && count ( $this->_tpl_vars['availableLocales'] ) > 1): ?>
  110. <tr valign="top">
  111. <td class="label"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "user.workingLanguages"), $this);?>
  112. </td>
  113. <td><?php $_from = $this->_tpl_vars['availableLocales']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  114. foreach ($_from as $this->_tpl_vars['localeKey'] => $this->_tpl_vars['localeName']):
  115. ?>
  116. <input type="checkbox" name="userLocales[]" id="userLocales-<?php echo $this->_tpl_vars['localeKey']; ?>
  117. " value="<?php echo $this->_tpl_vars['localeKey']; ?>
  118. "<?php if (in_array ( $this->_tpl_vars['localeKey'] , $this->_tpl_vars['userLocales'] )): ?> checked="checked"<?php endif; ?> /> <label for="userLocales-<?php echo $this->_tpl_vars['localeKey']; ?>
  119. "><?php echo ((is_array($_tmp=$this->_tpl_vars['localeName'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  120. </label><br />
  121. <?php endforeach; endif; unset($_from); ?></td>
  122. </tr>
  123. <?php endif; ?>
  124. <?php $_from = $this->_tpl_vars['journals']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['journalNotifications'] = array('total' => count($_from), 'iteration' => 0);
  125. if ($this->_foreach['journalNotifications']['total'] > 0):
  126. foreach ($_from as $this->_tpl_vars['thisJournalId'] => $this->_tpl_vars['thisJournal']):
  127. $this->_foreach['journalNotifications']['iteration']++;
  128. ?>
  129. <?php $this->assign('thisJournalId', $this->_tpl_vars['thisJournal']->getJournalId()); ?>
  130. <?php $this->assign('notificationEnabled', ($this->_tpl_vars['journalNotifications'][$this->_tpl_vars['thisJournalId']])); ?>
  131. <?php if (! $this->_tpl_vars['notFirstJournal']): ?>
  132. <?php $this->assign('notFirstJournal', 1); ?>
  133. <tr valign="top">
  134. <td class="label"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "user.profile.form.publishedNotifications"), $this);?>
  135. </td>
  136. <td class="value">
  137. <?php endif; ?>
  138. <input type="checkbox" name="journalNotify[]" <?php if ($this->_tpl_vars['notificationEnabled']): ?>checked="checked" <?php endif; ?>id="journalNotify-<?php echo $this->_tpl_vars['thisJournalId']; ?>
  139. " value="<?php echo $this->_tpl_vars['thisJournalId']; ?>
  140. " /> <label for="journalNotify-<?php echo $this->_tpl_vars['thisJournalId']; ?>
  141. "><?php echo ((is_array($_tmp=$this->_tpl_vars['thisJournal']->getTitle())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  142. </label><br/>
  143. <?php if (($this->_foreach['journalNotifications']['iteration'] == $this->_foreach['journalNotifications']['total'])): ?>
  144. </td>
  145. </tr>
  146. <?php endif; endforeach; endif; unset($_from); ?>
  147. <?php if ($this->_tpl_vars['displayOpenAccessNotification']): ?>
  148. <?php $this->assign('notFirstJournal', 0); ?>
  149. <?php $_from = $this->_tpl_vars['journals']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['journalOpenAccessNotifications'] = array('total' => count($_from), 'iteration' => 0);
  150. if ($this->_foreach['journalOpenAccessNotifications']['total'] > 0):
  151. foreach ($_from as $this->_tpl_vars['thisJournalId'] => $this->_tpl_vars['thisJournal']):
  152. $this->_foreach['journalOpenAccessNotifications']['iteration']++;
  153. ?>
  154. <?php $this->assign('thisJournalId', $this->_tpl_vars['thisJournal']->getJournalId()); ?>
  155. <?php $this->assign('enableSubscriptions', $this->_tpl_vars['thisJournal']->getSetting('enableSubscriptions')); ?>
  156. <?php $this->assign('enableOpenAccessNotification', $this->_tpl_vars['thisJournal']->getSetting('enableOpenAccessNotification')); ?>
  157. <?php $this->assign('notificationEnabled', $this->_tpl_vars['user']->getSetting('openAccessNotification',$this->_tpl_vars['thisJournalId'])); ?>
  158. <?php if (! $this->_tpl_vars['notFirstJournal']): ?>
  159. <?php $this->assign('notFirstJournal', 1); ?>
  160. <tr valign="top">
  161. <td class="label"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "user.profile.form.openAccessNotifications"), $this);?>
  162. </td>
  163. <td class="value">
  164. <?php endif; ?>
  165. <?php if ($this->_tpl_vars['enableSubscriptions'] && $this->_tpl_vars['enableOpenAccessNotification']): ?>
  166. <input type="checkbox" name="openAccessNotify[]" <?php if ($this->_tpl_vars['notificationEnabled']): ?>checked="checked" <?php endif; ?>id="openAccessNotify-<?php echo $this->_tpl_vars['thisJournalId']; ?>
  167. " value="<?php echo $this->_tpl_vars['thisJournalId']; ?>
  168. " /> <label for="openAccessNotify-<?php echo $this->_tpl_vars['thisJournalId']; ?>
  169. "><?php echo ((is_array($_tmp=$this->_tpl_vars['thisJournal']->getTitle())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  170. </label><br/>
  171. <?php endif; ?>
  172. <?php if (($this->_foreach['journalOpenAccessNotifications']['iteration'] == $this->_foreach['journalOpenAccessNotifications']['total'])): ?>
  173. </td>
  174. </tr>
  175. <?php endif; ?>
  176. <?php endforeach; endif; unset($_from); endif; ?>
  177. </table>
  178. <p><input type="submit" value="<?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.save"), $this);?>
  179. " class="button defaultButton" /> <input type="button" value="<?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.cancel"), $this);?>
  180. " class="button" onclick="document.location.href='<?php echo $this->_plugins['function']['url'][0][0]->smartyUrl(array('page' => 'user','escape' => false), $this);?>
  181. '" /></p>
  182. </form>
  183. <p><span class="formRequired"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.requiredField"), $this);?>
  184. </span></p>
  185. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  186. $this->_smarty_include(array('smarty_include_tpl_file' => "common/footer.tpl", 'smarty_include_vars' => array()));
  187. $this->_tpl_vars = $_smarty_tpl_vars;
  188. unset($_smarty_tpl_vars);
  189. ?>