Test Setup Failed
Push — master ( b97dd0...2809dd )
by Angel Fernando Quiroz
504:03 queued 445:30
created
plugin/jcapture/plugin_applet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 $imageFormat = "PNG";
25 25
 $cookies = null;
26 26
 foreach (array_keys($_COOKIE) as $cookieName) {
27
-    $cookies.=bin2hex($cookieName)."=".bin2hex($_COOKIE[$cookieName]).";";
27
+    $cookies .= bin2hex($cookieName)."=".bin2hex($_COOKIE[$cookieName]).";";
28 28
 }
29 29
 
30 30
 $pageName = 'file';
Please login to merge, or discard this patch.
plugin/ticket/src/myticket.php 1 patch
Spacing   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     $.ajax({
24 24
         contentType: "application/x-www-form-urlencoded",
25 25
         beforeSend: function(object) {
26
-        $("div#"+div_course).html("<img src=\'' . $webLibPath . 'javascript/indicator.gif\' />"); },
26
+        $("div#"+div_course).html("<img src=\'' . $webLibPath.'javascript/indicator.gif\' />"); },
27 27
         type: "POST",
28 28
         url: "ticket_assign_log.php",
29 29
         data: "ticket_id="+ticket_id,
@@ -40,8 +40,8 @@  discard block
 block discarded – undo
40 40
 }
41 41
 
42 42
 $(function() {
43
-    $( "#keyword_start_date_start" ).datepicker({ dateFormat: ' . "'dd/mm/yy'" . ' });
44
-    $( "#keyword_start_date_end" ).datepicker({ dateFormat: ' . "'dd/mm/yy'" . ' });
43
+    $( "#keyword_start_date_start" ).datepicker({ dateFormat: ' . "'dd/mm/yy'".' });
44
+    $( "#keyword_start_date_end" ).datepicker({ dateFormat: ' . "'dd/mm/yy'".' });
45 45
 });
46 46
 
