04-12-2014, 01:45 AM
Herkese selam yerleştirme ler bölümünden parabirimini sembol yerine resimli yapmak iistedim yalnız kodları eklediğimde. Aşağıdaki hatayı basmakta contol dosyasından nasıl bir tanımlama yapmam gerekli
tpl de ki kod
Alıntı:action: 'index.php?route=catalog/download/upload&token=<b>Notice</b>: Undefined variable: token in <b>/var/www/vhosts/xxx.biz/xx.xx.biz/admin/view/template/localisation/currency_form.tpl</b> on line <b>69</b>',
tpl de ki kod
Alıntı:<script type="text/javascript" src="view/javascript/jquery/ajaxupload.js"></script>
<script type="text/javascript"><!--
new AjaxUpload('#button-upload', {
action: 'index.php?route=catalog/download/upload&token=<?php echo $token; ?>',
name: 'file',
autoSubmit: true,
responseType: 'json',
onSubmit: function(file, extension) {
$('#button-upload').after('<img src="view/image/loading.gif" class="loading" style="padding-left: 5px;" />');
$('#button-upload').attr('disabled', true);
},
onComplete: function(file, json) {
$('#button-upload').attr('disabled', false);
if (json['success']) {
alert(json['success']);
$('input[name=\'symbol_left\']').attr('value', json['filename']);
$('input[name=\'mask\']').attr('value', json['mask']);
}
if (json['error']) {
alert(json['error']);
}
$('.loading').remove();
}
});
//--></script>