WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
// Stop processing if intro page was shown$wb->page_select() or die(); // Collect info about the currently viewed page // and check permissions // Sticky Template switcher if ($_GET['template']!="") { // get the template to display from URL if(file_exists(WB_PATH.'/templates/'.$_GET['template'].'/index.php')) { define('TEMPLATE',$_GET['template']); $_SESSION['TEMPLATE']=TEMPLATE; } } else { // else get the template to display from Session Variable if(isset($_SESSION['TEMPLATE']) AND $_SESSION['TEMPLATE'] != '') define('TEMPLATE',$_SESSION['TEMPLATE']); }// Collect info about the currently viewed page// and check permissions$wb->get_page_details();
<form name="myform" method="get" action=""> <select name="template" onchange="javascript: document.myform.submit();"> <option value="">Templateauswahl</option> <option value="round">The nice Round template</option> <option value="allcss">Only using CSS</option> </select> </form>
<script type="text/javascript">var vers = navigator.appVersion;var name = navigator.appName;vers_ie = vers.substring(22,23);vers_nc = vers.substring(0,1);if ((name == "Microsoft Internet Explorer" && vers_ie == 5) || (name == "Netscape" && vers_nc == 5)){function auswahl(link) { if(link == "leer") { document.forms[0].reset(); document.forms[0].elements[0].blur(); return; }else { location.href = link; document.forms[0].reset(); document.forms[0].elements[0].blur(); } }}</script> <form action=""><div align="center"><select size=1 name="Auswahl" onChange="auswahl(this.form.Auswahl.options[this.form.Auswahl.options.selectedIndex].value)" style="width:300px; background-color:#FFFFFF; font-size:16; font-weight:normal; font-family:verdana; Color:#003399;" width="300" class="countriesform"><option value="" selected>Design auswählen</option><option value="<?php echo WB_URL.PAGES_DIRECTORY;?>/switcher.php?template=allcss">allcss</option><option value="<?php echo WB_URL.PAGES_DIRECTORY;?>/switcher.php?template=round">round</option><option value="<?php echo WB_URL.PAGES_DIRECTORY;?>/switcher.php?template=artificial_intelligence">artificial_intelligence</option><option value="<?php echo WB_URL.PAGES_DIRECTORY;?>/switcher.php?template=allcss">allcss</option></select></div></form>