Старт переноса showinf_pers(); в класс (наконец!_)

This commit is contained in:
lopar 2020-07-04 21:49:57 +03:00
parent c6729f4a7b
commit 73042e214e
2 changed files with 18 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class User
} }
protected function showItem(array $item) { protected function showItem(array $item) {
echo sprintf('<img src="/i/sh/%s" class="item-wrap-normal tooltip" title="<strong>%s</strong>">', $item['image'], $item['name']); echo sprintf('<img src="/i/sh/%s" class="item-wrap-normal tip"><span class="tiptext"><strong>%s</strong></span>', $item['image'], $item['name']);
} }
public function showUserInfo() { public function showUserInfo() {

View File

@ -298,4 +298,21 @@ span.success {
span.error { span.error {
font-weight: bold; font-weight: bold;
color: #8F0000; color: #8F0000;
}
img.tip+span.tiptext {
display: none
}
img.tip:hover+span.tiptext {
border: #c0c0c0 1px dotted;
padding: 5px 20px 5px 5px;
display: block;
z-index: 100;
background-color: #f0f0f0;
left: 0px;
margin: 10px;
width: 250px;
position: absolute;
top: 10px;
text-decoration: none
} }