?> /img/ajax-loader.gif'> </div> <div id='submitComment' > <form action="#" method="post"> <?php // caching pilot names in an array $pilotNames = array(); if ($userID) { $imgBigRel = getPilotPhotoRelFilename($userServerID, $userID); $imgBig = getPilotPhotoFilename($userServerID, $userID); if (is_file($imgBig)) { list($width, $height, $type, $attr) = getimagesize($imgBig); list($width2, $height2) = CLimage::getJPG_NewSize($CONF['photos']['tiny']['max_width'], $CONF['photos']['tiny']['max_height'], $width, $height); echo "<a href='{$imgBigRel}' target='_blank'><img src='" . getPilotPhotoRelFilename($userServerID, $userID, 1) . "' width='{$width2}' height='{$height2}' align='absmiddle' border=0></a>"; } else { echo "<img src='{$moduleRelPath}/img/photo_no_profile_photo.jpg' width='50' height='50' align='absmiddle' border=0>"; } $name = $pilotNames[$userID][$userServerID]; if (!$name) { $name = getPilotRealName($userID, $userServerID + 0, 1, 1, 1); $pilotNames[$userID][$userServerID] = $name; } echo " " . _Logged_in_as . " {$name}"; ?> <input type="button" class="submit" value=" <?php echo _Submit_Comment; ?> " />
} // we get these from the caller // $commentID=$thread['id']; // $commentData=$flightComments->comments[$thread['id']]; // $commentDepth=$thread['depth']; $str .= "\n\n\n<div id='comment_{$commentID}' class='commentBox depth{$commentDepth}'>"; // helper hidden div $str .= "<span id='cid_{$commentID}'>\n<span id='pid_" . $commentData['parentID'] . "' class='parentFinder'></span></span>"; $str .= "<table class='commentRowTable' width='100%'>"; if (!$print) { if ($commentData['userID']) { $imgBig = getPilotPhotoFilename($commentData['userServerID'], $commentData['userID']); if (is_file($imgBig)) { list($width, $height, $type, $attr) = getimagesize($imgBig); list($width2, $height2) = CLimage::getJPG_NewSize($CONF['photos']['tiny']['max_width'], $CONF['photos']['tiny']['max_height'], $width, $height); $header = "<img src='" . getPilotPhotoRelFilename($commentData['userServerID'], $commentData['userID'], 1) . "' \n\t\t\t\t\t\twidth='{$width2}' height='{$height2}' border=0>"; } else { $header = "<img src='{$moduleRelPath}/img/photo_no_profile_photo.jpg' width='50' height='50' border=0>"; } $str .= "<tr><td rowspan='2' width='65' valign='top'><div class='commentHeader'>{$header}</div></td>"; $str .= "<td valign='top'><div id='commentText{$commentID}' class='commentBody'>" . $commentData['text'] . "</div></td></tr>"; } else { $header = "<img src='{$moduleRelPath}/img/photo_guest.jpg' width='50' height='50' border=0>"; $str .= "<tr><td rowspan='2' width='65' valign='top'><div class='commentHeader'>{$header}</div></td>"; $str .= "<td valign='top'><div id='commentText{$commentID}' class='commentBody'>" . $commentData['text'] . "</div></td></tr>"; //$str.="<div class='commentHeaderGuest'>".$commentData['guestName']."</div>"; //$str.="<div class='commentBodyGuest'>".$commentData['text']."</div>"; } } else { } $langName = array_search($commentData['languageCode'], $lang2isoEditor);
$dmax = max(array($d1, $d2, $d3, $d4)); // similar_text (strtolower($lastIntName),strtolower($row2['intName']),&$nameDistanceFromPrevious2); $html = $row['FirstName'] . ' ' . $row['LastName'] . '|' . $flagIcon . $sexIcon . $name . '|' . $row['serverID'] . 'u' . $row['pilotID'] . "\n"; $serverIDview = $row["serverID"]; $pilotIDview = $row["pilotID"]; $photo = ''; if ($row['PilotPhoto'] > 0) { //checkPilotPhoto($serverIDview,$pilotIDview); $imgBigRel = getPilotPhotoRelFilename($serverIDview, $pilotIDview); $imgBig = getPilotPhotoFilename($serverIDview, $pilotIDview); // echo $imgBig."<BR>"; list($width, $height, $type, $attr) = getimagesize($imgBig); //echo $imgBig." $CONF['photos']['mid']['max_width'], $CONF['photos']['mid']['max_height'], $width, $height <br>"; list($width, $height) = CLimage::getJPG_NewSize($CONF['photos']['mid']['max_width'], $CONF['photos']['mid']['max_height'], $width, $height); $photo = "<a href='{$imgBigRel}' target='_blank'><img src='" . getPilotPhotoRelFilename($serverIDview, $pilotIDview, 1) . "'\n\t\t\tonmouseover=\"trailOn('{$imgBigRel}','','','','','','1','{$width}','{$height}','','.');\" onmouseout=\"hidetrail();\"\n\t\t\t border=0></a>"; $photo = "<img src='" . getPilotPhotoRelFilename($serverIDview, $pilotIDview, 1) . "'>"; } if ($_GET['json']) { $photo = json::prepStr($photo); } if ($_GET['json']) { $json = ' { "firstName":"' . json::prepStr($row["FirstName"]) . '", "lastName":"' . json::prepStr($row["LastName"]) . '", ' . ' "name":"' . json::prepStr($name) . '",' . ' "flag":"' . json::prepStr($flagIcon) . '",' . ' "photo":"' . $photo . '", ' . ' "sex":"' . json::prepStr($sexIcon) . '", "userID":"' . json::prepStr($row["serverID"] . 'u' . $row["pilotID"]) . '" } '; } else { $jsom = ''; } //$pilots[]=array("score"=>$dmax,"text"=>$html,"json"=>$json); $pilots[] = array("id" => $pilotIDview, "name" => $name, "score" => $dmax); } if (count($pilots) > 0) { usort($pilots, "cmp"); $i = 0;
</td> <td> </td> <td colspan="2" rowspan="8" valign="top"><?php if ($pilot['PilotPhoto'] > 0) { checkPilotPhoto($serverIDview, $pilotIDview); ?> <div align="center"><strong><?php echo _Photo; ?> </strong><br> <?php $imgBigRel = getPilotPhotoRelFilename($serverIDview, $pilotIDview); $imgBig = getPilotPhotoFilename($serverIDview, $pilotIDview); list($width, $height, $type, $attr) = getimagesize($imgBig); list($width, $height) = CLimage::getJPG_NewSize($CONF['photos']['mid']['max_width'], $CONF['photos']['mid']['max_height'], $width, $height); echo "<a href='{$imgBigRel}' target='_blank'><img src='" . getPilotPhotoRelFilename($serverIDview, $pilotIDview, 1) . "'\n\t\t\tonmouseover=\"trailOn('{$imgBigRel}','','','','','','1','{$width}','{$height}','','.');\" onmouseout=\"hidetrail();\" \n\t\t\t border=0></a>"; ?> </div> <?php } ?> </td> </tr> <tr> <td valign="top" bgcolor="#E9EDF5"> <div align="right"><?php echo _Sex; ?> </div></td> <td valign="top" bgcolor="#F9F9F9"><?php echo getPilotSexString($pilot['Sex'], true); ?>
</tr> <tr> <td valign="top" bgcolor="#E9EDF5"><div align="right"><?php echo _Sponsor; ?> </div></td> <td valign="top"><input name="sponsor" type="text" value="<?php echo $pilot['sponsor']; ?> " size="25" maxlength="120"></td> <td> </td> <td width="90" colspan="2" rowspan="4" valign="top"><p align="right"> <?php if ($pilot['PilotPhoto'] > 0) { echo "<a href='" . getPilotPhotoRelFilename($serverIDview, $pilotIDview) . "' target='_blank'><img align=right src='" . getPilotPhotoRelFilename($serverIDview, $pilotIDview, 1) . "' border=0></a>"; } ?> <strong><?php echo _Photo; ?> </strong> <?php if ($pilot['PilotPhoto'] > 0) { echo "<br><BR> " . _Delete_Photo . " <input type=checkbox name=PilotPhotoDelete value=1>"; } ?> </p></td> </tr> <tr> <td valign="top" bgcolor="#E9EDF5"> <div align="right"> <?php
$hiddenFields++; $Birthdate[$i] = 'x'; } else { $Birthdate[$i] = $Birthdate[$i]; } } } ?> <tr> <td colspan="2" valign="top" bgcolor="006699"> <div align="left"><strong><font color="#FFA34F"><?php echo _Flying_Stuff; ?> </font></strong></div></td> <td width="150" rowspan="9" valign="top"><?php if ($pilot['PilotPhoto'] > 0) { echo "<div align='center'><a href='" . getPilotPhotoRelFilename($serverID, $pilotIDview) . "' target='_blank'><img src='" . getPilotPhotoRelFilename($serverID, $pilotIDview, 1) . "' border=0></a></div>"; } ?> </td> </tr> <tr> <td valign="top" bgcolor="#E9EDF5"> <div align="right"><?php echo _Flying_Since; ?> </div></td> <td valign="top" bgcolor="#F5F5F5"> <?php echo $pilot['FlyingSince']; ?> </td> </tr> <tr>