bayern web style

This commit is contained in:
ragu 2022-05-05 12:07:05 +02:00
parent 7ede282b7b
commit cc031094eb
8 changed files with 67 additions and 23 deletions

View file

@ -53,13 +53,13 @@ sub tpl(){
#my $api_test = "sharee_wue";
my $api_test = "sharee_sx"; my $bike="S3X1001";
#my $api_test = "sharee_ren"; my $bike="REN2";
print $q->div({-style=>'float:right;text-align:right;height:25px;padding:6px 15px;background-color:white'},$q->a({-style=>"background-color:#ffffff;color:#$bgcolor1;", -href=>"$varenv->{metahost}/src/scripts/tests/index.pl?sessionid=$coo\&api_test=$api_test\&bike=$bike", -target=>'_blank'}," [ tests --> $api_test ] ")),"\n";
print $q->div({-style=>'text-align:right;height:25px;padding:6px 15px;background-color:white'},$q->a({-style=>"background-color:#ffffff;color:#$bgcolor1;", -href=>"$varenv->{metahost}/src/scripts/tests/index.pl?sessionid=$coo\&api_test=$api_test\&bike=$bike", -target=>'_blank'}," [ tests --> $api_test ] ")),"\n";
}
my $site_padding = "20px 0";
if($dbt->{website}->{$varenv->{syshost}}->{layout} eq "iframe"){
$site_padding = "0";
}
my $site_padding = "0 0 20px 0";
#if($dbt->{website}->{$varenv->{syshost}}->{layout} eq "iframe"){
# $site_padding = "0";
#}
if(1==1){
@ -93,6 +93,40 @@ sub tpl(){
color: fffffe;
background-color: #$hgcolor1;
}
ul#LeftNavi {
position:fixed;
margin:20px 0;
width: 175px;
height:100%;
padding:$site_padding;
vertical-align:top;
border: 0px solid white;
}
ul#LeftNavi li {
list-style: none;
padding:1px;
}
ul#LeftNavi li a {
display: block;
transition: all 0.3s ease;
margin: 0;
padding: 1em 3%;
width:180px;
background-color: #$bgcolor1;
text-decoration: none;
font-weight: normal;
color: #fffffe;
}
ul#LeftNavi a:hover {
color: #fffffe;
background-color: #$hgcolor1;
}
ul#LeftNavi a:active {
color: fffffe;
background-color: #$hgcolor1;
}
</style>";
my $lmenu0 = "";
@ -115,21 +149,29 @@ sub tpl(){
}
#bootstrap 5 with standalone site
print "<div class='container' style='border:1px dotted silver;'>\n" if($dbt->{website}->{$varenv->{syshost}}->{layout} eq "standalone");
if($dbt->{website}->{$varenv->{syshost}}->{layout} eq "standalone"){
print "<div class='container' style='border:1px dotted silver;'>\n";
}
print "<div style='text-align:right;height:25px;'>\n";
print "<button type='button' style='background-color:#ffffff;color:#$bgcolor1;border:1px solid #ffffff;font-size:1em;padding-right:1em;width:8px;' onclick='change_fontsize1();'>A</button>";
print "<button type='button' style='background-color:#ffffff;color:#$bgcolor1;border:1px solid #ffffff;font-size:1.2em;padding-right:1em;width:8px;' onclick='change_fontsize2();'>A</button>";
print "<button type='button' style='background-color:#ffffff;color:#$bgcolor1;border:1px solid #ffffff;font-size:1.4em;padding-right:1em;width:8px;' onclick='change_fontsize3();'>A</button>";
print "<button type='button' style='background-color:#ffffff;color:#$bgcolor1;border:1px solid #ffffff;font-size:1em;padding-right:1em;width:12px;' onclick='change_contrast();'><span class='bi bi-circle-half'></span></button>";
print "<div style='float:right;text-align:right;height:25px;padding:1em 0;'>\n";
#print "<span style='background-color:#ffffff;color:#$bgcolor1;border:1px solid #ffffff;font-size:1em;padding-right:1em;width:8px;'><img style='height:50px;' src='$varenv->{metahost}/img/Logo-LastenradBayern-01.png' /></span>";
print "<button type='button' style='background-color:#$bgcolor1;color:#ffffff;border:1px solid #$bgcolor1;font-size:1em;padding-right:1em;width:8px;' onclick='change_fontsize1();'>A</button>";
print "<button type='button' style='background-color:#$bgcolor1;color:#ffffff;border:1px solid #$bgcolor1;font-size:1.2em;padding-right:1em;width:8px;' onclick='change_fontsize2();'>A</button>";
print "<button type='button' style='background-color:#$bgcolor1;color:#ffffff;border:1px solid #$bgcolor1;font-size:1.4em;padding-right:1em;width:8px;' onclick='change_fontsize3();'>A</button>";
print "<button type='button' style='background-color:#$bgcolor1;color:#ffffff;border:1px solid #$bgcolor1;font-size:1.3em;padding-right:1.2em;width:12px;' onclick='change_contrast();'><span class='bi bi-circle-half'></span></button>";
if($users_sharee->{c_id} && $R::sharee_edit ne "delete_account2"){
print "<span style='padding-left:10px;'> | $users_sharee->{txt08}</span> <a style='background-color:#ffffff;color:#$bgcolor1;' href='logout_sharee$session'>logout</a>\n";
}
print "</div>\n";
print "<div id='Contenttxt' style='margin:20px 5px 40px 0;border:0px dotted #$fgcolor1;'>\n";
print $q->div({-style=>"text-align:left;width:100%;margin:1em 0;background-color:#$bgcolor1;"},$q->img({-style=>'height:10em;', -src=>"$varenv->{metahost}/img/Logo-LastenradBayern-01.png"})),"\n";
#test Bayern left-site menue
#print $q->div({-style=>"float:left;text-align:left;border:1px dotted black;"},$q->ul({-id=>'LeftNavi'},$lmenu0)),"\n";
#print "<div id='Contenttxt' style='margin:20px 5px 40px 200px;border:0px dotted #$fgcolor1;'>\n";
print "<div id='Contenttxt' style='margin:20px 5px 40px 0;border:0px dotted #$fgcolor1;'>\n";
print $q->div({-style=>"text-align:left;border:0px dotted #$fgcolor1;"},$q->ul({-id=>'TopNavi'},$lmenu0)),"\n";
if(($node_meta->{tpl_id} == 1 || $node_meta->{tpl_id} == 3) && $node_meta->{main_id} == 200017){