mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-07-09 23:26:26 +02:00
bayern web style
This commit is contained in:
parent
7ede282b7b
commit
cc031094eb
8 changed files with 67 additions and 23 deletions
|
@ -78,7 +78,7 @@ sub handler {
|
|||
# <sharee_LastenVelo>
|
||||
# <todo>add_LVuser</todo>
|
||||
# <userID>12345678</userID>
|
||||
# <emailID>ragu@gnu-systems.de</emailID>
|
||||
# <emailID>ragu@gu-syems.de</emailID>
|
||||
# <pwID>geheim123</pwID>
|
||||
#</sharee_LastenVelo>
|
||||
|
||||
|
@ -104,7 +104,7 @@ sub handler {
|
|||
table => "contentadr",
|
||||
fetch => "one",
|
||||
template_id => "202",
|
||||
txt08 => "$xmlref->{emailID}",
|
||||
txt08 => "ilike::" . $q->escapeHTML($xmlref->{emailID}),
|
||||
};
|
||||
my $record_e = { c_id => "" };
|
||||
$record_e = $dbt->fetch_record($dbh,$pref_e);
|
||||
|
|
|
@ -166,7 +166,7 @@ sub kmlGenerator {
|
|||
$station_groupID = $1 if($station_group =~ /(\d+)/);
|
||||
$bike_groupID = $1 if($bike_group =~ /(\d+)/);
|
||||
|
||||
$bw->log("KMLout bike available if: $station_groupID == $bike_groupID && $station eq $response_bikes->{shareejson}->{bikes}->{$bike}->{station}","","");
|
||||
#$bw->log("KMLout bike available if: $station_groupID == $bike_groupID && $station eq $response_bikes->{shareejson}->{bikes}->{$bike}->{station}","","");
|
||||
|
||||
#if Lastenrad
|
||||
if($station_groupID == $lastenrad && $station_groupID == $bike_groupID && $station eq $response_bikes->{shareejson}->{bikes}->{$bike}->{station}){
|
||||
|
|
|
@ -60,10 +60,12 @@ sub tpl(){
|
|||
my $icon_green = "Open_Green.png";
|
||||
my $icon_red = "Open_Red.png";
|
||||
my $icon_blue = "Open_Blue.png";
|
||||
my $mapheight = "600px;";
|
||||
if($project eq "Bayern"){
|
||||
$icon_green = "LastenradBay_Standortpfeil_gruen_03a.png";
|
||||
$icon_red = "LastenradBay_Standortpfeil_rot_03a.png";
|
||||
$icon_blue = "LastenradBay_Standortpfeil_blau_03a.png";
|
||||
$mapheight = "800px;";
|
||||
}
|
||||
|
||||
$users_sharee->{c_id} = "0" if(!$users_sharee->{c_id});
|
||||
|
@ -76,9 +78,9 @@ sub tpl(){
|
|||
my $preserve_view = "false";
|
||||
$preserve_view = "true" if($filesize < 200);#it's like empty without publixc stations
|
||||
|
||||
print "<div style='background-color:#cccccc;width:100%;margin-top:40px;'>\n";
|
||||
print "<div style='background-color:#cccccc;width:100%;margin-top:1em;'>\n";
|
||||
|
||||
print "<div id='map' style='height:600px;'></div>\n";
|
||||
print "<div id='map' style='height:$mapheight'></div>\n";
|
||||
|
||||
print<<EOF
|
||||
<script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue