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


PHP Preferences::getMclUseFeet方法代码示例

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


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

示例1: mainForm

 private function mainForm()
 {
     $str = "";
     $str .= "<form action=\"{$this->here}\" method=\"post\" name=\"main_form\">";
     $str .= '<input type="hidden" name="main_form"/>';
     if ($this->isConnected()) {
         $str .= "<hr>";
         $str .= 'Split multiday rides?:
         <input type="checkbox" value="split" ' . ($this->preferences->getSplitRides() ? "checked" : "") . '  name="split_rides"/>';
         $str .= '<br>Save elevation as feet (MyCyclingLog only): <input type="checkbox" name="elevation_units" value="feet" ' . ($this->preferences->getMclUseFeet() ? "checked" : "") . "/>";
         $str .= "<hr>\n";
         $str .= $this->dateButtons($this->preferences->getTimezone());
     }
     $str .= "<table class=\"w3-table-all\">";
     if ($this->isConnected()) {
         $str .= $this->datePicker($this->preferences->getTimezone());
     }
     if ($this->isConnected()) {
         $colSpan = ' colspan="3"';
     } else {
         $colSpan = '';
     }
     if ($this->strava->isConnected()) {
         $str .= '<tr><td' . $colSpan . '><input type="submit" name="calculate_from_strava" value="Eddington Number from Strava"/>';
         $str .= '</td></tr>';
         $str .= "\n";
     }
     if ($this->myCyclingLog->isConnected()) {
         $str .= '<tr><td' . $colSpan . '><input type="submit" name="calculate_from_mcl" value="Eddington Number from MyCyclingLog"/></td></tr>';
         $str .= "\n";
     }
     if ($this->endomondo->isConnected()) {
         $str .= '<tr><td' . $colSpan . '><input type="submit" name="calculate_from_endo" value="Eddington Number from Endomondo"/></td></tr>';
         $str .= "\n";
     }
     if ($this->rideWithGps->isConnected()) {
         $str .= '<tr><td' . $colSpan . '><input type="submit" name="calculate_from_rwgps" value="Eddington Number from RideWithGPS"/></td></tr>';
         $str .= "\n";
     }
     if ($this->strava->isConnected() && $this->myCyclingLog->isConnected()) {
         $str .= '<tr><td' . $colSpan . '><input type="submit" name="copy_strava_to_mcl" value="Copy ride data from Strava to MyCyclingLog"/>';
         $str .= "</td></tr>";
     }
     if ($this->strava->isConnected() && $this->endomondo->isConnected() && $this->strava->writeScope()) {
         $str .= "\n<tr><td" . $colSpan . '><input type="submit" name="copy_endo_to_strava" value="Copy rides and routes from Endomondo to Strava"/>  <br>';
         $str .= "</td></tr>";
         $str .= "\n<tr><td" . $colSpan . '><input type="submit" name="queue_delete_endo_from_strava" value="Delete Strava rides copied from Endomondo"/>  <br>';
         $str .= "</td></tr>";
     }
     if ($this->rideWithGps->isConnected() && $this->endomondo->isConnected()) {
         $str .= "\n<tr><td" . $colSpan . '><input type="submit" name="copy_endo_to_rwgps" value="Copy rides and routes from Endomondo to RideWithGPS"/>  <br>';
         $str .= "</td></tr>";
     }
     if ($this->myCyclingLog->isConnected()) {
         $str .= "\n<tr><td" . $colSpan . '>' . $this->mclDeleteButton($this->preferences->getMclUsername());
         $str .= "</td></tr>";
         $str .= "\n";
     }
     $str .= " <tr>\n            <td {$colSpan}><input type=\"submit\" name=\"clear_cookies\" value=\"Delete Cookies\"/></td>\n        </tr>\n        <tr>\n            <td {$colSpan}><input type=\"submit\" name=\"delete_files\" value=\"Delete temporary files\"/>\n            </td>\n        </tr>\n    </table>";
     //        $str .= $this->copyForm();
     $str .= "<hr>";
     if (!$this->connectedToAll()) {
         $str .= '<p>More options are available if you connect to <a href="#services">other services</a>.</p>';
     }
     $str .= "</form>";
     return $str;
 }
开发者ID:JoanMcGalliard,项目名称:EddingtonAndMore,代码行数:67,代码来源:MainPage.php


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