<?php
/* Smarty version 3.1.33, created on 2021-11-04 17:22:55
  from '/opt/lampp/htdocs/testlink/gui/templates/issuetrackers/issueTrackerView.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_618408df315e60_94243758',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'f8f0b49645f3d405260ce8f6814b767381fd65dc' => 
    array (
      0 => '/opt/lampp/htdocs/testlink/gui/templates/issuetrackers/issueTrackerView.tpl',
      1 => 1636032772,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:inc_head.tpl' => 1,
    'file:inc_del_onclick.tpl' => 1,
    'file:inc_feedback.tpl' => 1,
  ),
),false)) {
function content_618408df315e60_94243758 (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',),));
$_smarty_tpl->_subTemplateRender("file:inc_head.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('jsValidate'=>"yes",'openHead'=>"yes",'enableTableSorting'=>"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 $_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 echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang_get'][0], array( array('var'=>'labels','s'=>'th_issuetracker,th_issuetracker_type,th_delete,th_description,menu_assign_kw_to_tc,title_issuetracker_mgmt,
          	 btn_create,alt_delete,th_issuetracker_env,check_bts_connection,bts_check_ok,bts_check_ko'),$_smarty_tpl ) );?>


<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang_get'][0], array( array('s'=>'warning_delete','var'=>"warning_msg"),$_smarty_tpl ) );?>

<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang_get'][0], array( array('s'=>'delete','var'=>"del_msgbox_title"),$_smarty_tpl ) );?>


<?php echo '<script'; ?>
 type="text/javascript">
/* All this stuff is needed for logic contained in inc_del_onclick.tpl */
var del_action=fRoot+'lib/issuetrackers/issueTrackerEdit.php?doAction=doDelete&id=';
<?php echo '</script'; ?>
> 
</head>
<body <?php echo $_smarty_tpl->tpl_vars['body_onload']->value;?>
>
<h1 class="title"><?php echo $_smarty_tpl->tpl_vars['labels']->value['title_issuetracker_mgmt'];?>
</h1>

<div class="workBack">
	<?php $_smarty_tpl->_subTemplateRender("file:inc_feedback.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('user_feedback'=>$_smarty_tpl->tpl_vars['gui']->value->user_feedback), 0, false);
?>
	<?php if ($_smarty_tpl->tpl_vars['gui']->value->items != '') {?>
	<table class="simple_tableruler sortable">
		<tr>
			<th width="30%"><?php echo $_smarty_tpl->tpl_vars['tlImages']->value['sort_hint'];
echo $_smarty_tpl->tpl_vars['labels']->value['th_issuetracker'];?>
</th>
			<th><?php echo $_smarty_tpl->tpl_vars['tlImages']->value['sort_hint'];
echo $_smarty_tpl->tpl_vars['labels']->value['th_issuetracker_type'];?>
</th>
			<th><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_issuetracker_env'];?>
</th>
			<?php if ($_smarty_tpl->tpl_vars['gui']->value->canManage != '') {?>
				<th style="min-width:70px"><?php echo $_smarty_tpl->tpl_vars['tlImages']->value['sort_hint'];
echo $_smarty_tpl->tpl_vars['labels']->value['th_delete'];?>
</th>
			<?php }?>
		</tr>

  	<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['gui']->value->items, 'item_def', false, 'item_id');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['item_id']->value => $_smarty_tpl->tpl_vars['item_def']->value) {
?>
		<tr>
			<td>
				<?php if ($_smarty_tpl->tpl_vars['gui']->value->canManage != '') {?>
					<a href="lib/issuetrackers/issueTrackerView.php?id=<?php echo $_smarty_tpl->tpl_vars['item_def']->value['id'];?>
">
					  <img src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['wrench'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['check_bts_connection'];?>
">
					</a>
          <?php if ($_smarty_tpl->tpl_vars['item_def']->value['connection_status'] == "ok") {?>
					  <img src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['check_ok'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['bts_check_ok'];?>
">
				  <?php } elseif ($_smarty_tpl->tpl_vars['item_def']->value['connection_status'] == "ko") {?>
					  <img src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['check_ko'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['bts_check_ko'];?>
">
				  <?php } else { ?>
				    &nbsp;
				  <?php }?>
				<?php }?>

				<?php if ($_smarty_tpl->tpl_vars['gui']->value->canManage != '') {?>
					<a href="lib/issuetrackers/issueTrackerEdit.php?doAction=edit&amp;id=<?php echo $_smarty_tpl->tpl_vars['item_def']->value['id'];?>
">
				<?php }?>
				<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item_def']->value['name'], ENT_QUOTES, 'UTF-8', true);?>

				<?php if ($_smarty_tpl->tpl_vars['gui']->value->canManage != '') {?>
					</a>
				<?php }?>

			</td>
			<td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item_def']->value['type_descr'], ENT_QUOTES, 'UTF-8', true);?>
</td>
			<td class="clickable_icon"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item_def']->value['env_check_msg'], ENT_QUOTES, 'UTF-8', true);?>
</td>

				<td class="clickable_icon">
				<?php if ($_smarty_tpl->tpl_vars['gui']->value->canManage != '' && $_smarty_tpl->tpl_vars['item_def']->value['link_count'] == 0) {?>
			  		<img style="border:none;cursor: pointer;"
			       		alt="<?php echo $_smarty_tpl->tpl_vars['labels']->value['alt_delete'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['alt_delete'];?>
"   
             		src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['delete'];?>
"			     
				     	 onclick="delete_confirmation(<?php echo $_smarty_tpl->tpl_vars['item_def']->value['id'];?>
,
				              '<?php echo htmlspecialchars(strtr($_smarty_tpl->tpl_vars['item_def']->value['name'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\/" )), ENT_QUOTES, 'UTF-8', true);?>
',
				              '<?php echo $_smarty_tpl->tpl_vars['del_msgbox_title']->value;?>
','<?php echo $_smarty_tpl->tpl_vars['warning_msg']->value;?>
');" />
				<?php }?>
				</td>
		</tr>
		<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
	</table>
	<?php }?>
	
	<div class="groupBtn">	
	  	<form name="item_view" id="item_view" method="post" action="lib/issuetrackers/issueTrackerEdit.php"> 
	  	  <input type="hidden" name="doAction" value="" />
	
		<?php if ($_smarty_tpl->tpl_vars['gui']->value->canManage != '') {?>
	  		<input type="submit" id="create" name="create" value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['btn_create'];?>
" 
	  	           onclick="doAction.value='create'"/>
		<?php }?>
	  	</form>
	</div>
</div>

</body>
</html><?php }
}
