Modified RT-menu: Styled logout link

Now the logout link is also integrated in the menu.
This commit is contained in:
Cris
2019-04-25 13:14:57 +02:00
committed by cris-technikum
parent 0738a0aee1
commit 80afb74be9
3 changed files with 22 additions and 4 deletions
+1 -2
View File
@@ -403,7 +403,7 @@ if(isset($_POST['save']) && isset($_SESSION['prestudent_id']))
$sprachwahl = $ablauf->result[0]->sprachwahl;
}
//Prestudent Informationen und Logout
//Prestudent Informationen
echo '<form method="GET">';
echo '<br>'.$p->t('testtool/begruessungstext').' <br/><br/>';
echo '<b>'.$p->t('zeitaufzeichnung/id').'</b>: '.$_SESSION['prestudent_id'].'<br/>';
@@ -462,7 +462,6 @@ if(isset($_POST['save']) && isset($_SESSION['prestudent_id']))
{
echo '<b>'.$p->t('global/studiengang').'</b>: '.$typ->bezeichnung.' '.($sprache_user=='English'?$stg_obj->english:$stg_obj->bezeichnung).'<br/><br/>';
}
echo '<INPUT type="submit" value="Logout" name="logout" />';
echo '</form>';
echo '<br><br>';
+8 -2
View File
@@ -97,7 +97,7 @@ if (isset($_SESSION['pruefling_id']))
// Link zur Startseite
echo '<tr><td class="ItemTesttool" style="margin-left: 20px;" nowrap>
<a class="ItemTesttool" href="login.php" target="content">'.$p->t('testtool/startseite').'</a>
<a class="ItemTesttool navButton" href="login.php" target="content">'.$p->t('testtool/startseite').'</a>
</td></tr>';
// Link zur Einleitung
@@ -105,7 +105,7 @@ if (isset($_SESSION['pruefling_id']))
if($content_id->content_id!='')
echo '
<tr><td class="ItemTesttool" style="margin-left: 20px;" nowrap>
<a class="ItemTesttool" href="../../cms/content.php?content_id='.$content_id->content_id.'&sprache='.$sprache.'" target="content">'.$p->t('testtool/einleitung').'</a>
<a class="ItemTesttool navButton" href="../../cms/content.php?content_id='.$content_id->content_id.'&sprache='.$sprache.'" target="content">'.$p->t('testtool/einleitung').'</a>
</td></tr>';
echo '<tr><td style="padding-left: 20px;" nowrap>';
@@ -383,6 +383,12 @@ if (isset($_SESSION['pruefling_id']))
}
}
echo '</table>';
// Link zum Logout
echo '<tr><td class="ItemTesttool" style="margin-left: 20px;" nowrap>
<a class="ItemTesttool navButton" href="login.php?logout" target="content">Logout</a>
</td></tr>';
echo '</td></tr></table>';
}
else
+13
View File
@@ -214,6 +214,13 @@ a.ItemTesttool
display:block;
padding: 5px 10px 5px 10px;
}
a.ItemTesttool.navButton
{
background-color: #0a629c;
color: white;
padding: 10px;
}
a.ItemTesttoolAktiv
{
color: #000;
@@ -238,6 +245,12 @@ a:hover.ItemTesttool
text-decoration: none;
padding: 5px 10px 5px 10px;
}
a:hover.ItemTesttool.navButton
{
background-color: steelblue;
color: white;
padding: 10px;
}
a.HyperItem /* ? */
{
color: Black; text-decoration: none;