Imagine the following questions
A - What color is red? 1. Red (1 point) 2. Blue (0 points) 3. Green (0 points)
B - How many wheels has a car? 1. Two (0 points) 2. Four (1 point)
| <?php | |
| $email = new SendMail(); // Uma instancia do phpmailer extendida com o from e o smtp preenchidos e que podem ser substituidos à frente | |
| $email->AddAddress(':email', utf8_decode(':nome')); | |
| $email->Subject = utf8_decode(':assunto'); | |
| $email_body = array(); | |
| $email_body[] = '<p>:mensagem</p>'; | |
| $email->MsgHTML(utf8_decode(implode('', $email_body))); | |
| $email->Send(); |
Imagine the following questions
A - What color is red? 1. Red (1 point) 2. Blue (0 points) 3. Green (0 points)
B - How many wheels has a car? 1. Two (0 points) 2. Four (1 point)
| <?php | |
| $score = array(); | |
| $negative_score = array(); | |
| $answers = ( !empty($_POST['answers']) ) ? $_POST['answers'] : array(); | |
| foreach ( $answers as $question_id => $answer ) { | |
| <?php | |
| // Disable magic quotes | |
| if (get_magic_quotes_gpc()) { | |
| $process = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST); | |
| while (list($key, $val) = each($process)) { | |
| foreach ($val as $k => $v) { | |
| unset($process[$key][$k]); | |
| if (is_array($v)) { | |
| $process[$key][stripslashes($k)] = $v; | |
| $process[] = &$process[$key][stripslashes($k)]; |
This works for both iOS and Android! You can use almost the default checkbox-hack syntax and just need to add two things:
pseudo-class + general/adjacent sibling doesn't work on Android 4.1.2 so we need a hack:
body { -webkit-animation: bugfix infinite 1s; }
@-webkit-keyframes bugfix { from {padding:0;} to {padding:0;} }
| var context = top.window; | |
| // Instead of this | |
| var target = jQuery('#'+data.target, context.document); | |
| // Do this | |
| var target = context.jQuery('#'+data.target); | |
| target.val(data.value).trigger('change'); |
Work
| /*! | |
| * Nestable jQuery Plugin - Copyright (c) 2012 David Bushell - http://dbushell.com/ | |
| * Dual-licensed under the BSD or MIT licenses | |
| */ | |
| ;(function($, window, document, undefined) | |
| { | |
| var hasTouch = 'ontouchstart' in window; | |
| /** | |
| * Detect CSS pointer-events property |
| <form method='post' action='https://www.paypal.com/cgi-bin/webscr' target='_blank'> | |
| <!-- no caso de vir de uma ligação segura deve ser _s-click --> | |
| <input type='hidden' name='cmd' value='_xclick' /> | |
| <!-- O email ou o id da conta do cliente --> | |
| <input type='hidden' name='business' value='XXXXXXXXXXXXX' /> | |
| <!-- Titulo do produto --> | |
| <input type='hidden' name='item_name' value='Compra' /> |
| <?php | |
| $config = array( | |
| 'name' => 'Project Name', | |
| 'id' => 'project-id', | |
| // (bool) If false, will only generate the sql file and will not import to destination server | |
| 'import' => true, | |
| // Usually the remote connection |