Update 1.php

This commit is contained in:
qkqpttgf
2020-01-05 18:43:01 +08:00
committed by GitHub
parent 1390b8b189
commit 8aa3b65c40
+2 -1
View File
@@ -675,7 +675,7 @@ textarea{
<?php <?php
} ?> } ?>
<select class="cs-select cs-skin-elastic" id="languageSelect" name="language" onchange="changelanguage(this.options[this.options.selectedIndex].value)"> <select class="cs-select cs-skin-elastic" id="languageSelect" name="language" onchange="changelanguage(this.options[this.options.selectedIndex].value)">
<option value="" disabled selected><?php echo $constStr['LanguageSetting'][$constStr['language']]; ?></option> <option value="">Language</option>
<?php <?php
foreach ($constStr['languages'] as $key1 => $value1) { ?> foreach ($constStr['languages'] as $key1 => $value1) { ?>
<option value="<?php echo $key1; ?>"><?php echo $value1; ?></option> <option value="<?php echo $key1; ?>"><?php echo $value1; ?></option>
@@ -1154,6 +1154,7 @@ textarea{
}); });
function changelanguage(str) function changelanguage(str)
{ {
if (str=='Language') str='';
document.cookie='language='+str+'; path=/'; document.cookie='language='+str+'; path=/';
location.href = location.href; location.href = location.href;
} }