<?php
/* Smarty version 3.1.33, created on 2025-10-17 08:57:09
  from 'C:\php5.6\htdocs\testlink-1.9.20\gui\templates\tl-classic\plan\planImport.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_68f1e8c5432011_65782238',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'c8bd7cd39676ee970902beb73209fa6867a5e8f9' => 
    array (
      0 => 'C:\\php5.6\\htdocs\\testlink-1.9.20\\gui\\templates\\tl-classic\\plan\\planImport.tpl',
      1 => 1579460696,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:inc_head.tpl' => 1,
    'file:inc_del_onclick.tpl' => 1,
    'file:inc_refreshTree.tpl' => 2,
  ),
),false)) {
function content_68f1e8c5432011_65782238 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'C:\\php5.6\\htdocs\\testlink-1.9.20\\vendor\\smarty\\smarty\\libs\\plugins\\modifier.replace.php','function'=>'smarty_modifier_replace',),1=>array('file'=>'C:\\php5.6\\htdocs\\testlink-1.9.20\\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,
             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 htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->main_descr, 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>

	</table>
	<p><?php echo $_smarty_tpl->tpl_vars['labels']->value['max_size_cvs_file1'];?>
 <?php echo $_smarty_tpl->tpl_vars['gui']->value->importLimitKB;?>
 <?php echo $_smarty_tpl->tpl_vars['labels']->value['max_size_cvs_file2'];?>
</p>
	<div class="groupBtn">
				<input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $_smarty_tpl->tpl_vars['gui']->value->importLimitBytes;?>
" /> 
		<input type="hidden" name="tplan_id" value="<?php echo $_smarty_tpl->tpl_vars['gui']->value->tplan_id;?>
" />

		<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) {
?>
		<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->import_done) {?>
	<?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">
//  BUGID 3943: Escape all messages (string)
  alert_message("<?php echo $_smarty_tpl->tpl_vars['labels']->value['warning'];?>
","<?php echo strtr($_smarty_tpl->tpl_vars['gui']->value->file_check['msg'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\/" ));?>
");
  // alert("<?php echo $_smarty_tpl->tpl_vars['gui']->value->file_check['msg'];?>
");
  <?php echo '</script'; ?>
>
<?php }?>  
</div>

</body>
</html><?php }
}
