3 // Creates a page header & linear navigation tracing back to the main page
4 function createHeader($title) {
7 if( !strcmp($doc_mode, "netdirect") ) {
8 echo "Paste into drupal: " . $title . "\n\n";
11 echo "<div class='pageHeader'>$title</div>";
12 echo "<img src='nothing.jpg' width='100%' height='5' alt=''><br>";
13 echo "<div class='linearNav'>";
17 function createSubHeader($title) {
20 if( !strcmp($doc_mode, "netdirect") ) {
21 echo "<h1>$title</h1>";
24 echo '<div class="subHeader">' . $title . '</div>';
28 function createLink($name, $desc) {
30 global $barry_page_path;
32 echo '<a href="' . $barry_page_path . $name . $extension . '">' . $desc . "</a>\n";
35 function createHref($name) {
37 global $barry_page_path;
39 echo 'href="' . $barry_page_path . $name . $extension . '"';
42 function createFileLink($name, $desc) {
45 echo '<a href="' . $files_path . $name . '">' . $desc . "</a>\n";
48 function createPureFileLink($name) {
52 if( !strcmp($doc_mode, "netdirect") ) {
53 createFileLink($name, basename($name));
56 echo '<a href="http://www.netdirect.ca/sites/www.netdirect.ca/files/barry/' . $name . '">' . basename($name) . "</a>\n";
60 function createImage($filename) {
63 echo '<img src="' . $image_path . $filename . '"/>';
66 function createImageEx($filename, $img_html) {
69 echo '<img src="' . $image_path . $filename . '" ' . $img_html . ' />';