]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - templates/browse.html
Name the wiki (SF task #34142).
[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.25 2001-12-11 22:41:40 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(_("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   | <?plugin-link LikePages page="[pagename]" description=_("List LikePages for [pagename]")?>
64   </td>
65 </tr></table>
66 <table summary="Toolbar 2: Page actions and sign in." class="toolbar" width="100%"
67        cellpadding="0" cellspacing="0" border="0"><tr valign="baseline">
68   <td>
69     <?php if ($page->get('locked') && !$user->is_admin()) { ?>
70       $_("Page locked")
71     <?php } else { ?>
72       <?php if ($IS_CURRENT) { ?>
73         <a class="wikiaction" href="${ACTION}edit">$_("Edit")</a>
74       <?php } else { ?>
75         <a class="wikiaction" href="${ACTION}edit&amp;version=${VERSION}"
76           >$_("Edit old revision")</a>
77       <?php } ?>
78     <?php } ?>
79     <?php if ($user->is_admin()) { ?>
80       <?php if ($page->get('locked')) { ?>
81         | <a class="wikiadmin" href="${ACTION}unlock">$_("Unlock page")</a>
82       <?php } else { ?>
83         | <a class="wikiadmin" href="${ACTION}lock">$_("Lock page")</a>
84       <?php } ?>
85       | <a class="wikiadmin" href="${ACTION}remove">$_("Remove page")</a>
86     <?php } ?>
87     | <a class="wikiaction" href="${ACTION}info">$_("History")</a>
88     <?php if ($IS_CURRENT) { ?>
89       | <a class="wikiaction" href="${ACTION}diff&amp;previous=major">$_("Diff")</a>
90     <?php } else { ?>
91       | <a class="wikiaction" 
92            href="${ACTION}diff&amp;version=${VERSION}&amp;previous=major">$_("Diff")</a>
93     <?php } ?>
94   </td>
95   <td align="right">
96     <?php if ($user->is_authenticated()) { ?>
97       $_("You are signed in as") <?php echo LinkWikiWord($USERID); ?>
98       | <a class="wikiaction" href="${ACTION}logout">$_("SignOut")</a>
99     <?php } else { ?>
100       <a class="wikiaction" href="${ACTION}login">$_("SignIn")</a>
101     <?php } ?>
102   </td>
103 </tr></table>
104
105 <?php /*
106 <hr class="ignore" noshade="noshade" />
107 <small>${RELATEDPAGES}</small>
108 */ ?>
109 <?php // FIXME:hack
110 ob_start();
111 global $ErrorManager;
112 $ErrorManager->flushPostponedErrors();
113 $errmsgs = ob_get_contents();
114 ob_end_clean();
115 if ($errmsgs)
116     echo Element('div', array('class' => 'errors'),
117                  QElement('h4', _("PHP Warnings"))
118                  . $errmsgs);
119 ?>
120 <div class="toolbar">
121   <!-- For debugging only, really: -->
122   <?plugin-link _BackendInfo 
123                 linktext=_("DebugInfo")
124                 targetpage=_("DebugInfo")
125                 page=[pagename]
126                 description=_("Get debugging information for [pagename].")?>
127 </div>
128 </form>
129 </body>
130 </html>