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

/gui/templates_c/%%25^250^25033C6E%%cfieldsTprojectAssign.tpl.php

https://github.com/viglesiasce/testlink
PHP | 207 lines | 184 code | 23 blank | 0 comment | 14 complexity | 1ac1876acc4a17128a30f3bc980b0c37 MD5 | raw file
  1. <?php /* Smarty version 2.6.26, created on 2010-09-27 13:53:03
  2. compiled from cfields/cfieldsTprojectAssign.tpl */ ?>
  3. <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  4. smarty_core_load_plugins(array('plugins' => array(array('function', 'lang_get', 'cfields/cfieldsTprojectAssign.tpl', 17, false),array('function', 'config_load', 'cfields/cfieldsTprojectAssign.tpl', 26, false),array('function', 'html_options', 'cfields/cfieldsTprojectAssign.tpl', 76, false),array('modifier', 'basename', 'cfields/cfieldsTprojectAssign.tpl', 25, false),array('modifier', 'replace', 'cfields/cfieldsTprojectAssign.tpl', 25, false),array('modifier', 'escape', 'cfields/cfieldsTprojectAssign.tpl', 29, false),)), $this); ?>
  5. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  6. $this->_smarty_include(array('smarty_include_tpl_file' => "inc_head.tpl", 'smarty_include_vars' => array('openHead' => 'yes')));
  7. $this->_tpl_vars = $_smarty_tpl_vars;
  8. unset($_smarty_tpl_vars);
  9. ?>
  10. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  11. $this->_smarty_include(array('smarty_include_tpl_file' => "inc_jsCheckboxes.tpl", 'smarty_include_vars' => array()));
  12. $this->_tpl_vars = $_smarty_tpl_vars;
  13. unset($_smarty_tpl_vars);
  14. ?>
  15. </head>
  16. <?php echo lang_get_smarty(array('var' => 'labels','s' => 'name,label,display_order,location,cfields_active,testproject,btn_assign,
  17. cfields_tproject_assign,title_assigned_cfields,check_uncheck_all_checkboxes,
  18. available_on,type,
  19. manage_cfield,btn_unassign,btn_cfields_active_mgmt,btn_cfields_display_order,
  20. btn_cfields_display_attr,title_available_cfields'), $this);?>
  21. <body>
  22. <?php $this->assign('cfg_section', ((is_array($_tmp=((is_array($_tmp='cfields/cfieldsTprojectAssign.tpl')) ? $this->_run_mod_handler('basename', true, $_tmp) : basename($_tmp)))) ? $this->_run_mod_handler('replace', true, $_tmp, ".tpl", "") : smarty_modifier_replace($_tmp, ".tpl", ""))); ?>
  23. <?php echo smarty_function_config_load(array('file' => "input_dimensions.conf",'section' => $this->_tpl_vars['cfg_section']), $this);?>
  24. <h1 class="title">
  25. <?php echo $this->_tpl_vars['labels']['cfields_tproject_assign']; ?>
  26. <?php echo @TITLE_SEP_TYPE2; ?>
  27. <?php echo $this->_tpl_vars['labels']['testproject']; ?>
  28. <?php echo @TITLE_SEP; ?>
  29. <?php echo ((is_array($_tmp=$this->_tpl_vars['gui']->tproject_name)) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  30. </h1>
  31. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  32. $this->_smarty_include(array('smarty_include_tpl_file' => "inc_update.tpl", 'smarty_include_vars' => array('result' => $this->_tpl_vars['sqlResult'],'action' => $this->_tpl_vars['action'],'item' => 'custom_field')));
  33. $this->_tpl_vars = $_smarty_tpl_vars;
  34. unset($_smarty_tpl_vars);
  35. ?>
  36. <?php if ($this->_tpl_vars['gui']->my_cf != ""): ?>
  37. <div class="workBack">
  38. <h2><?php echo $this->_tpl_vars['labels']['title_assigned_cfields']; ?>
  39. </h2>
  40. <form method="post">
  41. <div id="assigned_cf">
  42. <input type="hidden" name="memory_assigned_cf"
  43. id="memory_assigned_cf" value="0" />
  44. <table class="simple">
  45. <tr>
  46. <th align="center" style="width: 5px;background-color:#005498;">
  47. <img src="<?php echo @TL_THEME_IMG_DIR; ?>
  48. /toggle_all.gif"
  49. onclick='cs_all_checkbox_in_div("assigned_cf","assigned_cfield","memory_assigned_cf");'
  50. title="<?php echo $this->_tpl_vars['labels']['check_uncheck_all_checkboxes']; ?>
  51. " />
  52. </th>
  53. <th width="40%"><?php echo $this->_tpl_vars['labels']['name']; ?>
  54. </th>
  55. <th width="40%"><?php echo $this->_tpl_vars['labels']['label']; ?>
  56. </th>
  57. <th><?php echo $this->_tpl_vars['labels']['type']; ?>
  58. </th>
  59. <th><?php echo $this->_tpl_vars['labels']['available_on']; ?>
  60. </th>
  61. <th width="15%"><?php echo $this->_tpl_vars['labels']['display_order']; ?>
  62. </th>
  63. <th width="15%"><?php echo $this->_tpl_vars['labels']['location']; ?>
  64. </th>
  65. <th width="5%"><?php echo $this->_tpl_vars['labels']['cfields_active']; ?>
  66. </th>
  67. </tr>
  68. <?php $_from = $this->_tpl_vars['gui']->my_cf; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  69. foreach ($_from as $this->_tpl_vars['cf_id'] => $this->_tpl_vars['cf']):
  70. ?>
  71. <tr>
  72. <td class="clickable_icon"><input type="checkbox" id="assigned_cfield<?php echo $this->_tpl_vars['cf']['id']; ?>
  73. " name="cfield[<?php echo $this->_tpl_vars['cf']['id']; ?>
  74. ]" /></td>
  75. <td class="bold"><a href="lib/cfields/cfieldsEdit.php?do_action=edit&amp;cfield_id=<?php echo $this->_tpl_vars['cf']['id']; ?>
  76. "
  77. title="<?php echo $this->_tpl_vars['labels']['manage_cfield']; ?>
  78. "><?php echo ((is_array($_tmp=$this->_tpl_vars['cf']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  79. </a></td>
  80. <td class="bold"><?php echo ((is_array($_tmp=$this->_tpl_vars['cf']['label'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  81. </td>
  82. <td class="bold"><?php echo ((is_array($_tmp=$this->_tpl_vars['gui']->cf_available_types[$this->_tpl_vars['cf']['type']])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  83. </td>
  84. <td class="bold"><?php echo ((is_array($_tmp=$this->_tpl_vars['gui']->cf_allowed_nodes[$this->_tpl_vars['cf']['node_type_id']])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  85. </td>
  86. <td><input type="text" name="display_order[<?php echo $this->_tpl_vars['cf']['id']; ?>
  87. ]"
  88. value="<?php echo $this->_tpl_vars['cf']['display_order']; ?>
  89. "
  90. size="<?php echo $this->_config[0]['vars']['DISPLAY_ORDER_SIZE']; ?>
  91. " maxlength="<?php echo $this->_config[0]['vars']['DISPLAY_ORDER_MAXLEN']; ?>
  92. " /></td>
  93. <td>
  94. <?php if ($this->_tpl_vars['cf']['node_description'] == 'testcase' && $this->_tpl_vars['cf']['enable_on_execution'] == 0): ?>
  95. <select name="location[<?php echo $this->_tpl_vars['cf']['id']; ?>
  96. ]">
  97. <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['gui']->locations,'selected' => $this->_tpl_vars['cf']['location']), $this);?>
  98. </select>
  99. <?php else: ?>
  100. &nbsp;
  101. <?php endif; ?>
  102. </td>
  103. <td><input type="checkbox" name="active_cfield[<?php echo $this->_tpl_vars['cf']['id']; ?>
  104. ]"
  105. <?php if ($this->_tpl_vars['cf']['active'] == 1): ?> checked="checked" <?php endif; ?> />
  106. <input type="hidden" name="hidden_active_cfield[<?php echo $this->_tpl_vars['cf']['id']; ?>
  107. ]" value="<?php echo $this->_tpl_vars['cf']['active']; ?>
  108. " />
  109. </td>
  110. </tr>
  111. <?php endforeach; endif; unset($_from); ?>
  112. </table>
  113. </div>
  114. <div class="groupBtn">
  115. <input type="hidden" name="doAction" value="" />
  116. <input type="submit" name="doUnassign" value="<?php echo $this->_tpl_vars['labels']['btn_unassign']; ?>
  117. "
  118. onclick="doAction.value=this.name"/>
  119. <input type="submit" name="doActiveMgmt" value="<?php echo $this->_tpl_vars['labels']['btn_cfields_active_mgmt']; ?>
  120. "
  121. onclick="doAction.value=this.name"/>
  122. <input type="submit" name="doReorder" value="<?php echo $this->_tpl_vars['labels']['btn_cfields_display_attr']; ?>
  123. "
  124. onclick="doAction.value=this.name"/>
  125. </div>
  126. </form>
  127. </div>
  128. <?php endif; ?>
  129. <?php if ($this->_tpl_vars['gui']->other_cf != ""): ?>
  130. <div class="workBack">
  131. <h2><?php echo $this->_tpl_vars['labels']['title_available_cfields']; ?>
  132. </h2>
  133. <form method="post">
  134. <div id="free_cf">
  135. <input type="hidden" name="memory_free_cf"
  136. id="memory_free_cf" value="0" />
  137. <table class="simple" style="width: 50%;">
  138. <tr>
  139. <th align="center" style="width: 5px;background-color:#005498;">
  140. <img src="<?php echo @TL_THEME_IMG_DIR; ?>
  141. /toggle_all.gif"
  142. onclick='cs_all_checkbox_in_div("free_cf","free_cfield","memory_free_cf");'
  143. title="<?php echo $this->_tpl_vars['labels']['check_uncheck_all_checkboxes']; ?>
  144. " />
  145. </th>
  146. <th><?php echo $this->_tpl_vars['labels']['name']; ?>
  147. </th>
  148. <th><?php echo $this->_tpl_vars['labels']['label']; ?>
  149. </th>
  150. <th><?php echo $this->_tpl_vars['labels']['type']; ?>
  151. </th>
  152. <th><?php echo $this->_tpl_vars['labels']['available_on']; ?>
  153. </th>
  154. </tr>
  155. <?php $_from = $this->_tpl_vars['gui']->other_cf; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  156. foreach ($_from as $this->_tpl_vars['cf_id'] => $this->_tpl_vars['cf']):
  157. ?>
  158. <tr>
  159. <td class="clickable_icon"> <input type="checkbox" id="free_cfield<?php echo $this->_tpl_vars['cf']['id']; ?>
  160. " name="cfield[<?php echo $this->_tpl_vars['cf']['id']; ?>
  161. ]" /></td>
  162. <td class="bold"><?php echo ((is_array($_tmp=$this->_tpl_vars['cf']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  163. </td>
  164. <td class="bold"><?php echo ((is_array($_tmp=$this->_tpl_vars['cf']['label'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  165. </td>
  166. <td class="bold"><?php echo ((is_array($_tmp=$this->_tpl_vars['gui']->cf_available_types[$this->_tpl_vars['cf']['type']])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  167. </td>
  168. <td class="bold"><?php echo ((is_array($_tmp=$this->_tpl_vars['gui']->cf_allowed_nodes[$this->_tpl_vars['cf']['node_type_id']])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  169. </td>
  170. </tr>
  171. <?php endforeach; endif; unset($_from); ?>
  172. </table>
  173. </div>
  174. <div class="groupBtn">
  175. <input type="hidden" name="doAction" value="" />
  176. <input type="submit" name="doAssign" id=this.name value="<?php echo $this->_tpl_vars['labels']['btn_assign']; ?>
  177. "
  178. onclick="doAction.value=this.name"/>
  179. </div>
  180. </form>
  181. </div>
  182. <?php endif; ?>
  183. </body>
  184. </html>