This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
error_reporting(E_ALL); | |
ini_set('display_errors', 1); | |
//echo print_r( $_POST); | |
//echo print_r($_FILES); | |
$date = new DateTime(); | |
//echo $date->getTimestamp(); | |
file_put_contents("post_".$date->getTimestamp().".txt", print_r( $_POST, true)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Array | |
( | |
[HTTP_HOST] => vps140384.ovh.net | |
[HTTP_CONNECTION] => keep-alive | |
[HTTP_CACHE_CONTROL] => no-cache | |
[HTTP_PRAGMA] => no-cache | |
[HTTP_ACCEPT] => */* | |
[HTTP_USER_AGENT] => Mozilla/5.0 (Linux; Android 4.4.2; Nexus 5 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Mobile Safari/537.36 | |
[HTTP_ACCEPT_ENCODING] => gzip,deflate | |
[HTTP_ACCEPT_LANGUAGE] => en-GB,en-US;q=0.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* http://plus.epicollect.net/post_image_test | |
* post request for single entry (data) | |
*/ | |
Array | |
( | |
[table] => test_form | |
[ecTimeCreated] => 1425745270 | |
[ecPhoneID] => a2439aad10124340 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* http://plus.epicollect.net/post_image_test | |
* post request for single file (image) | |
*/ | |
Array | |
( | |
[name] => Array | |
( | |
[name] => test_form_ecplus_test_form_ctrl2_a2439aad10124340_1425745268593.jpg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"requireCurlyBraces": [ | |
"if", | |
"else", | |
"for", | |
"while", | |
"do", | |
"try", | |
"catch" | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//populate lists with autocomplete suggestions based on project names on the server | |
dom_list.on('listviewbeforefilter', function (e, data) { | |
console.log('typing'); | |
var $ul = $(this); | |
var $input = $(data.input); | |
var value = $input.val(); | |
var html = ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//add bottom border to last element only | |
if (index === group_input_labels.length - 1) { | |
HTML += '<div class="ui-block-a group-inputs-grid__label group-inputs-grid-bottom-border">'; | |
HTML += '<div class="ui-bar ui-bar-e" style="height:60px">' + single_label.label + '</div>'; | |
HTML += '</div>'; | |
} else { | |
HTML += '<div class="ui-block-a group-inputs-grid__label">'; | |
HTML += '<div class="ui-bar ui-bar-e" style="height:60px">' + single_label.label + '</div>'; | |
HTML += '</div>'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var askConfirm = function (the_title, the_message, onConfirmCallback, has_data_to_save, the_current_input, is_branch) { | |
var current_input = the_current_input; | |
var response; | |
if (navigator.notification && !EC.Utils.isChrome()) { | |
var _confirmCallback = function (btn_index) { | |
console.log('btn_index: ' + btn_index); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Epicollect5 is a free and easy-to-use mobile data-gathering platform developed by the CGPS Team of Oxford BDI and publicly available at https://five.epicollect.net | |
It provides both web and mobile applications for the generation of forms (questionnaires) and freely hosted project websites for data collection. | |
Data are collected (including GPS and media) using multiple devices and all data can be viewed on a central server (via map, tables, and charts). | |
Data can be exported in CSV and JSON format | |
The User Guide can be found at https://docs.epicollect.net |
OlderNewer