Beispiel #1
0
    }
    ?>
            </div>
            </div>
        </div>

        <h2 class="rounded-heading">
            <span>Years Top Riders
        </span>  </h2>
        <div class="content-1-details">
          <div id="widgetdiv">
          <div>
          <?php 
    $yearResults = queries::getYearTopRiders();
    for ($counter = 1; $counter <= count($yearResults); $counter++) {
        echo $counter . '.' . $yearResults[$counter] . ' ' . utils::getMileageString();
        echo "<br>";
    }
    ?>
          </div>
          </div>
        </div>
    </div>

    <div style="clear:both; height:78px;"></div>
    <?php 
} else {
    ?>
    <H3>Welcome to CylceBrain!</H3>
    <br>
    <p>We're just getting things up and running.  We hope to provide one place to record and manage all cycling related data.  We want to be your 'CycleBrain'.
        $url = "Modalbox.show('equipment/deleteBikeEquipment?equip=" . $userEquipment->getEquipmentId() . "', {title:' Delete Equipment', width: 600});return false;";
        ?>
                <?php 
        echo link_to_function(image_tag('/images/Delete.png'), $url);
        ?>
                 <div id="<?php 
        echo $subDivName;
        ?>
" style="display:none">
                    <div id="detailList">
                        Purchase Date: <?php 
        echo $userEquipment->getPurchaseDate();
        ?>
                        <br>
                        Total Mileage: <?php 
        echo $userEquipment->getMileage() . " " . utils::getMileageString();
        ?>
                        <br>
                        Cost: <?php 
        echo $userEquipment->getPurchasePrice();
        ?>
                    </div>
                </div>
            </div>
        <?php 
        $divCount++;
    }
    ?>
    <?php 
}
?>
Beispiel #3
0
<fieldset>

    <div class="form-row">
        <label for="title">Route Description:</label>
        <?php 
echo input_tag('route_desc', $route_desc);
?>
    </div>

    <div class="form-row">
        <label for="make">Distance(<?php 
echo utils::getMileageString();
?>
):</label>
        <?php 
echo input_tag('distance', $distance);
?>
    </div>

</fieldset>
Beispiel #4
0
            echo link_to_function(image_tag('/images/Add.png'), "Modalbox.show('userstats/add', {title:' Add Ride', width: 600});return false;");
            ?>
                                    </span>
                                </span>
                            </div>
                            <?php 
        }
        ?>
                            <div id="calInfo" >
                                <?php 
        if ($statsByDay) {
            if (array_key_exists($day, $statsByDay)) {
                $stats = $statsByDay[$day];
                foreach ($stats as $s) {
                    $editUrl = "Modalbox.show('userstats/view?statid=" . $s->getStatNo() . "', {title:' Ride Details', width: 400});return false;";
                    echo link_to_function(utils::getMileageFromMeters($s->getMileage()) . ' ' . utils::getMileageString(), $editUrl);
                    ?>
                            <br>
                                <?php 
                }
                ?>
                                <?php 
            }
            ?>
                                <?php 
        }
        ?>
                            </div>
                            <div id="calInfo" >

                            </div>
Beispiel #5
0
                        <h2><?php 
    echo $user_route->getDescription();
    ?>
                        <?php 
    $editUrl = "Modalbox.show('userrides/edit?rideid=" . $user_route->getUserRideId() . "', {title:' Edit Route', width: 600});return false;";
    echo link_to_function(image_tag('/images/Modify.png'), $editUrl);
    ?>
                        <?php 
    $url = "Modalbox.show('userrides/delete?rideid=" . $user_route->getUserRideId() . "', {title:' Delete Route', width: 600});return false;";
    ?>
                        <?php 
    echo link_to_function(image_tag('/images/Delete.png'), $url);
    ?>
                        </h2>
                        <p>Total Mileage: <?php 
    echo utils::getMileageFromMeters($user_route->getMileage()) . " " . utils::getMileageString();
    ?>
                        </p>

                    </li>
                    <?php 
}
?>
                </ol>
            </div>
        </div>
        <div id="content-1-right">
            <h2 class="rounded-heading"><span>Route Details</span></h2>
            <div class="content-1-details">
                <div id="userrides"></div>
            </div>
Beispiel #6
0
                        <h2><?php 
    echo $user_bikes;
    ?>
                        <?php 
    $editUrl = "Modalbox.show('userbike/edit?bikeid=" . $user_bikes->getUserBikeId() . "', {title:' Edit Bike', width: 600});return false;";
    echo link_to_function(image_tag('/images/Modify.png'), $editUrl);
    ?>
                        <?php 
    $url = "Modalbox.show('userbike/delete?bikeid=" . $user_bikes->getUserBikeId() . "', {title:' Delete Bike', width: 600});return false;";
    ?>
                        <?php 
    echo link_to_function(image_tag('/images/Delete.png'), $url);
    ?>
                        </h2>
                        <p>Total Mileage: <?php 
    echo $user_bikes->getBikeMileage() . " " . utils::getMileageString();
    ?>
                            <br>
                            Last Ride Date: <?php 
    echo $user_bikes->getLastRideDate();
    ?>
                        </p>

                    </li>
                    <?php 
}
?>
                </ol>
            </div>

        </div>