浏览代码

Allow user to click on calendar events and redirect them to the moment's page or milestones' page accordingly

Victor Hernandez 4 年前
父节点
当前提交
ac58d723b3
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      special2.php

+ 2
- 0
special2.php 查看文件

@@ -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');