Skip to content

Commit 85ded62

Browse files
committed
edit user from top menu
1 parent ba19e60 commit 85ded62

File tree

3 files changed

+35
-21
lines changed

3 files changed

+35
-21
lines changed

web/templates/admin/panel.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
<td>
1212
<b><a class="top-<?php if($TAB == 'PACKAGE' ) echo 'selected-' ?>link" href="/list/package/"> <?php print __('Packages') ?> </a></b>
1313
<b><a class="top-<?php if($TAB == 'IP' ) echo 'selected-' ?>link" href="/list/ip/"> <?php print __('IP') ?> </a></b>
14-
<b><a class="top-<?php if($TAB == 'RRD' ) echo 'selected-' ?>link" href="/list/rrd/"> <?php print __('Graphics') ?> </a></b>
14+
<b><a class="top-<?php if($TAB == 'RRD' ) echo 'selected-' ?>link" href="/list/rrd/"> <?php print __('Graphs') ?> </a></b>
1515
<b><a class="top-<?php if($TAB == 'STATS' ) echo 'selected-' ?>link" href="/list/stats/"> <?php print __('Statistics') ?> </a></b>
1616
<b><a class="top-<?php if($TAB == 'LOG' ) echo 'selected-' ?>link" href="/list/log/"> <?php print __('Log') ?> </a></b>
1717
<b><a class="top-<?php if($TAB == 'SERVICES' ) echo 'selected-' ?>link" href="/list/services/"> <?php print __('Services') ?> </a></b>
1818
<b><a class="top-<?php if($TAB == 'UPDATES' ) echo 'selected-' ?>link" href="/list/updates/"> <?php print __('Updates') ?> </a></b>
1919
</td>
2020
<td>
21-
<b><?php echo $user ?></b>
22-
<a class="top-logout" style="padding: 5px 0px 5px 2px; border:0px" href="/logout/"> <?php print __('Log out') ?> </a>
21+
<b><a class="top-user" href="/edit/user/?user=<?php echo $user; ?>"><?php echo $user ?></a></b>
22+
<a class="top-logout" href="/logout/"> <?php print __('Log out') ?> </a>
2323
</td>
2424
</tr>
2525
</thead>

web/templates/header.html

Lines changed: 30 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
margin-left: auto;
1111
margin-right: auto;
1212
font-family: Arial, Helvetica, sans-serif;
13-
background: #e9e9e9;
13+
background-color: #e9e9e9;
1414
}
1515

1616
form {
@@ -22,7 +22,7 @@
2222
}
2323

2424
.main {
25-
background: #ffffff;
25+
background-color: #ffffff;
2626
padding: 0 0 18px 0;
2727
box-shadow: 0 2px 6px rgba(100, 100, 100, 0.3);
2828
}
@@ -41,7 +41,7 @@
4141
}
4242

4343
.top thead td {
44-
background: #505050;
44+
background-color: #505050;
4545
border-bottom: 1px solid #fff;
4646
height: 25px;
4747
text-align: right;
@@ -66,35 +66,49 @@
6666

6767
.top-link:hover {
6868
color: #fff;
69-
background: #999;
69+
background-color: #999;
7070
}
7171

7272
.top-link:active{
7373
color: #fff;
74-
background: #f79b44;
74+
background-color: #f79b44;
7575
}
7676

7777
.top-selected-link {
7878
padding: 5px 22px;
7979
text-decoration: none;
8080
color: #555;
81-
background: #fff;
81+
background-color: #fff;
8282
border-right: 1px solid #fff;
8383
}
8484

8585
.top-selected-link:hover {
8686
color: #174f82;
8787
}
8888

89+
.top-user {
90+
padding: 0 2px 0 0;
91+
text-decoration: none;
92+
color: #ffd76e;
93+
}
94+
95+
.top-user:hover {
96+
color: #fff;
97+
}
98+
99+
.top-user:active{
100+
color: #fff;
101+
background-color: #f79b44;
102+
}
103+
89104
.top-logout {
90105
text-decoration: none;
91106
color: #d3d3d3;
92-
padding: 0 0 0 2px;
93107
border: noner;
94108
}
95109

96110
.top-logout:hover {
97-
color: #;
111+
color: #fff;
98112
}
99113

100114
.top-logout:active {
@@ -141,7 +155,7 @@
141155
height: 107px;
142156
width: 118px;
143157
float: left;
144-
background: #fff;
158+
background-color: #fff;
145159
border-bottom: 4px solid #777;
146160
cursor: pointer;
147161
}
@@ -187,7 +201,7 @@
187201
text-align: left;
188202
vertical-align:top;
189203
padding: 0px 10px 0px 0;
190-
background: none repeat scroll 0% 0% white;
204+
background-color: none repeat scroll 0% 0% white;
191205
}
192206

193207
.submenu td {
@@ -282,7 +296,7 @@
282296
}
283297

284298
.bottom {
285-
background: #ebe9dc;
299+
background-color: #ebe9dc;
286300
color: #555;
287301
margin: 30px 0 0 0;
288302
padding: 4px 20px 8px 0;
@@ -474,7 +488,7 @@
474488

475489
.data-controls:hover {
476490
color: #ffffff;
477-
background: #f79b44;
491+
background-color: #f79b44;
478492
}
479493

480494
.data-controls img {
@@ -483,7 +497,7 @@
483497

484498
.data-count {
485499
font-family: Arial, Helvetica, sans-serif;
486-
background: #f3f3f3;
500+
background-color: #f3f3f3;
487501
color: #555;
488502
font-size: 8pt;
489503
margin: 18px 0 0 0;
@@ -763,7 +777,7 @@
763777
font-family:Arial, Helvetica, sans-serif;
764778
margin: 80px 0 80px 0;
765779
padding: 0;
766-
background: #fff;
780+
background-color: #fff;
767781
text-align: left;
768782
vertical-align:top;
769783
width: 500px;
@@ -782,7 +796,7 @@
782796
vertical-align:top;
783797
width: 500px;
784798
height: 50px;
785-
background: #ebe9dc;
799+
background-color: #ebe9dc;
786800
padding: 0 8px 0 0;
787801
margin: 0;
788802
}
@@ -854,7 +868,7 @@
854868
height: 109px;
855869
width: 118px;
856870
float: left;
857-
background: #fff;
871+
background-color: #fff;
858872
border-bottom: 4px solid #777;
859873
cursor: pointer;
860874
}

web/templates/user/panel.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
<b><a class="top-<?php if($TAB == 'LOG' ) echo 'selected-' ?>link" href="/list/log/"> <?php print __('Log') ?> </a></b>
1414
</td>
1515
<td>
16-
<b><?php if(($_SESSION['user'] == 'admin') && ($user != 'admin')) echo 'admin / ' ?><?php echo $user ?></b>
17-
<a class="top-logout" style="padding: 5px 0px 5px 2px; border:0px" href="/logout/"> <?php print __('Log out') ?> </a>
16+
<b><a class="top-user" href="/edit/user/?user=<?php echo $user; ?>"><?php if(($_SESSION['user'] == 'admin') && ($user != 'admin')) echo 'admin / ' ?><?php echo $user ?></a></b>
17+
<a class="top-logout" href="/logout/"> <?php print __('Log out') ?> </a>
1818
</td>
1919
</tr>
2020
</thead>

0 commit comments

Comments
 (0)