<?php
/* Smarty version 3.1.30, created on 2017-04-01 23:56:25
  from "D:\makl\xampp\htdocs\www\2017\wod_co\dev\src\Admin\template\partial\HomeSite\Baner.tpl" */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.30',
  'unifunc' => 'content_58e02209db4932_60050587',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '4e1befda6578ec03ee761305aa8ce9d031b4691c' => 
    array (
      0 => 'D:\\makl\\xampp\\htdocs\\www\\2017\\wod_co\\dev\\src\\Admin\\template\\partial\\HomeSite\\Baner.tpl',
      1 => 1477588960,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_58e02209db4932_60050587 (Smarty_Internal_Template $_smarty_tpl) {
if (!is_callable('smarty_function_url')) require_once 'D:\\makl\\xampp\\htdocs\\www\\2017\\wod_co\\dev\\src\\core\\plugins\\Smarty\\function.url.php';
if (!is_callable('smarty_block_dropDownContainer')) require_once 'D:\\makl\\xampp\\htdocs\\www\\2017\\wod_co\\dev\\src\\core\\plugins\\Smarty\\block.dropDownContainer.php';
if (!is_callable('smarty_function_thumb')) require_once 'D:\\makl\\xampp\\htdocs\\www\\2017\\wod_co\\dev\\src\\core\\plugins\\Smarty\\function.thumb.php';
?>

	<form action="<?php echo smarty_function_url(array('HomeSite'=>'EditBaner'),$_smarty_tpl);?>
" id="sendForm"  method="post" enctype="multipart/form-data" >

				
				<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>'Boxy'));
$_block_repeat1=true;
echo smarty_block_dropDownContainer(array('title'=>'Boxy'), null, $_smarty_tpl, $_block_repeat1);
while ($_block_repeat1) {
ob_start();
?>

				<?php $_smarty_tpl->_assignInScope('x', 1);
?>

<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['arrayToEdit']->value, 'objHomeElement', false, 'keyHome');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['keyHome']->value => $_smarty_tpl->tpl_vars['objHomeElement']->value) {
?>
				<div class="articlePreviewRight"  >
					<input class="inputWidth141 input100percent" type="hidden" name="elementId[<?php echo $_smarty_tpl->tpl_vars['keyHome']->value;?>
]" value="<?php echo $_smarty_tpl->tpl_vars['objHomeElement']->value->GetId();?>
" />
						<table class="frameTableForm tableContetntWhite" cellpadding="5" cellspacing="0" border="0"  >
							<?php if ($_smarty_tpl->tpl_vars['objHomeElement']->value->GetPhotoUrl()) {?>
								<tr>
									<td colspan="2">

										<?php $_smarty_tpl->_assignInScope('imageSlider', $_smarty_tpl->tpl_vars['objHomeElement']->value->GetPhotoPath());
?>
						 <?php echo smarty_function_thumb(array('file'=>$_smarty_tpl->tpl_vars['imageSlider']->value,'longside'=>false,'shortside'=>false,'width'=>"1200",'height'=>"390",'link'=>'false','crop'=>true),$_smarty_tpl);?>

									</td>																
								</tr>
							<?php }?>
						<tr>
									<td>Tytuł:</td>
									<td class="left">
										<input class="inputWidth141 input100percent" type="text" name="elementName[<?php echo $_smarty_tpl->tpl_vars['keyHome']->value;?>
]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['objHomeElement']->value->GetName(), ENT_QUOTES, 'UTF-8', true);?>
" />
									<?php if (isset($_smarty_tpl->tpl_vars['error']->value['elementName'])) {?><div style="color: red;" id="actionError"><?php echo $_smarty_tpl->tpl_vars['error']->value['elementName'];?>
</div><?php }?>
									</td>									
								</tr>
								<tr>
									<td>Opis:</td>
									<td class="left">
										<textarea name="elementText[<?php echo $_smarty_tpl->tpl_vars['keyHome']->value;?>
]" cols="54" rows="5"><?php echo $_smarty_tpl->tpl_vars['objHomeElement']->value->GetDescription();?>
</textarea>
									<?php if (isset($_smarty_tpl->tpl_vars['error']->value['elementName'])) {?><div style="color: red;" id="actionError"><?php echo $_smarty_tpl->tpl_vars['error']->value['elementName'];?>
</div><?php }?>
									</td>									
								</tr>
								<tr>
									<td>Url:</td>
									<td class="left">
										<input class="inputWidth141 input100percent" type="text" name="elementUrl[<?php echo $_smarty_tpl->tpl_vars['keyHome']->value;?>
]" value="<?php echo $_smarty_tpl->tpl_vars['objHomeElement']->value->GetSourceUrl();?>
" /></br>
									<?php if (isset($_smarty_tpl->tpl_vars['error']->value['elementName'])) {?><div style="color: red;" id="actionError"><?php echo $_smarty_tpl->tpl_vars['error']->value['elementName'];?>
</div><?php }?>
									</td>									
								</tr>
								
								<tr>
									<td>Obraz:</td>
									<td class="left">
										<input type="file" name="elementImg_<?php echo $_smarty_tpl->tpl_vars['keyHome']->value;?>
"><br/>
									</td>									
								</tr>
								<tr>
									<td>Wyczyść:</td>
									<td class="left">
										<input type="checkbox" name="elementClear[<?php echo $_smarty_tpl->tpl_vars['keyHome']->value;?>
]"><br/>
									</td>									
								</tr>
								<tr>
									<td>Kolejność:</td>
									<td class="left">
										<input type="text" name="elementSort[<?php echo $_smarty_tpl->tpl_vars['keyHome']->value;?>
]" value="<?php echo $_smarty_tpl->tpl_vars['objHomeElement']->value->GetSort();?>
"><br/>
									</td>									
								</tr>
						</table>
				</div>
				<div class="clearBoth"></div>
				<hr>
<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>

				<div class="clearBoth"></div>
				
				<?php $_block_repeat1=false;
echo smarty_block_dropDownContainer(array('title'=>'Boxy'), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
}
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>

				
			<div class="panelButtons">
					<input type="button" class="cancel" value="Anulij" name="" onclick="javascript:document.location.href='<?php echo smarty_function_url(array('HomeSite'=>'Baner'),$_smarty_tpl);?>
'"/>
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<input type="submit" class="button buttonZapisz" value="Zapisz" name="AddHomesite"/>
			</div>

	</form>
<?php }
}
