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 createFileLink($name, $desc) {
38 echo '<a href="' . $files_path . $name . '">' . $desc . "</a>\n";
41 function createPureFileLink($name) {
45 if( !strcmp($doc_mode, "netdirect") ) {
46 createFileLink($name, basename($name));
49 echo '<a href="http://www.netdirect.ca/sites/www.netdirect.ca/files/barry/' . $name . '">' . basename($name) . "</a>\n";
53 function createImage($filename) {
56 echo '<img src="' . $image_path . $filename . '"/>';