예제 #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');
};
예제 #2
0
<?php

return function ($site, $pages, $page) {
    $form = uniform('contact-form', array('actions' => array(array('_action' => 'email', 'to' => '*****@*****.**', 'sender' => '*****@*****.**'))));
    return compact('form');
};
예제 #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');
};
예제 #4
0
파일: home.php 프로젝트: psihius/webconf
<?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');
};
예제 #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) {
예제 #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');
};
예제 #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');
};
예제 #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');
};
예제 #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');
};
예제 #10
0
파일: contact.php 프로젝트: KevinOrfas/pol
<?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');
};
예제 #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');
};