mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-02-22 19:56:29 +01:00
shareeweb Freiburg minor changes 2
This commit is contained in:
parent
87549e702c
commit
882f848355
2 changed files with 16 additions and 22 deletions
|
@ -50,7 +50,11 @@ sub tpl(){
|
|||
$api_return->{authcookie} = $dbt->{website}->{$varenv->{syshost}}->{merchant_id} if(!$api_return->{authcookie});
|
||||
$project = $dbt->{website}->{$varenv->{syshost}}->{project} if($dbt->{website}->{$varenv->{syshost}}->{project});
|
||||
$uri_request = $dbt->{website}->{$varenv->{syshost}}->{operatorWeb};
|
||||
print $q->div({-class=>"content2_contact"},"Hier können Lastenfahrräder gemietet werden:"),"\n";
|
||||
if($project eq "Freiburg"){
|
||||
print $q->div({-style=>"color:#026666;font-size:20px;padding-bottom:12px;"},"Hier können öffentlich verfügbare Lastenfahrräder gemietet werden"),"\n";
|
||||
}else{
|
||||
print $q->div({-class=>"content2_contact"},"Hier können Lastenfahrräder gemietet werden:"),"\n";
|
||||
}
|
||||
}elsif($dbt->{operator}->{$varenv->{dbname}}->{merchant_id}){
|
||||
$api_return->{authcookie} = $dbt->{operator}->{$varenv->{dbname}}->{merchant_id} if(!$api_return->{authcookie});
|
||||
$initMap = $dbt->{operator}->{$varenv->{dbname}}->{initMap} if($dbt->{operator}->{$varenv->{dbname}}->{initMap});
|
||||
|
@ -86,7 +90,7 @@ sub tpl(){
|
|||
$icon_blue = "LastenradBay_Standortpfeil_blau_03a.png";
|
||||
$mapheight = "800px;" if($varenv->{syshost} !~ /shareedms-/);
|
||||
}elsif($project eq "Freiburg"){
|
||||
$mapheight = "550px;";
|
||||
$mapheight = "500px;";
|
||||
}
|
||||
|
||||
$users_sharee->{c_id} = "0" if(!$users_sharee->{c_id});
|
||||
|
@ -205,10 +209,11 @@ EOF
|
|||
|
||||
print "</div>\n";
|
||||
|
||||
#print $q->div({-class=>"content2_legende", -style=>'font-weight:bold;'}, "• Ist ein Lastenrad an einer Mietradstation verfügbar?"),"\n";
|
||||
print $q->div({-class=>"content2_legende"}, $q->img({-style=>'height:37px;', -src=>"$varenv->{metahost}/img/$icon_green"}), "Lastenrad verfügbar"),"\n";
|
||||
print $q->div({-class=>"content2_legende"}, $q->img({-style=>'height:37px;', -src=>"$varenv->{metahost}/img/$icon_red"}), "Lastenrad nicht verfügbar"),"\n";
|
||||
#print $q->div({-class=>"content2_legende"}, " "),"\n";
|
||||
if($project ne "Freiburg"){
|
||||
print $q->div({-class=>"content2_legende"}, $q->img({-style=>'height:37px;', -src=>"$varenv->{metahost}/img/$icon_green"}), "Lastenrad verfügbar"),"\n";
|
||||
print $q->div({-class=>"content2_legende"}, $q->img({-style=>'height:37px;', -src=>"$varenv->{metahost}/img/$icon_red"}), "Lastenrad nicht verfügbar"),"\n";
|
||||
#print $q->div({-class=>"content2_legende"}, " "),"\n";
|
||||
}
|
||||
|
||||
print "$initMap|$varenv->{dbname}|$api_return->{authcookie}|$users_sharee->{c_id}" if($users_dms->{u_id} == $dbt->{copri_conf}->{superu_id});
|
||||
|
||||
|
|
|
@ -153,15 +153,7 @@ sub tpl(){
|
|||
if($node->{$id}->{node_name} eq "Anmelden" && $users_sharee->{c_id}){
|
||||
$lmenu0 .= $but->lia_button("/$parent_node/$varenv->{profile}$session","Mein Profil",$node->{$id}->{main_id},"","$mstyle",$users_dms->{u_id});
|
||||
}else{
|
||||
if($project eq "Freiburg"){
|
||||
if($node->{$id}->{node_name} eq "Karte"){
|
||||
$lmenu0 .= $but->lia_button("/$parent_node/$node->{$id}->{node_path}","Standortkarte",$node->{$id}->{main_id},"","$mstyle",$users_dms->{u_id});
|
||||
}elsif($node->{$id}->{node_name} ne "Kontakt"){
|
||||
$lmenu0 .= $but->lia_button("/$parent_node/$node->{$id}->{node_path}",$node->{$id}->{node_name},$node->{$id}->{main_id},"","$mstyle",$users_dms->{u_id});
|
||||
}
|
||||
}else{
|
||||
$lmenu0 .= $but->lia_button("/$parent_node/$node->{$id}->{node_path}",$node->{$id}->{node_name},$node->{$id}->{main_id},"","$mstyle",$users_dms->{u_id});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -190,12 +182,9 @@ sub tpl(){
|
|||
print $q->div({-style=>"text-align:left;width:100%;margin:1em 0;background-color:#$bgcolor1;"},$q->img({-style=>'height:10em;', -src=>"$dbt->{website}->{$varenv->{syshost}}->{operatorWeb1}/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:25px 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";
|
||||
print "<div id='Contenttxt' style='margin:25px 0px 5px 0px;border:0px dotted #$fgcolor1;'>\n";
|
||||
print $q->div({-style=>"text-align:left;border:0px dotted #$fgcolor1;"},$q->ul({-id=>'TopNavi'},$lmenu0)),"\n" if($project ne "Freiburg");
|
||||
|
||||
if(($node_meta->{tpl_id} == 1 || $node_meta->{tpl_id} == 3) && $node_meta->{main_id} == 200017){
|
||||
require "Tpl/Karte_osm.pm";
|
||||
|
@ -204,6 +193,7 @@ sub tpl(){
|
|||
$self->tplselect($node_meta,$users_dms,$mode,$varenv,$users_sharee,$feedb);
|
||||
}
|
||||
|
||||
if($project ne "Freiburg"){
|
||||
|
||||
print "<div style='margin-top:1em;border-top:1px dotted #$bgcolor1;background-color:#fff;width:100%;height:10px;text-align:right;'>\n";
|
||||
print "</div>\n";
|
||||
|
@ -261,15 +251,14 @@ EOF
|
|||
print $q->div({ -style=>"width:100%;text-align:right;"},
|
||||
"<button type='button' style='padding:0 2em;color:#$bgcolor1;border:1px solid #ffffff;background-color:#ffffff;' data-bs-toggle='modal' data-bs-target='#sharee_impress'>Impressum</button>
|
||||
<button type='button' style='padding: 0 2em;color:#$bgcolor1;border:1px solid #ffffff;background-color:#ffffff;' data-bs-toggle='modal' data-bs-target='#sharee_privacy'>Datenschutzhinweise</button>"
|
||||
#$q->a({-style=>"background-color:#ffffff;color:#$bgcolor1;text-decoration:none;", -href=>"$varenv->{wwwhost}/site/impress_1.html"}, "Impressum"),
|
||||
#$q->a({-style=>"background-color:#ffffff;color:#$bgcolor1;text-decoration:none;padding:0 1em;", -href=>"$varenv->{wwwhost}/site/privacy_2.html"}, "Datenschutz")
|
||||
),"\n";
|
||||
}
|
||||
|
||||
print "</div>\n";#Contenttxt
|
||||
print "</div>\n" if($dbt->{website}->{$varenv->{syshost}}->{layout} eq "standalone");#container
|
||||
|
||||
|
||||
}
|
||||
}#end if($project ne "Freiburg")
|
||||
|
||||
#print "<script type='text/javascript' src='$varenv->{metahost}/js/iframeResizer.contentWindow.min.js'></script>\n";
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue