PageRenderTime 49ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 0ms

/gui/templates_c/%%BE^BE8^BE87FFC6%%rolesView.tpl.php

https://github.com/viglesiasce/testlink
PHP | 172 lines | 151 code | 20 blank | 1 comment | 13 complexity | 5195ecc8fd0ab0ac43fb2b4cdd0e19a3 MD5 | raw file
  1. <?php /* Smarty version 2.6.26, created on 2010-09-27 15:25:40
  2. compiled from usermanagement/rolesView.tpl */ ?>
  3. <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  4. smarty_core_load_plugins(array('plugins' => array(array('function', 'lang_get', 'usermanagement/rolesView.tpl', 17, false),array('function', 'config_load', 'usermanagement/rolesView.tpl', 23, false),array('modifier', 'replace', 'usermanagement/rolesView.tpl', 22, false),array('modifier', 'escape', 'usermanagement/rolesView.tpl', 52, false),array('modifier', 'strip_tags', 'usermanagement/rolesView.tpl', 95, false),array('modifier', 'strip', 'usermanagement/rolesView.tpl', 95, false),)), $this); ?>
  5. <?php $this->assign('roleActionMgr', "lib/usermanagement/rolesEdit.php"); ?>
  6. <?php $this->assign('createRoleAction', ($this->_tpl_vars['roleActionMgr'])."?doAction=create"); ?>
  7. <?php $this->assign('editRoleAction', ($this->_tpl_vars['roleActionMgr'])."?doAction=edit&amp;roleid="); ?>
  8. <?php echo lang_get_smarty(array('var' => 'labels','s' => "btn_create,title_user_mgmt,title_roles,delete_role,caption_possible_affected_users,
  9. warning_users_will_be_reset,btn_confirm_delete,btn_cancel,no_roles,
  10. th_roles,th_role_description,th_delete,alt_edit_role,alt_delete_role,N_A"), $this);?>
  11. <?php $this->assign('cfg_section', ((is_array($_tmp='usermanagement/rolesView.tpl')) ? $this->_run_mod_handler('replace', true, $_tmp, ".tpl", "") : smarty_modifier_replace($_tmp, ".tpl", ""))); ?>
  12. <?php echo smarty_function_config_load(array('file' => "input_dimensions.conf",'section' => $this->_tpl_vars['cfg_section']), $this);?>
  13. <?php echo lang_get_smarty(array('s' => 'warning_delete_role','var' => 'warning_msg'), $this);?>
  14. <?php echo lang_get_smarty(array('s' => 'delete','var' => 'del_msgbox_title'), $this);?>
  15. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  16. $this->_smarty_include(array('smarty_include_tpl_file' => "inc_head.tpl", 'smarty_include_vars' => array('openHead' => 'yes','jsValidate' => 'yes','enableTableSorting' => 'yes')));
  17. $this->_tpl_vars = $_smarty_tpl_vars;
  18. unset($_smarty_tpl_vars);
  19. ?>
  20. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  21. $this->_smarty_include(array('smarty_include_tpl_file' => "inc_del_onclick.tpl", 'smarty_include_vars' => array()));
  22. $this->_tpl_vars = $_smarty_tpl_vars;
  23. unset($_smarty_tpl_vars);
  24. ?>
  25. <script type="text/javascript">
  26. /* All this stuff is need for logic contained in inc_del_onclick.tpl */
  27. var del_action=fRoot+'lib/usermanagement/rolesView.php?doAction=delete&roleid=';
  28. </script>
  29. </head>
  30. <body <?php echo $this->_tpl_vars['body_onload']; ?>
  31. >
  32. <h1 class="title"><?php echo $this->_tpl_vars['labels']['title_user_mgmt']; ?>
  33. - <?php echo $this->_tpl_vars['labels']['title_roles']; ?>
  34. </h1>
  35. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  36. $this->_smarty_include(array('smarty_include_tpl_file' => "usermanagement/tabsmenu.tpl", 'smarty_include_vars' => array()));
  37. $this->_tpl_vars = $_smarty_tpl_vars;
  38. unset($_smarty_tpl_vars);
  39. ?>
  40. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  41. $this->_smarty_include(array('smarty_include_tpl_file' => "inc_update.tpl", 'smarty_include_vars' => array('result' => $this->_tpl_vars['sqlResult'])));
  42. $this->_tpl_vars = $_smarty_tpl_vars;
  43. unset($_smarty_tpl_vars);
  44. ?>
  45. <?php $this->assign('draw_create_btn', '1'); ?>
  46. <div class="workBack">
  47. <?php if ($this->_tpl_vars['affectedUsers'] != null): ?>
  48. <?php $this->assign('draw_create_btn', '0'); ?>
  49. <h1 class="title"><?php echo $this->_tpl_vars['labels']['delete_role']; ?>
  50. <?php echo ((is_array($_tmp=$this->_tpl_vars['roles'][$this->_tpl_vars['id']]->name)) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  51. </h1>
  52. <table class="common" style="width:50%">
  53. <caption><?php echo $this->_tpl_vars['labels']['caption_possible_affected_users']; ?>
  54. </caption>
  55. <?php $_from = $this->_tpl_vars['affectedUsers']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  56. foreach ($_from as $this->_tpl_vars['user']):
  57. ?>
  58. <tr>
  59. <td><?php echo ((is_array($_tmp=$this->_tpl_vars['user']->getDisplayName())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  60. </td>
  61. </tr>
  62. <?php endforeach; endif; unset($_from); ?>
  63. </table>
  64. <div class="legend_container"><?php echo $this->_tpl_vars['labels']['warning_users_will_be_reset']; ?>
  65. => <?php echo ((is_array($_tmp=$this->_tpl_vars['roles'][$this->_tpl_vars['role_id_replacement']]->name)) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  66. </div><br />
  67. <div class="groupBtn">
  68. <input type="submit" name="confirmed" value="<?php echo $this->_tpl_vars['labels']['btn_confirm_delete']; ?>
  69. "
  70. onclick="location='lib/usermanagement/rolesView.php?doAction=confirmDelete&roleid=<?php echo $this->_tpl_vars['id']; ?>
  71. '"/>
  72. <input type="submit" value="<?php echo $this->_tpl_vars['labels']['btn_cancel']; ?>
  73. "
  74. onclick="location='lib/usermanagement/rolesView.php'" />
  75. </div>
  76. <?php else: ?>
  77. <?php if ($this->_tpl_vars['roles'] == ''): ?>
  78. <?php echo $this->_tpl_vars['labels']['no_roles']; ?>
  79. <?php else: ?>
  80. <table class="common sortable" width="50%">
  81. <tr>
  82. <th width="30%"><?php echo $this->_tpl_vars['sortHintIcon']; ?>
  83. <?php echo $this->_tpl_vars['labels']['th_roles']; ?>
  84. </th>
  85. <th class="<?php echo $this->_tpl_vars['noSortableColumnClass']; ?>
  86. "><?php echo $this->_tpl_vars['labels']['th_role_description']; ?>
  87. </th>
  88. <th class="<?php echo $this->_tpl_vars['noSortableColumnClass']; ?>
  89. "><?php echo $this->_tpl_vars['labels']['th_delete']; ?>
  90. </th>
  91. </tr>
  92. <?php $_from = $this->_tpl_vars['roles']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  93. foreach ($_from as $this->_tpl_vars['role']):
  94. ?>
  95. <?php if ($this->_tpl_vars['role']->dbID != @TL_ROLES_INHERITED): ?>
  96. <tr>
  97. <td>
  98. <a href="<?php echo $this->_tpl_vars['editRoleAction']; ?>
  99. <?php echo $this->_tpl_vars['role']->dbID; ?>
  100. ">
  101. <?php echo ((is_array($_tmp=$this->_tpl_vars['role']->getDisplayName())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  102. <?php if ($this->_tpl_vars['gsmarty_gui']->show_icon_edit): ?>
  103. <img title="<?php echo $this->_tpl_vars['labels']['alt_edit_role']; ?>
  104. "
  105. alt="<?php echo $this->_tpl_vars['labels']['alt_edit_role']; ?>
  106. "
  107. title="<?php echo $this->_tpl_vars['labels']['alt_edit_role']; ?>
  108. "
  109. src="<?php echo @TL_THEME_IMG_DIR; ?>
  110. /icon_edit.png" />
  111. <?php endif; ?>
  112. </a>
  113. </td>
  114. <td>
  115. <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['role']->description)) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)))) ? $this->_run_mod_handler('strip', true, $_tmp) : smarty_modifier_strip($_tmp)); ?>
  116. </td>
  117. <td>
  118. <?php if ($this->_tpl_vars['role']->dbID > @TL_LAST_SYSTEM_ROLE): ?>
  119. <img style="border:none;cursor: pointer;"
  120. title="<?php echo $this->_tpl_vars['labels']['alt_delete_role']; ?>
  121. "
  122. alt="<?php echo $this->_tpl_vars['labels']['alt_delete_role']; ?>
  123. "
  124. onclick="delete_confirmation(<?php echo $this->_tpl_vars['role']->dbID; ?>
  125. ,'<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['role']->getDisplayName())) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  126. ',
  127. '<?php echo $this->_tpl_vars['del_msgbox_title']; ?>
  128. ','<?php echo $this->_tpl_vars['warning_msg']; ?>
  129. ');"
  130. src="<?php echo @TL_THEME_IMG_DIR; ?>
  131. /trash.png"/>
  132. <?php else: ?>
  133. <?php echo $this->_tpl_vars['labels']['N_A']; ?>
  134. <?php endif; ?>
  135. </td>
  136. </tr>
  137. <?php endif; ?>
  138. <?php endforeach; endif; unset($_from); ?>
  139. </table>
  140. <?php endif; ?>
  141. <?php endif; ?>
  142. </div>
  143. <?php if ($this->_tpl_vars['draw_create_btn']): ?>
  144. <div class="groupBtn">
  145. <form method="post" action="<?php echo $this->_tpl_vars['createRoleAction']; ?>
  146. " name="launch_create">
  147. <input type="submit" name="doCreate" value="<?php echo $this->_tpl_vars['labels']['btn_create']; ?>
  148. " />
  149. </form>
  150. </div>
  151. <?php endif; ?>
  152. </body>