Пример #1
0
function getNewMdLangs($md_lang)
{
    $rs = array();
    $langs = getRadioMdLangs(MICKA_LANG);
    foreach ($langs as $key => $value) {
        if ($key != $md_lang) {
            $rs[$key] = $value;
        }
    }
    return $rs;
}
Пример #2
0
    /*
    	$template->labelButton = getLabelButton();
    	//$template->mickaSearch = getMickaSearchFromSession();
    	$template->mickaCodeList = array(
    			'mdCategory' => getSelectCategory(), 
    			'mdStandard' => getSelectStandards(), 
    			'mdLang' => getSelectMdLangs()
    	);
    * 
    */
} elseif ($ak == 'new') {
    $template->mdStandard = getRadioStandards('acl');
    $template->usrGroups = getMsGroups('get_groups');
    $template->edit_group = $defaultEditGroup;
    $template->view_group = $defaultViewGroup;
    $template->mdLangs = getRadioMdLangs(MICKA_LANG);
} elseif ($ak == 'rec_admin') {
    $template->setFile(PHPINC_DIR . '/templates/mickaRecordAdmin.latte');
    $template->form_akce = $record['data']['form_akce'];
    $template->recno = $record['data']['RECNO'];
    $template->langs = getNewMdLangs($record['data']['md_lang']);
    $template->select_langs = explode('|', $record['data']['LANG']);
} elseif ($ak == 'contact' || $ak == 'cookbook' || $ak == 'home') {
    if (file_exists(WWW_DIR . '/themes/' . MICKA_THEME . '/templates/' . $ak . '_' . MICKA_LANG . '.html')) {
        $template->incTemplatePath = WWW_DIR . '/themes/' . MICKA_THEME . '/templates/' . $ak . '_' . MICKA_LANG . '.html';
    } elseif (MICKA_LANG == 'slo' && file_exists(WWW_DIR . '/themes/' . MICKA_THEME . '/templates/' . $ak . '_cze.html')) {
        $template->incTemplatePath = WWW_DIR . '/themes/' . MICKA_THEME . '/templates/' . $ak . '_cze.html';
    } else {
        $template->incTemplatePath = WWW_DIR . '/themes/' . MICKA_THEME . '/templates/' . $ak . '_eng.html';
    }
} elseif ($ak == 'md_contacts') {