AVE.CMS v3.28
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

140 lines
5.4 KiB

7 years ago
<div class="title"><h5>{#SETTINGS_COUNTRIES#}</h5></div>
<div class="widget" style="margin-top: 0px;">
7 years ago
<div class="body">
7 years ago
{#SETTINGS_COUNTRY_TIP#}
7 years ago
</div>
7 years ago
</div>
<div class="breadCrumbHolder module">
<div class="breadCrumb module">
7 years ago
<ul>
<li class="firstB"><a href="index.php" title="{#MAIN_PAGE#}">{#MAIN_PAGE#}</a></li>
<li><a href="index.php?do=settings&cp={$sess}">{#SETTINGS_MAIN_TITLE#}</a></li>
7 years ago
<li>{#SETTINGS_COUNTRIES#}</li>
7 years ago
</ul>
7 years ago
</div>
</div>
<div class="widget first">
<div class="body">
7 years ago
{if check_permission('cache_clear')}<a class="button redBtn clearCacheSess" href="javascript:void(0);">{#MAIN_STAT_CLEAR_CACHE_FULL#}</a>&nbsp;{/if}
{if check_permission('cache_thumb')}<a class="button redBtn clearThumb" href="javascript:void(0);">{#MAIN_STAT_CLEAR_THUMB#}</a>&nbsp;{/if}
{if check_permission('document_revisions')}<a class="button redBtn clearRev" href="javascript:void(0);">{#MAIN_STAT_CLEAR_REV#}</a>&nbsp;{/if}
{if check_permission('gen_settings')}<a class="button redBtn clearCount" href="javascript:void(0);">{#MAIN_STAT_CLEAR_COUNT#}</a>&nbsp;{/if}
7 years ago
{if check_permission('gen_settings_robots')}<a data-dialog="robots" data-title="{#SETTINGS_FILE_ROBOTS#}" data-height="650" data-modal="true" class="button greenBtn openDialog" href="index.php?do=settings&action=robots&cp={$sess}">{#SETTINGS_FILE_ROBOTS#}</a>&nbsp;{/if}
{if check_permission('gen_settings_fcustom')}<a data-dialog="custom" data-title="{#SETTINGS_FILE_CUSTOM#}" data-height="650" data-modal="true" class="button greenBtn openDialog" href="index.php?do=settings&action=custom&cp={$sess}">{#SETTINGS_FILE_CUSTOM#}</a>{/if}
7 years ago
</div>
</div>
<form id="settings" name="settings" method="post" action="index.php?do=settings&sub=countries&cp={$sess}&save=1" class="mainForm">
<fieldset>
<div class="widget first">
<ul class="inact_tabs">
{if check_permission('gen_settings')}<li><a href="index.php?do=settings&cp={$sess}">{#SETTINGS_MAIN_SETTINGS#}</a></li>{/if}
{if check_permission('gen_settings_more')}<li><a href="index.php?do=settings&sub=case&cp={$sess}">{#SETTINGS_CASE_TITLE#}</a></li>{/if}
{if check_permission('gen_settings_countries')}<li class="activeTab"><a href="index.php?do=settings&sub=countries&cp={$sess}">{#MAIN_COUNTRY_EDIT#}</a></li>{/if}
{if check_permission('gen_settings_languages')}<li><a href="index.php?do=settings&sub=language&cp={$sess}">{#SETTINGS_LANG_EDIT#}</a></li>{/if}
<li><a href="index.php?do=settings&action=paginations&cp={$sess}">{#SETTINGS_PAGINATION#}</a></li>
5 years ago
<li><a href="index.php?do=settings&action=showcache&cp={$sess}">{#SETTINGS_SHOWCACHE#}</a></li>
7 years ago
</ul>
<table cellpadding="0" cellspacing="0" width="100%" class="tableStatic">
7 years ago
<thead>
<tr>
<td width="20%">{#SETTINGS_COUNTRY_NAME#}</td>
<td width="20%">{#SETTINGS_ACTIVE#}</td>
<td width="20%">{#SETTINGS_IN_EC#}</td>
</tr>
</thead>
<tbody>
7 years ago
{foreach from=$countries item=land name=l}
<tr {if $land.country_status==1}class="green"{/if}>
<td>
<input name="country_name[{$land.Id}]" type="text" id="country_name[{$land.Id}]" value="{$land.country_name}" class="mousetrap" style="width: 95%;"/>
</td>
<td>
<input type="radio" name="country_status[{$land.Id}]" value="1"{if $land.country_status==1} checked{/if} /><label style="cursor: pointer;">{#SETTINGS_YES#}</label>
<input type="radio" name="country_status[{$land.Id}]" value="2"{if $land.country_status==2} checked{/if} /><label style="cursor: pointer;">{#SETTINGS_NO#}</label>
</td>
<td>
<input type="radio" name="country_eu[{$land.Id}]" value="1"{if $land.country_eu==1} checked{/if} /><label style="cursor: pointer;">{#SETTINGS_YES#}</label>
<input type="radio" name="country_eu[{$land.Id}]" value="2"{if $land.country_eu==2} checked{/if} /><label style="cursor: pointer;">{#SETTINGS_NO#}</label>
</td>
</tr>
{/foreach}
7 years ago
</tbody>
</table>
7 years ago
<div class="rowElem" id="saveBtn">
<div class="saveBtn">
<input type="submit" class="basicBtn" value="{#SETTINGS_BUTTON_SAVE#}" />&nbsp;{#SETTINGS_OR#}&nbsp;<input type="submit" class="button blackBtn SaveSettings" value="{#SETTINGS_BUTTON_SAVE_AJAX#}" />
</div>
</div>
</div>
</fieldset>
</form>
{if $page_nav}
<div class="pagination">
<ul class="pages">
{$page_nav}
</ul>
</div>
{/if}
<br />
<script language="javascript">
$(document).ready(function(){ldelim}
7 years ago
var sett_options = {ldelim}
7 years ago
url: 'index.php?do=settings&sub=countries&cp={$sess}&save=1',
beforeSubmit: Request,
7 years ago
success: Response
7 years ago
{rdelim}
7 years ago
$(".SaveSettings").click(function(e){ldelim}
7 years ago
e.preventDefault();
var title = '{#SETTINGS_BUTTON_SAVE#}';
var confirm = '{#SETTINGS_SAVE_CONFIRM#}';
jConfirm(
confirm,
title,
function(b){ldelim}
if (b){ldelim}
7 years ago
$("#settings").ajaxSubmit(sett_options);
7 years ago
{rdelim}
{rdelim}
);
{rdelim});
Mousetrap.bind(['ctrl+s', 'command+s'], function(e) {ldelim}
7 years ago
if (e.preventDefault) {ldelim}
e.preventDefault();
{rdelim} else {ldelim}
// internet explorer
e.returnValue = false;
{rdelim}
$("#settings").ajaxSubmit(sett_options);
7 years ago
return false;
{rdelim});
{rdelim});
function Request(){ldelim}
$.alerts._overlay('show');
$('html, body').animate({ldelim}scrollTop:0{rdelim});
{rdelim}
function Response(){ldelim}
$.alerts._overlay('hide');
$.jGrowl('{#SETTINGS_SAVED#}',{ldelim}theme: 'accept'{rdelim});
{rdelim}
7 years ago
</script>
{include file="$codemirror_connect"}