<?php
/* Smarty version 3.1.33, created on 2021-12-21 15:43:23
  from '/opt/lampp/htdocs/testlink/gui/templates/testcases/tcExport.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_61c1e80b7d4ba0_24230072',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '253b0099841576bbe1b97113e7a48d0aa1358842' => 
    array (
      0 => '/opt/lampp/htdocs/testlink/gui/templates/testcases/tcExport.tpl',
      1 => 1636032773,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:inc_head.tpl' => 1,
    'file:inc_del_onclick.tpl' => 1,
    'file:error_icon.tpl' => 1,
  ),
),false)) {
function content_61c1e80b7d4ba0_24230072 (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'=>'export_filename,warning_empty_filename,file_type,warning,export_cfields,title_req_export,
             view_file_format_doc,export_with_keywords,btn_export,export_tcase_external_id,btn_cancel,
             view_file_format_doc,export_with_prefix,export_summary,export_steps,export_preconditions,
             export_testcase_requirements,export_attachments'),$_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",'jsValidate'=>"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);
?>

<?php echo '<script'; ?>
 type="text/javascript">
var alert_box_title = "<?php echo strtr($_smarty_tpl->tpl_vars['labels']->value['warning'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\/" ));?>
";
var warning_empty_filename = "<?php echo strtr($_smarty_tpl->tpl_vars['labels']->value['warning_empty_filename'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\/" ));?>
";
function validateForm(f)
{
  if (isWhitespace(f.export_filename.value))
  {
    alert_message(alert_box_title,warning_empty_filename);
    selectField(f, 'export_filename');
    return false;
  }
  return true;
}

function mirrorCheckbox(sourceOID,targetOID)
{
  var scb = document.getElementById(sourceOID);
  var tcb = document.getElementById(targetOID);

  if(scb.checked)
  {
    tcb.disabled = 0;
  }
  else
  {
    tcb.checked = 0;
    tcb.disabled = 1;
  }
}


<?php echo '</script'; ?>
>
</head>

<body>
<h1 class="title"><?php echo $_smarty_tpl->tpl_vars['gui']->value->page_title;
echo @constant('TITLE_SEP');
echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->object_name, ENT_QUOTES, 'UTF-8', true);?>
</h1>

<div class="workBack">

<?php if ($_smarty_tpl->tpl_vars['gui']->value->do_it == 1) {?>
  <form method="post" id="export_xml" enctype="multipart/form-data"
        action="<?php echo $_smarty_tpl->tpl_vars['basehref']->value;?>
lib/testcases/tcExport.php"
        onSubmit="javascript:return validateForm(this);">

    <table>
    <tr>
    <td>
    <?php echo $_smarty_tpl->tpl_vars['labels']->value['export_filename'];?>

    </td>
    <td>
  	<input type="text" name="export_filename" maxlength="<?php echo $_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, 'FILENAME_MAXLEN');?>
"
			           value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->export_filename, ENT_QUOTES, 'UTF-8', true);?>
" size="<?php echo $_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, 'FILENAME_SIZE');?>
"/>
			  				<?php $_smarty_tpl->_subTemplateRender("file:error_icon.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('field'=>"export_filename"), 0, false);
?>
  	</td>
  	<tr>
  	<td><?php echo $_smarty_tpl->tpl_vars['labels']->value['file_type'];?>
</td>
  	<td>
  	<select name="exportType">
  		<?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['gui']->value->exportTypes),$_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>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>

    <tr>
    <td><?php echo $_smarty_tpl->tpl_vars['labels']->value['export_tcase_external_id'];?>
</td>
    <td><input type="checkbox" name="exportTestCaseExternalID" id="exportTestCaseExternalID"
               value="1" onclick="mirrorCheckbox('exportTestCaseExternalID','addPrefix');" checked />
    <?php echo $_smarty_tpl->tpl_vars['labels']->value['export_with_prefix'];?>

    <input type="checkbox" name="addPrefix" id="addPrefix" value="1">
    </td>
    <tr>
    <td><?php echo $_smarty_tpl->tpl_vars['labels']->value['export_summary'];?>
</td>
    <td><input type="checkbox" name="exportTCSummary" value="1" checked /></td>
    </tr>
    <tr>
    <td><?php echo $_smarty_tpl->tpl_vars['labels']->value['export_preconditions'];?>
</td>
    <td><input type="checkbox" name="exportTCPreconditions" value="1" checked /></td>
    </tr>
    <tr>
    <td><?php echo $_smarty_tpl->tpl_vars['labels']->value['export_steps'];?>
</td>
    <td><input type="checkbox" name="exportTCSteps" value="1" checked /></td>
    </tr>

    </tr>
    <tr>
    <td><?php echo $_smarty_tpl->tpl_vars['labels']->value['export_testcase_requirements'];?>
</td>
    <td><input type="checkbox" name="exportReqs" value="1" checked /></td>
    </tr>
    <tr>
    <td><?php echo $_smarty_tpl->tpl_vars['labels']->value['export_cfields'];?>
</td>
    <td><input type="checkbox" name="exportCFields" value="1" checked /></td>
    </tr>
    <tr>
    <td><?php echo $_smarty_tpl->tpl_vars['labels']->value['export_with_keywords'];?>
</td>
    <td><input type="checkbox" name="exportKeywords" value="1" /></td>
    </tr>
	<tr>
    <td><?php echo $_smarty_tpl->tpl_vars['labels']->value['export_attachments'];?>
</td>
    <td><input type="checkbox" name="exportAttachments" value="1" /></td>
    </tr>




  	</table>

  	<div class="groupBtn">
      <input type="hidden" name="tproject_id" value="<?php echo $_smarty_tpl->tpl_vars['gui']->value->tproject_id;?>
" />
  		<input type="hidden" name="testcase_id" value="<?php echo $_smarty_tpl->tpl_vars['gui']->value->tcID;?>
" />
  		<input type="hidden" name="tcversion_id" value="<?php echo $_smarty_tpl->tpl_vars['gui']->value->tcVersionID;?>
" />
  		<input type="hidden" name="containerID" value="<?php echo $_smarty_tpl->tpl_vars['gui']->value->containerID;?>
" />
  		<input type="hidden" name="useRecursion" value="<?php echo $_smarty_tpl->tpl_vars['gui']->value->useRecursion;?>
" />
  		<input type="submit" name="export" value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['btn_export'];?>
" />
  		<input type="button" name="cancel" value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['btn_cancel'];?>
"
    		     <?php if ($_smarty_tpl->tpl_vars['gui']->value->goback_url != '') {?>  onclick="location='<?php echo $_smarty_tpl->tpl_vars['gui']->value->goback_url;?>
'"
             <?php } elseif ($_smarty_tpl->tpl_vars['gui']->value->cancelActionJS != '') {?> onclick="javascript:<?php echo $_smarty_tpl->tpl_vars['gui']->value->cancelActionJS;?>
;"
    		     <?php } else { ?>  onclick="javascript:history.back();" <?php }?> />
  	</div>
  </form>
<?php } else { ?>
	<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->nothing_todo_msg, ENT_QUOTES, 'UTF-8', true);?>

<?php }?>

</div>

</body>
</html>
<?php }
}
