Exemplo n.º 1
0
 function draw_language_flag($lang)
 {
     $rows = get_site_languages($lang);
     echo '<img src="' . SKIN_PATH . 'img/flags/' . $rows[0]['flag'] . '.png" width="16" height="10" border="0" style="margin-right:4px;" align="absmiddle" />' . $rows[0]['descrizione'];
     return;
 }
Exemplo n.º 2
0
#	0.0.4 - debug
?>
</h2>
<hr class="line" />
<input name="lang_" type="hidden" value="<?php 
echo $_POST['lang'];
?>
" />
<input name="id" type="hidden" value="" />
<input name="_action" type="hidden" value="" />

<div style="/*width:100%;*/"><?php 
if (!defined('IS_LANG_INDEPENDENT') || IS_LANG_INDEPENDENT == false) {
    //include(SITE_ROOT.'common/fun2inc/get_site_languanges.inc');
    require MED_PATH . 'inc/get_site_languages.inc.php';
    $rows_lang = get_site_languages();
    $t = count($rows_lang);
    ?>
<div style="float:left;width:30%;border-right:1px solid #ccc;padding-bottom:20px;margin-bottom:6px;">
			<h5>Site available languages</h5>
			<ul style="list-style-type:none;"><?php 
    for ($i = 0; $i < $t; $i++) {
        $checked = '';
        if ($rows_lang[$i]['lang'] == $lang) {
            $checked = 'checked="checked" ';
        }
        echo '<li>' . '<input type="radio" name="lang" id="lang_' . $i . '" value="" ' . 'onclick="javascript:' . 'this.checked=true;' . 'sndReq(\'table_adm\',\'recordList\',\'' . $rows_lang[$i]['lang'] . AJAX_PARMS_SPLITTER . $TABLE . AJAX_PARMS_SPLITTER . $limits . AJAX_PARMS_SPLITTER . $filters . AJAX_PARMS_SPLITTER . '' . AJAX_PARMS_SPLITTER . $filters_relations . '\');" ' . $checked . '/> ' . '<label for="lang_' . $i . '" ' . 'onclick="javascript:' . 'document.getElementById(\'lang_' . $i . '\').checked=true;' . 'sndReq(\'table_adm\',\'recordList\',\'' . $rows_lang[$i]['lang'] . AJAX_PARMS_SPLITTER . $TABLE . AJAX_PARMS_SPLITTER . $limits . AJAX_PARMS_SPLITTER . $filters . AJAX_PARMS_SPLITTER . '' . AJAX_PARMS_SPLITTER . $filters_relations . '\');' . '">' . '<img src="/img/flags/' . $rows_lang[$i]['flag'] . '.png" width="16" height="10" border="0" style="margin-right:8px;" />' . $rows_lang[$i]['descrizione'] . '</label>' . '</li>';
    }
    ?>
</ul><?php 
    ?>