|
@@ -98,6 +98,7 @@
|
98
|
98
|
|
99
|
99
|
|
100
|
100
|
// Create a new event for each moment
|
|
101
|
+ // NOTE: Same query as $query4 in viewExperience.php
|
101
|
102
|
$queryMoments = "SELECT SQ.* FROM subquestionnair AS SQ JOIN experience_subquestionnair AS ES WHERE SQ.id = ES.id_subquestionnair AND ES.id_experience = '$experienceID';";
|
102
|
103
|
// $queryMoments = "SELECT * FROM `subquestionnair` WHERE id_questionnair IN (SELECT id_questionnair FROM `experience_questionnair` WHERE id_experience = '$experienceID');";
|
103
|
104
|
$resultMoments = mysqli_query($connection, $queryMoments);
|
|
@@ -108,6 +109,7 @@
|
108
|
109
|
$moment->id = $rowMoments['id'] . '-moment';
|
109
|
110
|
$moment->title = $rowMoments['title'];
|
110
|
111
|
$moment->start = $rowMoments['date_to_administer'];//explode(" ", $rowMoments['date_to_administer'])[0];
|
|
112
|
+ $moment->url = 'https://tania.uprrp.edu/admin_nuevo/viewMoment.php?view=' . $rowMoments['id'];
|
111
|
113
|
|
112
|
114
|
// Compute end with expiry_time from experience...
|
113
|
115
|
$computedEndTimestamp = strtotime($rowMoments['date_to_administer'] . ' + ' . $rowExperience['expiry_time'] .' minutes');
|