Hanno mag mein tolles Bildchen nicht. :-(
bernd

bernd commited on 2007-08-23 16:34:01
Zeige 2 geänderte Dateien mit 19 Einfügungen und 19 Löschungen.


git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@639 87cf0b9e-d624-0410-a070-f6ee81989793
... ...
@@ -48,12 +48,12 @@ p.userinfo {
48 48
   margin-bottom: 1.5em;
49 49
   padding: 0.5em;
50 50
   border: 1px solid black;
51
-  padding-left: 40px;
52 51
   background-color: #b2c2cb;
52
+  /*padding-left: 40px;
53 53
   background-image: url('../images/user.png');
54 54
   background-position: left;
55 55
   background-repeat: no-repeat;
56
-  background-position: 0.5em 0.5em;
56
+  background-position: 0.5em 0.5em;*/
57 57
   min-height: 36px;
58 58
 }
59 59
 
... ...
@@ -91,23 +91,6 @@ echo '
91 91
 
92 92
 <?php
93 93
 $role = $_SESSION['role'];
94
-if ($role != ROLE_ANONYMOUS) {
95
-  echo '<p class="userinfo">';
96
-  if ($role & ROLE_SYSTEMUSER) {
97
-    echo '<strong>'.$_SESSION['userinfo']['username'].'</strong>';
98
-    echo '<br />'.$_SESSION['userinfo']['name'];
99
-    echo '<br />(Benutzer'.(($role & ROLE_CUSTOMER) ? ', Kunde' : '').')';
100
-  }
101
-  elseif ($role & ROLE_CUSTOMER) {
102
-    echo '<strong>'.$_SESSION['customerinfo']['customerno'].'</strong>';
103
-    echo '<br />'.$_SESSION['customerinfo']['name'];
104
-    echo '<br />(Kunde)';
105
-  }
106
-  elseif ($role & ROLE_MAILACCOUNT) {
107
-    echo '<strong>'.$_SESSION['mailaccount'].'</strong><br />(E-Mail-Account)';
108
-  }
109
-  echo '</p>';
110
-}
111 94
 
112 95
 
113 96
   foreach ($weighted_menuitem as $key => $menuitem)
... ...
@@ -134,6 +117,23 @@ if ($role != ROLE_ANONYMOUS) {
134 117
 
135 118
         }
136 119
 
120
+if ($role != ROLE_ANONYMOUS) {
121
+echo '<p class="userinfo">Angemeldet als:<br />';
122
+  if ($role & ROLE_SYSTEMUSER) {
123
+    echo '<strong>'.$_SESSION['userinfo']['username'].'</strong>';
124
+    echo '<br />'.$_SESSION['userinfo']['name'];
125
+    echo '<br />(Benutzer'.(($role & ROLE_CUSTOMER) ? ', Kunde' : '').')';
126
+  }
127
+  elseif ($role & ROLE_CUSTOMER) {
128
+    echo '<strong>'.$_SESSION['customerinfo']['customerno'].'</strong>';
129
+    echo '<br />'.$_SESSION['customerinfo']['name'];
130
+    echo '<br />(Kunde)';
131
+  }
132
+  elseif ($role & ROLE_MAILACCOUNT) {
133
+    echo '<strong>'.$_SESSION['mailaccount'].'</strong><br />(E-Mail-Account)';
134
+  }
135
+  echo '</p>';
136
+}
137 137
 ?>
138 138
 
139 139
 </div>
140 140