PageRenderTime 55ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 0ms

/gui/templates_c/%%02^025^025A8906%%reqImport.tpl.php

https://github.com/viglesiasce/testlink
PHP | 234 lines | 208 code | 26 blank | 0 comment | 27 complexity | ce721646619730c6144311c89a28a075 MD5 | raw file
  1. <?php /* Smarty version 2.6.26, created on 2010-09-30 11:59:33
  2. compiled from requirements/reqImport.tpl */ ?>
  3. <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  4. smarty_core_load_plugins(array('plugins' => array(array('function', 'lang_get', 'requirements/reqImport.tpl', 15, false),array('function', 'config_load', 'requirements/reqImport.tpl', 33, false),array('modifier', 'basename', 'requirements/reqImport.tpl', 27, false),array('modifier', 'replace', 'requirements/reqImport.tpl', 28, false),array('modifier', 'escape', 'requirements/reqImport.tpl', 41, false),array('modifier', 'strip_tags', 'requirements/reqImport.tpl', 123, false),array('modifier', 'strip', 'requirements/reqImport.tpl', 123, false),array('modifier', 'truncate', 'requirements/reqImport.tpl', 123, false),)), $this); ?>
  5. <?php echo lang_get_smarty(array('var' => 'labels','s' => 'note_keyword_filter,check_uncheck_all_checkboxes_for_add,
  6. th_id,th_test_case,version,scope,check_status,type,doc_id_short,
  7. btn_save_custom_fields,title_req_import,expected_coverage,
  8. check_req_file_structure,req_msg_norequirement,status,
  9. req_import_option_skip,req_import_option_overwrite,
  10. title_req_import_check_input,req_import_check_note,
  11. req_import_dont_empty,btn_import,btn_cancel,Result,
  12. req_doc_id,title,req_import_option_header,
  13. check_uncheck_all_checkboxes,remove_tc,show_tcase_spec,
  14. check_uncheck_all_checkboxes_for_rm'), $this);?>
  15. <?php $this->assign('bn', ((is_array($_tmp='requirements/reqImport.tpl')) ? $this->_run_mod_handler('basename', true, $_tmp) : basename($_tmp))); ?>
  16. <?php $this->assign('viewer_template', ((is_array($_tmp='requirements/reqImport.tpl')) ? $this->_run_mod_handler('replace', true, $_tmp, ($this->_tpl_vars['bn']), "inc_req_import_viewer.tpl") : smarty_modifier_replace($_tmp, ($this->_tpl_vars['bn']), "inc_req_import_viewer.tpl"))); ?>
  17. <?php $this->assign('req_module', 'lib/requirements/'); ?>
  18. <?php $this->assign('url_args', "reqSpecView.php?req_spec_id="); ?>
  19. <?php $this->assign('req_spec_view_url', ($this->_tpl_vars['basehref']).($this->_tpl_vars['req_module']).($this->_tpl_vars['url_args']).($this->_tpl_vars['gui'])."->req_spec_id"); ?>
  20. <?php $this->assign('cfg_section', ((is_array($_tmp=((is_array($_tmp='requirements/reqImport.tpl')) ? $this->_run_mod_handler('basename', true, $_tmp) : basename($_tmp)))) ? $this->_run_mod_handler('replace', true, $_tmp, ".tpl", "") : smarty_modifier_replace($_tmp, ".tpl", ""))); ?>
  21. <?php echo smarty_function_config_load(array('file' => "input_dimensions.conf",'section' => $this->_tpl_vars['cfg_section']), $this);?>
  22. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  23. $this->_smarty_include(array('smarty_include_tpl_file' => "inc_head.tpl", 'smarty_include_vars' => array('openHead' => 'yes')));
  24. $this->_tpl_vars = $_smarty_tpl_vars;
  25. unset($_smarty_tpl_vars);
  26. ?>
  27. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  28. $this->_smarty_include(array('smarty_include_tpl_file' => "inc_jsCheckboxes.tpl", 'smarty_include_vars' => array()));
  29. $this->_tpl_vars = $_smarty_tpl_vars;
  30. unset($_smarty_tpl_vars);
  31. ?>
  32. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  33. $this->_smarty_include(array('smarty_include_tpl_file' => "inc_del_onclick.tpl", 'smarty_include_vars' => array()));
  34. $this->_tpl_vars = $_smarty_tpl_vars;
  35. unset($_smarty_tpl_vars);
  36. ?>
  37. </head>
  38. <body>
  39. <h1 class="title"><?php echo ((is_array($_tmp=$this->_tpl_vars['gui']->main_descr)) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  40. </h1>
  41. <div class="workBack">
  42. <?php if ($this->_tpl_vars['gui']->doAction == 'askFileName'): ?>
  43. <form method="post" enctype="multipart/form-data" action="<?php echo $this->_tpl_vars['SCRIPT_NAME']; ?>
  44. ?req_spec_id=<?php echo $this->_tpl_vars['gui']->req_spec_id; ?>
  45. ">
  46. <input type="hidden" name="scope" id="scope" value="<?php echo $this->_tpl_vars['gui']->scope; ?>
  47. " />
  48. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  49. $this->_smarty_include(array('smarty_include_tpl_file' => "inc_gui_import_file.tpl", 'smarty_include_vars' => array('args' => $this->_tpl_vars['gui']->importFileGui)));
  50. $this->_tpl_vars = $_smarty_tpl_vars;
  51. unset($_smarty_tpl_vars);
  52. ?>
  53. </form>
  54. <?php if ($this->_tpl_vars['gui']->file_check['status_ok'] == 0): ?>
  55. <script>
  56. alert("<?php echo $this->_tpl_vars['gui']->file_check['msg']; ?>
  57. ");
  58. </script>
  59. <?php elseif ($this->_tpl_vars['gui']->try_upload && ( $this->_tpl_vars['gui']->arrImport == "" )): ?>
  60. <script>
  61. alert("<?php echo $this->_tpl_vars['labels']['check_req_file_structure']; ?>
  62. ");
  63. </script>
  64. <?php endif; ?>
  65. <?php elseif ($this->_tpl_vars['gui']->doAction == 'uploadFile'): ?>
  66. <?php if (! is_null ( $this->_tpl_vars['gui']->items )): ?>
  67. <?php if ($this->_tpl_vars['gui']->importType == 'XML'): ?>
  68. <form method='post' action='<?php echo $this->_tpl_vars['SCRIPT_NAME']; ?>
  69. ?req_spec_id=<?php echo $this->_tpl_vars['gui']->req_spec_id; ?>
  70. '>
  71. <input type='hidden' value="<?php echo $this->_tpl_vars['gui']->importType; ?>
  72. " name='importType' />
  73. <input type="hidden" name="scope" id="scope" value="<?php echo $this->_tpl_vars['gui']->scope; ?>
  74. " />
  75. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  76. $this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['viewer_template']), 'smarty_include_vars' => array()));
  77. $this->_tpl_vars = $_smarty_tpl_vars;
  78. unset($_smarty_tpl_vars);
  79. ?>
  80. <div class="groupBtn">
  81. <input type='submit' name='executeImport' value="<?php echo $this->_tpl_vars['labels']['btn_import']; ?>
  82. " />
  83. <input type="button" name="cancel" value="<?php echo $this->_tpl_vars['labels']['btn_cancel']; ?>
  84. "
  85. onclick="javascript: location.href='<?php echo $this->_tpl_vars['req_spec_view_url']; ?>
  86. ';" />
  87. </div>
  88. </form>
  89. <?php if ($this->_tpl_vars['gui']->scope == 'branch' || $this->_tpl_vars['gui']->scope == 'tree'): ?>
  90. <?php else: ?>
  91. <?php endif; ?>
  92. <?php endif; ?>
  93. <?php if ($this->_tpl_vars['gui']->importType != 'XML'): ?>
  94. <h2><?php echo $this->_tpl_vars['labels']['title_req_import_check_input']; ?>
  95. </h2>
  96. <p><?php echo $this->_tpl_vars['labels']['req_import_check_note']; ?>
  97. </p>
  98. <div>
  99. <form method='post' action='<?php echo $this->_tpl_vars['SCRIPT_NAME']; ?>
  100. ?req_spec_id=<?php echo $this->_tpl_vars['gui']->req_spec_id; ?>
  101. '>
  102. <p><?php echo $this->_tpl_vars['labels']['req_import_option_header']; ?>
  103. <select name="conflicts">
  104. <option value ="skip"><?php echo $this->_tpl_vars['labels']['req_import_option_skip']; ?>
  105. </option>
  106. <option value ="overwrite" selected="selected"><?php echo $this->_tpl_vars['labels']['req_import_option_overwrite']; ?>
  107. </option>
  108. </select></p>
  109. <p><input type="checkbox" name="noEmpty" checked="checked" /><?php echo $this->_tpl_vars['labels']['req_import_dont_empty']; ?>
  110. </p>
  111. <input type="hidden" name="req_spec_id" value="<?php echo $this->_tpl_vars['gui']->req_spec_id; ?>
  112. " />
  113. <input type='hidden' value='<?php echo $this->_tpl_vars['gui']->fileName; ?>
  114. ' name='uploadedFile' />
  115. <input type='hidden' value='<?php echo $this->_tpl_vars['gui']->importType; ?>
  116. ' name='importType' />
  117. <div class="groupBtn">
  118. <input type='submit' name='executeImport' value="<?php echo $this->_tpl_vars['labels']['btn_import']; ?>
  119. " />
  120. <input type="button" name="cancel" value="<?php echo $this->_tpl_vars['labels']['btn_cancel']; ?>
  121. "
  122. onclick="javascript: location.href='<?php echo $this->_tpl_vars['req_spec_view_url']; ?>
  123. ';" />
  124. </div>
  125. </form>
  126. <div>
  127. <table class="simple">
  128. <tr>
  129. <th><?php echo $this->_tpl_vars['labels']['req_doc_id']; ?>
  130. </th>
  131. <th><?php echo $this->_tpl_vars['labels']['title']; ?>
  132. </th>
  133. <th><?php echo $this->_tpl_vars['labels']['scope']; ?>
  134. </th>
  135. <th><?php echo $this->_tpl_vars['labels']['type']; ?>
  136. </th>
  137. <th><?php echo $this->_tpl_vars['labels']['status']; ?>
  138. </th>
  139. <th><?php echo $this->_tpl_vars['labels']['expected_coverage']; ?>
  140. </th>
  141. <th><?php echo $this->_tpl_vars['labels']['check_status']; ?>
  142. </th>
  143. </tr>
  144. <?php if ($this->_tpl_vars['gui']->items != ''): ?>
  145. <?php $_from = $this->_tpl_vars['gui']->items; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  146. foreach ($_from as $this->_tpl_vars['idx'] => $this->_tpl_vars['import_feedback']):
  147. ?>
  148. <tr>
  149. <td><?php echo ((is_array($_tmp=$this->_tpl_vars['import_feedback']['req_doc_id'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  150. </td>
  151. <td><?php echo ((is_array($_tmp=$this->_tpl_vars['import_feedback']['title'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  152. </td>
  153. <td><?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['import_feedback']['scope'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)))) ? $this->_run_mod_handler('strip', true, $_tmp) : smarty_modifier_strip($_tmp)))) ? $this->_run_mod_handler('truncate', true, $_tmp, $this->_config[0]['vars']['SCOPE_TRUNCATE']) : smarty_modifier_truncate($_tmp, $this->_config[0]['vars']['SCOPE_TRUNCATE'])); ?>
  154. </td>
  155. <td><?php echo ((is_array($_tmp=$this->_tpl_vars['import_feedback']['type'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  156. </td>
  157. <td><?php echo ((is_array($_tmp=$this->_tpl_vars['import_feedback']['status'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  158. </td>
  159. <td align="right"><?php echo $this->_tpl_vars['import_feedback']['expected_coverage']; ?>
  160. </td>
  161. <td><?php echo ((is_array($_tmp=$this->_tpl_vars['import_feedback']['check_status'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  162. </td>
  163. </tr>
  164. <?php endforeach; endif; unset($_from); ?>
  165. <?php else: ?>
  166. <tr><td><?php echo $this->_tpl_vars['labels']['req_msg_norequirement']; ?>
  167. </td></tr>
  168. <?php endif; ?>
  169. </table>
  170. </div>
  171. </div>
  172. <?php endif; ?>
  173. <?php endif; ?>
  174. <?php endif; ?>
  175. <?php if ($this->_tpl_vars['gui']->importResult != '' && $this->_tpl_vars['gui']->file_check['status_ok']): ?>
  176. <p class="info"><?php echo $this->_tpl_vars['gui']->importResult; ?>
  177. </p>
  178. <table class="simple">
  179. <tr>
  180. <th><?php echo $this->_tpl_vars['labels']['doc_id_short']; ?>
  181. </th>
  182. <th><?php echo $this->_tpl_vars['labels']['title']; ?>
  183. </th>
  184. <th style="width: 20%;"><?php echo $this->_tpl_vars['labels']['Result']; ?>
  185. </th>
  186. </tr>
  187. <?php if ($this->_tpl_vars['gui']->items != ''): ?>
  188. <?php $_from = $this->_tpl_vars['gui']->items; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  189. foreach ($_from as $this->_tpl_vars['idx'] => $this->_tpl_vars['import_feedback']):
  190. ?>
  191. <tr>
  192. <td><?php echo ((is_array($_tmp=$this->_tpl_vars['import_feedback']['doc_id'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  193. </td>
  194. <td><?php echo ((is_array($_tmp=$this->_tpl_vars['import_feedback']['title'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  195. </td>
  196. <td><?php echo ((is_array($_tmp=$this->_tpl_vars['import_feedback']['import_status'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  197. </td>
  198. </tr>
  199. <?php endforeach; endif; unset($_from); ?>
  200. <?php else: ?>
  201. <tr><td><?php echo $this->_tpl_vars['labels']['req_msg_norequirement']; ?>
  202. </td></tr>
  203. <?php endif; ?>
  204. </table>
  205. <?php endif; ?>
  206. </div>
  207. </body>
  208. </html>