$record = mysql_fetch_assoc($res); $textsize = $record['LgTextSize']; $removeSpaces = $record['LgRemoveSpaces']; $rtlScript = $record['LgRightToLeft']; mysql_free_result($res); saveSetting('currenttext', $textid); saveSetting('currentprintannotation', $ann); saveSetting('currentprintstatus', $status); saveSetting('currentprintannotationplacement', $annplcmnt); pagestart_nobody('Print'); echo '<div id="noprint">'; echo '<h4>'; echo '<a href="edit_texts.php" target="_top">'; echo '<img src="img/lwt_icon.png" class="lwtlogo" alt="Logo" />Learning with Texts'; echo '</a> | '; quickMenu(); echo ' | <a href="do_text.php?start=' . $textid . '" target="_top"><img src="icn/book-open-bookmark.png" title="Read" alt="Read" /></a> <a href="do_test.php?text=' . $textid . '" target="_top"><img src="icn/question-balloon.png" title="Test" alt="Test" /></a> <a target="_top" href="edit_texts.php?chg=' . $textid . '"><img src="icn/document--pencil.png" title="Edit Text" alt="Edit Text" /></a>'; echo '</h4><h3>PRINT ▶ ' . tohtml($title) . '</h3>'; echo "<p id=\"printoptions\">Terms with <b>status(es)</b><select id=\"status\" onchange=\"{val=document.getElementById('status').options[document.getElementById('status').selectedIndex].value;location.href='print_text.php?text=" . $textid . "&status=' + val;}\">"; echo get_wordstatus_selectoptions($status, true, true, false); echo "</select> ...<br />will be <b>annotated</b> with "; echo "<select id=\"ann\" onchange=\"{val=document.getElementById('ann').options[document.getElementById('ann').selectedIndex].value;location.href='print_text.php?text=" . $textid . "&ann=' + val;}\">"; echo "<option value=\"0\"" . get_selected(0, $ann) . ">Nothing</option>"; echo "<option value=\"1\"" . get_selected(1, $ann) . ">Translation</option>"; echo "<option value=\"5\"" . get_selected(5, $ann) . ">Translation & Tags</option>"; echo "<option value=\"2\"" . get_selected(2, $ann) . ">Romanization</option>"; echo "<option value=\"3\"" . get_selected(3, $ann) . ">Romanization & Translation</option>"; echo "<option value=\"7\"" . get_selected(7, $ann) . ">Romanization, Translation & Tags</option>"; echo "</select><select id=\"annplcmnt\" onchange=\"{val=document.getElementById('annplcmnt').options[document.getElementById('annplcmnt').selectedIndex].value;location.href='print_text.php?text=" . $textid . "&annplcmnt=' + val;}\">"; echo "<option value=\"0\"" . get_selected(0, $annplcmnt) . ">behind</option>"; echo "<option value=\"1\"" . get_selected(1, $annplcmnt) . ">in front of</option>";
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>"; }
\t\t\t\t<a href="?messages"><span class="glyphicon glyphicon-comment icon-large"> \t\t\t\t\t<div class="icon-large-title">Look your messages</div> \t\t\t\t</span></a> \t\t\t\t \t\t\t\t<div class="bigspacer"> </div> \t\t\t\t<a href="?wall"><span class="glyphicon glyphicon-bell icon-large">{$badge} \t\t\t\t\t<div class="icon-large-title">{$not}</div> \t\t\t\t</span> \t\t\t\t \t\t\t\t<div class="bigspacer"> </div></a> \t\t\t\t<div class="glyphicon glyphicon-menu-hamburger icon-large" tabindex="3"> EOF; quickMenu(array("1" => "Menu", "wall" => '<span class="glyphicon glyphicon-bell right-space"></span> Notifications ' . $badge, "users/view/" . $_SESSION['user'] => '<span class="glyphicon glyphicon-user right-space"></span> Your profile', "profile/edit" => '<span class="glyphicon glyphicon-pencil right-space"></span> Edit profile', "messages" => '<span class="glyphicon glyphicon-comment right-space"></span> ' . "Show messages", "front_search" => '<span class="glyphicon glyphicon-search right-space"></span> Search', "2" => " ", "logout" => '<span class="glyphicon glyphicon-log-out right-space"></span> Log out')); $HTML[] = <<<EOF \t\t\t\t</div> \t\t\t</div> \t\t\t<!--div class="search"> \t\t\t\t<form action="" method="GET"> \t\t\t\t\t<input type="hidden" name="q" value="search"> \t\t\t\t\t<input type="text" name="from" id="searchfrom" value="{$from}" placeholder="Departure" class="form-control form-search"> \t\t\t\t\t<input type="text" name="to" id="searchto" value="{$to}" placeholder="Arrival" class="form-control form-search"> \t\t\t\t\t<div class="search-button btn btn-primary" id="sb" onclick="\$('#sbclick').click()"><img src="css/search.png" width="20"></div> \t\t\t\t\t<input type="submit" name="submit" id="sbclick" value="Search" style="display: none"> \t\t\t\t</form> \t\t\t</div-->
function pagestart($titeltext, $close) { global $debug; pagestart_nobody($titeltext); echo '<h4>'; if ($close) { echo '<a href="index.php" target="_top">'; } echo '<img class="lwtlogo" src="img/lwt_icon.png" alt="Logo" />Learning with Texts'; if ($close) { echo '</a> | '; quickMenu(); } echo '</h4><h3>' . $titeltext . ($debug ? ' <span class="red">DEBUG</span>' : '') . '</h3>'; echo "<p> </p>"; }