desktop: fixed missing data-to-window bug in CalendarEditDlg
[barry.git] / doc / www / barry.inc
blobae5e5be3e1b5427b97aae671dc8ec77530729c72
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 createFileLink($name, $desc) {
36         global $files_path;
38         echo '<a href="' . $files_path . $name . '">' . $desc . "</a>\n";
41 function createPureFileLink($name) {
42         global $doc_mode;
43         global $files_path;
45         if( !strcmp($doc_mode, "netdirect") ) {
46                 createFileLink($name, basename($name));
47         }
48         else {
49                 echo '<a href="http://www.netdirect.ca/sites/www.netdirect.ca/files/barry/' . $name . '">' . basename($name) . "</a>\n";
50         }
53 function createImage($filename) {
54         global $image_path;
56         echo '<img src="' . $image_path . $filename . '"/>';