function loadEventSurveyData() {
//if(document.getElementById("ddEvents").value == ""){
// document.getElementById("ddEvents").selectedIndex = "0";
//}
console.log("SurveyID: "+ document.getElementById("sid").value);
console.log("Selected Event ID: "+ document.getElementById("ddEvents").value);
location.href= document.getElementById("frmSurveyData").action + '?eid='+document.getElementById("ddEvents").value+'&sid='+document.getElementById("sid").value;
//document.getElementById("frmSurveyData").submit();
}
function sortTable(n, st) {
var table, rows, switching, i, x, y, shouldSwitch, dir, switchcount = 0;
table = document.getElementById("myTable");
switching = true;
//Set the sorting direction to ascending:
dir = "asc";
/*Make a loop that will continue until
no switching has been done:*/
while (switching) {
//start by saying: no switching is done:
switching = false;
rows = table.rows;
/*Loop through all table rows (except the
first, which contains table headers):*/
for (i = 1; i (rows.length - 1); i++) {
//start by saying there should be no switching:
shouldSwitch = false;
/*Get the two elements you want to compare,
one from current row and one from the next:*/
x = rows[i].getElementsByTagName("TD")[n].children[0];
y = rows[i + 1].getElementsByTagName("TD")[n].children[0];
/*check if the two rows should switch place,
based on the direction, asc or desc:*/
//console.log("Sort values x: " + x + " y: " + y);
//console.log("Sort values x: " + x.innerHTML + " y: " + y.innerHTML);
if(st == 1){
x = Number((x.innerHTML).replace(":", ""));
y = Number((y.innerHTML).replace(":", ""));
}else{
x = x.innerHTML.toLowerCase();
y = y.innerHTML.toLowerCase();
}
//console.log("x: "+x+" y: "+y);
if (dir == "asc") {
if (x > y) {
//if so, mark as a switch and break the loop:
shouldSwitch= true;
break;
}
} else if (dir == "desc") {
if (x < y) {
//if so, mark as a switch and break the loop:
houldSwitch = true;
break;
}
}
}
if (shouldSwitch) {
/*If a switch has been marked, make the switch
and mark that a switch has been done:*/
rows[i].parentNode.insertBefore(rows[i + 1], rows[i]);
switching = true;
//Each time a switch is done, increase this count by 1:
switchcount ++;
} else {
/*If no switching has been done AND the direction is "asc",
set the direction to "desc" and run the while loop again.*/
if (switchcount == 0 && dir == "asc") {
dir = "desc";
switching = true;
}
}
}
}
id.'|'.$user->name);*/
$uid = $user->id;
$tfid = $app->getUserStateFromRequest("tf_id", "tf_id", 0 );
//print_r('TF_IID :: ' . $tfid);
$postData = $app->input->post;
//$getData = $app->input->get;
///get event id
$eventid = $postData->get('ddEvents', '', 'string');
if(strlen($eventid ?? '') == 0){
$eventid = $app->input->get('eid', '');
}
//echo 'ddEvents-selected value : ' . $eventid;
//get surveyId
$surveyid = $app->input->get('sid', 0);
if(strlen($surveyid ?? '') == 0){
$surveyid = $postData->get('sid', '0', 'int');
}
//echo 'SID : ' . $surveyid;
if($tfid == 0){
$app->redirect(JRoute::_("https://tinyforest.earthwatch.org.uk/tiny-forest-admin-screen"));
}
echo '
Warning: include(/var/www/html/joomla/ew_files/ew_system/modules/surveys/public_survey_submission_page.php): Failed to open stream: No such file or directory in /var/www/html/joomla/tmp/regularlabs/custom_php/1550205_32e99152337b36727318ea6881571149 on line 11
Warning: include(): Failed opening '/var/www/html/joomla/ew_files/ew_system/modules/surveys/public_survey_submission_page.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/joomla/tmp/regularlabs/custom_php/1550205_32e99152337b36727318ea6881571149 on line 11
Full list of Tiny Forests that are missing the CRM Link back
All Tiny Forests below are missing the CRM Link on the TF article. This prevents the Tree Keepr from signing up through the Tiny Forest Profile Page. Only includes UK and Australia Tiny Forests. Please update with CRM ID.