当前位置: 首页>>代码示例>>PHP>>正文


PHP utils::getMileageString方法代码示例

本文整理汇总了PHP中utils::getMileageString方法的典型用法代码示例。如果您正苦于以下问题:PHP utils::getMileageString方法的具体用法?PHP utils::getMileageString怎么用?PHP utils::getMileageString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在utils的用法示例。


在下文中一共展示了utils::getMileageString方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

    }
    ?>
            </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'.
开发者ID:broschb,项目名称:cyclebrain,代码行数:31,代码来源:indexSuccess.php

示例2: link_to_function

        $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 
}
?>
开发者ID:broschb,项目名称:cyclebrain,代码行数:31,代码来源:getBikeEquipmentSuccess.php

示例3: input_tag

<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>
开发者ID:broschb,项目名称:cyclebrain,代码行数:20,代码来源:_ride_form.php

示例4: link_to_function

            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>
开发者ID:broschb,项目名称:cyclebrain,代码行数:31,代码来源:indexSuccess.php

示例5: link_to_function

                        <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>
开发者ID:broschb,项目名称:cyclebrain,代码行数:31,代码来源:indexSuccess_1.php

示例6: link_to_function

                        <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>
开发者ID:broschb,项目名称:cyclebrain,代码行数:31,代码来源:indexSuccess_1.php


注:本文中的utils::getMileageString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。