0) {
$lot="LibreOffice Template ";
$sbc="";
}
} else if (isset($_POST['thetemplate'])) {
if (strlen($_POST['thetemplate']) > 0) {
$lot="LibreOffice Template ";
$sbc="";
}
}
if (!isset($_GET['i0']) && isset($_GET['fconcept'])) { // Form findings
$htmlis="
" . str_replace("Survey Survey","Survey",str_replace('+',' ',urldecode($_GET['fconcept'])) . " Survey") . " Form Questions
function tcheckit(iois) {
var ians=1, dl='';
if (iois != null) {
var aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null) {
if (aconto.document) { aconto = aconto.document; }
if (aconto.body != null) {
var bih=aconto.body.innerHTML.replace(/\>\;/g,'<').replace(/\/g,'
');
var abih=bih.split(' src=\"');
for (var ibih=1; ibih 1) {
if (ans.split(' ')[eval(-1 + ans.split(' ').length)].indexOf('@') != -1) {
emaillist=ans.split(' ')[eval(-1 + ans.split(' ').length)];
document.getElementById('theto').value=emaillist;
ans=ans.replace(' ' + emaillist,'');
document.getElementById('thesubject').value=(ans + ' Survey').replace('Survey Survey','Survey') + ' Survey (ideally using Google Chrome web browser for audio input via microphone)';
if (ans.split(' ').length > 2) iioff--;
}
iioff--;
if (ans.split(' ')[eval(-1 + ans.split(' ').length)].toLowerCase().indexOf('http') != -1 || ans.split(' ')[eval(-1 + ans.split(' ').length)].toLowerCase().indexOf('//') != -1) {
templateis=ans.split(' ')[eval(-1 + ans.split(' ').length)];
document.getElementById('thetemplate').value=templateis;
document.getElementById('tiframe').src=templateis;
}
}
document.getElementById('myconcept').value=ans;
}
}
if (templateis != '') {
document.getElementById('myconcept').value=ans.replace((' ' + templateis),'');
} else {
while (ans != null) {
ans=prompt('Separate a survey question ' + ians + ' from an optional prompt via ? ... Cancel finishes questions to ask ... eg. What is your favourite colour?Favourite colour', '');
if (ans != null) {
if (ans != '') {
document.getElementById('myquestions').value+=dl + '\"' + ans + '\"';
dl=',';
ians++;
}
}
}
document.getElementById('mysf').click();
}
}
" . str_replace("Survey Survey","Survey",urldecode($_GET['fconcept']) . " Survey") . " " . $lot . "Form Questions
... another?
";
echo $htmlis;
exit;
} else if (isset($_POST['i0']) && isset($_POST['fconcept'])) { // Form findings
$joff=0;
$defbh="" . str_replace("Survey Survey","Survey",str_replace('+',' ',urldecode($_POST['fconcept'])) . " Survey") . " " . $lot . "Report
... another? email?
";
if (isset($_POST['thetemplate'])) {
if ($_POST['thetemplate'] != "") {
if (strpos(strtolower(urldecode($_POST['thetemplate'])), 'http') === false) {
$wsb=explode("",file_get_contents('http:' . urldecode($_POST['thetemplate'])))[0])[1];
} else {
$wsb=explode("",file_get_contents(str_replace('https:','http:',urldecode($_POST['thetemplate']))))[0])[1];
}
while (substr($wsb,$joff,1) != '>') {
$joff++;
}
$joff++;
$defbh=str_replace("","
",substr($wsb,$joff));
$abih=explode(' src="', $defbh);
for ($ibih=1; $ibih
" . str_replace("Survey Survey","Survey",str_replace('+',' ',urldecode($_POST['fconcept'])) . " Survey") . " Report
var dul=document.URL.split('#')[0].split('?')[0];
var argis='';
function initemail() {
document.getElementById('aemail').href=document.getElementById('aemail').href.replace(/\ /g,'%20').replace(/\+/g,'%20') + encodeURIComponent(dul + '?fconcept=') + encodeURIComponent('" . str_replace("'","' + String.fromCharCode(39) + '",str_replace("Survey Survey","Survey",($_POST['fconcept']) . " Survey")) . " Report&" . "').replace(/\%20/g,'+');
fixemail();
}
function fixemail() {
var prerest=document.getElementById('aemail').href.split('?subject=')[1].split('&body=')[0];
var rest=document.getElementById('aemail').href.split('&body=')[1].split('php')[1];
document.getElementById('aemail').href=document.getElementById('aemail').href.split('?subject=')[0] + '?subject=' + (prerest) + '&body=' + encodeURIComponent('https://www.rjmprogramming.com.au/PHP/speech_supervisor.php') + (rest).replace(/\%20/g,'+');
}
" . $defbh . "
";
$ival=0;
if ($joff == 0) {
if (isset($_POST['s' . $ival])) {
$htmlis=str_replace("", "", $htmlis);
} else {
$htmlis=str_replace("
",file_get_contents('http:' . urldecode($_GET['thetemplate'])))[0])[1];
} else {
$wsb=explode("",file_get_contents(str_replace('https:','http:',urldecode($_GET['thetemplate']))))[0])[1];
}
while (substr($wsb,$joff,1) != '>') {
$joff++;
}
$joff++;
$defbh=str_replace("","
",substr($wsb,$joff));
$abih=explode(' src="', $defbh);
for ($ibih=1; $ibih
" . str_replace("Survey Survey","Survey",str_replace('+',' ',urldecode($_GET['fconcept'])) . " Survey") . " Report
var dul=document.URL.split('#')[0].split('?')[0];
var argis='';
function initemail() {
document.getElementById('aemail').href=document.getElementById('aemail').href.replace(/\ /g,'%20').replace(/\+/g,'%20'8/*-) + encodeURIComponent(dul + '?fconcept=') + encodeURIComponent('" . str_replace("'","' + String.fromCharCode(39) + '",str_replace("Survey Survey","Survey",($_GET['fconcept']) . " Survey")) . " Report&" . "').replace(/\%20/g,'+');
fixemail();
}
function fixemail() {
var prerest=document.getElementById('aemail').href.split('?subject=')[1].split('&body=')[0];
var rest=document.getElementById('aemail').href.split('&body=')[1].split('php')[1];
document.getElementById('aemail').href=document.getElementById('aemail').href.split('?subject=')[0] + '?subject=' + (prerest) + '&body=' + encodeURIComponent('https://www.rjmprogramming.com.au/PHP/speech_supervisor.php') + (rest).replace(/\%20/g,'+');
}
" . $defbh . "
";
$ival=0;
if ($joff == 0) {
if (isset($_GET['s' . $ival])) {
$htmlis=str_replace("", "