47 47
 $(document).ready(function() {
@@ -51,10 +51,10 @@  discard block
 block discarded – undo
51 51
 function display_advanced_search_form () {
52 52
     if ($("#advanced_search_form").css("display") == "none") {
53 53
         $("#advanced_search_form").css("display","block");
54
-        $("#img_plus_and_minus").html(\'&nbsp;' . Display::return_icon('div_hide.gif', get_lang('Hide'), array('style' => 'vertical-align:middle')) . '&nbsp;' . get_lang('AdvancedSearch') . '\');
54
+        $("#img_plus_and_minus").html(\'&nbsp;' . Display::return_icon('div_hide.gif', get_lang('Hide'), array('style' => 'vertical-align:middle')).'&nbsp;'.get_lang('AdvancedSearch').'\');
55 55
     } else {
56 56
         $("#advanced_search_form").css("display","none");
57
-        $("#img_plus_and_minus").html(\'&nbsp;' . Display::return_icon('div_show.gif', get_lang('Show'), array('style' => 'vertical-align:middle')) . '&nbsp;' . get_lang('AdvancedSearch') . '\');
57
+        $("#img_plus_and_minus").html(\'&nbsp;' . Display::return_icon('div_show.gif', get_lang('Show'), array('style' => 'vertical-align:middle')).'&nbsp;'.get_lang('AdvancedSearch').'\');
58 58
     }
59 59
 }
60 60
 </script>
@@ -237,42 +237,42 @@  discard block
 block discarded – undo
237 237
     }
238 238
     //select categories
239 239
     $select_types = '<select class="chzn-select" name = "keyword_category" id="keyword_category" ">';
240
-    $select_types .= '<option value="">---' . get_lang('Select') . '---</option>';
240
+    $select_types .= '<option value="">---'.get_lang('Select').'---</option>';
241 241
     $types = TicketManager::get_all_tickets_categories();
242 242
     foreach ($types as $type) {
243
-        $select_types.= "<option value = '" . $type['category_id'] . "'>" . $type['name'] . "</option>";
243
+        $select_types .= "<option value = '".$type['category_id']."'>".$type['name']."</option>";
244 244
     }
245 245
     $select_types .= "</select>";
246 246
     //select admins
247 247
     $select_admins = '<select  class ="chzn-select" name = "keyword_admin" id="keyword_admin" ">';
248
-    $select_admins .= '<option value="">---' . get_lang('Select') . '---</option>';
249
-    $select_admins .= '<option value = "0">' . $plugin->get_lang('Unassigned') . '</option>';
248
+    $select_admins .= '<option value="">---'.get_lang('Select').'---</option>';
249
+    $select_admins .= '<option value = "0">'.$plugin->get_lang('Unassigned').'</option>';
250 250
     $admins = UserManager::get_user_list_like(array("status" => "1"), array("username"), true);
251 251
     foreach ($admins as $admin) {
252
-        $select_admins.= "<option value = '" . $admin['user_id'] . "'>" . $admin['lastname'] . " ," . $admin['firstname'] . "</option>";
252
+        $select_admins .= "<option value = '".$admin['user_id']."'>".$admin['lastname']." ,".$admin['firstname']."</option>";
253 253
     }
254 254
     $select_admins .= "</select>";
255 255
     //select status
256 256
     $select_status = '<select  class ="chzn-select" name = "keyword_status" id="keyword_status" >';
257
-    $select_status .= '<option value="">---' . get_lang('Select') . '---</option>';
257
+    $select_status .= '<option value="">---'.get_lang('Select').'---</option>';
258 258
     $status = TicketManager::get_all_tickets_status();
259 259
     foreach ($status as $stat) {
260
-        $select_status.= "<option value = '" . $stat['status_id'] . "'>" . $stat['name'] . "</option>";
260
+        $select_status .= "<option value = '".$stat['status_id']."'>".$stat['name']."</option>";
261 261
     }
262 262
     $select_status .= "</select>";
263 263
     //select priority
264 264
     $select_priority = '<select  name = "keyword_priority" id="keyword_priority" >';
265
-    $select_priority .= '<option value="">' . get_lang('All') . '</option>';
266
-    $select_priority .= '<option value="NRM">' . $plugin->get_lang('PriorityNormal') . '</option>';
267
-    $select_priority .= '<option value="HGH">' . $plugin->get_lang('PriorityHigh') . '</option>';
268
-    $select_priority .= '<option value="LOW">' . $plugin->get_lang('PriorityLow') . '</option>';
265
+    $select_priority .= '<option value="">'.get_lang('All').'</option>';
266
+    $select_priority .= '<option value="NRM">'.$plugin->get_lang('PriorityNormal').'</option>';
267
+    $select_priority .= '<option value="HGH">'.$plugin->get_lang('PriorityHigh').'</option>';
268
+    $select_priority .= '<option value="LOW">'.$plugin->get_lang('PriorityLow').'</option>';
269 269
     $select_priority .= "</select>";
270 270
 
271 271
     //select unread
272 272
     $select_unread = '<select  name = "keyword_unread" id="keyword_unread" >';
273
-    $select_unread .= '<option value="">' . get_lang('All') . '</option>';
274
-    $select_unread .= '<option value="yes">' . $plugin->get_lang('Unread') . '</option>';
275
-    $select_unread .= '<option value="no">' . $plugin->get_lang('Read')  . '</option>';
273
+    $select_unread .= '<option value="">'.get_lang('All').'</option>';
274
+    $select_unread .= '<option value="yes">'.$plugin->get_lang('Unread').'</option>';
275
+    $select_unread .= '<option value="no">'.$plugin->get_lang('Read').'</option>';
276 276
     $select_unread .= "</select>";
277 277
     // Create a search-box
278 278
     $form = new FormValidator('search_simple', 'get', '', '', null, false);
@@ -283,49 +283,49 @@  discard block
 block discarded – undo
283 283
     $form->addElement('static', 'search_advanced_link', null,
284 284
             '<a href="javascript://" class = "advanced-parameters" onclick="display_advanced_search_form();">'
285 285
             . '<span id="img_plus_and_minus">&nbsp;'
286
-            . Display::return_icon('div_show.gif', get_lang('Show')) . ' '
287
-            . get_lang('AdvancedSearch') . '</span></a>');
286
+            . Display::return_icon('div_show.gif', get_lang('Show')).' '
287
+            . get_lang('AdvancedSearch').'</span></a>');
288 288
 
289 289
     echo '<div class="actions" >';
290 290
     if (api_is_platform_admin()) {
291
-        echo '<span class="fleft">' .
292
-                '<a href="' . api_get_path(WEB_PLUGIN_PATH) . 'ticket/src/new_ticket.php">' .
293
-                    Display::return_icon('add.png', $plugin->get_lang('TckNew'), '', '32') . '</a>' .
294
-                '<a href="' . api_get_self() . '?action=export' . $get_parameter . $get_parameter2 . '">' .
295
-                    Display::return_icon('export_excel.png', get_lang('Export'), '', '32') . '</a>' .
291
+        echo '<span class="fleft">'.
292
+                '<a href="'.api_get_path(WEB_PLUGIN_PATH).'ticket/src/new_ticket.php">'.
293
+                    Display::return_icon('add.png', $plugin->get_lang('TckNew'), '', '32').'</a>'.
294
+                '<a href="'.api_get_self().'?action=export'.$get_parameter.$get_parameter2.'">'.
295
+                    Display::return_icon('export_excel.png', get_lang('Export'), '', '32').'</a>'.
296 296
              '</span>';
297 297
     }
298 298
     $form->display();
299 299
     echo '</div>';
300
-    echo '<form action="' . api_get_self() . '" method="get" name="advanced_search" id="advanced_search" display:"none">
300
+    echo '<form action="'.api_get_self().'" method="get" name="advanced_search" id="advanced_search" display:"none">
301 301
             <div id="advanced_search_form" style="display: block;">
302 302
             <div>
303
-               <div class="form_header">' . get_lang('AdvancedSearch') . '</div>
303
+               <div class="form_header">' . get_lang('AdvancedSearch').'</div>
304 304
             </div>
305 305
             <table >
306 306
                <tbody>
307 307
                   <tr>
308 308
                      <td>
309 309
                         <div>
310
-                           <div class="label2">' . get_lang('Category') . ': </div>
311
-                           <div class="formw2" style="margin-top: -5px;">' . $select_types . '</div>
310
+                           <div class="label2">' . get_lang('Category').': </div>
311
+                           <div class="formw2" style="margin-top: -5px;">' . $select_types.'</div>
312 312
                         </div>
313 313
                      </td>
314 314
                      <td>
315 315
                         <div>
316
-                           <div class="label3">' . get_lang('User') . ': </div>
316
+                           <div class="label3">' . get_lang('User').': </div>
317 317
                            <div class="formw2"><input class="input-width" id="keyword_request_user" name="keyword_request_user" type="text"></div>
318 318
                         </div>
319 319
                      </td>
320 320
                      <td>
321 321
                         <div>
322
-                           <div class="label3">' . $plugin->get_lang('RegisterDate') . ': </div>
322
+                           <div class="label3">' . $plugin->get_lang('RegisterDate').': </div>
323 323
                            <div class="formw2"><input class="input-width" id="keyword_start_date_start" name="keyword_start_date_start" type="text"></div>
324 324
                         </div>
325 325
                      </td>
326 326
                      <td>
327 327
                         <div>
328
-                           <div class="label3"><input type="checkbox" name="keyword_dates" value="1">' . $plugin->get_lang('Untill') . '</div>
328
+                           <div class="label3"><input type="checkbox" name="keyword_dates" value="1">' . $plugin->get_lang('Untill').'</div>
329 329
                            <div class="formw2"><input class="input-width" id="keyword_start_date_end" name="keyword_start_date_end" type="text"></div>
330 330
                         </div>
331 331
                      </td>
@@ -333,42 +333,42 @@  discard block
 block discarded – undo
333 333
                   <tr >
334 334
                      <td>
335 335
                         <div>
336
-                           <div class="label2">' . $plugin->get_lang('AssignedTo') . ': </div>
337
-                           <div class="formw2 select-margin-top">' . $select_admins . '</div>
336
+                           <div class="label2">' . $plugin->get_lang('AssignedTo').': </div>
337
+                           <div class="formw2 select-margin-top">' . $select_admins.'</div>
338 338
                         </div>
339 339
                      </td>
340 340
                      <td>
341 341
                         <div>
342
-                           <div class="label3 remove-margin-top">' . get_lang('Status') . ':</div>
343
-                           <div class="formw2 select-margin-top">' . $select_status . '</div>
342
+                           <div class="label3 remove-margin-top">' . get_lang('Status').':</div>
343
+                           <div class="formw2 select-margin-top">' . $select_status.'</div>
344 344
                         </div>
345 345
                      </td>
346 346
                      <td>
347 347
                         <div>
348 348
                         <div>
349
-                           <div class="label3">' . $plugin->get_lang('Priority') . ': </div>
350
-                           <div class="formw2">' . $select_priority . '</div>
349
+                           <div class="label3">' . $plugin->get_lang('Priority').': </div>
350
+                           <div class="formw2">' . $select_priority.'</div>
351 351
                         </div>
352 352
                      </td>
353 353
                      <td>
354 354
                         <div>
355 355
                            <div>
356
-                              <div class="label3">' . get_lang('Status') . ': </div>
357
-                              <div class="formw2">' . $select_unread . '</div>
356
+                              <div class="label3">' . get_lang('Status').': </div>
357
+                              <div class="formw2">' . $select_unread.'</div>
358 358
                            </div>
359 359
                      </td>
360 360
                   </tr>
361 361
                   <tr>
362 362
                   <td>
363 363
                   <div >
364
-                  <div class="label4">' . get_lang('Course') . ': </div>
364
+                  <div class="label4">' . get_lang('Course').': </div>
365 365
                   <div class="formw2">
366 366
                   <input id="keyword_course" style="width: 170px;" name="keyword_course" type="text"></div>
367 367
                   </div>
368 368
                   </td>
369 369
                   <td colspan= "3">
370 370
                   <div>
371
-                  <button  name="submit_advanced" type="submit">' . get_lang('AdvancedSearch') . '</button>
371
+                  <button  name="submit_advanced" type="submit">' . get_lang('AdvancedSearch').'</button>
372 372
                   </div>
373 373
                   </td>
374 374
                   </tr>
@@ -381,12 +381,12 @@  discard block
 block discarded – undo
381 381
 } else {
382 382
     if ($plugin->get('allow_student_add') == 'true') {
383 383
         echo '<div class="actions" >';
384
-        echo '<span style="float:right;">' .
385
-                '<a href="' . api_get_path(WEB_PLUGIN_PATH) . 'ticket/src/new_ticket.php">' .
386
-                    Display::return_icon('add.png', $plugin->get_lang('TckNew'), '', '32') .
387
-                '</a>' .
384
+        echo '<span style="float:right;">'.
385
+                '<a href="'.api_get_path(WEB_PLUGIN_PATH).'ticket/src/new_ticket.php">'.
386
+                    Display::return_icon('add.png', $plugin->get_lang('TckNew'), '', '32').
387
+                '</a>'.
388 388
               '</span>';
389
-        echo '<span style="float:right;">' .
389
+        echo '<span style="float:right;">'.
390 390
         '</span>';
391 391
         echo '</div>';
392 392
     }
@@ -405,8 +405,8 @@  discard block
 block discarded – undo
405 405
     $table->set_header(8, get_lang('Actions'), true);
406 406
     $table->set_header(9, get_lang('Description'), true, array("style" => "width:200px"));
407 407
 } else {
408
-    echo '<center><h1>' . $plugin->get_lang('MyTickets') . '</h1></center>';
409
-    echo '<center><p>' . $plugin->get_lang('MsgWelcome') . '</p></center>';
408
+    echo '<center><h1>'.$plugin->get_lang('MyTickets').'</h1></center>';
409
+    echo '<center><p>'.$plugin->get_lang('MsgWelcome').'</p></center>';
410 410
     if (isset($_GET['message'])) {
411 411
         Display::display_confirmation_message($plugin->get_lang('TckSuccessSave'));
412 412
     }
Please login to merge, or discard this patch.
plugin/ticket/src/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,5 +7,5 @@
 block discarded – undo
7 7
  */
8 8
 
9 9
 require_once '../config.php';
10
-header('location:' . api_get_path(WEB_PLUGIN_PATH) . PLUGIN_NAME . '/src/myticket.php?message=success');
10
+header('location:'.api_get_path(WEB_PLUGIN_PATH).PLUGIN_NAME.'/src/myticket.php?message=success');
11 11
 exit;
Please login to merge, or discard this patch.
plugin/ticket/src/download.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@
 block discarded – undo
42 42
 $file_url = Database::escape_string($file_url);
43 43
 $title = $_GET['title'];
44 44
 $path_attachment = api_get_path(SYS_ARCHIVE_PATH);
45
-$path_message_attach = $path_attachment . 'plugin_ticket_messageattch/';
46
-$full_file_name = $path_message_attach . $file_url;
45
+$path_message_attach = $path_attachment.'plugin_ticket_messageattch/';
46
+$full_file_name = $path_message_attach.$file_url;
47 47
 if (Security::check_abs_path($full_file_name, $path_message_attach)) {
48 48
     DocumentManager::file_send_for_download($full_file_name, true, $title);
49 49
 }
Please login to merge, or discard this patch.
plugin/ticket/src/report.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@  discard block
 block discarded – undo
21 21
 $htmlHeadXtra[] = '
22 22
 <script language="javascript">
23 23
 $(document).ready(function(){
24
-    $( "#keyword_start_date_start" ).datepicker({ dateFormat: ' . "'yy-mm-dd'" . ' });
25
-    $( "#keyword_start_date_end" ).datepicker({ dateFormat: ' . "'yy-mm-dd'" . ' });
24
+    $( "#keyword_start_date_start" ).datepicker({ dateFormat: ' . "'yy-mm-dd'".' });
25
+    $( "#keyword_start_date_end" ).datepicker({ dateFormat: ' . "'yy-mm-dd'".' });
26 26
 });
27 27
 function validate(){
28 28
     if( $("#keyword_start_date_start").val() != "" &&  $("#keyword_start_date_end").val() != ""){
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
  */
92 92
 function js_str($s)
93 93
 {
94
-    return '"' . addcslashes($s, "\0..\37\"\\") . '"';
94
+    return '"'.addcslashes($s, "\0..\37\"\\").'"';
95 95
 }
96 96
 /**
97 97
  * This function is to show the ticket form
@@ -101,29 +101,29 @@  discard block
 block discarded – undo
101 101
 {
102 102
     global $tools;
103 103
     echo '<div class="ticket-form">';
104
-    echo '<form enctype="multipart/form-data" action="' . api_get_self() . '" method="post" name="send_ticket" id="send_ticket"
104
+    echo '<form enctype="multipart/form-data" action="'.api_get_self().'" method="post" name="send_ticket" id="send_ticket"
105 105
  	onsubmit="return validate()" style="width:100%">';
106 106
     $select_course = '<div id="user_request" >
107 107
 	 </div>';
108 108
     echo $select_course;
109 109
     //select status
110 110
     $select_tool = '<div class="row"  >
111
-	<div class="label2"  >' . get_lang('Tool') .':</div>
111
+	<div class="label2"  >' . get_lang('Tool').':</div>
112 112
 	<div class="formw2">';
113 113
     $select_tool .= '<select style="width: 95%; " name = "tool" id="tool" >';
114 114
 
115 115
     foreach ($tools as $tool) {
116
-        $select_tool .= "<option value = '" . $tool['id'] . "' selected >" . $tool['name'] . "</option>";
116
+        $select_tool .= "<option value = '".$tool['id']."' selected >".$tool['name']."</option>";
117 117
     }
118 118
     $select_tool .= "</select>";
119 119
     $select_tool .= '</div></div>';
120 120
     echo $select_tool;
121 121
     echo '<div class="row">
122
-	      <div class="label2">' . get_lang('From') . ':</div>
122
+	      <div class="label2">' . get_lang('From').':</div>
123 123
               <div class="formw2"><input id="keyword_start_date_start" name="keyword_start_date_start" type="text"></div>
124 124
           </div>
125 125
 	  <div class="row">
126
-	      <div class="label2"> ' . get_lang('To') . '</div>
126
+	      <div class="label2"> ' . get_lang('To').'</div>
127 127
 	      <div class="formw2"><input id="keyword_start_date_end" name="keyword_start_date_end" type="text"></div>
128 128
 	  </div>';
129 129
     echo '</div>';
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 		<div class="label2">
132 132
 		</div>
133 133
 		<div class="formw2">
134
-			<button class="save" name="report" type="submit" id="btnsubmit" disabled="disabled">' . get_lang('CompleteReport') .'</button>
134
+			<button class="save" name="report" type="submit" id="btnsubmit" disabled="disabled">' . get_lang('CompleteReport').'</button>
135 135
 		</div>
136 136
 	</div>';
137 137
 }
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
     $sql = "SELECT COUNT(u.user_id) AS total_number_of_items FROM $user_table u";
147 147
     if ((api_is_platform_admin() || api_is_session_admin()) && api_get_multiple_access_url()) {
148 148
         $access_url_rel_user_table = Database :: get_main_table(TABLE_MAIN_ACCESS_URL_REL_USER);
149
-        $sql.= " INNER JOIN $access_url_rel_user_table url_rel_user ON (u.user_id=url_rel_user.user_id)";
149
+        $sql .= " INNER JOIN $access_url_rel_user_table url_rel_user ON (u.user_id=url_rel_user.user_id)";
150 150
     }
151 151
     if (isset($_GET['keyword'])) {
152 152
         $keyword = Database::escape_string(trim($_GET['keyword']));
@@ -221,10 +221,10 @@  discard block
 block discarded – undo
221 221
     $webPath = api_get_path(WEB_PATH);
222 222
     while ($user = Database::fetch_row($res)) {
223 223
         $userPicture = UserManager::getUserPicture($user[0]);
224
-        $photo = '<img src="' . $userPicture . '" alt="' . api_get_person_name($user[2], $user[3]) . '" title="' . api_get_person_name($user[2], $user[3]) . '" />';
224
+        $photo = '<img src="'.$userPicture.'" alt="'.api_get_person_name($user[2], $user[3]).'" title="'.api_get_person_name($user[2], $user[3]).'" />';
225 225
         $user_id = $user[0];
226
-        $button = '<a  href="javascript:void(0)" onclick="load_course_list(\'div_' . $user_id . '\',' . $user_id . ')">
227
-					<img onclick="load_course_list(\'div_' . $user_id . '\',' . $user_id . ')"  src="' . $webPath . 'img/view_more_stats.gif" title="' . get_lang('Courses') . '" alt="' . get_lang('Courses') . '"/>
226
+        $button = '<a  href="javascript:void(0)" onclick="load_course_list(\'div_'.$user_id.'\','.$user_id.')">
227
+					<img onclick="load_course_list(\'div_' . $user_id.'\','.$user_id.')"  src="'.$webPath.'img/view_more_stats.gif" title="'.get_lang('Courses').'" alt="'.get_lang('Courses').'"/>
228 228
 					</a>&nbsp;&nbsp;';
229 229
         $users[] = array(
230 230
             $photo,
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
 
243 243
 Display::display_header('Reports');
244 244
 echo '<div class="actions">
245
-    <form action="' . api_get_self() . '" method="get" name="search_simple" id="search_simple">
245
+    <form action="' . api_get_self().'" method="get" name="search_simple" id="search_simple">
246 246
         <input name="user_id_request" id="user_id_request" type="hidden" value="">
247 247
         <span><label for="keyword">B&uacute;squeda del usuario: </label><input size="25" name="keyword" type="text" id="keyword"></span>
248 248
         <span><button class="search" name="submit" type="submit">Buscar</button></span>
@@ -276,12 +276,12 @@  discard block
 block discarded – undo
276 276
                 u.username , CONCAT(u.lastname, ' ', u.firstname) AS fullname,
277 277
                 DATE_SUB(access.access_date,INTERVAL 5 HOUR) AS  access_date,
278 278
                 c.title AS course, access_tool AS tool
279
-            FROM  " . Database::get_main_table(TABLE_STATISTIC_TRACK_E_ACCESS) . " access
280
-            LEFT JOIN  " . Database::get_main_table(TABLE_MAIN_USER) . " u ON access.access_user_id = u.user_id
281
-            LEFT JOIN  " . Database::get_main_table(TABLE_MAIN_COURSE) . " c ON access.c_id = c.id
282
-            WHERE access.c_id = " . $course_info['real_id'] . " AND u.user_id = $user_id ";
279
+            FROM  " . Database::get_main_table(TABLE_STATISTIC_TRACK_E_ACCESS)." access
280
+            LEFT JOIN  " . Database::get_main_table(TABLE_MAIN_USER)." u ON access.access_user_id = u.user_id
281
+            LEFT JOIN  " . Database::get_main_table(TABLE_MAIN_COURSE)." c ON access.c_id = c.id
282
+            WHERE access.c_id = " . $course_info['real_id']." AND u.user_id = $user_id ";
283 283
     if ($tool != '') {
284
-        $sql.="AND access.access_tool = '$tool' ";
284
+        $sql .= "AND access.access_tool = '$tool' ";
285 285
     }
286 286
 
287 287
     $start_date = Database::escape_string($_POST['keyword_start_date_start']);
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
         if ($start_date != '')
293 293
             $sql .= "  access_date >= '$start_date'   ";
294 294
         if ($end_date != '') {
295
-            $sql = ($start_date == '') ? $sql : ($sql . " AND ");
295
+            $sql = ($start_date == '') ? $sql : ($sql." AND ");
296 296
             $sql .= "  access_date <= '$end_date'   ";
297 297
         }
298 298
     }
Please login to merge, or discard this patch.
plugin/ticket/src/ticket.class.php 1 patch
Spacing   +61 added lines, -61 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     public static function get_all_tickets_status()
43 43
     {
44 44
         $table_support_status = Database::get_main_table(TABLE_TICKET_STATUS);
45
-        $sql = "SELECT * FROM " . $table_support_status;
45
+        $sql = "SELECT * FROM ".$table_support_status;
46 46
         $result = Database::query($sql);
47 47
         $types = array();
48 48
         while ($row = Database::fetch_assoc($result)) {
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
         }
158 158
 
159 159
         if ($ticket_id != 0) {
160
-            $ticket_code = "A" . str_pad(
160
+            $ticket_code = "A".str_pad(
161 161
                 (int) $ticket_id, 11, "0", STR_PAD_LEFT
162 162
             );
163 163
             $sql_update_code = "UPDATE $table_support_tickets
@@ -175,24 +175,24 @@  discard block
 block discarded – undo
175 175
                     $user = api_get_user_info($request_user);
176 176
                     $helpDeskMessage = '<table>
177 177
                                             <tr>
178
-                                                <td width="100px"><b>' . get_lang('User') . '</b></td>
179
-                                                <td width="400px">' . $user['firstname']. ' ' . $user['lastname'] . '</td>
178
+                                                <td width="100px"><b>' . get_lang('User').'</b></td>
179
+                                                <td width="400px">' . $user['firstname'].' '.$user['lastname'].'</td>
180 180
                                             </tr>
181 181
                                             <tr>
182
-                                                <td width="100px"><b>' . get_lang('Username') . '</b></td>
183
-                                                <td width="400px">' . $user['username'] . '</td>
182
+                                                <td width="100px"><b>' . get_lang('Username').'</b></td>
183
+                                                <td width="400px">' . $user['username'].'</td>
184 184
                                             </tr>
185 185
                                             <tr>
186
-                                                <td width="100px"><b>' . get_lang('Date') . '</b></td>
187
-                                                <td width="400px">' . api_convert_and_format_date($now, DATE_TIME_FORMAT_LONG) . '</td>
186
+                                                <td width="100px"><b>' . get_lang('Date').'</b></td>
187
+                                                <td width="400px">' . api_convert_and_format_date($now, DATE_TIME_FORMAT_LONG).'</td>
188 188
                                             </tr>
189 189
                                             <tr>
190
-                                                <td width="100px"><b>' . get_lang('Topic') . '</b></td>
191
-                                                <td width="400px">' . $subject . '</td>
190
+                                                <td width="100px"><b>' . get_lang('Topic').'</b></td>
191
+                                                <td width="400px">' . $subject.'</td>
192 192
                                             </tr>
193 193
                                             <tr>
194
-                                                <td width="100px"><b>' . get_lang('Description') . '</b></td>
195
-                                                <td width="400px">' . $content . '</td>
194
+                                                <td width="100px"><b>' . get_lang('Description').'</b></td>
195
+                                                <td width="400px">' . $content.'</td>
196 196
                                             </tr>
197 197
                                         </table>';
198 198
 
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
             if ($insert_id != $user_id) {
275 275
                 $info = api_get_user_info($user_id);
276 276
                 $sender = api_get_user_info($insert_id);
277
-                $href = api_get_path(WEB_PLUGIN_PATH) . PLUGIN_NAME . '/src/ticket_details.php?ticket_id=' . $ticket_id;
277
+                $href = api_get_path(WEB_PLUGIN_PATH).PLUGIN_NAME.'/src/ticket_details.php?ticket_id='.$ticket_id;
278 278
                 $message = sprintf($plugin->get_lang('TicketAssignedMsg'), $info['complete_name'], $href, $ticket_id);
279 279
                 $mailTitle = sprintf($plugin->get_lang('TicketAssignX'), $ticket_id);
280 280
                 api_mail_html(
@@ -319,10 +319,10 @@  discard block
 block discarded – undo
319 319
         $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
320 320
         $table_support_message_attachments = Database::get_main_table(TABLE_TICKET_MESSAGE_ATTACHMENTS);
321 321
         if ($sendConfirmation) {
322
-            $form = '<form action="ticket_details.php?ticket_id=' . $ticket_id . '" id="confirmticket" method="POST" >
323
-                         <p>' . $plugin->get_lang('TicketWasThisAnswerSatisfying') . '</p>
324
-                         <button name="response" id="responseyes" value="1">' . get_lang('Yes') . '</button>
325
-                         <button name="response" id="responseno" value="0">' . get_lang('No') . '</button>
322
+            $form = '<form action="ticket_details.php?ticket_id='.$ticket_id.'" id="confirmticket" method="POST" >
323
+                         <p>' . $plugin->get_lang('TicketWasThisAnswerSatisfying').'</p>
324
+                         <button name="response" id="responseyes" value="1">' . get_lang('Yes').'</button>
325
+                         <button name="response" id="responseno" value="0">' . get_lang('No').'</button>
326 326
                      </form>';
327 327
             $content .= $form;
328 328
             Database::query(
@@ -353,11 +353,11 @@  discard block
 block discarded – undo
353 353
             '$message_id',
354 354
             '$subject',
355 355
             '$content',
356
-            '" . Database::escape_string($_SERVER['REMOTE_ADDR']) . "',
356
+            '".Database::escape_string($_SERVER['REMOTE_ADDR'])."',
357 357
             '$user_id',
358
-            '" . $now . "',
358
+            '".$now."',
359 359
             '$user_id',
360
-            '" . $now . "',
360
+            '".$now."',
361 361
             '$status'
362 362
         )";
363 363
         Database::query($sql_insert_message);
@@ -428,11 +428,11 @@  discard block
 block discarded – undo
428 428
         } else {
429 429
             $new_file_name = uniqid('');
430 430
             $path_attachment = api_get_path(SYS_ARCHIVE_PATH);
431
-            $path_message_attach = $path_attachment . 'plugin_ticket_messageattch/';
431
+            $path_message_attach = $path_attachment.'plugin_ticket_messageattch/';
432 432
             if (!file_exists($path_message_attach)) {
433 433
                 @mkdir($path_message_attach, api_get_permissions_for_new_directories(), true);
434 434
             }
435
-            $new_path = $path_message_attach . $new_file_name;
435
+            $new_path = $path_message_attach.$new_file_name;
436 436
             if (is_uploaded_file($file_attach['tmp_name'])) {
437 437
                 @copy($file_attach['tmp_name'], $new_path);
438 438
             }
@@ -455,7 +455,7 @@  discard block
 block discarded – undo
455 455
                     '$ticket_id',
456 456
                     '$message_id',
457 457
                     '$message_attch_id',
458
-                    '" . $file_attach['size'] . "',
458
+                    '".$file_attach['size']."',
459 459
                     '$user_id',
460 460
                     '$now',
461 461
                     '$user_id',
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
             Database::query($sql);
465 465
 
466 466
             return array(
467
-                'path' => $path_message_attach . $safe_new_file_name,
467
+                'path' => $path_message_attach.$safe_new_file_name,
468 468
                 'filename' => $safe_file_name
469 469
             );
470 470
         }
@@ -689,14 +689,14 @@  discard block
 block discarded – undo
689 689
             $result_unread = Database::query($sql_unread);
690 690
             $unread = Database::fetch_object($result_unread)->unread;
691 691
             $userInfo = api_get_user_info($row['user_id']);
692
-            $hrefUser = $webPath . 'main/admin/user_information.php?user_id=' . $row['user_id'];
692
+            $hrefUser = $webPath.'main/admin/user_information.php?user_id='.$row['user_id'];
693 693
             $name = "<a href='$hrefUser'> {$userInfo['username']} </a>";
694 694
             $actions = "";
695 695
 
696 696
             if ($row['responsible'] != 0) {
697 697
                 $row['responsible'] = api_get_user_info($row['responsible']);
698 698
                 if (!empty($row['responsible'])) {
699
-                    $hrefResp = $webPath . 'main/admin/user_information.php?user_id=' . $row['responsible']['user_id'];
699
+                    $hrefResp = $webPath.'main/admin/user_information.php?user_id='.$row['responsible']['user_id'];
700 700
                     $row['responsible'] = "<a href='$hrefResp'> {$row['responsible']['username']} </a>";
701 701
                 } else {
702 702
                     $row['responsible'] = get_lang('UnknownUser');
@@ -704,9 +704,9 @@  discard block
 block discarded – undo
704 704
 
705 705
             } else {
706 706
                 if ($row['status_id'] != 'REE') {
707
-                    $row['responsible'] = '<span style="color:#ff0000;">' . $plugin->get_lang('ToBeAssigned') . '</span>';
707
+                    $row['responsible'] = '<span style="color:#ff0000;">'.$plugin->get_lang('ToBeAssigned').'</span>';
708 708
                 } else {
709
-                    $row['responsible'] = '<span style="color:#00ff00;">' . get_lang('MessageResent') . '</span>';
709
+                    $row['responsible'] = '<span style="color:#00ff00;">'.get_lang('MessageResent').'</span>';
710 710
                 }
711 711
             }
712 712
 
@@ -727,17 +727,17 @@  discard block
 block discarded – undo
727 727
             $row['col1'] = api_get_local_time($row['col1']);
728 728
             $row['col2'] = api_get_local_time($row['col2']);
729 729
             if ($isAdmin) {
730
-                $actions .= '<a href="ticket_details.php?ticket_id=' . $row['col0'] . '">' . Display::return_icon(
730
+                $actions .= '<a href="ticket_details.php?ticket_id='.$row['col0'].'">'.Display::return_icon(
731 731
                                 'synthese_view.gif', get_lang('Info')
732
-                        ) . '</a>&nbsp;&nbsp;';
732
+                        ).'</a>&nbsp;&nbsp;';
733 733
                 if ($row['priority_id'] == 'HGH' && $row['status_id'] != 'CLS') {
734
-                    $actions .= '<img src="' . $webCodePath . 'img/exclamation.png" border="0" />';
734
+                    $actions .= '<img src="'.$webCodePath.'img/exclamation.png" border="0" />';
735 735
                 }
736 736
                 $row['col0'] = Display::return_icon(
737 737
                                 $img_source, get_lang('Info')
738
-                        ) . '<a href="ticket_details.php?ticket_id=' . $row['col0'] . '">' . $row['ticket_code'] . '</a>';
738
+                        ).'<a href="ticket_details.php?ticket_id='.$row['col0'].'">'.$row['ticket_code'].'</a>';
739 739
                 if ($row['col7'] == 'PENDIENTE') {
740
-                    $row['col7'] = '<span style="color: #f00; font-weight:bold;">' . $row['col7'] . '</span>';
740
+                    $row['col7'] = '<span style="color: #f00; font-weight:bold;">'.$row['col7'].'</span>';
741 741
                 }
742 742
 
743 743
                 $ticket = array(
@@ -754,22 +754,22 @@  discard block
 block discarded – undo
754 754
                 );
755 755
             } else {
756 756
                 $actions = "";
757
-                $actions .= '<a href="ticket_details.php?ticket_id=' . $row['col0'] . '">' . Display::return_icon(
757
+                $actions .= '<a href="ticket_details.php?ticket_id='.$row['col0'].'">'.Display::return_icon(
758 758
                                 'synthese_view.gif', get_lang('Info')
759
-                        ) . '</a>&nbsp;&nbsp;';
759
+                        ).'</a>&nbsp;&nbsp;';
760 760
                 $row['col0'] = Display::return_icon(
761 761
                                 $img_source, get_lang('Info')
762
-                        ) . '<a href="ticket_details.php?ticket_id=' . $row['col0'] . '">' . $row['ticket_code'] . '</a>';
762
+                        ).'<a href="ticket_details.php?ticket_id='.$row['col0'].'">'.$row['ticket_code'].'</a>';
763 763
                 $now = api_strtotime(api_get_utc_datetime());
764 764
                 $last_edit_date = api_strtotime($row['sys_lastedit_datetime']);
765 765
                 $dif = $now - $last_edit_date;
766 766
 
767 767
                 if ($dif > 172800 && $row['priority_id'] == 'NRM' && $row['status_id'] != 'CLS') {
768
-                    $actions .= '<a href="myticket.php?ticket_id=' . $row['ticket_id'] . '&amp;action=alert">
769
-                                 <img src="' . $webPath . 'main/img/exclamation.png" border="0" /></a>';
768
+                    $actions .= '<a href="myticket.php?ticket_id='.$row['ticket_id'].'&amp;action=alert">
769
+                                 <img src="' . $webPath.'main/img/exclamation.png" border="0" /></a>';
770 770
                 }
771 771
                 if ($row['priority_id'] == 'HGH') {
772
-                    $actions .= '<img src="' . $webCodePath . 'img/admin_star.png" border="0" />';
772
+                    $actions .= '<img src="'.$webCodePath.'img/admin_star.png" border="0" />';
773 773
                 }
774 774
                 $ticket = array(
775 775
                     $row['col0'],
@@ -781,16 +781,16 @@  discard block
 block discarded – undo
781 781
                 );
782 782
             }
783 783
             if ($unread > 0) {
784
-                $ticket['0'] = $ticket['0'] . '&nbsp;&nbsp;(' . $unread . ')<a href="ticket_details.php?ticket_id=' . $row['ticket_id'] . '">
785
-                                <img src="' . $webPath . 'main/img/message_new.png" border="0" title="' . $unread . ' ' . get_lang('Messages') . '"/>
784
+                $ticket['0'] = $ticket['0'].'&nbsp;&nbsp;('.$unread.')<a href="ticket_details.php?ticket_id='.$row['ticket_id'].'">
785
+                                <img src="' . $webPath.'main/img/message_new.png" border="0" title="'.$unread.' '.get_lang('Messages').'"/>
786 786
                                 </a>';
787 787
             }
788 788
             if ($isAdmin) {
789
-                $ticket['0'] .= '&nbsp;&nbsp;<a  href="javascript:void(0)" onclick="load_history_ticket(\'div_' . $row['ticket_id'] . '\',' . $row['ticket_id'] . ')">
790
-					<img onclick="load_course_list(\'div_' . $row['ticket_id'] . '\',' . $row['ticket_id'] . ')" onmouseover="clear_course_list (\'div_' . $row['ticket_id'] . '\')" src="' . $webPath . 'main/img/history.gif" title="' . get_lang(
789
+                $ticket['0'] .= '&nbsp;&nbsp;<a  href="javascript:void(0)" onclick="load_history_ticket(\'div_'.$row['ticket_id'].'\','.$row['ticket_id'].')">
790
+					<img onclick="load_course_list(\'div_' . $row['ticket_id'].'\','.$row['ticket_id'].')" onmouseover="clear_course_list (\'div_'.$row['ticket_id'].'\')" src="'.$webPath.'main/img/history.gif" title="'.get_lang(
791 791
                                 'Historial'
792
-                        ) . '" alt="' . get_lang('Historial') . '"/>
793
-					<div class="blackboard_hide" id="div_' . $row['ticket_id'] . '">&nbsp;&nbsp;</div>
792
+                        ).'" alt="'.get_lang('Historial').'"/>
793
+					<div class="blackboard_hide" id="div_' . $row['ticket_id'].'">&nbsp;&nbsp;</div>
794 794
 					</a>&nbsp;&nbsp;';
795 795
             }
796 796
             $tickets[] = $ticket;
@@ -1028,8 +1028,8 @@  discard block
 block discarded – undo
1028 1028
                     }
1029 1029
                 }
1030 1030
                 $userInfo = api_get_user_info($row['request_user']);
1031
-                $row['user_url'] = '<a href="' . api_get_path(WEB_PATH) . 'main/admin/user_information.php?user_id=' . $row['request_user'] . '">
1032
-                ' . api_get_person_name($userInfo['firstname'], $userInfo['lastname']) . '</a>';
1031
+                $row['user_url'] = '<a href="'.api_get_path(WEB_PATH).'main/admin/user_information.php?user_id='.$row['request_user'].'">
1032
+                ' . api_get_person_name($userInfo['firstname'], $userInfo['lastname']).'</a>';
1033 1033
                 $ticket['usuario'] = $userInfo;
1034 1034
                 $ticket['ticket'] = $row;
1035 1035
             }
@@ -1046,10 +1046,10 @@  discard block
 block discarded – undo
1046 1046
             while ($row = Database::fetch_assoc($result)) {
1047 1047
                 $message = $row;
1048 1048
                 $completeName = api_get_person_name($row['firstname'], $row['lastname']);
1049
-                $href = $webPath . 'main/admin/user_information.php?user_id=' . $row['user_id'];
1049
+                $href = $webPath.'main/admin/user_information.php?user_id='.$row['user_id'];
1050 1050
                 //Check if user is an admin
1051 1051
                 $sql_admin = "SELECT user_id FROM $admin_table
1052
-		              WHERE user_id = '" . intval($message['user_id']) . "'
1052
+		              WHERE user_id = '".intval($message['user_id'])."'
1053 1053
                               LIMIT 1";
1054 1054
                 $result_admin = Database::query($sql_admin);
1055 1055
                 $message['admin'] = false;
@@ -1061,12 +1061,12 @@  discard block
 block discarded – undo
1061 1061
                 $sql = "SELECT *
1062 1062
                         FROM $table_support_message_attachments
1063 1063
                         WHERE
1064
-                            message_id = " . $row['message_id'] . " AND
1064
+                            message_id = ".$row['message_id']." AND
1065 1065
                             ticket_id= '$ticket_id'  ";
1066 1066
                 $result_attach = Database::query($sql);
1067 1067
                 while ($row2 = Database::fetch_assoc($result_attach)) {
1068
-                    $archiveURL = $archiveURL = $webPath . "plugin/" . PLUGIN_NAME . '/src/download.php?ticket_id=' . $ticket_id . '&file=';
1069
-                    $row2['attachment_link'] = $attach_icon . '&nbsp;<a href="' . $archiveURL . $row2['path'] . '&title=' . $row2['filename'] . '">' . $row2['filename'] . '</a>&nbsp;(' . $row2['size'] . ')';
1068
+                    $archiveURL = $archiveURL = $webPath."plugin/".PLUGIN_NAME.'/src/download.php?ticket_id='.$ticket_id.'&file=';
1069
+                    $row2['attachment_link'] = $attach_icon.'&nbsp;<a href="'.$archiveURL.$row2['path'].'&title='.$row2['filename'].'">'.$row2['filename'].'</a>&nbsp;('.$row2['size'].')';
1070 1070
                     $message['atachments'][] = $row2;
1071 1071
                 }
1072 1072
                 $ticket['messages'][] = $message;
@@ -1090,9 +1090,9 @@  discard block
 block discarded – undo
1090 1090
         );
1091 1091
         $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
1092 1092
         $now = api_get_utc_datetime();
1093
-        $sql = "UPDATE " . $table_support_messages . "
1094
-                SET status = 'LEI', sys_lastedit_user_id ='" . api_get_user_id() . "',
1095
-                sys_lastedit_datetime ='" . $now . "'
1093
+        $sql = "UPDATE ".$table_support_messages."
1094
+                SET status = 'LEI', sys_lastedit_user_id ='" . api_get_user_id()."',
1095
+                sys_lastedit_datetime ='" . $now."'
1096 1096
                 WHERE ticket_id ='$ticket_id' ";
1097 1097
 
1098 1098
         if (api_is_platform_admin()) {
@@ -1191,10 +1191,10 @@  discard block
 block discarded – undo
1191 1191
         $user_id = intval($user_id);
1192 1192
 
1193 1193
         $now = api_get_utc_datetime();
1194
-        $sql = "UPDATE " . $table_support_tickets . " SET
1194
+        $sql = "UPDATE ".$table_support_tickets." SET
1195 1195
                 status_id = '$status_id',
1196 1196
                 sys_lastedit_user_id ='$user_id',
1197
-                sys_lastedit_datetime ='" . $now . "'
1197
+                sys_lastedit_datetime ='".$now."'
1198 1198
                 WHERE ticket_id ='$ticket_id'";
1199 1199
         $result = Database::query($sql);
1200 1200
 
@@ -1279,7 +1279,7 @@  discard block
 block discarded – undo
1279 1279
         $sql = "UPDATE $table_support_tickets SET
1280 1280
                     status_id = 'CLS',
1281 1281
                     sys_lastedit_user_id ='$user_id',
1282
-                    sys_lastedit_datetime ='" . $now . "',
1282
+                    sys_lastedit_datetime ='".$now."',
1283 1283
                     end_date ='$now'
1284 1284
                 WHERE ticket_id ='$ticket_id'";
1285 1285
         Database::query($sql);
@@ -1336,8 +1336,8 @@  discard block
 block discarded – undo
1336 1336
             $row['assigned_date'] = api_convert_and_format_date(
1337 1337
                 api_get_local_time($row['assigned_date']), '%d/%m/%y-%H:%M:%S', _api_get_timezone()
1338 1338
             );
1339
-            $row['assignuser'] = ($row['user_id'] != 0) ? ('<a href="' . $webpath . 'main/admin/user_information.php?user_id=' . $row['user_id'] . '"  target="_blank">' . $assignuser['username'] . '</a>') : get_lang('Unassign');
1340
-            $row['insertuser'] = '<a href="' . $webpath . 'main/admin/user_information.php?user_id=' . $row['sys_insert_user_id'] . '"  target="_blank">' . $insertuser['username'] . '</a>';
1339
+            $row['assignuser'] = ($row['user_id'] != 0) ? ('<a href="'.$webpath.'main/admin/user_information.php?user_id='.$row['user_id'].'"  target="_blank">'.$assignuser['username'].'</a>') : get_lang('Unassign');
1340
+            $row['insertuser'] = '<a href="'.$webpath.'main/admin/user_information.php?user_id='.$row['sys_insert_user_id'].'"  target="_blank">'.$insertuser['username'].'</a>';
1341 1341
             $history[] = $row;
1342 1342
         }
1343 1343
         return $history;
@@ -1533,7 +1533,7 @@  discard block
 block discarded – undo
1533 1533
         while ($row = Database::fetch_assoc($result)) {
1534 1534
             if ($row['responsable'] != 0) {
1535 1535
                 $row['responsable'] = api_get_user_info($row['responsable']);
1536
-                $row['responsable'] = $row['responsable']['firstname'] . ' ' . $row['responsable']['lastname'];
1536
+                $row['responsable'] = $row['responsable']['firstname'].' '.$row['responsable']['lastname'];
1537 1537
             }
1538 1538
             $row['sys_insert_datetime'] = api_format_date(
1539 1539
                     $row['sys_insert_datetime'], '%d/%m/%y - %I:%M:%S %p'
Please login to merge, or discard this patch.
plugin/ticket/src/course_user_list.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,8 @@
 block discarded – undo
38 38
 $courseSelect = Display::select('course_id', $arrCourseList, 0, array(), false);
39 39
 $courseControl = Display::div($courseSelect, array('class' => 'controls'));
40 40
 
41
-$userDiv = Display::div($userLabel . " " . $userControl, array('class' => 'control-group'));
42
-$courseDiv = Display::div($courseLabel . " " . $courseControl, array('class' => 'control-group'));
41
+$userDiv = Display::div($userLabel." ".$userControl, array('class' => 'control-group'));
42
+$courseDiv = Display::div($courseLabel." ".$courseControl, array('class' => 'control-group'));
43 43
 echo $userDiv;
44 44
 echo $courseDiv;
45 45
 
Please login to merge, or discard this patch.
plugin/ticket/src/ticket_plugin.class.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     public function install()
36 36
     {
37 37
         // Create database tables and insert a Tab
38
-        require_once api_get_path(SYS_PLUGIN_PATH) . PLUGIN_NAME . '/database.php';
38
+        require_once api_get_path(SYS_PLUGIN_PATH).PLUGIN_NAME.'/database.php';
39 39
 
40 40
     }
41 41
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         $rsTab = $this->deleteTab($plugSetting['comment']);
85 85
 
86 86
         if ($rsTab) {
87
-            echo "<script>location.href = '" . $_SERVER['REQUEST_URI'] . "';</script>";
87
+            echo "<script>location.href = '".$_SERVER['REQUEST_URI']."';</script>";
88 88
         }
89 89
     }
90 90
 }
Please login to merge, or discard this patch.
plugin/ticket/src/assign_tickets.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 echo '<div id="confirmation"></div>';
20 20
 $id = intval($_GET['id']);
21 21
 $tblWeeklyReport = Database::get_main_table('rp_reporte_semanas');
22
-$sql ="SELECT * FROM $tblWeeklyReport WHERE id = '$id'";
22
+$sql = "SELECT * FROM $tblWeeklyReport WHERE id = '$id'";
23 23
 $sql_tasks = "SELECT id AS colid, title as coltitle
24 24
     FROM ".Database::get_course_table(TABLE_STUDENT_PUBLICATION)."
25 25
     WHERE parent_id = 0
@@ -44,27 +44,27 @@  discard block
 block discarded – undo
44 44
 $result_forum = Database::query($sql_forum);
45 45
 
46 46
 echo '<div class="row">
47
-        <input type="hidden" id="rs_id" name ="rs_id" value="' . $id . '">
48
-        <div class="formw">' . get_lang('PleaseSelectTasks') . '</div>
47
+        <input type="hidden" id="rs_id" name ="rs_id" value="' . $id.'">
48
+        <div class="formw">' . get_lang('PleaseSelectTasks').'</div>
49 49
     </div>';
50 50
 echo '<div class="row"><div class="formw"><select name ="work_id" id="work_id">';
51
-echo '<option value="0"' . (($row['colid'] == $rs->work_id) ? "selected" : "") . '>' . get_lang('PleaseSelect') . '</option>';
51
+echo '<option value="0"'.(($row['colid'] == $rs->work_id) ? "selected" : "").'>'.get_lang('PleaseSelect').'</option>';
52 52
 while ($row = Database::fetch_assoc($result_tasks)) {
53
-    echo '<option value="' . $row['colid'] . '"' . (($row['colid'] == $rs->work_id) ? "selected" : "") . '>' . $row['coltitle'] . '</option>';
53
+    echo '<option value="'.$row['colid'].'"'.(($row['colid'] == $rs->work_id) ? "selected" : "").'>'.$row['coltitle'].'</option>';
54 54
 }
55 55
 echo '</select></div><div>';
56 56
 echo '<div class="row">
57
-        <div class="formw">' . get_lang('PleaseSelectThread') . '</div>
57
+        <div class="formw">' . get_lang('PleaseSelectThread').'</div>
58 58
     </div>';
59 59
 echo '<div class="row"><div class="formw"><select name ="forum_id" id="forum_id">';
60
-echo '<option value="0"' . (($row['colid'] == $rs->work_id) ? "forum_id" : "") . '>' . get_lang('PleaseSelect') . '</option>';
60
+echo '<option value="0"'.(($row['colid'] == $rs->work_id) ? "forum_id" : "").'>'.get_lang('PleaseSelect').'</option>';
61 61
 while ($row = Database::fetch_assoc($result_forum)) {
62
-    echo '<option value="' . $row['colid'] . '"' . (($row['colid'] == $rs->forum_id) ? "selected" : "") . '>' . $row['coltitle'] . '</option>';
62
+    echo '<option value="'.$row['colid'].'"'.(($row['colid'] == $rs->forum_id) ? "selected" : "").'>'.$row['coltitle'].'</option>';
63 63
 }
64 64
 echo '</select></div><div>';
65 65
 echo '<div class="row">
66 66
         <div class="formw">
67
-        <button class="save" name="edit" type="button" value="' . get_lang('Edit') . '" onClick="save(' . "$id" . ');">' . get_lang('Edit') . '</button>
67
+        <button class="save" name="edit" type="button" value="' . get_lang('Edit').'" onClick="save('."$id".');">'.get_lang('Edit').'</button>
68 68
         </div>
69 69
     </div>';
70 70
 echo '</form>';
Please login to merge, or discard this patch.