$span2 = "Table Set: <b>" . tohtml(substr($tbpref, 0, -1)) . "</b></span>"; } if ($fixed_tbpref) { $span1 = '<span>'; $span3 = '<span>'; } else { $span1 = '<span title="Manage Table Sets" onclick="location.href=\'table_set_management.php\';" class="click">'; if (count(getprefixes()) > 0) { $span3 = '<span title="Select Table Set" onclick="location.href=\'start.php\';" class="click">'; } else { $span3 = '<span>'; } } pagestart_nobody("Home"); echo '<h4>' . $span3; echo_lwt_logo(); echo "Learning With Texts (LWT)"; echo '</span></h4><h3>Home' . ($debug ? ' <span class="red">DEBUG</span>' : '') . '</h3>'; echo "<p> </p>"; $currentlang = getSetting('currentlanguage'); $currenttext = getSetting('currenttext'); $langcnt = get_first_value('select count(*) as value from ' . $tbpref . 'languages'); if ($langcnt == 0) { echo '<table class="tab3" cellspacing="0" cellpadding="5"><tr><th class="th1">Hint: The database seems to be empty.<br /><a href="install_demo.php">You may install the LWT demo database, </a><br />or<br /><a href="edit_languages.php?new=1">define the first language you want to learn.</a></th></tr></table>'; } ?> <script type="text/javascript"> //<![CDATA[ if (! areCookiesEnabled()) document.write('<p class="red">*** Cookies are not enabled! Please enable! ***</p>'); //]]>
function pagestart($titletext, $close) { global $debug; pagestart_nobody($titletext); echo '<h4>'; if ($close) { echo '<a href="index.php" target="_top">'; } echo_lwt_logo(); echo "LWT"; if ($close) { echo '</a> | '; quickMenu(); } echo '</h4><h3>' . $titletext . ($debug ? ' <span class="red">DEBUG</span>' : '') . '</h3>'; echo "<p> </p>"; }