Code:
<div id="fc_alpha">
<div class="letters">
<a class="fc_alpha_index" href="#" onclick="document.getElementById('alpha_index').value='';document.getElementById('adminForm').submit();"><?php echo JText::_('FLEXI_ALL'); ?>
<?php
$letters = array('а', 'б', 'в', 'г', 'д', 'е', 'ё', 'ж', 'з', 'и', 'й', 'к', 'л', 'м', 'н', 'о', 'п', 'р', 'с', 'т', 'у', 'ф', 'х', 'ц', 'ч','ш', 'щ', 'ъ', 'ы', 'ь', 'э', 'ю', 'я' );
foreach ($letters as $letter) :
if (in_array($letter, $this->alpha)) :
echo "<a class=\"fc_alpha_index\" href=\"#\" onclick=\"document.getElementById('alpha_index').value='".$letter."';document.getElementById('adminForm').submit();\">".JString::strtoupper($letter)."";
else :
echo "<span class=\"fc_alpha_index\">".JString::strtoupper($letter)."</span>";
endif;
endforeach;
?>
</div>
<div class="letters">
<?php
$letters = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9','a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z');
foreach ($letters as $letter) :
if (in_array($letter, $this->alpha)) :
echo "<a class=\"fc_alpha_index\" href=\"#\" onclick=\"document.getElementById('alpha_index').value='".$letter."';document.getElementById('adminForm').submit();\">".strtoupper($letter)."";
else :
echo "<span class=\"fc_alpha_index\">".strtoupper($letter)."</span>";
endif;
endforeach;
?>
</div>
</div>