Last active
February 21, 2017 05:46
-
-
Save katzueno/3244cb26a2af621be2959dc5bfc9d9d8 to your computer and use it in GitHub Desktop.
Adding Date and Time
This file contains hidden or 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 | |
defined('C5_EXECUTE') or die("Access Denied."); | |
$submittedData = ''; | |
foreach ($questionAnswerPairs as $questionAnswerPair) { | |
$submittedData .= $questionAnswerPair['question']."\r\n".$questionAnswerPair['answerDisplay']."\r\n"."\r\n"; | |
} | |
$formDisplayUrl = URL::to('/dashboard/reports/forms') . '?qsid='.$questionSetId; | |
$date = date('Y年n月日 H:i:s '); | |
$body = t(" | |
%s | |
There has been a submission of the form %s through your concrete5 website. | |
%s | |
To view all of this form's submissions, visit %s | |
", $date, $formName, $submittedData, $formDisplayUrl); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment