_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';
?>
''
src="tpl_vars['urlStatic']->value;?>
/script/jQuery/jquery-1.4.2.js" type="text/javascript" charset="utf-8">
>
src="tpl_vars['urlStatic']->value;?>
/script/ajaxupload.3.5.js" type="text/javascript" charset="utf-8">
>
language="javascript" type="text/javascript">
urlStatic = 'tpl_vars['urlStatic']->value;?>
';
urlActionUpload = ''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);
}
});
});
>