Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 4148 | Rev 4156 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 4148 Rev 4155
Línea 89... Línea 89...
89
        if($request->isGet()) {
89
        if($request->isGet()) {
Línea 90... Línea 90...
90
            
90
            
91
            $currentUserPlugin = $this->plugin('currentUserPlugin');
91
            $currentUserPlugin = $this->plugin('currentUserPlugin');
Línea 92... Línea -...
92
            $currentUser = $currentUserPlugin->getUser();
-
 
93
            
-
 
94
            $textColor = '#000000';
92
            $currentUser = $currentUserPlugin->getUser();
95
            $reservationSameLocation = '#80ff80';
-
 
96
            $reservationOtherLocation = '#008000';
-
 
97
            $contract = '#8080ff';
93
            
98
            $contractDelayed = '#ff0000';
-
 
-
 
94
            $currentNetworkPlugin = $this->plugin('currentNetworkPlugin');
-
 
95
            $currentNetwork = $currentNetworkPlugin->getNetwork();
Línea 99... Línea 96...
99
            $contractOtherLocation = '#ffc0c0';
96
            
100
            $orderRepair = '#c0c0c0';
97
 
Línea 101... Línea 98...
101
            
98
            
Línea 133... Línea 130...
133
            
130
            
Línea -... Línea 131...
-
 
131
            
-
 
132
            $events = [];
-
 
133
 
-
 
134
            
-
 
135
   
Línea 134... Línea 136...
134
            
136
            //3 días
Línea 135... Línea 137...
135
            $events = [];
137
            $expirePeriod = 86400 * 16; 
136
 
138
            $t1 = time();
Línea 146... Línea 148...
146
                {
148
                {
147
                    case CalendarEvent::TYPE_ZOOM : 
149
                    case CalendarEvent::TYPE_ZOOM : 
148
                        $zoomMeeting = $zoomMeetingMapper->fetchOne($record->relational_id);
150
                        $zoomMeeting = $zoomMeetingMapper->fetchOne($record->relational_id);
149
                        if($zoomMeeting) {
151
                        if($zoomMeeting) {
Línea -... Línea 152...
-
 
152
                            
-
 
153
                            $backgroundColor = $currentNetwork->css_calendar_zoom_bg_color ;
-
 
154
                            $textColor = $currentNetwork->css_calendar_zoom_text_color;
-
 
155
                            
-
 
156
                            $dtStart = \DateTime::createFromFormat('Y-m-d H:i:s', $zoomMeeting->start_time);
-
 
157
                            $t2 = $dtStart->getTimestamp();
-
 
158
                            
-
 
159
                            if($t2 > $t1) {
-
 
160
                                
-
 
161
                                $t3 = $t1 + $expirePeriod;
-
 
162
                                if($t3 > $t2) {
-
 
163
                                    $backgroundColor = $currentNetwork->css_calendar_expire_bg_color;
-
 
164
                                    $textColor = $currentNetwork->css_calendar_expire_text_color;
-
 
165
                                }
-
 
166
                                
-
 
167
                            }
-
 
168
  
Línea 150... Línea 169...
150
                            
169
                            
Línea 151... Línea 170...
151
                            
170
                            
152
                            if($currentUser->timezone && $currentUser->timezone != $zoomMeeting->timezone) {
171
                            if($currentUser->timezone && $currentUser->timezone != $zoomMeeting->timezone) {
Línea 162... Línea 181...
162
                                $start = str_replace(' ', 'T', $zoomMeeting->start_time);
181
                                $start = str_replace(' ', 'T', $zoomMeeting->start_time);
163
                                $end = str_replace(' ', 'T', $zoomMeeting->end_time);
182
                                $end = str_replace(' ', 'T', $zoomMeeting->end_time);
164
                            }
183
                            }
Línea -... Línea 184...
-
 
184
                            
-
 
185
                            
-
 
186
                            
-
 
187
                            
165
                            
188
                            
166
                            
189
                            
167
                            $agenda = "<a href=\"{$zoomMeeting->join_url}\" target=\"_blank\">" .  $zoomMeeting->agenda . "<br>" . 
190
                            $agenda = "<a href=\"{$zoomMeeting->join_url}\" target=\"_blank\">" .  $zoomMeeting->agenda . "<br>" . 
168
                                " LABEL_ZOOM_MEETING_START_DATE : " . $dtStart->format('Y-m-d') . "<br>" .
191
                                " LABEL_ZOOM_MEETING_START_DATE : " . $dtStart->format('Y-m-d') . "<br>" .
169
                                " LABEL_ZOOM_MEETING_START_TIME : " . $dtStart->format('H:i a') . "<br>" .
192
                                " LABEL_ZOOM_MEETING_START_TIME : " . $dtStart->format('H:i a') . "<br>" .
Línea 178... Línea 201...
178
                                'title'             => $zoomMeeting->topic,
201
                                'title'             => $zoomMeeting->topic,
179
                                'agenda'            => $agenda,
202
                                'agenda'            => $agenda,
180
                                'start'             => $start,
203
                                'start'             => $start,
181
                                'end'               => $end,
204
                                'end'               => $end,
182
                                'url'               => $zoomMeeting->join_url,
205
                                'url'               => $zoomMeeting->join_url,
183
                                'backgroundColor'   => $contract,
206
                                'backgroundColor'   => $backgroundColor,
184
                                'textColor'         => $textColor
207
                                'textColor'         => $textColor,
185
                            ]);
208
                            ]);
186
                        }
209
                        }
187
                        break;
210
                        break;