Skip to content

Instantly share code, notes, and snippets.

@katzueno
Last active February 21, 2017 05:46
Show Gist options
  • Save katzueno/3244cb26a2af621be2959dc5bfc9d9d8 to your computer and use it in GitHub Desktop.
Save katzueno/3244cb26a2af621be2959dc5bfc9d9d8 to your computer and use it in GitHub Desktop.
Adding Date and Time
<?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