<?php
/* Smarty version 3.1.33, created on 2021-12-20 20:39:48
  from '/opt/lampp/htdocs/testlink/gui/templates/testcases/tcImport.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_61c0dc04d017f1_88020597',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '90bed235f165ebf80135b9c0a597ff48ffbe4219' => 
    array (
      0 => '/opt/lampp/htdocs/testlink/gui/templates/testcases/tcImport.tpl',
      1 => 1636032773,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:inc_head.tpl' => 1,
    'file:inc_del_onclick.tpl' => 1,
    'file:inc_refreshTree.tpl' => 2,
  ),
),false)) {
function content_61c0dc04d017f1_88020597 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/opt/lampp/htdocs/testlink/vendor/smarty/smarty/libs/plugins/modifier.replace.php','function'=>'smarty_modifier_replace',),1=>array('file'=>'/opt/lampp/htdocs/testlink/vendor/smarty/smarty/libs/plugins/function.html_options.php','function'=>'smarty_function_html_options',),));
?>

<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang_get'][0], array( array('var'=>"labels",'s'=>'file_type,view_file_format_doc,local_file,
             max_size_cvs_file1,max_size_cvs_file2,btn_upload_file,
             duplicate_criteria,action_for_duplicates,testcase,
             action_on_duplicated_name,warning,btn_cancel,title_imp_tc_data'),$_smarty_tpl ) );?>


<?php $_smarty_tpl->_assignInScope('cfg_section', smarty_modifier_replace(call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'basename' ][ 0 ], array( basename($_smarty_tpl->source->filepath) )),".tpl",''));
$_smarty_tpl->smarty->ext->configLoad->_loadConfigFile($_smarty_tpl, "input_dimensions.conf", $_smarty_tpl->tpl_vars['cfg_section']->value, 0);
?>


<?php $_smarty_tpl->_subTemplateRender("file:inc_head.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('openHead'=>"yes"), 0, false);
$_smarty_tpl->_subTemplateRender("file:inc_del_onclick.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
</head>
<body>

<h1 class="title"><?php echo $_smarty_tpl->tpl_vars['gui']->value->container_description;
echo @constant('TITLE_SEP');
echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->container_name, ENT_QUOTES, 'UTF-8', true);?>
</h1>

<div class="workBack">
<h1 class="title"><?php echo $_smarty_tpl->tpl_vars['gui']->value->import_title;?>
</h1>

<?php if ($_smarty_tpl->tpl_vars['gui']->value->resultMap == null) {?>
<form method="post" enctype="multipart/form-data" action="<?php echo $_smarty_tpl->tpl_vars['SCRIPT_NAME']->value;?>
">

  <table>
  <tr>
  <td> <?php echo $_smarty_tpl->tpl_vars['labels']->value['file_type'];?>
 </td>
  <td> <select name="importType">
         <?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['gui']->value->importTypes),$_smarty_tpl);?>

	     </select>
	<a href=<?php echo $_smarty_tpl->tpl_vars['basehref']->value;
echo @constant('PARTIAL_URL_TL_FILE_FORMATS_DOCUMENT');?>
><?php echo $_smarty_tpl->tpl_vars['labels']->value['view_file_format_doc'];?>
</a>
	</td>
	</tr>
	<tr><td><?php echo $_smarty_tpl->tpl_vars['labels']->value['local_file'];?>
 </td>
	    <td><input type="file" name="uploadedFile" 
	                           size="<?php echo $_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, 'FILENAME_SIZE');?>
" maxlength="<?php echo $_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, 'FILENAME_MAXLEN');?>
"/></td>
	</tr>
	<?php if ($_smarty_tpl->tpl_vars['gui']->value->hitOptions != '') {?>
	  <tr><td><?php echo $_smarty_tpl->tpl_vars['labels']->value['duplicate_criteria'];?>
 </td>
	      <td><select name="hit_criteria" id="hit_criteria">
	  			  <?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['gui']->value->hitOptions,'selected'=>$_smarty_tpl->tpl_vars['gui']->value->hitCriteria),$_smarty_tpl);?>

	  		    </select>
      </td>
	  </tr>
	<?php }?>

	<?php if ($_smarty_tpl->tpl_vars['gui']->value->actionOptions != '') {?>
	<tr><td><?php echo $_smarty_tpl->tpl_vars['labels']->value['action_for_duplicates'];?>
 </td>
	    <td><select name="action_on_duplicated_name">
				  <?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['gui']->value->actionOptions,'selected'=>$_smarty_tpl->tpl_vars['gui']->value->action_on_duplicated_name),$_smarty_tpl);?>

			    </select>
    </td>
	</tr>
	<?php }?>

	</table>
	<p><?php echo $_smarty_tpl->tpl_vars['labels']->value['max_size_cvs_file1'];?>
 <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->importLimitKB, ENT_QUOTES, 'UTF-8', true);?>
 <?php echo $_smarty_tpl->tpl_vars['labels']->value['max_size_cvs_file2'];?>
</p>
	<div class="groupBtn">
		<input type="hidden" name="useRecursion" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->useRecursion, ENT_QUOTES, 'UTF-8', true);?>
" />
		<input type="hidden" name="bIntoProject" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->bIntoProject, ENT_QUOTES, 'UTF-8', true);?>
" />
		<input type="hidden" name="containerID" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->containerID, ENT_QUOTES, 'UTF-8', true);?>
" />
		<input type="hidden" name="MAX_FILE_SIZE" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->importLimitBytes, ENT_QUOTES, 'UTF-8', true);?>
" /> 		<input type="submit" name="UploadFile" value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['btn_upload_file'];?>
" />
		<input type="button" name="cancel" value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['btn_cancel'];?>
" 
			                   onclick="javascript:history.back();" />
	</div>
</form>
<?php } else { ?>
  <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['gui']->value->resultMap, 'result');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['result']->value) {
?>
    <?php echo $_smarty_tpl->tpl_vars['labels']->value['testcase'];?>
 : <b><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['result']->value[0], ENT_QUOTES, 'UTF-8', true);?>
</b> : <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['result']->value[1], ENT_QUOTES, 'UTF-8', true);?>
<br>
  <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>

  <?php $_smarty_tpl->_subTemplateRender("file:inc_refreshTree.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
}?>

<?php if ($_smarty_tpl->tpl_vars['gui']->value->bImport > 0) {?>
	<?php $_smarty_tpl->_subTemplateRender("file:inc_refreshTree.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, true);
}?>

<?php if ($_smarty_tpl->tpl_vars['gui']->value->file_check['status_ok'] == 0) {?>
  <?php echo '<script'; ?>
 type="text/javascript">
  alert_message("<?php echo strtr($_smarty_tpl->tpl_vars['labels']->value['warning'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\/" ));?>
","<?php echo strtr($_smarty_tpl->tpl_vars['gui']->value->file_check['msg'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\/" ));?>
");
  <?php echo '</script'; ?>
>
<?php }?>  


</div>

</body>
</html><?php }
}
