_decodeProperties($_smarty_tpl, array (
'version' => '3.1.39',
'unifunc' => 'content_6494327ad85c57_76586678',
'has_nocache_code' => false,
'file_dependency' =>
array (
'bf83a2dbfbfc3449dbd8c9c89ab49b5bf2a871f6' =>
array (
0 => 'C:\\xampp\\htdocs\\hotelcommerce\\admin\\themes\\default\\template\\controllers\\carrier_wizard\\logo.tpl',
1 => 1687433793,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_6494327ad85c57_76586678 (Smarty_Internal_Template $_smarty_tpl) {
?>
smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Logo'),$_smarty_tpl ) );?>
type="text/javascript">
var carrier_translation_undefined = 'smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'undefined','js'=>1),$_smarty_tpl ) );?>
';
function removeCarrierLogo()
{
if (confirm('smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Are you sure you want to delete the logo?','js'=>1),$_smarty_tpl ) );?>
'))
{
$('#carrier_logo_img').attr('src', '../img/admin/carrier-default.jpg');
$('#logo').val('null');
$('#carrier_logo_remove').hide();
}
}
function uploadCarrierLogo() {
$.ajaxFileUpload({
url: 'ajax-tab.php?tab=AdminCarrierWizard&token=tpl_vars['token']->value);?>
&action=uploadLogo',
secureuri: false,
fileElementId: 'carrier_logo_input',
dataType: 'xml',
success: function (data, status) {
data = data.getElementsByTagName('return')[0];
var message = data.getAttribute("message");
if (data.getAttribute("result") == "success")
{
$('#carrier_logo_img').attr('src', message);
$('#logo').val(message);
$('#carrier_logo_remove').show();
}
else
alert(message);
}
});
}
>