lib: Splitting up configfile.cc to contain Unix and Windows support in separate sourc...
[barry.git] / doc / www / barry.inc
blobfb7215573f34dee126ff9891413e351214e6b365
1 <?
3 // Creates a page header & linear navigation tracing back to the main page
4 function createHeader($title) {
5         global $doc_mode;
7         if( !strcmp($doc_mode, "netdirect") ) {
8                 echo "Paste into drupal: " . $title . "\n\n";
9         }
10         else {
11                 echo "<div class='pageHeader'>$title</div>";
12                 echo "<img src='nothing.jpg' width='100%' height='5' alt=''><br>";
13                 echo "<div class='linearNav'>";
14         }
17 function createSubHeader($title) {
18         global $doc_mode;
20         if( !strcmp($doc_mode, "netdirect") ) {
21                 echo "<h1>$title</h1>";
22         }
23         else {
24                 echo '<div class="subHeader">' . $title . '</div>';
25         }
28 function createLink($name, $desc) {
29         global $extension;
30         global $barry_page_path;
32         echo '<a href="' . $barry_page_path . $name . $extension . '">' . $desc . "</a>\n";
35 function createHref($name) {
36         global $extension;
37         global $barry_page_path;
39         echo 'href="' . $barry_page_path . $name . $extension . '"';
42 function createFileLink($name, $desc) {
43         global $files_path;
45         echo '<a href="' . $files_path . $name . '">' . $desc . "</a>\n";
48 function createPureFileLink($name) {
49         global $doc_mode;
50         global $files_path;
52         if( !strcmp($doc_mode, "netdirect") ) {
53                 createFileLink($name, basename($name));
54         }
55         else {
56                 echo '<a href="http://www.netdirect.ca/sites/www.netdirect.ca/files/barry/' . $name . '">' . basename($name) . "</a>\n";
57         }
60 function createImage($filename) {
61         global $image_path;
63         echo '<img src="' . $image_path . $filename . '"/>';
66 function createImageEx($filename, $img_html) {
67         global $image_path;
69         echo '<img src="' . $image_path . $filename . '" ' . $img_html . ' />';