\n"); print("\n"); print("\n"); // Title... if ($title != "") $html_title = "$title -"; else $html_title = ""; print(" $html_title Mini-XML\n" ." \n" ." \n" ." \n"); // Search engine keywords... reset($html_keywords); list($key, $val) = each($html_keywords); print("\n"); print("\n" ."\n"); // Standard navigation stuff... print("

\n" ."" ."" ."" ."" ."" ."" ."\n"); print("" ."\n"); print("\n"); print("" ."" ."" ."" ."\n"); print("
   Home | " ."Articles | " ."Documentation | " ."Download | " ."Support ][ "); if ($LOGIN_USER) print("$LOGIN_USER"); else print("Login"); print(" ]
" ."
"); } // // 'html_footer()' - Show the standard footer for a page. // function html_footer($path = "") // I - Relative path to root { print("
 

" ."Copyright 2003-2004 by Michael Sweet. This library is free " ."software; you can redistribute it and/or modify it " ."under the terms of the GNU Library General Public " ."License as published by the Free Software Foundation; " ."either version 2 of the License, or (at your option) " ."any later version.
 

\n"); print("\n" ."\n"); } // // 'html_start_links()' - Start of series of hyperlinks. // function html_start_links($center = 0) // I - 1 for centered, 0 for in-line { global $html_firstlink; $html_firstlink = 1; if ($center) print("

[ "); else print("

[ "); } // // 'html_end_links()' - End of series of hyperlinks. // function html_end_links() { print(" ]

\n"); } // // 'html_link()' - Show a single hyperlink. // function html_link($text, // I - Text for hyperlink $link) // I - URL for hyperlink { global $html_firstlink; if ($html_firstlink) $html_firstlink = 0; else print(" | "); $safetext = str_replace(" ", " ", $text); print("$safetext"); } // // 'html_links()' - Show an array of links. // function html_links($links) // I - Associated array of hyperlinks { reset($links); while (list($key, $val) = each($links)) html_link($key, $val); } // // 'html_start_table()' - Start a rounded, shaded table. // function html_start_table($headings, // I - Array of heading strings $width = "100%", // I - Width of table $height = "") // I - Height of table { global $html_row, $html_cols; print("

" ."" .""); $add_html_cols = 0; // Add to html_cols after display if colspan is used. $html_row = 0; $html_cols = sizeof($headings); reset($headings); for ($i = 0; $i < $html_cols; $i ++) { // // Headings can be in the following forms: // // Mix and match as needed: // // "xxxxxxxx" -- Just a column heading. // "xxxxxxxx:aa" -- Heading with align. // "xxxxxxxx::cc" -- Heading with a colspan. // "xxxxxxxx:::ww" -- Heading with a width. // "xxxxxxxx:cc:ww" -- Heading with colspan and width. // "xxxxxxxx:aa:cc:ww" -- Heading with align, colspan and width. // // etc, etc. // $s_header = ""; $s_colspan = ""; $s_width = ""; $s_align = ""; if (strstr( $headings[$i], ":" )) { $data = explode( ":", $headings[$i] ); $s_header = $data[0]; if (ISSET($data[1])) { $align = $data[1]; $s_align = "align=$align"; } if ($data[2] > 0) { $colspan = $data[2]; $s_colspan = "colspan=$colspan"; if ($colspan > 1) $add_html_cols += ($colspan - 1); } if ($data[3] > 0) { $width = $data[3]; $s_width = "width=$width%"; } } else $s_header = $headings[$i]; if (strlen($s_header)) { print("$s_header"); } else { print(" "); } } $html_cols += $add_html_cols; print("" ."\n"); } // // 'html_end_table()' - End a rounded, shaded table. // function html_end_table() { global $html_cols; print("" ."" ." " ."\n" ."

\n"); } // // 'html_start_row()' - Start a table row. // function html_start_row($classname = "") // I - HTML class to use { global $html_row; if ($classname == "") $classname = "data$html_row"; print(" "); } // // 'html_end_row()' - End a table row. // function html_end_row() { global $html_row; $html_row = 1 - $html_row; print(" \n"); } ?>