<?php
/* Smarty version 3.1.33, created on 2022-02-15 20:58:45
  from '/home/recursosspa/public_html/testlink/gui/templates/plan/planUrgency.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_620c1405d906f0_55056067',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'dabe55d42d66035fa04926aab8a2a42380e264a0' => 
    array (
      0 => '/home/recursosspa/public_html/testlink/gui/templates/plan/planUrgency.tpl',
      1 => 1643038957,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:inc_head.tpl' => 1,
  ),
),false)) {
function content_620c1405d906f0_55056067 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_assignInScope('ownURL', "lib/plan/planUrgency.php");
echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang_get'][0], array( array('var'=>"labels",'s'=>'title_plan_urgency, th_testcase, th_urgency, urgency_low, urgency_medium, urgency_high,
             label_set_urgency_ts, btn_set_urgency_tc, urgency_description,testsuite_is_empty,
             priority, importance, execution_history, design,assigned_to'),$_smarty_tpl ) );?>


<?php $_smarty_tpl->_subTemplateRender("file:inc_head.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<body>

<h1 class="title"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->tplan_name, ENT_QUOTES, 'UTF-8', true);
echo $_smarty_tpl->tpl_vars['tlCfg']->value->gui_title_separator_2;
echo $_smarty_tpl->tpl_vars['labels']->value['title_plan_urgency'];?>

   <?php echo $_smarty_tpl->tpl_vars['tlCfg']->value->gui_title_separator_1;
echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->node_name, ENT_QUOTES, 'UTF-8', true);?>
</h1>

<div class="workBack">

<?php if ($_smarty_tpl->tpl_vars['gui']->value->listTestCases != '') {?>
  <div class="groupBtn">
    <form method="post" action="<?php echo $_smarty_tpl->tpl_vars['ownURL']->value;?>
" id="set_urgency">
     <span><?php echo $_smarty_tpl->tpl_vars['labels']->value['label_set_urgency_ts'];?>

      <input type="submit" name="high_urgency" value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['urgency_high'];?>
" />
      <input type="submit" name="medium_urgency" value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['urgency_medium'];?>
" />
      <input type="submit" name="low_urgency" value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['urgency_low'];?>
" />
      <input type="hidden" name="tplan_id" value="<?php echo $_smarty_tpl->tpl_vars['gui']->value->tplan_id;?>
" />
      <input type="hidden" name="id" value="<?php echo $_smarty_tpl->tpl_vars['gui']->value->node_id;?>
" />
      <input type="hidden" name="form_token" id="form_token" value="<?php echo $_smarty_tpl->tpl_vars['gui']->value->formToken;?>
" />
    </span>
    </form>
  </div>

  <form method="post" action="<?php echo $_smarty_tpl->tpl_vars['ownURL']->value;?>
" id="set_urgency_tc">
  <input type="hidden" name="tplan_id" value="<?php echo $_smarty_tpl->tpl_vars['gui']->value->tplan_id;?>
" />
  <input type="hidden" name="id" value="<?php echo $_smarty_tpl->tpl_vars['gui']->value->node_id;?>
" />
  <input type="hidden" name="form_token" id="form_token" value="<?php echo $_smarty_tpl->tpl_vars['gui']->value->formToken;?>
" />
  <table class="simple_tableruler" style="text-align: center">
  <tr>
    <th style="text-align: left;"><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_testcase'];?>
</th>
    <th style="text-align: left;"><?php echo $_smarty_tpl->tpl_vars['labels']->value['assigned_to'];?>
</th>
    <th><?php echo $_smarty_tpl->tpl_vars['labels']->value['importance'];?>
</th>
    <th colspan="3"><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_urgency'];?>
</th>
    <th><?php echo $_smarty_tpl->tpl_vars['labels']->value['priority'];?>
</th>
  </tr>

  <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['gui']->value->listTestCases, 'itemSet');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['itemSet']->value) {
?>
    <?php $_smarty_tpl->_assignInScope('start', true);?>

    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['itemSet']->value, 'res');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['res']->value) {
?>
       <?php $_smarty_tpl->_assignInScope('importance', $_smarty_tpl->tpl_vars['res']->value['importance']);?>
       <?php $_smarty_tpl->_assignInScope('urgencyCode', $_smarty_tpl->tpl_vars['res']->value['urgency']);?>
       <?php $_smarty_tpl->_assignInScope('priority', $_smarty_tpl->tpl_vars['res']->value['priority']);?>
   
      <tr>

      <?php if ($_smarty_tpl->tpl_vars['start']->value) {?>
        <?php $_smarty_tpl->_assignInScope('start', false);?>
          <td style="text-align: left;">
            <img class="clickable" src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['history_small'];?>
"
                 onclick="javascript:openExecHistoryWindow(<?php echo $_smarty_tpl->tpl_vars['res']->value['testcase_id'];?>
);"
                 title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['execution_history'];?>
" />
            <img class="clickable" src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['edit_icon'];?>
"
                 onclick="javascript:openTCaseWindow(<?php echo $_smarty_tpl->tpl_vars['res']->value['testcase_id'];?>
);"
                 title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['design'];?>
" />
              <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['res']->value['tcprefix'], ENT_QUOTES, 'UTF-8', true);
echo $_smarty_tpl->tpl_vars['res']->value['tc_external_id'];
echo $_smarty_tpl->tpl_vars['gsmarty_gui']->value->title_separator_1;
echo htmlspecialchars($_smarty_tpl->tpl_vars['res']->value['name'], ENT_QUOTES, 'UTF-8', true);?>

          </td>
          <td style="text-align: left;">
              <?php if ($_smarty_tpl->tpl_vars['res']->value['assigned_to'] != '') {?>
              <img src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['info_small'];?>
" title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['res']->value['first'], ENT_QUOTES, 'UTF-8', true);?>
 <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['res']->value['last'], ENT_QUOTES, 'UTF-8', true);?>
"> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['res']->value['assigned_to'], ENT_QUOTES, 'UTF-8', true);?>
 
              <?php }?>
          </td>

          <td><?php echo $_smarty_tpl->tpl_vars['gsmarty_option_importance']->value[$_smarty_tpl->tpl_vars['importance']->value];?>
</td>
          <td><input type="radio"  name="urgency[<?php echo $_smarty_tpl->tpl_vars['res']->value['tcversion_id'];?>
]"  value="<?php echo @constant('HIGH');?>
" 
                 <?php if ($_smarty_tpl->tpl_vars['urgencyCode']->value == @constant('HIGH')) {?>  checked="checked"  <?php }?>  />
            <span style="vertical-align:middle;"><?php echo $_smarty_tpl->tpl_vars['labels']->value['urgency_high'];?>
</span>
          </td>

          <td><input type="radio"  name="urgency[<?php echo $_smarty_tpl->tpl_vars['res']->value['tcversion_id'];?>
]"  value="<?php echo @constant('MEDIUM');?>
" 
                 <?php if ($_smarty_tpl->tpl_vars['urgencyCode']->value == @constant('MEDIUM')) {?> checked="checked" <?php }?>/>
            <span style="vertical-align:middle;"><?php echo $_smarty_tpl->tpl_vars['labels']->value['urgency_medium'];?>
</span>
          </td>
          
          <td><input type="radio"  name="urgency[<?php echo $_smarty_tpl->tpl_vars['res']->value['tcversion_id'];?>
]" value="<?php echo @constant('LOW');?>
" 
                 <?php if ($_smarty_tpl->tpl_vars['urgencyCode']->value == @constant('LOW')) {?> checked="checked" <?php }?>  />
            <span style="vertical-align:middle;"><?php echo $_smarty_tpl->tpl_vars['labels']->value['urgency_low'];?>
</span>
          </td>
          <td><?php echo $_smarty_tpl->tpl_vars['gsmarty_option_priority']->value[$_smarty_tpl->tpl_vars['priority']->value];?>
</td>
      <?php } else { ?>
          <td>&nbsp;</td>
          <td style="text-align: left;">
             <?php if ($_smarty_tpl->tpl_vars['res']->value['assigned_to'] != '') {?>
               <img src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['info_small'];?>
" title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['res']->value['first'], ENT_QUOTES, 'UTF-8', true);?>
 <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['res']->value['last'], ENT_QUOTES, 'UTF-8', true);?>
"> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['res']->value['assigned_to'], ENT_QUOTES, 'UTF-8', true);?>

               <br> &nbsp;               <?php }?>
          </td>
          <td>&nbsp;</td>
          <td><span style="vertical-align:middle;">&nbsp;</span></td>
          <td><span style="vertical-align:middle;">&nbsp;</span></td>
          <td><span style="vertical-align:middle;">&nbsp;</span></td>
          <td>&nbsp;</td>
      <?php }?>  
      </tr>
    <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
  <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
  </table>

  <div class="groupBtn">
    <input type="submit" value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['btn_set_urgency_tc'];?>
" />
  </div>
  </form>
  <p><?php echo $_smarty_tpl->tpl_vars['labels']->value['urgency_description'];?>
</p>
<?php } else { ?>
  <p><?php echo $_smarty_tpl->tpl_vars['labels']->value['testsuite_is_empty'];?>
</p>
<?php }?>
</div>
</body>
</html><?php }
}
