Add a function that returns an html label for a selected direction

This commit is contained in:
George Kaklamanos 2015-07-17 15:14:27 +03:00
parent 65b431c6a3
commit ceca55c188

View file

@ -85,5 +85,14 @@ function getStopInfo($id){
return false;
}
function getLabelOfDir($dir){
if ($dir == 'go'){
return '<span class="label label-info">Go</span>';
} else if ($dir == 'come'){
return '<span class="label label-primary">Come</span>';
} else {
return false;
}
}
?>