skinOff(); //$pageSkin->setNavigationOff(); if ($status->isUnknown()) { header ("location: login.php?err=overdue&show=$dsp&org_id=$org_id"); exit; } if (!$submit || !isset($page_no)) { $page_no=1; } else { $page_no=$page_no+1; } if ($user_name!="Visitor") { $xname=$user_fullname; } if ($accesstype=="public" || $accesstype=="guest") { $excludevar="non_member_view"; } if ($accesstype=="member") { $excludevar="member_view"; } $field_list= "1|script|script|40|

Feedback for this site

.

Use this form to report any problems/thoughts on this site

To reduce spam, there is a time delay before you can send another message.

|Name|W|y|control|||^ 1|enquirer|text|40|Your name|Name|W|W|control|$xname||^ 1|feedback|single|Had a great idea#Why don't you...#Bug on this page#Unexpected event#Wrong things on page#Unclear what to do#Poor user journey#Feel lost|Type of feedback|Type of feedback|W|W|control|||^ 1|message|text|60|Message|Message|W|W|control|||^ 1|urgency|single|Very urgent#Urgent#Add to resolve list#Just for interest|Urgency|Urgency|W|W|control|||^ 1|email|text|40|Your email address|Email|W|W|control|||^ 1|phone|phone|40|Contact phone number|Phone|W|W|control|||^ 1|contact_id|hidden|10|Contact id|contact|W|W|control|$user_id||^ 1|pageURL|hidden|40|On this page|Page|W|W|control|$pageURL||^ $page_no|page_no|hidden|10|Page|Page|W|W|control|$page_no||^ $page_no|org_id|hidden|10|Page|Page|W|W|control|$org_id||^ 2|script2|script|10|Your message has been sent. Please note that to prevent spam there is a 2 minute delay before you can send another message. |Your message has been sent|W|W|control|||"; $link_string= "1|showsite.php?org_id=$org_id|Back to main page|orgs-R|y"; $form=new FormLayout(new FormFieldSource($field_list)); $form->setPageNo($page_no); $form->setSubmitLabel("Send feedback"); $pageSkin->setNavigationOff(); $pageSkin->templateOff(); $page=new PageLayout($permission_string, $pageSkin); $page->addControl($form); if ($submit && isset($_POST['feedback'])) { // GET EMAIL ADDRESS OF OWNER $message=isset($_POST['message']) ? addslashes(strip_tags($_POST['message'])) : ""; $enquirer=isset($_POST['enquirer']) ? addslashes(strip_tags($_POST['enquirer'])) : ""; $email=isset($_POST['email']) ? addslashes(strip_tags($_POST['email'])) : ""; $phone=isset($_POST['phonee']) ? addslashes(strip_tags($_POST['phone'])) : ""; $feedback=isset($_POST['feedback']) ? addslashes(strip_tags($_POST['feedback'])) : ""; $pageURL=isset($_POST['pageURL']) ? addslashes(strip_tags($_REQUEST['pageURL'])) : ""; if ($person_id) { $sql="select persons.person_id, pers_fname, pers_email1 from persons inner join members on members.member_person_id=persons.person_id and persons.person_id>0 inner join officer_types on members.officer_type_id=officer_types.officer_type_id and officer_type_id>0 where person=:person_id and isContact='y'"; $params=Array("person_id"=>$person_id); } else { $sql="select persons.person_id, pers_fname, pers_email1, officer_type_name from persons inner join members on members.member_person_id=persons.person_id and persons.person_id>0 inner join officer_types on members.officer_type_id=officer_types.officer_type_id and officer_type_name='internal owner' where officer_type_name='internal owner' and (members.parent_org_id=:org_id or members.parent_org_id=:topmost_org_id) order by parent_org_id DESC"; $params=Array("org_id"=>$org_id, "topmost_org_id"=>$topmost_org_id); } $query=new QueryPDO($sql,$db); if ($row=$query->next()) { $owner_id=$row['person_id']; $to_email=$row["pers_email1"]; $ownername=$row['pers_fname']; } else { // If you can't find personal contact details send it to the owner $sql="select persons.person_id, pers_fname, pers_email1, officer_type_name from persons inner join members on members.member_person_id=persons.person_id and persons.person_id>0 inner join officer_types on members.officer_type_id=officer_types.officer_type_id and (officer_type_name='owner') where (officer_type_name='owner') and (members.parent_org_id=:org_id or members.parent_org_id=:topmost_org_id) order by parent_org_id DESC"; $params=Array("org_id"=>$org_id, "topmost_org_id"=>$topmost_org_id); $query=new QueryPDO($sql,$db,$params); if ($row=$query->next()) { $owner_id=$row['person_id']; $to_email=$row["pers_email1"]; $ownername=$row['pers_fname']; } } // CAN ALSO ADD THIS TO THE NOTANANT COMMS MODEL $msg=" \n$ownername, the following message was sent to you as a contact point for $org_name on Notanant: \n$feedback \n$pageURL \n$message \nFrom : $enquirer\nEmail: $email\nPhone: $phone"; if (!$mailblock && $owner_id) { //ECHO "MAIL:
$msg"; $comm=new Comms($db); $comm->setToList($owner_id); $comm->addFromPerson($user_id, $enquirer, $email); if ((time()-$mailblock)>120) { if ($to_email) { $comm->setEmailOn(); } $mailblock=time(); } $comm->addSimpleComms($owner_id,'Site Feedback for '.$org_name.' on Notanant', $msg,'As contact'); // To person 1 (Notanant owner) $comm->addSimpleComms(1,'Site Feedback for '.$org_name.' on Notanant', $msg,'Administrator'); } } if ($page_no==3) { header ("Location: $donepage"); exit; } $page->showpage("$dsp"); ?>