Esempio n. 1
0
<?php

return function ($site, $pages, $page) {
    $form = uniform('contact-form', ['required' => ['name' => '', '_from' => 'email'], 'actions' => [['_action' => 'email', 'to' => '*****@*****.**', 'sender' => '*****@*****.**', 'subject' => '[engineeringathome] New message from {name}']]]);
    return compact('form');
};
Esempio n. 2
0
<?php

return function ($site, $pages, $page) {
    $form = uniform('contact-form', array('actions' => array(array('_action' => 'email', 'to' => '*****@*****.**', 'sender' => '*****@*****.**'))));
    return compact('form');
};
Esempio n. 3
0
<?php

return function ($site, $pages, $page) {
    $form = uniform('contact-form', array('required' => array('_from' => 'email'), 'actions' => array(array('_action' => 'email', 'to' => '*****@*****.**', 'sender' => '*****@*****.**', 'subject' => 'Neue Anfrage von Binzenhof.ch'))));
    return compact('form');
};
Esempio n. 4
0
<?php

return function ($site, $pages, $page) {
    $form = uniform('contact-form', array('required' => array('_from' => 'email', 'name' => ''), 'actions' => array(array('_action' => 'email', 'to' => '*****@*****.**', 'sender' => '*****@*****.**', 'subject' => 'WebConf Contact Form'))));
    return compact('form');
};
Esempio n. 5
0
$html .= '<h4>' . $timeinfo . '</h4>';
$html .= '<h4>' . $event['location'] . '</h4></div><div style="margin: 10px 20px">';
if ($event['comments'] != '') {
    $html .= '<div style="padding: 10px; margin-bottom: 20px">' . $event['comments'] . '</div><hr>';
}
$html .= '<div style="text-align: center">';
if ($should) {
    $html .= '<div class="infoblock" style="background: #060"><div>Attending</div></div>';
} else {
    $html .= '<div class="infoblock" style="background: #c00"><div>Not<br>attending</div></div>';
}
if ($event['type'] == 'volunteer' && $event['gigcount'] == 0) {
    $html .= '<div class="infoblock" style="background: #f90"><div>No gig<br>credit</div></div>';
}
if (isgig($event)) {
    $html .= uniform($eventNo);
}
$html .= '<div class="infoblock" style="background: #888"><div><span style="font-size: 32px;">' . $event['points'] . '</span><br>points</div></div>';
$html .= '</div>';
$html .= '<div style="clear: both; text-align: center">';
if (strtotime($event['callTime']) > time()) {
    if ($event['type'] == 'volunteer' && strtotime($event['callTime']) > strtotime('+1 day')) {
        if (!$confirmed || !$should) {
            $html .= "<div id='attend_will' class='btn event-btn' onclick='should_attend({$eventNo}, \"{$USER}\", 1)'>I <span style='color: green'>WILL</span><br>Attend</div>";
        }
        if (!$confirmed || $should) {
            $html .= "<div id='attend_wont' class='btn event-btn' onclick='should_attend({$eventNo}, \"{$USER}\", 0)'>I <span style='color: red'>WILL NOT</span><br>Attend</div>";
        }
    } else {
        if ($should) {
            if (!$confirmed) {
Esempio n. 6
0
<?php

return function ($site, $pages, $page) {
    $form = uniform('contact-form', array('required' => array('_from' => 'email'), 'actions' => array(array('_action' => 'email', 'to' => '*****@*****.**', 'sender' => '*****@*****.**'))));
    return compact('form');
};
Esempio n. 7
0
<?php

return function ($site, $pages, $page) {
    $form = uniform('contact-form', ['required' => ['fname' => '', 'lname' => '', '_from' => 'email'], 'actions' => [['_action' => 'email', 'to' => '*****@*****.**', 'sender' => '*****@*****.**', 'subject' => 'New Inquiry!']]]);
    if ($form->successful()) {
        go('contact/thank-you');
    }
    return compact('form');
};
Esempio n. 8
0
<?php

return function ($site, $pages, $page) {
    $form = uniform('contact-form', array('actions' => array(array('_action' => 'email', 'to' => '*****@*****.**', 'sender' => '*****@*****.**', 'subject' => 'Neue Anfrage von Binzenhof.ch'))));
    return compact('form');
};
Esempio n. 9
0
<?php

return function ($site, $pages, $page) {
    $form = uniform('contact-form', array('required' => array('name' => 'name', '_from' => 'email'), 'actions' => array(array('_action' => 'email', 'to' => '*****@*****.**', 'sender' => '*****@*****.**'))));
    return compact('form');
};
Esempio n. 10
0
<?php

return function ($site, $pages, $page) {
    $form = uniform('contact-form', ['required' => ['name' => '', '_from' => 'email'], 'actions' => [['_action' => 'email', 'to' => '*****@*****.**', 'sender' => '*****@*****.**', 'subject' => 'Contact with Pol Garcia']]]);
    return compact('form');
};
Esempio n. 11
0
<?php

return function ($site, $pages, $page) {
    $form = uniform('forest-form', ['required' => ['fname' => '', 'lname' => '', '_from' => 'email'], 'actions' => [['_action' => 'email', 'to' => '*****@*****.**', 'sender' => '*****@*****.**', 'subject' => 'New Forest Member Application!']]]);
    if ($form->successful()) {
        go('the-forest/apply/thank-you');
    }
    return compact('form');
};