| Server IP : 85.158.181.41 / Your IP : 216.73.217.12 Web Server : Apache System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64 User : moncbefd ( 1024) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/moncbefd/www.moneta.at/admin/html/content/ |
Upload File : |
{load_language_text section="shipping_and_payment_matrix"}
{load_language_text section="countries" name="countries"}
{block name="admin_shipping_and_payment_matrix"}
<div id="shipping_and_payment_matrix_assistent">
{block name="admin_shipping_and_payment_matrix_heading"}
<div class="heading">
{$txt.shipping_and_payment_matrix_title}
</div>
{/block}
{block name="admin_shipping_and_payment_matrix_country"}
<div id="shipping_and_payment_matrix_country_selection">
{block name="admin_shipping_and_payment_matrix_country_top_controls"}
<div class="top_controls">
<div style="float: right;">
<input type="checkbox" id="show_only_enabled_countries" class="show_only_enabled_countries" value="1" checked="checked" />
<label for="show_only_enabled_countries">{$txt.show_only_enabled_countries}</label>
</div>
<b>{$txt.select_countries}:</b>
</div>
{/block}
{block name="admin_shipping_and_payment_matrix_country_wrapper"}
<div id="country_selection_content_wrapper">
{block name="admin_shipping_and_payment_matrix_country_table"}
<table class="gx-configuration" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr style="display: none"></tr>
{block name="admin_shipping_and_payment_matrix_country_table_heading"}
<tr class="dataTableHeadingRow">
<td class="dataTableHeadingContent" style="width: 90%;">{$txt.country}</td>
<td class="dataTableHeadingContent center_header">
{$txt.status}<br/>
<img clas
s="activate_all_countries status_button" title="{$txt.activate_all_countries}" alt="{$txt.activate_all_countries}" src="html/assets/images/legacy/icon_status_green.gif">
<img class="deactivate_all_countries status_button" title="{$txt.deactivate_all_countries}" alt="{$txt.deactivate_all_countries}" src="html/assets/images/legacy/icon_status_red.gif">
</td>
</tr>
{/block}
{foreach key=country_code item=country_data from=$content_data.country_array}
{block name="admin_shipping_and_payment_matrix_country_table_item"}
<tr class="dataTableRow country_row{if $country_data.status == 1} enabled{else} disabled{/if}">
<td class="dataTableContent">
{$country_data.name}
</td>
<td class="dataTableContent">
<img class="activate_country status_button" rel="{$country_code}" id="{$country_code}_active" title="{$txt.active}" alt="{$txt.active}" src="html/assets/images/legacy/icon_status_green{if $country_data.status == 0}_light{/if}.gif">
<img class="deactivate_country status_button" rel="{$country_code}" id="{$country_code}_inactive" title="{$txt.inactive}" alt="{$txt.inactive}" src="html/assets/images/legacy/icon_status_red{if $country_data.status == 1}_light{/if}.gif">
</td>
</tr>
{/block}
{/foreach}
</table>
{/block}
</div>
{/block}
{block name="admin_shipping_and_payment_matrix_country_forward_button"}
<div class="bottom_control" style="height: 24px">
<a href="#" class="btn pull-right forward">{$txt.button_forward}</a>
</div>
{/block}
</div>
{/block}
{block name="admin_shipping_and_payment_matrix_country_info"}
<div id="shipping_and_payment_matrix_info" class="hidden">
{block name="admin_shipping_and_payment_matrix_country_info_top_controls"}
<div class="top_controls">
<div style="float: right;">
{foreach key=language_id item=language_data from=$content_data.language_array}
<img class="language_selection{if $language_id == $content_data.actual_language_id} selected_language{/if}" rel="{$language_id}" src="{$language_data.image}"/>
{/foreach}
</div>
</div>
{/block}
{block name="admin_shipping_and_payment_matrix_country_info_wrapper"}
<div id="shipping_and_payment_content_wrapper">
<form id="shipping_and_payment_form">
{block name="admin_shipping_and_payment_matrix_country_info_table"}
<table class="gx-configuration" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr style="display: none"></tr>
{block name="admin_shipping_and_payment_matrix_country_info_table_thead"}
<tr class="dataTableHeadingRow">
<td class="dataTableHeadingContent">{$txt.country}</td>
<td class="dataTableHeadingContent">{$txt.shipping_info}</td>
<td class="dataTableHeadingContent">{$txt.shipping_time}</td>
<td class="dataTableHeadingContent">{$txt.payment_info}</td>
</tr>
{/block}
{foreach key=language_id item=language_data from=$content_data.language_array}
{foreach key=country_code item=country_data from=$content_data.country_array}
{block name="admin_shipping_and_payment_matrix_country_info_table_row"}
<tr class="dataTableRow info_row lang_row_{$language_id} country_row_{$country_code}{if $country_data.status == 0 || $content_data.actual_language_id != $language_id} hidden{/if}{if $country_data.status == 0} inactive{/if}">
{block name="admin_shipping_and_payment_matrix_country_info_table_row_country_name"}
<td class="dataTableContent">{$country_data.name}</td>
{/block}
{block name="admin_shipping_and_payment_matrix_country_info_table_row_country_textarea1"}
<td class="dataTableContent">
<textarea class="shipping_info lang_{$language_id} country_{$country_code}" name="shipping_info[{$language_id}][{$country_code}]" {if $country_data.status == 0}disabled="disabled"{/if}>{$content_data.shipping_info_array[$language_id][$country_code]}</textarea>
</td>
{/block}
{block name="admin_shipping_and_payment_matrix_country_info_table_row_country_textarea2"}
<td class="dataTableContent">
<textarea class="shipping_time lang_{$language_id} country_{$country_code}" name="shipping_time[{$language_id}][{$country_code}]" {if $country_data.status == 0}disabled="disabled"{/if}>{$content_data.shipping_time_array[$language_id][$country_code]}</textarea>
</td>
{/block}
{block name="admin_shipping_and_payment_matrix_country_info_table_row_country_textarea3"}
<td class="dataTableContent">
<textarea class="payment_info lang_{$language_id} country_{$country_code}" name="payment_info[{$language_id}][{$country_code}]" {if $country_data.status == 0}disabled="disabled"{/if}>{$content_data.payment_info_array[$language_id][$country_code]}</textarea>
</td>
{/block}
</tr>
{/block}
{/foreach}
{/foreach}
</table>
{/block}
<input type="hidden" name="page_token" value="{$content_data.page_token}" />
</form>
</div>
{/block}
{block name="admin_shipping_and_payment_matrix_country_info_button"}
<div class="bottom_control" style="height: 24px;">
<a href="#" class="btn btn-primary pull-right save">{$txt.button_save_and_close}</a>
<a href="#" class="btn pull-right back">{$txt.button_back}</a>
</div>
{/block}
<input type="hidden" id="actual_language_id" value="{$content_data.actual_language_id}"/>
</div>
{/block}
</div>
{block name="admin_shipping_and_payment_matrix_javascript"}
{literal}
<script type="text/javascript">
$(document).ready(function()
{
resize_tables();
toggle_visible_countries();
function resize_tables()
{
var country_height = $(window).height() - 140 - $('#shipping_and_payment_matrix_country_selection div.top_controls').outerHeight(true) - $('#shipping_and_payment_matrix_country_selection div.bottom_control').outerHeight(true);
var info_height = $(window).height() - 180 - $('#shipping_and_payment_matrix_info div.top_controls').outerHeight(true) - $('#shipping_and_payment_matrix_info div.bottom_control').outerHeight(true);
$('#country_selection_content_wrapper').height(country_height);
$('#shipping_and_payment_content_wrapper').height(info_height);
}
function toggle_visible_countries()
{
$('#shipping_and_payment_matrix_country_selection tr.country_row.disabled').toggle();
}
$(window).bind('resize', resize_tables);
$('.activate_all_countries').bind('click', function()
{
$('.activate_country').attr('src', 'html/assets/images/legacy/icon_status_green.gif');
$('.deactivate_country').attr('src', 'html/assets/images/legacy/icon_status_red_light.gif');
$('.info_row').removeClass('inactive');
$('.info_row').show();
$('.info_row' + ' textarea').attr('disabled', '');
return false;
});
$('.deactivate_all_countries').bind('click', function()
{
$('.activate_country').attr('src', 'html/assets/images/legacy/icon_status_green_light.gif');
$('.deactivate_country').attr('src', 'html/assets/images/legacy/icon_status_red.gif');
$('.info_row').addClass('inactive');
$('.info_row').hide();
$('.info_row' + ' textarea').attr('disabled', 'disabled');
return false;
});
$(".activate_country").bind("click", function()
{
var deactivator_id = this.id.substring(0, this.id.lastIndexOf('_')) + '_inactive';
$('#' + deactivator_id).attr('src', 'html/assets/images/legacy/icon_status_red_light.gif');
$(this).attr('src', 'html/assets/images/legacy/icon_status_green.gif');
$('.info_row.country_row_' + $(this).attr('rel')).removeClass('inactive');
$('.info_row.country_row_' + $(this).attr('rel')).show();
$('.info_row.country_row_' + $(this).attr('rel') + ' textarea').removeAttr('disabled');
return false;
});
$(".deactivate_country").bind("click", function()
{
var activator_id = this.id.substring(0, this.id.lastIndexOf('_')) + '_active';
$('#' + activator_id).attr('src', 'html/assets/images/legacy/icon_status_green_light.gif');
$(this).attr('src', 'html/assets/images/legacy/icon_status_red.gif');
$('.info_row.country_row_' + $(this).attr('rel')).addClass('inactive');
$('.info_row.country_row_' + $(this).attr('rel')).hide();
$('.info_row.country_row_' + $(this).attr('rel') + ' textarea').attr('disabled', 'disabled');
return false;
});
$('#shipping_and_payment_matrix_country_selection input.show_only_enabled_countries').bind("change", toggle_visible_countries);
$('#shipping_and_payment_matrix_info img.language_selection').bind('click', function()
{
$('#shipping_and_payment_matrix_info img.language_selection').removeClass('selected_language');
$(this).addClass('selected_language');
$('#actual_language_id').val($(this).attr('rel'));
$('.info_row').hide();
$('.info_row.lang_row_' + $('#actual_language_id').val() + ':not(.inactive)').show();
});
$('#shipping_and_payment_matrix_country_selection a.btn.forward').bind("click", function()
{
$('#shipping_and_payment_matrix_country_selection').hide();
$('#shipping_and_payment_matrix_info').fadeIn();
$('.info_row:not(.lang_row_' + $('#actual_language_id').val() + ')').hide();
resize_tables();
return false;
});
$('#shipping_and_payment_matrix_info a.btn.back').bind("click", function()
{
$('#shipping_and_payment_matrix_info').hide();
$('#shipping_and_payment_matrix_country_selection').fadeIn();
resize_tables();
return false;
});
$("#shipping_and_payment_matrix_info a.btn.save").bind("click", function()
{
$.ajax({
data: $('#shipping_and_payment_form').serialize(),
url: "request_port.php?module=ShippingAndPaymentMatrixAssistent&action=save",
type: "POST",
timeout: 2000,
dataType: "text",
error: function(){ if(fb)console.log('error'); },
success: function(p_result)
{
$.lightbox_plugin('close', $('.lightbox_package').attr('id').replace('lightbox_package_', ''));
}
});
return false;
});
});
</script>
{/literal}
{/block}
{/block}