]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - templates/browse.html
Jeff's hacks II.
[SourceForge/phpwiki.git] / templates / browse.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2   "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
3 <html>
4 <head>
5 <!-- phpwiki source:
6 ${RCS_IDS}
7 -->
8 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
9 <!-- <meta name="robots" content="index,follow"> -->
10 <base href="${BASE_URL}">
11 <title>${SPLIT_PAGE}</title>
12 <!--
13 -->
14 <link rel="stylesheet" title="phpwiki" href="${CSS_URL}" type="text/css">
15 </head>
16 <body>
17 <h1>
18 <div><a class="wikilink" 
19         href="${BROWSE}HomePage"
20         ><img src="${LOGO}"
21               border=0 alt="[phpwiki]" 
22               align="right" width=50 height=50></a></div>
23 <!--FIXME: this link is broken unless pages are in pathinfo -->
24 <!--<a title="Get BackLinks for ${PAGE}"
25    onmouseover="window.status='Get BackLinks for ${PAGE}';return true;"
26    class="backlinks"
27    href="${BROWSE}BackLinks?page=${PAGEURL}"
28    ><span class="wikiword">${SPLIT_PAGE}</span></a>-->
29 <?plugin-link BackLinks description="Get BackLinks for [pagename]"
30                         page="[pagename]" class="backlinks"
31                         linktext="${SPLIT_PAGE}" ?>
32 </h1>
33 <div class="br"><br clear="both" class="ignore"></div>
34 <?php if (! $IS_CURRENT) { ?>
35   <p><b>Note</b>: You are viewing an old revision of this page.
36      Click <a href="${BROWSE}${PAGEURL}">here</a> to view the current version.</p>
37   <hr class="ignore" noshade>
38 <?php } ?>
39 <div class="wikitext">${CONTENT}</div>
40 <hr class="ignore" noshade>
41 <form action="<?php echo WikiURL('TitleSearch'); ?>" method="get">
42 <!-- I would like not to have to use these tables, and managed to
43      get this stuff to work more or less correctly using
44      CSS's float:left; and float:right;.  However float:right; seems
45      to cause MSIE4.01/NT to hang. 
46      So, we use tables...  -->
47 <table class="toolbar" width="100%"
48        cellpadding=0 cellspacing=0 border=0><tr valign="baseline">
49   <td>
50     <?php if ($IS_CURRENT) { ?>
51       Last edited on ${LASTMODIFIED}
52     <?php } else { ?>
53       Version ${VERSION}, saved on ${LASTMODIFIED}
54     <?php } ?>
55   </td>
56   <td align="right">
57   <?php echo LinkExistingWikiWord('FindPage') ?> 
58   | <span><input type="hidden" name="auto_redirect" value="1">
59     <input type="text"  name="s" size="12"
60            title="Quick Search"
61            onmouseover="window.status='Quick Search'; return true;"
62            onmouseout="window.status=''; return true;"></span>
63   <!-- | <a class="wikiaction" href="${BROWSE}LikePages?page=${PAGEURL}">LikePages</a> -->
64   | <?plugin-link LikePages page="[pagename]" description="List LikePages for [pagename]"?>
65   </td>
66 </tr></table>
67 <table class="toolbar" width="100%"
68        cellpadding=0 cellspacing=0 border=0><tr valign="baseline">
69   <td>
70     <?php if ($page->get('locked') && !$user->is_admin()) { ?>
71       Page locked
72     <?php } else { ?>
73       <?php if ($IS_CURRENT) { ?>
74         <a class="wikiaction" href="${ACTION}edit">Edit</a>
75       <?php } else { ?>
76         <a class="wikiaction" href="${ACTION}edit&amp;version=${VERSION}"
77           >Edit old revision</a>
78       <?php } ?>
79     <?php } ?>
80     <?php if ($user->is_admin()) { ?>
81       <?php if ($page->get('locked')) { ?>
82         | <a class="wikiadmin" href="${ACTION}unlock">Unlock page</a>
83       <?php } else { ?>
84         | <a class="wikiadmin" href="${ACTION}lock">Lock page</a>
85       <?php } ?>
86       | <a class="wikiadmin" href="${ACTION}remove">Remove page</a>
87     <?php } ?>
88     | <a class="wikiaction" href="${ACTION}info">History</a>
89     <?php if ($IS_CURRENT) { ?>
90       | <a class="wikiaction" href="${ACTION}diff&amp;previous=major">Diff</a>
91     <?php } else { ?>
92       | <a class="wikiaction" 
93            href="${ACTION}diff&amp;version=${VERSION}&amp;previous=major">Diff</a>
94     <?php } ?>
95   </td>
96   <td align="right">
97     <?php if ($user->is_authenticated()) { ?>
98       You are signed in as <?php echo LinkWikiWord($USERID); ?>
99       | <a class="wikiaction" href="${ACTION}logout">SignOut</a>
100     <?php } else { ?>
101       <a class="wikiaction" href="${ACTION}login">SignIn</a>
102     <?php } ?>
103   </td>
104 </tr></table>
105
106 <?php /*
107 <hr class="ignore" noshade>
108 <small>${RELATEDPAGES}</small>
109 */ ?>
110 <?php // FIXME:hack
111 ob_start();
112 global $ErrorManager;
113 $ErrorManager->flushPostponedErrors();
114 $errmsgs = ob_get_contents();
115 ob_end_clean();
116 if ($errmsgs)
117     echo "<div class='errors'><h4>PHP Warnings</h4>$errmsgs</div>";
118 ?>
119 <div class="toolbar">
120   <!-- For debugging only, really: -->
121   <?plugin-link _BackendInfo 
122                 linktext=DebugInfo
123                 targetpage=DebugInfo
124                 page=[pagename]
125                 description="Get debugging information for [pagename]."?>
126 </div>
127 </form>
128 </body>
129 </html>