コード例 #1
0
                   </tr>
                   <tr>
                 <td class="tbLogHeader">Wind</td>
                     <td class="tbLogBody"><?php 
echo "<img width='16' height='16' src=\"w" . $ride->f_wind . ".png\">&nbsp; " . $ride->f_wind;
?>
</td>
                 <td class="tbLogHeader">Sky</td>
                     <td class="tbLogBody"><?php 
echo "<img width='25' height='16' src=\"s" . $ride->f_sky . ".png\">&nbsp; " . $ride->f_sky;
?>
</td>
                   </tr>
                <tr>
               <td class="tbLogBody2" colspan="4"><?php 
echo fixFieldForHTML($ride->f_notes, 1);
?>
&nbsp;</td>
              </tr>

  </tbody>
</table>
</center>
<p>
 <a href="edit/editRide.php<?php 
echo encodeGet($getVars);
?>
">
        Edit this <?php 
echo S_EVENT;
?>
コード例 #2
0
</td>
  </tr>
<?php 
$riders = new RDrider(DBConnect(), $units);
$results = $riders->queryAllStats($currentQuery->getWhereStatement());
$riderCount = 0;
$orides = 0;
$otime = 0;
$odist = 0;
$omAvgSpeed = 0;
$omDist = 0;
$oaDist = 0;
while ($riders->parseNextRow($results)) {
    $riderCount++;
    echo "<tr>\n";
    echo " <td class=\"tbLogHeader\">" . fixFieldForHTML($riders->f_firstName . " " . $riders->f_lastName, 0) . "</td>\n";
    echo " <td class=\"tbLogBody\">" . $riders->c_numRides . "</td>\n";
    echo " <td class=\"tbLogBody\">" . number_format($riders->c_totalDist, 2) . "</td>\n";
    echo " <td class=\"tbLogBody\">" . number_format($riders->c_aDist, 2) . "</td>\n";
    echo " <td class=\"tbLogBody\">" . number_format($riders->c_mDist, 2) . "</td>\n";
    echo " <td class=\"tbLogBody\">" . time_format($riders->c_totalTime) . "</td>\n";
    echo " <td class=\"tbLogBody\">" . number_format($riders->c_avgSpeed, 2) . "</td>\n";
    echo " <td class=\"tbLogBody\">" . number_format($riders->c_mAvgSpeed, 2) . "</td>\n";
    echo "</tr>\n";
    $orides += $riders->c_numRides;
    $otime += $riders->c_totalTime;
    $odist += $riders->c_totalDist;
    $omDist = $riders->c_mDist > $omDist ? $riders->c_mDist : $omDist;
    $omAvgSpeed = $riders->c_mAvgSpeed > $omAvgSpeed ? $riders->c_mAvgSpeed : $omAvgSpeed;
    $oaDist += $riders->c_aDist * $riders->c_numRides;
}
コード例 #3
0
<br>
                           </td>
                           <td class="tbEditBody" width="25%"><?php 
if ($newRide) {
    echo "<select name=\"rider\">\n";
    foreach ($riders as $rider) {
        echo "<option value=\"{$rider->f_riderID}\"";
        if ($ride->f_riderID == $rider->f_riderID) {
            echo " selected";
        }
        echo ">" . fixFieldForTextArea($rider->f_lastName . ", " . $rider->f_firstName) . "</option>\n";
    }
    echo "</select>\n";
} else {
    echo "<input type=\"hidden\" name=\"rider\" value=\"" . $ride->f_riderID . "\">";
    echo fixFieldForHTML($ride->f_riderID_firstName . " " . $ride->f_riderID_lastName, 0);
}
?>
                           </td>
                           <td class="tbEditHeader" width="10%">
                              Password
                           </td>
                           <td class="tbEditBody" width="50%">
                              <input type="password" name="password"
                                    size="12" maxlen="30">
                           </td>
                         </tr>
                         <tr>
                           <td class="tbEditHeader">Date<br>
                           </td>
                           <td class="tbEditBody"><input