]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - templates/browse.html
New PageHistory plugin replaces action=info and lib/pageinfo.php.
[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 $Id: browse.html,v 1.27 2001-12-14 20:28:02 dairiki Exp $
8 ${RCS_IDS}
9 -->
10 <meta name="keywords" content="${SPLIT_PAGE}, ${WIKI_NAME}" />
11 <?php if (!empty($PAGE_DESCRIPTION)) { ?>
12   <meta name="description" content="${PAGE_DESCRIPTION}" />
13 <?php } ?>
14 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
15 <!-- <meta name="robots" content="index,follow" /> -->
16 <base href="${BASE_URL}" />
17 <title>${SPLIT_PAGE}</title>
18 <!--
19 -->
20 <link rel="stylesheet" title="phpwiki" href="${CSS_URL}" type="text/css" />
21 </head>
22 <body>
23 <div><a class="wikilink" 
24         href="${BROWSE}HomePage"
25         ><img src="${LOGO}"
26               border="0" alt="${WIKI_NAME}" 
27               align="right" width="50" height="50" /></a></div>
28 <h1>
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="all" class="ignore" /></div>
34 <?php if (! $IS_CURRENT) { ?>
35   <p><strong>$_("Note:")</strong> $_("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="noshade" />
38 <?php } ?>
39 <div class="wikitext">${CONTENT}</div>
40 <hr class="ignore" noshade="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      CSSs float:left; and float:right;.  However float:right; seems
45      to cause MSIE4.01/NT to hang. 
46      So, we use tables...  -->
47 <table summary="Toolbar 1: Page date and page search options." 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(_("RecentChanges")) ?> 
58   | <?php echo LinkExistingWikiWord(_("FindPage")) ?> 
59   | <span><input type="hidden" name="auto_redirect" value="1" />
60     <input type="text"  name="s" size="12"
61            title=_("Quick Search")
62            onmouseover="window.status='$_("Quick Search")'; return true;"
63            onmouseout="window.status=''; return true;" /></span>
64   | <?plugin-link LikePages page="[pagename]" description=_("List LikePages for [pagename]")?>
65   </td>
66 </tr></table>
67 <table summary="Toolbar 2: Page actions and sign in." 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     | <?plugin-link PageHistory page="[pagename]" description=_("List PageHistory for [pagename]")?>
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="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 Element('div', array('class' => 'errors'),
118                  QElement('h4', _("PHP Warnings"))
119                  . $errmsgs);
120 ?>
121 <div class="toolbar">
122   <!-- For debugging only, really: -->
123   <?plugin-link _BackendInfo 
124                 linktext=_("DebugInfo")
125                 targetpage=_("DebugInfo")
126                 page=[pagename]
127                 description=_("Get debugging information for [pagename].")?>
128 </div>
129 </form>
130 </body>
131 </html>