<?php /* Smarty version 2.6.26, created on 2017-04-19 09:28:16
         compiled from /home3/bargaip4/public_html/gevimmo/plugins/multiField/admin/flsource.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'get_object_vars', '/home3/bargaip4/public_html/gevimmo/plugins/multiField/admin/flsource.tpl', 6, false),)), $this); ?>
<?php if ($this->_tpl_vars['data']): ?>
	<div class="dark_14_bold" style="margin-bottom:15px"><?php echo $this->_tpl_vars['lang']['mf_server_datalist']; ?>
</div>

	<table style="height:100%">	
	<?php $_from = $this->_tpl_vars['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['obj']):
?>
		<?php $this->assign('item', get_object_vars($this->_tpl_vars['obj'])); ?>
		<tr>
			<td style="padding:5px">
				<?php echo $this->_tpl_vars['item']['Name']; ?>

			</td>
			<td style="padding:0 10px 8px 20px">
								<input type="button" value="<?php echo $this->_tpl_vars['lang']['mf_import_all']; ?>
" onclick="$(this).attr('disabled', 'disabled');xajax_importSource('', '<?php echo $this->_tpl_vars['item']['Table']; ?>
', false)"/>
			</td>
			<td style="padding:0 10px 8px 20px">
								<input type="button" value="<?php echo $this->_tpl_vars['lang']['mf_import_partially']; ?>
" onclick="$(this).attr('disabled', 'disabled');xajax_expandSource('<?php echo $this->_tpl_vars['item']['Table']; ?>
')"/>
			</td>
			<?php if ($_SESSION['mf_import']['parents']): ?>
				<td style="padding:0 10px 8px 20px">
					<input type="button" value="<?php echo $this->_tpl_vars['lang']['mf_import_resume']; ?>
" onclick="$(this).attr('disabled', 'disabled');xajax_importSource('', '<?php echo $this->_tpl_vars['item']['Table']; ?>
', false, true)"/>
				</td>
			<?php endif; ?>
		</tr>
	<?php endforeach; endif; unset($_from); ?>
	</table>
<?php elseif ($this->_tpl_vars['topdata']): ?>
	<input type="hidden" value="<?php echo $this->_tpl_vars['table']; ?>
" name="table"/>

	<div class="dark_14_bold" style="margin-bottom:15px"><?php echo $this->_tpl_vars['lang']['mf_choose_items_to_import']; ?>
</div>
	<span id="cats_nav" <?php if ($this->_tpl_vars['sPost']['show_on_all']): ?>class="hide"<?php endif; ?>>
		<span onclick="$('div.td_div input').attr('checked', true);" class="green_10" style="cursor:pointer"><?php echo $this->_tpl_vars['lang']['check_all']; ?>
</span>
		<span class="divider"> | </span>
		<span onclick="$('div.td_div input').attr('checked', false);" class="green_10" style="cursor:pointer"><?php echo $this->_tpl_vars['lang']['uncheck_all']; ?>
</span>
	</span>

	<div style="padding:10px">
		<?php $_from = $this->_tpl_vars['topdata']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['tdLoop'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['tdLoop']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['obj']):
        $this->_foreach['tdLoop']['iteration']++;
?>
			<?php $this->assign('item', get_object_vars($this->_tpl_vars['obj'])); ?>
			<div class="td_div">
				<label title="<?php echo $this->_tpl_vars['item']['Name']; ?>
" alt="<?php echo $this->_tpl_vars['item']['Name']; ?>
"><input style="margin:2px 4px 0" type="checkbox" value="<?php echo $this->_tpl_vars['item']['Key']; ?>
" /><?php echo $this->_tpl_vars['item']['Name']; ?>
</label>
			</div>	
		<?php endforeach; endif; unset($_from); ?>
	</div>
	<div class="clear"></div>

	<span id="cats_nav" <?php if ($this->_tpl_vars['sPost']['show_on_all']): ?>class="hide"<?php endif; ?>>
		<span onclick="$('div.td_div input').attr('checked', true);" class="green_10" style="cursor:pointer"><?php echo $this->_tpl_vars['lang']['check_all']; ?>
</span>
		<span class="divider"> | </span>
		<span onclick="$('div.td_div input').attr('checked', false);" class="green_10" style="cursor:pointer"><?php echo $this->_tpl_vars['lang']['uncheck_all']; ?>
</span>
	</span>

	<div class="hide clear field_description" style="margin:10px 10px 10px 0" id="checked_one_hint">
		<label style="margin-left:20px"><input type="checkbox" id="ignore_one" value="1" style="margin:0 10px"/><?php echo $this->_tpl_vars['lang']['mf_import_without_parent_ignore']; ?>
</label>
		<?php echo $this->_tpl_vars['lang']['mf_import_without_parent_hint']; ?>

	</div>
	
	<div>
		<input type="button" id="import_button" value="<?php echo $this->_tpl_vars['lang']['mf_import']; ?>
" />
		<input type="button" id="back_button" value="Back" onclick="$(this).val('<?php echo $this->_tpl_vars['lang']['loading']; ?>
');xajax_listSources()"/>
	</div>
	
	<style>
		<?php echo '
		.td_div
		{
			float:left;
			width:200px;
			height:19px;
			overflow:hidden;
		}
		'; ?>

	</style>
<?php else: ?>
	<div style="padding: 85px 0 60px 0;text-align: center;" class="purple_13"><?php echo $this->_tpl_vars['lang']['flynax_connect_fail']; ?>
</div>
<?php endif; ?>


