|
|
Region Central
Kontaktpersoner
Träffar
Styrelsen
Årsmöten
Verksamhetsplan
Nyhetsarkiv
Länsföreningar
Stockholm
array(
"type" => "text",
"label" => "Namn",
"nullError" => "Namn måste anges",
),
"email" => array(
"type" => "text",
"label" => "E-Post",
"nullError" => "E-Post måste anges",
"regEx" => $EMAIL_REGEX,
"regExError" => "Ange en giltig E-Post"
),
"subscribeto" => array(
"type" => "header",
"content" => "Jag vill bli informerad vid följande aktiviteter"
),
"nyhetsbrevsutskick" => array(
"type" => "checkbox",
"label" => "Vid Nyhetsbrevsutskick",
"attributes" => array(
"value" => "yes",
"name" => "nyhetsbrevsutskick"
)
),
"nyhetsuppladdning" => array(
"type" => "checkbox",
"label" => "Vid Nyhetsuppladdning",
"attributes" => array(
"value" => "yes",
"name" => "nyhetsuppladdning"
)
)
);
/****************************************
* No need to edit beyond this point
*****************************************
*/
$errors=array();
$message="";
if ($_SERVER["REQUEST_METHOD"] == "POST"){
foreach($fields as $field => $fieldData) {
$fieldName = (is_null($fieldData["attributes"]) || is_null($fieldData["attributes"]["name"])?
$field:$fieldData["attributes"]["name"]);
$fieldId = (is_null($fieldData["attributes"]) || is_null($fieldData["attributes"]["id"])?
$field:$fieldData["attributes"]["id"]);
if ($fieldData["nullError"]) {
if (is_null(trim($_POST[$fieldName])) || strlen(trim($_POST[$fieldName]))<1 ) {
array_push($errors,array($fieldData["nullError"],"$('#$fieldId').focus().addClass('error')"));
}
elseif ($fieldData["regEx"]) {
if ( !eregi($fieldData["regEx"],trim($_POST[$fieldName])) ) {
array_push($errors,array($fieldData["regExError"],"$('#$fieldId').focus().addClass('error')"));
}
}
}
}
if($USE_CAPTCHA){
if(file_get_contents("http://www.opencaptcha.com/validate.php?ans=".$_POST['vcode']."&img=".$_POST['vimg'])!='pass') {
array_push($errors,array($CAPTCHA_ERROR,"$('#vcode').focus().addClass('error')"));
}
}
if( empty($errors)) {
$msg = "";
foreach( $fields as $field => $fieldData) {
$fieldName = (is_null($fieldData["attributes"]) || is_null($fieldData["attributes"]["name"])?
$field:$fieldData["attributes"]["name"]);
$fieldId = (is_null($fieldData["attributes"]) || is_null($fieldData["attributes"]["id"])?
$field:$fieldData["attributes"]["id"]);
$msg .= $fieldData["label"] . ": " . trim($_POST[$fieldName]) . "\n";
}
$msg .= "\n";
$mailheaders ="From: <$email> \n";
$mailheaders ."Reply-To: $email\n\n";
mail($MAIL_RECIPIENT, $MAIL_SUBJECT,$msg,$mailheaders);
$message = $MAIL_SENT_MESSAGE;
}
}
?>
0 ) {
?>
0) {
?>
_tag = $tag;
$this->_attributes = $attributes;
$this->_content = $content;
}
// Factory pattern.
public function get($tag, $content=null, array $attributes = null) {
return new Tag($tag, $content, $attributes);
}
public function addAttribute($name, $value) {
// Keep the attributes as an array until you need it rendered
$this->_attributes[$name] = $value;
return $this; // daisy chained
}
public function addTag(Tag $tag) {
if ($this->_content == '') {
$this->_content = "\n";
}
$this->_content .= $tag->render() . "\n";
return $this;
}
public function render() {
$temp = trim("{$this->_tag} {$this->extractAttributes()}");
if (is_null($this->_content)) {
return "<{$temp} />";
}
return "<{$temp}>{$this->_content}{$this->_tag}>";
}
private function extractAttributes() {
$str = "";
if ( !is_array($this->_attributes) ) {
return false;
}
foreach ($this->_attributes as $name => $value) {
$str .= "{$name}='{$value}' ";
}
return $str;
}
}
?>
|
|
|
|
|
Styrelsen
Ordförande
Malin Sofie Carlström
Askersundsvägen 24, 694 50 Vretstorp
B: 0582-66 05 92, M: 070-633 60 85
Mail: malin.sofie.carlstrom@hjartebarn.org
Vice Ordförande
Anders Sevelin
Sporregatan 6, 723 51 Västerås
B: 021-12 42 73, M: 070-917 88 10
Mail: anders.sevelin@hjartebarn.org
Kassör
Stefan Lindberg
Lundhagsvägen 28, 703 76 Örebro
B: 019-12 84 48, M: 070-246 99 77
Mail: stefan.lindberg@hjartebarn.org
Sekreterare
Andreas Morén
Sågvägen 17, 736 32 Kungsör
B: 0227-105 30, M: 070-223 44 66
Mail: andreas.moren@hjartebarn.org
Ledamot
Linda Rodin Norlander
Brånsta 8, 725 94 Västerås
B: 021-12 88 23, M: 073-992 67 23
Mail: linda.rodin@hjartebarn.org
Ledamot
Cecilia Moberg
Kantarellvägen 74, 184 34 Åkersberga
B: 08-540 698 11, M: 070-995 40 60
Mail: cecilia.moberg@hjartebarn.org
Ledamot
Chris Lindqvist
Storgatan 33A, 644 31 Torshälla
B: 016-551 44 48, M: 073-588 81 49
Mail: chris.lindqvist@hjartebarn.org
Suppleant
Kenneth Ruuska
Bergtallsvägen 17, 731 51 Köping
B: 0221-202 92, M: 070-662 02 92
Mail: kenneth.ruuska@live.se
Suppleant
Roger Ekstrand
Karlslundsvägen 12, 692 36 Kumla
M: 070-554 57 53
Mail: roger.ekstrand@hjartebarn.org
Valberedning
Mikael Carlström
Knölagatan 36, 694 50 Vretstorp
M: 070-727 88 19
Mail: mikael.carlstrom@hjartebarn.org
Mikael Meijer
Loftvägen 9, 142 35 Skogås
B: 08-655 85 02, M: 070-574 04 24
Mail: mikael.meijer@hjartebarn.org
Valberedningsuppleant
Gudrun Liljeström
Gammelekevägen 9, 749 61 Örsundsbro
B: 0171-46 16 46, M: 073-028 99 94
Mail: gudrunliljestrom@live.se
Revisor
Bengt-Arne Torstensson
Skolvägen 6, 186 41 Vallentuna
B: 08-511 792 73
Mail: bengt-arne@batab.se
Revisorsuppleant
Marie Ruuska
Bergtallsvägen 17, 731 51 Köping
B: 0221-202 92 |
|
|