public static function getUserBikesWithAll() { $bikeArray = UserBikesPeer::getUserBikes(); $shelfItem = new UserBikes(); $shelfItem->setBikeMake("(All Bikes)"); array_push($bikeArray, $shelfItem); return $bikeArray; }
<div class="form-row"> <label for="title">Ride Date:</label> <?php if ($ride_date) { $curDate = $ride_date; } else { $curDate = 'now'; } echo input_date_tag('ride_date', $curDate, 'rich=false'); ?> </div> <div class="form-row"> <label for="title">Bike:</label> <?php echo select_tag('user_bike_id', objects_for_select(UserBikesPeer::getUserBikes(), 'getUserBikeId', 'getBikeMake', $bike), array('style' => 'width:150px')); ?> </div> <div class="form-row"> <label for="title">Route:</label> <?php echo select_tag('user_ride_id', objects_for_select(UserRidesPeer::getUserRides(), 'getUserRideId', 'getDescription', $route), array('style' => 'width:150px')); ?> </div> <div class="form-row"> <label for="make">Ride Time(minutes):</label> <?php if ($ride_time) { $time = $ride_time;