Ejemplo n.º 1
0
function menu($lan)
{
    switch ($lan) {
        case "de":
            $ret = '
		<div data-role="navbar" data-grid="d">
		<ul>' . abutton('m.index.php', 'Homepage') . abutton('m.program.php', 'Program') . abutton('m.repertoire.php', 'Repertoire') . abutton('m.teaching.php', 'Unterricht') . abutton('m.kinder.php', 'Kinder') . '</ul>
   </div>
   <div data-role="navbar" data-grid="d">
    <ul>' . abutton('m.meisterkurse.php', 'Meisterkurs') . abutton('m.concert.php', 'Konzerte') . abutton('m.video.php', 'Video') . abutton('m.presse.php', 'Presse') . abutton('m.foto.php', 'Fotografien') . '</ul>
   </div>
   <div data-role="navbar" data-grid="d">
    <ul>' . abutton('m.bilde.php', 'Skizzen') . abutton('m.bio.php', 'Biographie') . abutton('m.links.php', 'Links') . abutton('m.kontakt.php', 'Kontakt') . abutton('m.index_e.php', 'English') . '</ul>
   </div>';
            break;
        case "en":
            $ret = '<div data-role="navbar" data-grid="d">';
            $ret .= '<ul>' . abutton('m.index_e.php', 'Homepage') . abutton('m.program_e.php', 'Programme') . abutton('m.repertoire_e.php', 'Repertoire') . abutton('m.teaching_e.php', 'Teaching') . abutton('m.meisterkurse_e.php', 'Master Class') . '</ul> ';
            $ret .= '</div>';
            $ret .= '<div data-role="navbar" data-grid="d">
		<ul>' . abutton('m.concert_e.php', 'Concerts') . abutton('m.video_e.php', 'Video') . abutton('m.presse_e.php', 'Press') . abutton('m.foto_e.php', 'Photographs') . abutton('m.bilde_e.php', 'Sketches') . '</ul> ';
            $ret .= '</div>';
            $ret .= '<div data-role="navbar" data-grid="d">
		<ul>' . abutton('m.bio_e.php', 'Biography') . abutton('m.links_e.php', 'Links') . abutton('m.kontakt_e.php', 'Contact') . abutton('m.index.php', 'Deutsch') . '</ul>
   </div>';
            break;
        default:
    }
    return $ret;
}
Ejemplo n.º 2
0
function menu($lan = "de", $scrn = "", $pgen = "index_e.php", $pgde = "index.php", $pgch = "index_ch.php")
{
    $ret = "<BR/><br/>";
    switch ($lan) {
        case 'ch':
            $ret .= abutton('index_ch.php', '设为首页', $scrn);
            $ret .= abutton('program_ch.php', '节目', $scrn);
            $ret .= abutton('repertoire_ch.php', '剧目', $scrn);
            $ret .= abutton('teaching_ch.php', '钢琴课程', $scrn);
            $ret .= abutton('masterclasses_ch.php', '大师班', $scrn);
            $ret .= abutton('concert_ch.php', '音乐会', $scrn);
            $ret .= abutton('video_ch.php', '视频', $scrn);
            $ret .= abutton('presse_ch.php', '媒体评价', $scrn);
            $ret .= abutton('foto_ch.php', '照片', $scrn);
            $ret .= abutton('bilde_ch.php', '速写', $scrn);
            $ret .= abutton('bio_ch.php', '生平经历', $scrn);
            $ret .= abutton('links_ch.php', '链接', $scrn);
            $ret .= abutton('kontakt_ch.php', '联系', $scrn);
            $ret .= abutton($pgen, 'English', "English");
            $ret .= abutton($pgde, 'Deutsch', "Deutsch");
            break;
        case 'de':
            $ret .= abutton('index.php', 'Homepage', $scrn);
            $ret .= abutton('program.php', 'Program', $scrn);
            $ret .= abutton('repertoire.php', 'Repertoire', $scrn);
            $ret .= abutton('teaching.php', 'Unterricht', $scrn);
            $ret .= abutton('kinder.php', 'Kinder', $scrn);
            $ret .= abutton('meisterkurse.php', 'Meisterkurs', $scrn);
            $ret .= abutton('concert.php', 'Konzerte', $scrn);
            $ret .= abutton('video.php', 'Video', $scrn);
            $ret .= abutton('presse.php', 'Presse', $scrn);
            $ret .= abutton('foto.php', 'Fotografien', $scrn);
            $ret .= abutton('bilde.php', 'Skizzen', $scrn);
            $ret .= abutton('bio.php', 'Biographie', $scrn);
            $ret .= abutton('links.php', 'Links', $scrn);
            $ret .= abutton('kontakt.php', 'Kontakt', $scrn);
            $ret .= abutton($pgen, 'English', "English");
            $ret .= abutton($pgch, '中文', "Chinese");
            break;
        case 'en':
            $ret .= abutton('index_e.php', 'Homepage', $scrn);
            $ret .= abutton('program_e.php', 'Programme', $scrn);
            $ret .= abutton('repertoire_e.php', 'Repertoire', $scrn);
            $ret .= abutton('teaching_e.php', 'Teaching', $scrn);
            $ret .= abutton('masterclasses_e.php', 'Masterclass', $scrn);
            $ret .= abutton('concert_e.php', 'Concerts', $scrn);
            $ret .= abutton('video_e.php', 'Video', $scrn);
            $ret .= abutton('presse_e.php', 'Press', $scrn);
            $ret .= abutton('foto_e.php', 'Photographs', $scrn);
            $ret .= abutton('bilde_e.php', 'Sketches', $scrn);
            $ret .= abutton('bio_e.php', 'Biography', $scrn);
            $ret .= abutton('links_e.php', 'Links', $scrn);
            $ret .= abutton('kontakt_e.php', 'Contact', $scrn);
            $ret .= abutton($pgde, 'Deutsch', "Deutsch");
            $ret .= abutton($pgch, '中文', "Chinese");
    }
    $ret .= '<br/>';
    $ret .= "<div class='searchText'>";
    switch ($lan) {
        case "de":
            $ret .= "Suche";
            break;
        case "en":
            $ret .= "Search";
            break;
        default:
            $ret .= "搜";
    }
    $ret .= '</div>';
    $ret .= "<form action='search.php' method='post'>\n<input type='hidden' name='lan' id='lan' value='" . $lan . "'/>\n<input type='text' id='s' name='s' size='10' class='searchbox'  required /></form>\n<br/>";
    print $ret;
    return;
}
Ejemplo n.º 3
0
function menu($lan, $scrn)
{
    switch ($lan) {
        case 'ch':
            $ret .= abutton('index_ch.php', '设为首页', $scrn);
            $ret .= abutton('program_ch.php', '节目', $scrn);
            $ret .= abutton('repertoire_ch.php', '剧目', $scrn);
            $ret .= abutton('teaching_ch.php', '钢琴课程', $scrn);
            $ret .= abutton('masterclasses_ch.php', '大师班', $scrn);
            $ret .= abutton('concert_ch.php', '音乐会', $scrn);
            $ret .= abutton('video_ch.php', '视频', $scrn);
            $ret .= abutton('presse_ch.php', '媒体评价', $scrn);
            $ret .= abutton('foto_ch.php', '照片', $scrn);
            $ret .= abutton('bilde_ch.php', '速写', $scrn);
            $ret .= abutton('bio_ch.php', '生平经历', $scrn);
            $ret .= abutton('links_ch.php', '链接', $scrn);
            $ret .= abutton('kontakt_ch.php', '联系', $scrn);
            break;
        case 'de':
            $ret = '<div data-role="navbar" data-grid="d">
    <ul>';
            $ret .= abutton('m.index.php', 'Homepage', $scrn);
            $ret .= abutton('m.program.php', 'Program', $scrn);
            $ret .= abutton('m.repertoire.php', 'Repertoire', $scrn);
            $ret .= abutton('m.teaching.php', 'Unterricht', $scrn);
            $ret .= abutton('m.kinder.php', 'Kinder', $scrn);
            $ret .= '</UL
   </DIV>
   <div data-role="navbar" data-grid="d">
    <ul>';
            $ret .= abutton('m.meisterkurse.php', 'Meisterkurs', $scrn);
            $ret .= abutton('m.concert.php', 'Konzerte', $scrn);
            $ret .= abutton('m.video.php', 'Video', $scrn);
            $ret .= abutton('m.presse.php', 'Presse', $scrn);
            $ret .= abutton('m.foto.php', 'Fotografien', $scrn);
            $ret .= '</UL>
   </DIV>
   <div data-role="navbar" data-grid="d">
    <ul>';
            $ret .= abutton('m.bilde.php', 'Skizzen', $scrn);
            $ret .= abutton('m.bio.php', 'Biographie', $scrn);
            $ret .= abutton('m.links.php', 'Links', $scrn);
            $ret .= abutton('m.kontakt.php', 'Kontakt', $scrn);
            $ret .= '</UL>
   </DIV>';
            break;
        case 'en':
            $ret .= abutton('index_e.php', 'Homepage', $scrn);
            $ret .= abutton('program_e.php', 'Programme', $scrn);
            $ret .= abutton('repertoire_e.php', 'Repertoire', $scrn);
            $ret .= abutton('teaching_e.php', 'Teaching', $scrn);
            $ret .= abutton('masterclasses_e.php', 'Masterclass', $scrn);
            $ret .= abutton('concert_e.php', 'Concerts', $scrn);
            $ret .= abutton('video_e.php', 'Video', $scrn);
            $ret .= abutton('presse_e.php', 'Press', $scrn);
            $ret .= abutton('foto_e.php', 'Photographs', $scrn);
            $ret .= abutton('bilde_e.php', 'Sketches', $scrn);
            $ret .= abutton('bio_e.php', 'Biography', $scrn);
            $ret .= abutton('links_e.php', 'Links', $scrn);
            $ret .= abutton('kontakt_e.php', 'Contact', $scrn);
    }
    $ret .= "</ul>";
    return $ret;
}