protected function displayUser($rw) { if ($rw["photo"]) { $tmp_photo = "\n\t\t\t\t<div class='profile_photo'>\n\t\t\t\t\t<img src='" . $rw["photo"] . "' id='profile_photo_img' alt='" . $rw["displayName"] . "' />\n\t\t\t\t</div>\n\t\t\t"; } else { $tmp_photo = "\n\t\t\t\t<div class='profile_photo' id='profile_no_photo'>\n\t\t\t\t\t<div><!--[Photo_not_loaded]--></div>\n\t\t\t\t</div>\n\t\t\t"; } $tmp_bottom = ""; if ($this->app->getUser("id") == $rw[id]) { $tmp_bottom = "<tr><td></td><td><div class='centerButton'><a href='" . $this->app->makeLink(array("CID" => "profile", "page" => "change_profile"), null, 1) . "'><!--[Change_data_about_me]--></a></div></td></tr>"; } elseif ($this->app->getUser()) { $tmp_bottom = "<tr><td></td><td><div class='centerButton'><a href='" . $this->app->makeLink(array("CID" => "profile", "page" => "write_message", "to" => $rw[id]), null, 1) . "'><!--[Write_message]--></a></div></td></tr>"; } $out = "\n\t\t\t<h1>" . $rw["displayName"] . "</h1>\n\t\t\t<div class='user_profile'>\n\t\t\t<table class='info'>\n\t\t\t\t" . ($rw["fullName"] ? "<tr><td class='f'><!--[Name]-->:</td><td class='v'>" . $rw["fullName"] . "</td></tr>" : "") . "\n\t\t\t\t<tr><td class='f'><!--[Birth_date]-->:</td><td class='v'>" . printDate($rw["birth_dt"]) . "</td></tr>\n\t\t\t\t<tr><td class='f'><!--[Photo]-->:</td><td>" . $tmp_photo . "</td></tr>\n\t\t\t\t<tr><td class='f'><!--[Where_from]-->:</td><td class='v'>" . $rw["userGeoLinks"] . "</td></tr>\n\t\t\t\t" . ($rw["about"] ? "<tr><td class='f'><!--[About_me]-->:</td><td class='v about'>" . $rw["about"] . "</td></tr>" : "") . "\n\t\t\t\t" . ($rw["strench"] ? "<tr><td class='f'><!--[Rating_strench]-->:</td><td class='v'><span class='rating'>{$rw['rating']}</span> / <span class='strench'>{$rw['strench']}</span></td></tr>" : "") . "\n\t\t\t\t<tr><td class='f'><!--[Registered]-->:</td><td class='v'>" . printDate($rw["dt_added"]) . "</td></tr>\n\t\t\t\t<tr><td class='f'><!--[Activity]-->:</td><td class='v'><!--[Last_time_was_on_the_site_on]-->" . ($rw["dt_last_activity"] ? " " . printDateTime($rw["dt_last_activity"], "time") : ": <!--[never]-->") . "</td></tr>\n\t\t\t\t" . ($rw["contact_email"] ? "<tr><td class='f'><!--[Contact_email]-->: </td><td>[email]" . $rw["contact_email"] . "[/email]</td></tr>" : "") . "\n\t\t\t\t" . $tmp_bottom . "\n\t\t\t</table>\n\t\t\t</div>\n\t\t"; $this->data["title"] = $rw["displayName"]; $this->data["content"] = $out; }
} ?> /> <label></label> </td> <td style="padding:0px"> <input type="checkbox" <?php if ($ecole['charte_acceptee']) { echo 'checked '; } ?> /> <label></label> </td> <td><?php echo empty($ecole['connexion']) ? '<i>Aucune connexion</i>' : printDateTime($ecole['connexion']); ?> </td> </tr> <?php } ?> </tbody> </table> <?php //Inclusion du pied de page require DIR . 'templates/_footer.php';
if (empty($paiements_ecole[0]['paid'])) { ?> <tr class="vide"> <td colspan="7">Aucun paiement</td> </tr> <?php } else { foreach ($paiements_ecole as $paiement) { ?> <tr> <td><?php echo printDateTime($paiement['date']); ?> </td> <td><?php echo printMoney($paiement['montant']); ?> </td> <td><?php echo printEtatPaiement($paiement['etat']); ?> </td> <td><?php echo printTypePaiement($paiement['type']); ?> </td>
function GetPropertyValueFromFeatReader($featureReader, $propertyType, $propertyName) { //echo "/* propertyType:".$propertyType." propertyName:".$propertyName." */"; $val = ""; if ($propertyType == null) { $propertyType = $featureReader->GetPropertyType($propertyName); } try { switch ($propertyType) { case MgPropertyType::Null: //fwrite($logFileHandle, "$propertyName is a null propertyn"); $val = ""; break; case MgPropertyType::Boolean: $val = $featureReader->GetBoolean($propertyName); //$valStr = printBoolean($val); break; case MgPropertyType::Byte: $val = $featureReader->GetByte($propertyName); break; case MgPropertyType::DateTime: $dateTime = $featureReader->GetDateTime($propertyName); if ($dateTime != NULL) { $val = printDateTime($dateTime); } break; case MgPropertyType::Single: $val = $featureReader->GetSingle($propertyName); break; case MgPropertyType::Double: $val = $featureReader->GetDouble($propertyName); break; case MgPropertyType::Int16: $val = $featureReader->GetInt16($propertyName); break; case MgPropertyType::Int32: $val = $featureReader->GetInt32($propertyName); break; case MgPropertyType::Int64: $val = $featureReader->GetInt64($propertyName); break; case MgPropertyType::String: $val = $featureReader->GetString($propertyName); break; case MgPropertyType::Blob: //fwrite($logFileHandle, "$propertyName is blobn"); break; case MgPropertyType::Clob: //fwrite($logFileHandle, "$propertyName is clobn"); break; case MgPropertyType::Feature: /* $val = $featureReader->GetFeatureObject($propertyName); if ($val != NULL) { fwrite($logFileHandle, "$propertyName is a featuren"); printFeatureReader($val); } */ break; case MgPropertyType::Geometry: /* fwrite($logFileHandle, "$propertyName is a geometryn"); $val = $featureReader->GetGeometry($propertyName); if ($val != NULL) { $aGeometry = $agfReaderWriter->Read($val); //$aGeometry->Envelope(); $wktRepresentation = $wktReaderWriter->Write($aGeometry); fwrite($logFileHandle, "WKT Representation: "$wktRepresentation"n"); } else { fwrite($logFileHandle, "This geometry property is nulln"); } */ break; case MgPropertyType::Raster: /* $val = $featureReader->GetRaster($propertyName); fwrite($logFileHandle, "$propertyName is a rastern"); */ break; default: $val = ""; } } catch (MgException $e) { //this switch block seems to throw an exception rather for null property values rather than just returning //a null value, so catch the exception here and set value to an empty string $val = ""; } if (null == $val) { $val = ""; } return $val; }
protected function display_message($rw) { $out = "\n\t\t<div class='message'>\n\t\t\t<div class='h'>" . $rw["title"] . "</div>\n\t\t\t<div class='text'>" . preg_replace("/\n/", "<br />", $rw["text"]) . "</div>\n\t\t\t<div class='sub'>\n\t\t\t\t<div class='date'><!--[added3]--> " . printDateTime($rw["dt"]) . "</div>\n\t\t\t\t<div class='to'><!--[to_who]-->: <a href='" . $this->app->makeLink(array("CID" => "people", "user_id" => $rw["to"])) . "'>" . $rw["rw_to"]["displayName"] . "</a></div>\n\t\t\t\t<div class='from'><!--[from]-->: <a href='" . $this->app->makeLink(array("CID" => "people", "user_id" => $rw["from"])) . "'>" . $rw["rw_from"]["displayName"] . "</a></div>\n\t\t\t\t<div class='delete'>\n\t\t\t\t\t<a href='" . $this->app->makeLink(array("CID" => "profile", "page" => "my_messages", "action" => "delete_messages", "formData[sel][" . $rw[id] . "]" => 1)) . "'><!--[Delete_message]--></a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class='clear'></div>\n\t\t\t<div class='centerButton'><a href='" . $this->app->makeLink(array("CID" => "profile", "page" => "write_message", "to" => $rw["to"] == $this->app->getUser("id") ? $rw["from"] : $rw["to"])) . "'><!--[Reply]--></a></div>\n\t\t</div>\n\t\t"; $this->data["content"] = $out; }