blob: 0e690c23be5898d64a1da7e64346765c2ecf4ef0 (
plain)
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
<style>
.wqn, .wqn *, .wqn:hover *, .wqn *:hover{
all:initial;
}
.wqn {
position: fixed;
top: 0;
right: 0;
z-index: 10;
background-color: var(--color1);
}
.wqn div#dropwqn {
background-color: lightgrey;
text-align: right;
font-family: monospace;
}
.wqn li.drop{
display: block;
text-align: right;
}
.wqn li.drop a.button:hover, .wqn li.drop input[type="submit"]:hover {
color: white;
}
.wqn li.drop a.button, .wqn li.drop input[type="submit"] {
cursor: pointer;
font-family: monospace;
font-size: 15px;
}
.wqn li.drop a.button, .wqn li.drop input[type="submit"] {
cursor: pointer;
font-family: monospace;
font-size: 15px;
}
.wqn div#dropwqn {
display: none;
}
.wqn input#loginpass {
width: 70px;
background-color: white;
}
.wqn:hover div#dropwqn {
display: block;
}
</style>
<div class="wqn" >
<div style="opacity: 0.5; text-align: right; display: block;">✎</div>
<div id="dropwqn">
<ul>
<li class="drop">
<span class="button" style="font-family: monospace; background-color: #7b97b9;" ><?= $user->id() ?> (<?= $user->level() ?>)</span>
</li>
<li class="drop">
<a class="button" href="<?= $this->url('home') ?>">home</a>
</li>
<?php if($user->isvisitor()) { ?>
<li class="drop">
<form action="<?= $this->url('log') ?>" method="post">
<input type="password" name="pass" id="loginpass" placeholder="password">
<input type="hidden" name="route" value="artread/">
<input type="hidden" name="id" value="<?= $art->id() ?>">
<input type="submit" name="log" value="login" id="button">
</form>
</li>
<?php } else { ?>
<li class="drop">
<form action="<?= $this->url('log') ?>" method="post">
<input type="hidden" name="id" value="<?= $art->id() ?>">
<input type="hidden" name="route" value="artread/">
<input type="submit" name="log" value="logout" id="button">
</form>
</li>
<?php } ?>
<?php if($canedit && $artexist) { ?>
<li class="drop">
<a class="button" href="<?= $this->uart('artread/', $art->id()) ?>" target="_blank">display</a>
</li>
<li class="drop">
<a class="button" href="<?= $this->uart('artedit', $art->id()) ?>" >edit</a>
</li>
<li class="drop">
<a class="button" href="<?= $this->uart('artrender', $art->id()) ?>" >render</a>
</li>
<?php } ?>
<?php if ($user->iseditor()) { ?>
<li class="drop">
<a class="button" href="<?= $this->url('media') ?>" >Media</a>
</li>
<?php } ?>
<?php if($user->isadmin()) { ?>
<li class="drop">
<a class="button" href="<?= $this->url('admin') ?>" >Admin</a>
</li>
<?php } ?>
</div>
</div>
|