$func(); // install_html_end($step); // Clear error handling $_SESSION['errors'] = array(); $_SESSION['form_data'] = array(); } if (1 <= $step && $step <= 5) { call_step($step); } else { if ($step == 'dirs') { header("Location: lcm_test_dirs.php"); } else { if (!$step) { install_html_start('AUTO', '', "intro"); $menu_lang = menu_languages('var_lang_lcm_all'); echo "<div align='center'>\n"; echo "<table border='0' cellspacing='0' width='490' height='242' style=\"background-image: url('images/lcm/lcm_logo_install.png'); border: 0\">\n"; echo "<tr><td align='center' valign='top'>\n\t\t\t<div id='title'>\n\t\t\t\t<p><span style='font-size: 130%;'>" . _T('title_software') . "</span><br />\n\t\t\t\t<span style='font-size: 90%;'>" . _T('title_software_description') . "</span></p>\n\t\t\t</div>\n\t\t</td></tr>\n\t\t<tr><td align='center' valign='top'>\n\t\t\t<p id='license'>"; echo _T('info_free_software', array('distributed' => '<a href="http://www.lcm.ngo-bg.org/" class="prefs_normal_lnk">' . _T('info_free_software1') . '</a>', 'license' => lcm_help_string('about_license', _T('info_free_software2')))) . "</p>\n\t\t</td></tr>\n"; echo "</table>\n"; echo "</div>\n"; echo "<p class=\"simple_text\">" . _T('install_select_language') . "</p>\n"; echo "<div align='center'><p>" . $menu_lang . "</p></div>\n"; echo "<form action='install.php' method='get'>\n"; echo "<input type='hidden' name='step' value='dirs' />\n"; echo "<div align='" . $GLOBALS['lcm_lang_right'] . "'>" . "<button type='submit' name='Next'>" . _T('button_next') . " >></button> " . "</div>"; echo "</form>"; install_html_end("intro"); } } }
function lcm_page_end($credits = '') { global $lcm_version_shown; global $connect_id_auteur; global $author_session; global $find_org_string; global $find_case_string; global $find_client_string; global $prefs; //[KM] The bottom of a single page // echo "\n\t\t\t\t<!-- End of 'main_column' content -->\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n"; // [KM] The right and the left column can be very long, so, we can put here a // lot of additional information, some tiny help hints and so. echo "<div id=\"prefs_column\">\n"; echo "<!-- Start of 'prefs_column' content -->\n"; // Checking for "wide/narrow" user screen if ($prefs['screen'] == "wide") { echo "<div class=\"prefs_column_menu_head\">\n\t\t\t\t<div class=\"sm_profile\">" . _T('menu_profile') . "</div>\n\t\t\t</div>\n\t\t\t<p class=\"prefs_column_text\">" . '<a href="author_det.php?author=' . $author_session['id_author'] . '" class="prefs_normal_lnk"' . ' title="' . _T('case_tooltip_view_author_details', array('author' => htmlspecialchars(get_person_name($author_session)))) . '">' . get_person_name($author_session) . "</a><br /><br />\n\t\t\t<a href=\"config_author.php\" class=\"prefs_myprefs\">" . _T('menu_profile_preferences') . "</a><br /><br />\n\t\t\t<a href=\"lcm_cookie.php?logout=" . htmlspecialchars($author_session['username']) . "\" class=\"prefs_logout\" title=\"" . _T('menu_profile_logout_tooltip') . "\">" . _T('menu_profile_logout') . "</a>\n\t\t\t</p><br />\n\t\t\t<div class=\"prefs_column_menu_head\">\n\t\t\t\t<div class=\"sm_search\">" . _T('menu_search') . "</div>\n\t\t\t</div>\n"; // // Search/find boxes // show_find_box('case', $find_case_string, '', 'narrow'); show_find_box('client', $find_client_string, '', 'narrow'); show_find_box('org', $find_org_string, '', 'narrow'); echo "<br />\n\t\t\t<div class=\"prefs_column_menu_head\"><div class=\"sm_font_size\">" . _T('menu_fontsize') . "</div>\n\t\t\t</div>\n\t\t\t<ul class=\"font_size_buttons\">\n\t\t\t\t<li><a href=\"javascript:;\" title=\"Small Text\" onclick=\"setActiveStyleSheet('small_font')\">A-</a></li>\n\t\t\t\t<li><a href=\"javascript:;\" title=\"Normal Text\" onclick=\"setActiveStyleSheet('medium_font')\">A</a></li>\n\t\t\t\t<li><a href=\"javascript:;\" title=\"Large Text\" onclick=\"setActiveStyleSheet('large_font')\">A+</a></li>\n\t\t\t</ul>\n"; } else { // Data from the refs_column - user name, links [My preferences] & [Logout] echo "<div id=\"user_info_box_large_screen\">"; echo "<p class=\"prefs_column_text\">" . '<a href="author_det.php?author=' . $author_session['id_author'] . '" class="prefs_normal_lnk"' . ' title="' . _T('case_tooltip_view_author_details', array('author' => htmlspecialchars(get_person_name($author_session)))) . '">' . get_person_name($author_session) . "</a><br /><br />\n\t\t\t<a href=\"config_author.php\" class=\"prefs_myprefs\">" . _T('menu_profile_preferences') . "</a><br /><br /><a href=\"javascript:;\" title=\"Small Text\" onclick=\"setActiveStyleSheet('small_font')\" class=\"set_fnt_sz\"> A- </a> \n\t\t\t\t<a href=\"javascript:;\" title=\"Normal Text\" onclick=\"setActiveStyleSheet('medium_font')\" class=\"set_fnt_sz\"> A </a> \n\t\t\t\t<a href=\"javascript:;\" title=\"Large Text\" onclick=\"setActiveStyleSheet('large_font')\" class=\"set_fnt_sz\"> A+ </a> " . "<a href=\"lcm_cookie.php?logout=" . htmlspecialchars($author_session['username']) . "\" class=\"prefs_logout\" title=\"" . _T('menu_profile_logout_tooltip') . "\">" . _T('menu_profile_logout') . "</a>\n\t\t\t</p>"; // TRAD (Small, Normal, Large text) echo "</div>"; } echo "<!-- End of \"prefs_column\" content -->\n"; echo "</div>\n"; //just test... echo "<div class=\"clearing\"> </div>\n"; echo "</div>\n"; if ($prefs['screen'] == "narrow") { echo '<div id="footer_narrow"> <div class="prefs_column_menu_head"><div class="sm_search">' . _T('menu_search') . "</div></div>\n\t\t<table border=\"0\" align=\"center\" width=\"100%\">\n\t\t\t<tr>\n\t\t\t\t<td align=\"left\" width=\"33%\" valign=\"top\">\n"; // // Search/find boxes // show_find_box('case', $find_case_string, '', 'narrow'); echo "</td>\n"; echo '<td align="left" width="33%" valign="top">'; show_find_box('client', $find_client_string, '', 'narrow'); echo "</td>\n"; echo '<td align="left" width="33%" valign="top">'; show_find_box('org', $find_org_string, '', 'narrow'); echo "</td>\n\t\t\t</tr>\n\t\t</table>\n\t\t</div><br />\n"; } echo "<div id=\"footer\">" . _T('title_software') . " (" . $lcm_version_shown . ")<br/> "; echo _T('info_free_software', array('distributed' => '<a href="http://www.lcm.ngo-bg.org/" class="prefs_normal_lnk">' . _T('info_free_software1') . '</a>', 'license' => lcm_help_string('about_license', _T('info_free_software2')))) . "</div>\n"; if ($GLOBALS['debug']) { echo "<p align='left'>Debug (" . $GLOBALS['debug'] . "): SQL Queries: " . $GLOBALS['db_query_count'] . "</p>\n"; } echo "</body>\n"; echo "</html>\n"; // [ML] Off-topic note, seen while removing code: // http://www.dynamicdrive.com/dynamicindex11/abox.htm lcm_html_end(); }