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