mirror of
https://gitlab.com/ansol/web-ansol.org.git
synced 2024-12-01 10:08:48 +00:00
37 lines
1.1 KiB
Markdown
37 lines
1.1 KiB
Markdown
|
---
|
||
|
categories: []
|
||
|
metadata:
|
||
|
node_id: 60
|
||
|
layout: page
|
||
|
title: test1
|
||
|
created: 1335099257
|
||
|
date: 2012-04-22
|
||
|
---
|
||
|
<?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();
|
||
|
|
||
|
?>
|