Files
zurawik.pl/Admin/temp/compile/728916d8769a3a9f1a542e5df60c2a16353b7dd5_0.file.Form.tpl.php
2026-05-15 18:33:51 +02:00

161 lines
4.5 KiB
PHP

<?php
/* Smarty version 3.1.30, created on 2024-02-03 22:36:16
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Image/Form.tpl" */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.30',
'unifunc' => 'content_65bebfe0366c80_72502836',
'has_nocache_code' => false,
'file_dependency' =>
array (
'728916d8769a3a9f1a542e5df60c2a16353b7dd5' =>
array (
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Image/Form.tpl',
1 => 1703168200,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_65bebfe0366c80_72502836 (Smarty_Internal_Template $_smarty_tpl) {
if (!is_callable('smarty_function_url')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.url.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>''</title>
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
/css/Admin/styleUP.css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="pl" />
<?php echo '<script'; ?>
src="<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
/script/jQuery/jquery-1.4.2.js" type="text/javascript" charset="utf-8"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
src="<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
/script/ajaxupload.3.5.js" type="text/javascript" charset="utf-8"><?php echo '</script'; ?>
>
<style>
body {
font-family: 'Montserrat', sans-serif; font-size:12px; color:#f7f7f7; margin:10px;
}
a {
color:#4182AB;
text-decoration:none;
}
.optionIcon {
margin: 4px auto;
width: 25px;
height: 25px;
border-radius: 20%;
display: inline-block;
justify-content: center;
align-items: flex-end;
position: relative;
cursor: pointer;
margin-left: 4px;
}
.iconAdd {
background: url('<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
/images/black_plus.svg') no-repeat left 3px top 3px;
background-size: 19px 19px;
background-color: #fff;
}
.iconAdd:hover {
background: url('<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
/images/white_plus.svg') no-repeat left 3px top 3px;
background-size: 19px 19px;
background-color: #3abe16;
color: #fff;
/*border-bottom: 3px solid #3abe16;*/
}
.addItemMenu {
color: #3abe16;
line-height: 25px;
display: inline-block;
padding-left: 24px;
padding-right: 6px;
background: url('<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
/images/white_plus.svg') no-repeat left 3px top 4px;
background-color: #3e3e3e;
background-size: 18px 18px;
border-bottom: 3px solid #3abe16;
cursor: pointer;
}
.addItemMenu:hover {
background-color: #3abe16;
color: #fff;
border-bottom: 3px solid #3abe16;
}
</style>
<?php echo '<script'; ?>
language="javascript" type="text/javascript">
urlStatic = '<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
';
urlActionUpload = '<?php echo smarty_function_url(array('Image'=>'Upload'),$_smarty_tpl);?>
';
$(function(){
var btnUpload=$('#upload');
var status=$('#status');
new AjaxUpload(btnUpload, {
action: urlActionUpload,
name: 'uploadfile',
onSubmit: function(file, ext){
if (! (ext && /^(jpg|png|jpeg|gif|zip)$/.test(ext))){
// extension is not allowed
status.text('tylko JPG, PNG oraz GIF lub zip');
return false;
}
//alert(urlActionUpload);
status.text('Uploading...');
},
onComplete: function(file, response){
//On completion clear the status
status.text('');
//Add uploaded file to list
//alert(response);
$('#PhotoDisplay', window.parent.document).html(response);
}
});
});
<?php echo '</script'; ?>
>
</head>
<body>
<!-- Upload Button, use any id you wish-->
<a id="upload" class="addItemMenu" href="#" title="Dodaj zdjęcia">Dodaj zdjęcia</a>
<span id="status" ></span>
<ul id="files" ></ul>
</body>
</html>
<?php }
}