Add a function that returns an html label for a selected direction
This commit is contained in:
parent
65b431c6a3
commit
ceca55c188
1 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Reference in a new issue