Файл: pesn_voini/peseni_vojni/instalscript/engine/modules/smiles2.php
Строк: 35
<script type="text/javascript">
function tag(id, html) {
var e = document.getElementById(id);
if (e != null) {
e.value += ' ' + html + ' ';
e.focus();
}
}
function showSmilies() {
var e = document.getElementById('smiles');
if (e != null) {
if (e.style.display == 'block') { e.style.display = 'none'; } else { e.style.display = 'block'; }
}
}
</script>
<div class="smile" id="smiles" style="display: none;">
<center>
<?
/*
$on = abs(intval($_GET['sm']));
//
if($on == 1){
//
$sm = abs(intval($_GET['smiles']));
if($sm <= 0){
header('location:'.$null_us);
exit();
}
if($sm >= 2){
header('location:'.$null_us);
exit();
}
if($sm == 1){
$one = 0;
$two = 139;
}elseif($sm == 2){
$one = 50;
$two = 94;
}elseif($sm == 3){
$one = 95;
$two = 139;
}
*/
//
for($i=0;$i<=99;$i++) {
?>
<a href="javascript:tag('message','[sm<?=$i;?>]')"><img src="/instalscript/images/icons/emoji/<?=$i;?>.png"></a>
<?
}
echo '</center>';
/*
if($sm >= 2)echo ' <a href="'.$null_us2.'sm=1&smiles='.($sm-1).'"> Назад</a>';
if($sm <= 2)echo ' <span style="float: right;"><a href="'.$null_us2.'sm=1&smiles='.($sm+1).'"> Вперед</a></span><br>';
}
*/
?>
</div>