This repository has been archived by the owner on Dec 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpz_screen_header.tpl
62 lines (49 loc) · 2.53 KB
/
pz_screen_header.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<nav>
<?php echo $this->navigation; ?>
</nav>
<ul id="navi-meta" class="sl1">
<li class="lev1 first date"><span class="date"><?php echo pz::strftime(pz_i18n::msg("show_date_long"),pz::getDatetime()->format("U")); ?></span><br><span style="display: block; text-align: right;">(<?php echo pz_i18n::msg("calendarweek"); ?> <?php echo pz::dateTime2dateFormat(pz::getDatetime(), "W"); ?>)</span></li>
<?php if(pz::getUser()) { ?>
<!--
<li class="lev1 search">
<div class="search">
<form action="index.php" method="post" enctype="multipart/form-data">
<fieldset>
<p class="formtext">
<input type="text" class="text" name="q" value="<?php echo htmlspecialchars(pz_i18n::msg("enter_keyword")); ?>" onblur="if(this.value == '') this.value='<?php echo htmlspecialchars(pz_i18n::msg("enter_keyword")); ?>'" onfocus="if(this.value == '<?php echo htmlspecialchars(pz_i18n::msg("enter_keyword")); ?>') this.value=''" />
<a class="bt1 search" href=""><span><?php echo htmlspecialchars(pz_i18n::msg("search")); ?></span></a>
</p>
</fieldset>
</form>
</div>
</li>
-->
<li class="lev1 clipboard"><?php echo pz_screen::getTooltipView('<a class="bt1 clipboard" href="javascript:void(0)" onclick="pz_loadClipboard();"><span>'.htmlspecialchars(pz_i18n::msg("clipboard")).'</span></a>',pz_i18n::msg("clipboard")); ?>
</li>
<?php } ?>
<?php if(@$this->user != "") { ?>
<li class="lev1 user selected"><span class="selected" onclick="pz_screen_select(this)"><?php echo htmlspecialchars(pz::cutText($this->user,24)); ?></span>
<?php
if(isset($this->user_navigation) && is_array($this->user_navigation))
{
echo '<div class="flyout">
<div class="content">
<ul class="entries">';
foreach($this->user_navigation as $user)
{
echo '<li class="entry "><a href="'.$user["link"].'"><span class="title">'.htmlspecialchars(pz::cutText($user["name"],24)).'</span></a></li>';
}
echo '</ul>
</div>
</div>';
}
?></li>
<?php } ?>
<?php
if(pz::getUser()) {
echo '<li class="lev1 last logout"><a class="bt1 logout" href="/?logout=1">'.pz_i18n::msg("logout").'</a></li>';
}else {
echo '<li class="lev1 last logout"><a class="bt1 login" href="javascript:pz_getLogin()">'.pz_i18n::msg("login").'</a></li>';
}
?>
</ul>