xref: /web-bugs/templates/layout.php (revision 2f06b4d7)
1<!DOCTYPE html>
2<html lang="en">
3<head>
4    <meta charset="utf-8">
5    <title>PHP :: <?= $this->e($title) ?></title>
6    <link rel="shortcut icon" href="<?= $siteScheme ?>://<?= $siteUrl ?>/images/favicon.ico">
7    <link rel="stylesheet" href="/css/style.css">
8    <meta http-equiv="X-Frame-Options" content="SAMEORIGIN">
9</head>
10<body>
11<table id="top" class="head" cellspacing="0" cellpadding="0">
12    <tr>
13        <td class="head-logo">
14            <a href="/"><img src="/images/logo.png" alt="Bugs" vspace="2" hspace="2"></a>
15        </td>
16
17        <td class="head-menu">
18            <a href="https://php.net/">php.net</a>&nbsp;|&nbsp;
19            <a href="https://php.net/support.php">support</a>&nbsp;|&nbsp;
20            <a href="https://php.net/docs.php">documentation</a>&nbsp;|&nbsp;
21            <a href="/report.php">report a bug</a>&nbsp;|&nbsp;
22            <a href="/search.php">advanced search</a>&nbsp;|&nbsp;
23            <a href="/search-howto.php">search howto</a>&nbsp;|&nbsp;
24            <a href="/stats.php">statistics</a>&nbsp;|&nbsp;
25            <a href="/random">random bug</a>&nbsp;|&nbsp;
26            <?php if ($authIsLoggedIn): ?>
27                <a href="/search.php?cmd=display&assign=<?= $this->e($authUsername) ?>">my bugs</a>&nbsp;|&nbsp;
28                    <?php if ('developer' === $authRole): ?>
29                        <a href="/admin/">admin</a>&nbsp;|&nbsp;
30                    <?php endif ?>
31                <a href="/logout.php">logout</a>
32            <?php else: ?>
33                <a href="/login.php">login</a>
34            <?php endif ?>
35        </td>
36    </tr>
37
38    <tr>
39        <td class="head-search" colspan="2">
40            <form method="get" action="/search.php">
41                <p class="head-search">
42                    <input type="hidden" name="cmd" value="display">
43                    <small>go to bug id or search bugs for</small>
44                    <input class="small" type="text" name="search_for" value="<?= $this->e($_GET['search_for'] ?? '') ?>" size="30">
45                    <input type="image" src="/images/small_submit_white.gif" alt="search" style="vertical-align: middle;">
46                </p>
47            </form>
48        </td>
49    </tr>
50</table>
51
52<table class="middle" cellspacing="0" cellpadding="0">
53    <tr>
54        <td class="content">
55            <?= $this->block('content') ?>
56        </td>
57    </tr>
58</table>
59
60<table class="foot" cellspacing="0" cellpadding="0">
61    <tr>
62        <td class="foot-bar" colspan="2">&nbsp;</td>
63    </tr>
64
65    <tr>
66        <td class="foot-copy">
67            <small>
68                <a href="https://php.net/"><img src="/images/logo-small.gif" align="left" valign="middle" hspace="3" alt="PHP"></a>
69                <a href="https://php.net/copyright.php">Copyright &copy; 2001-<?= date('Y') ?> The PHP Group</a><br>
70                All rights reserved.
71            </small>
72        </td>
73        <td class="foot-source">
74            <small>Last updated: <?= $lastUpdated ?></small>
75        </td>
76    </tr>
77</table>
78
79<?= $this->block('scripts') ?>
80</body>
81</html>
82