<?php
/* Smarty version 3.1.33, created on 2022-02-15 14:03:33
  from '/home/recursosspa/public_html/testlink/gui/templates/cfields/cfieldsTprojectAssign.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_620bb2b5289298_89399926',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '95995f6ec6a3db3809bb2c2a8bb920d9c01bb86a' => 
    array (
      0 => '/home/recursosspa/public_html/testlink/gui/templates/cfields/cfieldsTprojectAssign.tpl',
      1 => 1643038945,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:inc_head.tpl' => 1,
    'file:inc_jsCheckboxes.tpl' => 1,
    'file:inc_update.tpl' => 1,
  ),
),false)) {
function content_620bb2b5289298_89399926 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/home/recursosspa/public_html/testlink/vendor/smarty/smarty/libs/plugins/modifier.replace.php','function'=>'smarty_modifier_replace',),1=>array('file'=>'/home/recursosspa/public_html/testlink/vendor/smarty/smarty/libs/plugins/function.html_options.php','function'=>'smarty_function_html_options',),));
$_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_jsCheckboxes.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
</head>

<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang_get'][0], array( array('var'=>"labels",'s'=>'name,label,display_order,location,cfields_active,testproject,btn_assign,
             cfields_tproject_assign,title_assigned_cfields,check_uncheck_all_checkboxes,
             available_on,type,required,
             manage_cfield,btn_unassign,btn_cfields_boolean_mgmt,btn_cfields_display_order,
             btn_cfields_display_attr,title_available_cfields,monitorable'),$_smarty_tpl ) );?>


<body>
<?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);
?>


<h1 class="title">
<?php echo $_smarty_tpl->tpl_vars['labels']->value['cfields_tproject_assign'];
echo @constant('TITLE_SEP_TYPE2');
echo $_smarty_tpl->tpl_vars['labels']->value['testproject'];
echo @constant('TITLE_SEP');
echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->tproject_name, ENT_QUOTES, 'UTF-8', true);?>

</h1>

<?php $_smarty_tpl->_subTemplateRender("file:inc_update.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('result'=>$_smarty_tpl->tpl_vars['sqlResult']->value,'action'=>$_smarty_tpl->tpl_vars['action']->value,'item'=>"custom_field"), 0, false);
?>


<?php if ($_smarty_tpl->tpl_vars['gui']->value->linkedCF != '') {?>
  <div class="workBack">
    <h2><?php echo $_smarty_tpl->tpl_vars['labels']->value['title_assigned_cfields'];?>
</h2>
    <form method="post">
      <div id="assigned_cf"> 
 	           <input type="hidden" name="memory_assigned_cf"  
                            id="memory_assigned_cf"  value="0" />
      <table class="simple_tableruler">
      	<tr>
      		<th align="center"  style="width: 5px;background-color:#005498;"> 
      		    <img src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['toggle_all'];?>
"
      		             onclick='cs_all_checkbox_in_div("assigned_cf","assigned_cfield","memory_assigned_cf");'
      		             title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['check_uncheck_all_checkboxes'];?>
" />
      		</th>
      		<th width="40%"><?php echo $_smarty_tpl->tpl_vars['labels']->value['name'];?>
</th>
      		<th width="40%"><?php echo $_smarty_tpl->tpl_vars['labels']->value['label'];?>
</th>
      		<th><?php echo $_smarty_tpl->tpl_vars['labels']->value['type'];?>
</th>
      		<th><?php echo $_smarty_tpl->tpl_vars['labels']->value['available_on'];?>
</th>
      		<th width="15%"><?php echo $_smarty_tpl->tpl_vars['labels']->value['display_order'];?>
</th>
      		<th width="15%"><?php echo $_smarty_tpl->tpl_vars['labels']->value['location'];?>
</th>
      		<th width="5%"><?php echo $_smarty_tpl->tpl_vars['labels']->value['cfields_active'];?>
</th>
          <th width="5%"><?php echo $_smarty_tpl->tpl_vars['labels']->value['required'];?>
</th>
          <th width="5%"><?php echo $_smarty_tpl->tpl_vars['labels']->value['monitorable'];?>
</th>
      	</tr>
      	<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['gui']->value->linkedCF, 'cf', false, 'cf_id');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['cf_id']->value => $_smarty_tpl->tpl_vars['cf']->value) {
?>
      	<tr>
      		<td class="clickable_icon"><input type="checkbox" id="assigned_cfield<?php echo $_smarty_tpl->tpl_vars['cf']->value['id'];?>
" name="checkedCF[<?php echo $_smarty_tpl->tpl_vars['cf']->value['id'];?>
]" /></td>
   		   	<td class="bold"><a href="lib/cfields/cfieldsEdit.php?do_action=edit&amp;cfield_id=<?php echo $_smarty_tpl->tpl_vars['cf']->value['id'];?>
"
   		   	                    title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['manage_cfield'];?>
"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cf']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
</a></td>
      		<td class="bold"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cf']->value['label'], ENT_QUOTES, 'UTF-8', true);?>
</td>
      		<td class="bold"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->cf_available_types[$_smarty_tpl->tpl_vars['cf']->value['type']], ENT_QUOTES, 'UTF-8', true);?>
</td>
      		<td class="bold"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->cf_allowed_nodes[$_smarty_tpl->tpl_vars['cf']->value['node_type_id']], ENT_QUOTES, 'UTF-8', true);?>
</td>


      		<td><input type="text" name="display_order[<?php echo $_smarty_tpl->tpl_vars['cf']->value['id'];?>
]" 
      		           value="<?php echo $_smarty_tpl->tpl_vars['cf']->value['display_order'];?>
" 
      		           size="<?php echo $_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, 'DISPLAY_ORDER_SIZE');?>
" maxlength="<?php echo $_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, 'DISPLAY_ORDER_MAXLEN');?>
" /></td>
      		           
      		<td>
      		      		<?php if ($_smarty_tpl->tpl_vars['cf']->value['node_description'] == 'testcase' && $_smarty_tpl->tpl_vars['cf']->value['enable_on_execution'] == 0) {?>
			  	<select name="location[<?php echo $_smarty_tpl->tpl_vars['cf']->value['id'];?>
]">
			  	  <?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['gui']->value->locations,'selected'=>$_smarty_tpl->tpl_vars['cf']->value['location']),$_smarty_tpl);?>

			  	</select>
      		<?php } else { ?>
      		&nbsp;
      		<?php }?>
      		</td>

      		<td><input type="checkbox" name="active_cfield[<?php echo $_smarty_tpl->tpl_vars['cf']->value['id'];?>
]" 
      		                           <?php if ($_smarty_tpl->tpl_vars['cf']->value['active'] == 1) {?> checked="checked" <?php }?> /> 
      		    <input type="hidden" name="hidden_active_cfield[<?php echo $_smarty_tpl->tpl_vars['cf']->value['id'];?>
]"  value="<?php echo $_smarty_tpl->tpl_vars['cf']->value['active'];?>
" /> 
      		</td>

          <td><input type="checkbox" name="required_cfield[<?php echo $_smarty_tpl->tpl_vars['cf']->value['id'];?>
]" 
                                     <?php if ($_smarty_tpl->tpl_vars['cf']->value['required'] == 1) {?> checked="checked" <?php }?> /> 
              <input type="hidden" name="hidden_required_cfield[<?php echo $_smarty_tpl->tpl_vars['cf']->value['id'];?>
]"  value="<?php echo $_smarty_tpl->tpl_vars['cf']->value['required'];?>
" /> 
          </td>

          <td><input type="checkbox" name="monitorable_cfield[<?php echo $_smarty_tpl->tpl_vars['cf']->value['id'];?>
]" 
                                     <?php if ($_smarty_tpl->tpl_vars['cf']->value['monitorable'] == 1) {?> checked="checked" <?php }?> /> 
              <input type="hidden" name="hidden_monitorable_cfield[<?php echo $_smarty_tpl->tpl_vars['cf']->value['id'];?>
]"  value="<?php echo $_smarty_tpl->tpl_vars['cf']->value['monitorable'];?>
" /> 
          </td>

      	</tr>
      	<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
      </table>
    	</div>
    	<div class="groupBtn">
        
        <input type="hidden" name="doAction" value="" />
    	  
    		<input type="submit" name="doUnassign" value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['btn_unassign'];?>
" 
    		                     onclick="doAction.value=this.name"/>
    		                     
    		<input type="submit" name="doBooleanMgmt" value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['btn_cfields_boolean_mgmt'];?>
"
    		                     onclick="doAction.value=this.name"/>

    		<input type="submit" name="doReorder" value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['btn_cfields_display_attr'];?>
" 
    		                     onclick="doAction.value=this.name"/>
    		
    	</div>
    </form>
    </div>
<?php }?>


<?php if ($_smarty_tpl->tpl_vars['gui']->value->other_cf != '') {?>
  <div class="workBack">
    <h2><?php echo $_smarty_tpl->tpl_vars['labels']->value['title_available_cfields'];?>
</h2>
    <form method="post">
      <div id="free_cf"> 
 	           <input type="hidden" name="memory_free_cf"  
                            id="memory_free_cf"  value="0" />

      <table class="simple_tableruler" style="width: 50%;">
      	<tr>
      		<th align="center"  style="width: 5px;background-color:#005498;"> 
      		    <img src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['toggle_all'];?>
"
      		             onclick='cs_all_checkbox_in_div("free_cf","free_cfield","memory_free_cf");'
      		             title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['check_uncheck_all_checkboxes'];?>
" />
      		</th>
      		<th><?php echo $_smarty_tpl->tpl_vars['labels']->value['name'];?>
</th>
      		<th><?php echo $_smarty_tpl->tpl_vars['labels']->value['label'];?>
</th>
      		<th><?php echo $_smarty_tpl->tpl_vars['labels']->value['type'];?>
</th>
      		<th><?php echo $_smarty_tpl->tpl_vars['labels']->value['available_on'];?>
</th>
      	</tr>
      	<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['gui']->value->other_cf, 'cf', false, 'cf_id');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['cf_id']->value => $_smarty_tpl->tpl_vars['cf']->value) {
?>
      	<tr>
      		<td class="clickable_icon"> <input type="checkbox" id="free_cfield<?php echo $_smarty_tpl->tpl_vars['cf']->value['id'];?>
" name="checkedCF[<?php echo $_smarty_tpl->tpl_vars['cf']->value['id'];?>
]" /></td>
      		<td class="bold"><a href="lib/cfields/cfieldsEdit.php?do_action=edit&amp;cfield_id=<?php echo $_smarty_tpl->tpl_vars['cf']->value['id'];?>
"
   		   	                    title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['manage_cfield'];?>
"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cf']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
</a></td>
      		<td class="bold"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cf']->value['label'], ENT_QUOTES, 'UTF-8', true);?>
</td>
      		<td class="bold"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->cf_available_types[$_smarty_tpl->tpl_vars['cf']->value['type']], ENT_QUOTES, 'UTF-8', true);?>
</td>
      		<td class="bold"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->cf_allowed_nodes[$_smarty_tpl->tpl_vars['cf']->value['node_type_id']], ENT_QUOTES, 'UTF-8', true);?>
</td>
      	</tr>
      	<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
      </table>
    	</div>
    	<div class="groupBtn">
        <input type="hidden" name="doAction" value="" />
    		<input type="submit" name="doAssign" id=this.name value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['btn_assign'];?>
" 
    		                     onclick="doAction.value=this.name"/>
    	</div>
    </form>
    </div>
<?php }?>

</body>
</html><?php }
}
