7
1
mirror of https://gitlab.com/ansol/web-ansol.org.git synced 2024-11-25 07:33:16 +00:00
web-ansol.org/content/noticias/2012-04-22-test1.md

41 lines
1.1 KiB
Markdown
Raw Normal View History

2021-09-18 02:21:31 +00:00
---
categories: []
metadata:
node_id: 60
layout: page
title: test1
created: 1335099257
date: 2012-04-22
aliases:
- "/node/60/"
- "/page/60/"
- "/test1/"
2021-09-18 02:21:31 +00:00
---
<?php
# http://www.openstreetmap.org/?mlat=38.71055&mlon=-9.142200&zoom=18&layers=M
# 'iconUrl' => 'sites/all/libraries/leaflet/dist/images/marker.png'
db_set_active('remotecivicrm');
$result = db_query("select cast(civicrm_contact.external_identifier as unsigned) as id,civicrm_contact.first_name as fn,civicrm_contact.middle_name as mn, civicrm_contact.last_name as ln from civicrm_contact,civicrm_membership where civicrm_membership.contact_id = civicrm_contact.id and civicrm_membership.status_id <= 3 order by id;");
$res = $result->fetchAll();
$count = $result->rowCount();
print "Estes são os $count sócios da ANSOL. E que tal <a href='https://ansol.org/inscricao'>tornar-se sócio também</a>? :)\n";
#print "<pre>\n";
#var_dump($res);
#print "</pre>\n";
print "<ul>";
foreach ($res as $record) {
print "<li style='list-style-type: none;'>".$record->id.": ".$record->fn . " " . $record->mn . " " . $record->ln."</li>";
}
print "</ul>\n";
db_set_active();
?>