@@ -23,7 +23,7 @@ discard block |
||
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 |
||
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 |
||
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(\' ' . Display::return_icon('div_hide.gif', get_lang('Hide'), array('style' => 'vertical-align:middle')) . ' ' . get_lang('AdvancedSearch') . '\'); |
|
54 | + $("#img_plus_and_minus").html(\' ' . Display::return_icon('div_hide.gif', get_lang('Hide'), array('style' => 'vertical-align:middle')).' '.get_lang('AdvancedSearch').'\'); |
|
55 | 55 | } else { |
56 | 56 | $("#advanced_search_form").css("display","none"); |
57 | - $("#img_plus_and_minus").html(\' ' . Display::return_icon('div_show.gif', get_lang('Show'), array('style' => 'vertical-align:middle')) . ' ' . get_lang('AdvancedSearch') . '\'); |
|
57 | + $("#img_plus_and_minus").html(\' ' . Display::return_icon('div_show.gif', get_lang('Show'), array('style' => 'vertical-align:middle')).' '.get_lang('AdvancedSearch').'\'); |
|
58 | 58 | } |
59 | 59 | } |
60 | 60 | </script> |
@@ -237,42 +237,42 @@ discard block |
||
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 |
||
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"> ' |
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 |
||
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 |
||
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 |
||
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 | } |
@@ -7,5 +7,5 @@ |
||
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; |
@@ -42,8 +42,8 @@ |
||
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 | } |
@@ -21,8 +21,8 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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> '; |
229 | 229 | $users[] = array( |
230 | 230 | $photo, |
@@ -242,7 +242,7 @@ discard block |
||
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ú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 |
||
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 |
||
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 | } |
@@ -38,8 +38,8 @@ |
||
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 |
@@ -35,7 +35,7 @@ discard block |
||
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 |
||
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 | } |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | var url = this.href; |
18 | 18 | var dialog = $("#dialog"); |
19 | 19 | if ($("#dialog").length == 0) { |
20 | - dialog = $("' . '<div id="dialog" style="display:hidden"></div>' . '").appendTo("body"); |
|
20 | + dialog = $("' . '<div id="dialog" style="display:hidden"></div>'.'").appendTo("body"); |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | // load remote content |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | $.ajax({ |
57 | 57 | contentType: "application/x-www-form-urlencoded", |
58 | 58 | beforeSend: function(objeto) { |
59 | - $("div#confirmation").html("<img src=\"' . api_get_path(WEB_LIBRARY_PATH) . 'javascript/indicator.gif\" />"); }, |
|
59 | + $("div#confirmation").html("<img src=\"' . api_get_path(WEB_LIBRARY_PATH).'javascript/indicator.gif\" />"); }, |
|
60 | 60 | type: "POST", |
61 | 61 | url: "update_report.php", |
62 | 62 | data: "work_id="+work_id+"&forum_id="+forum_id+"&rs_id="+rs_id, |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | $course_code = api_get_course_id(); |
96 | 96 | $results = initializeReport($course_code); |
97 | 97 | if (isset($_GET['action'])) { |
98 | - Export::arrayToXls($results['export'], "COURSE_USER_REPORT" . $course_code); |
|
98 | + Export::arrayToXls($results['export'], "COURSE_USER_REPORT".$course_code); |
|
99 | 99 | } else { |
100 | 100 | Display::display_header(); |
101 | 101 | api_protect_course_script(); |
@@ -16,7 +16,7 @@ |
||
16 | 16 | if (!api_is_allowed_to_edit()) { |
17 | 17 | Display::display_error_message($plugin->get_lang("DeniedAccess")); |
18 | 18 | } else { |
19 | - $sql = "UPDATE " . Database::get_main_table('rp_reporte_semanas') . " |
|
19 | + $sql = "UPDATE ".Database::get_main_table('rp_reporte_semanas')." |
|
20 | 20 | SET work_id = '$work_id', forum_id = '$forum_id' |
21 | 21 | WHERE id ='$rs_id'"; |
22 | 22 | Database::query($sql); |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | $table_post = Database::get_course_table(TABLE_FORUM_POST); |
22 | 22 | $table_work = Database::get_course_table(TABLE_STUDENT_PUBLICATION); |
23 | 23 | $course_code = Database::escape_string($course_code); |
24 | - $res = Database::query("SELECT COUNT(*) as cant FROM $table_reporte_semanas WHERE course_code = '" . $course_code . "'"); |
|
24 | + $res = Database::query("SELECT COUNT(*) as cant FROM $table_reporte_semanas WHERE course_code = '".$course_code."'"); |
|
25 | 25 | $sqlWeeks = "SELECT semanas FROM $table_semanas_curso WHERE course_code = '$course_code'"; |
26 | 26 | $resWeeks = Database::query($sqlWeeks); |
27 | 27 | $weeks = Database::fetch_object($resWeeks); |
@@ -105,52 +105,52 @@ discard block |
||
105 | 105 | $lineHeaderExport = array(null, null); |
106 | 106 | $lineHeaderExport2 = array(null, ull); |
107 | 107 | while ($rowe = Database::fetch_assoc($resultHeader)) { |
108 | - $lineHeaderExport[] = utf8_decode('Work' . $rowe['week_id']); |
|
109 | - $lineHeaderExport[] = utf8_decode('Forum' . $rowe['week_id']); |
|
108 | + $lineHeaderExport[] = utf8_decode('Work'.$rowe['week_id']); |
|
109 | + $lineHeaderExport[] = utf8_decode('Forum'.$rowe['week_id']); |
|
110 | 110 | //$fila_export_encabezado[] = utf8_decode('Eval'.$rowe['week_id']); |
111 | 111 | //$fila_export_encabezado[] = utf8_decode('PC'.$rowe['week_id']); |
112 | 112 | $lineHeaderExport2[] = utf8_decode($rowe['work_title']); |
113 | 113 | $lineHeaderExport2[] = utf8_decode($rowe['thread_title']); |
114 | 114 | //$fila_export_encabezado2[] = utf8_decode($rowe['eval_title']); |
115 | 115 | //$fila_export_encabezado2[] = utf8_decode($rowe['pc_title']); |
116 | - $fila_export = array('Work' . $rowe['week_id'], 'Forum' . $rowe['week_id'], 'Eval' . $rowe['week_id'], 'PC' . $rowe['week_id']); |
|
116 | + $fila_export = array('Work'.$rowe['week_id'], 'Forum'.$rowe['week_id'], 'Eval'.$rowe['week_id'], 'PC'.$rowe['week_id']); |
|
117 | 117 | if ($rowe['week_id'] > (($page - 1) * 7) && $rowe['week_id'] <= (7 * $page)) { |
118 | 118 | $ids[$rowe['week_id']] = $rowe['id']; |
119 | - $line.='<th> |
|
120 | - <a href="#" onClick="showContent(' . "'tarea" . $rowe['week_id'] . "'" . ');">Work' . $rowe['week_id'] . ' |
|
121 | - <div class="blackboard_hide" id="tarea' . $rowe['week_id'] . '">' . $rowe['work_title'] . '</div> |
|
119 | + $line .= '<th> |
|
120 | + <a href="#" onClick="showContent(' . "'tarea".$rowe['week_id']."'".');">Work'.$rowe['week_id'].' |
|
121 | + <div class="blackboard_hide" id="tarea' . $rowe['week_id'].'">'.$rowe['work_title'].'</div> |
|
122 | 122 | </a></th>'; |
123 | - $line.= '<th> |
|
124 | - <a href="#" onClick="showContent(' . "'foro" . $rowe['week_id'] . "'" . ');">Forum' . $rowe['week_id'] . ' |
|
125 | - <div class="blackboard_hide" id="foro' . $rowe['week_id'] . '">' . $rowe['thread_title'] . '</div> |
|
123 | + $line .= '<th> |
|
124 | + <a href="#" onClick="showContent(' . "'foro".$rowe['week_id']."'".');">Forum'.$rowe['week_id'].' |
|
125 | + <div class="blackboard_hide" id="foro' . $rowe['week_id'].'">'.$rowe['thread_title'].'</div> |
|
126 | 126 | </a> |
127 | 127 | </th>'; |
128 | 128 | } |
129 | 129 | } |
130 | 130 | $tableExport[] = $lineHeaderExport; |
131 | 131 | $tableExport[] = $lineHeaderExport2; |
132 | - $line.= '</tr>'; |
|
132 | + $line .= '</tr>'; |
|
133 | 133 | |
134 | 134 | $html = '<form action="tutor.php" name="semanas" id="semanas" method="POST"> |
135 | 135 | <div class="row"> |
136 | - ' . get_lang('SelectWeeksSpan') . ' |
|
136 | + ' . get_lang('SelectWeeksSpan').' |
|
137 | 137 | <select name="weeksNumber" id="weeksNumber" onChange="submit();"> |
138 | - <option value="7" ' . (($weeksCount == 7) ? 'selected="selected"' : "") . '>7 weeks</option> |
|
139 | - <option value="14" ' . (($weeksCount == 14) ? 'selected="selected"' : "") . '>14 weeks</option> |
|
138 | + <option value="7" ' . (($weeksCount == 7) ? 'selected="selected"' : "").'>7 weeks</option> |
|
139 | + <option value="14" ' . (($weeksCount == 14) ? 'selected="selected"' : "").'>14 weeks</option> |
|
140 | 140 | </select>'; |
141 | 141 | |
142 | 142 | |
143 | 143 | if ($weeksCount == 14) { |
144 | - $html .= '<span style="float:right;"><a href="tutor.php?page=' . (($page == 1) ? 2 : 1) . '">' . (($page == 1) ? "Siguiente" : "Anterior") . '</a></span>'; |
|
144 | + $html .= '<span style="float:right;"><a href="tutor.php?page='.(($page == 1) ? 2 : 1).'">'.(($page == 1) ? "Siguiente" : "Anterior").'</a></span>'; |
|
145 | 145 | } |
146 | - $html .= '<span style="float:right;"><a href="' . api_get_self() . '?action=export' . $get_parameter . $get_parameter2 . '">' . Display::return_icon('export_excel.png', get_lang('Export'), '', '32') . '</a></span>'; |
|
146 | + $html .= '<span style="float:right;"><a href="'.api_get_self().'?action=export'.$get_parameter.$get_parameter2.'">'.Display::return_icon('export_excel.png', get_lang('Export'), '', '32').'</a></span>'; |
|
147 | 147 | |
148 | 148 | $html .= '</form>'; |
149 | 149 | $html .= '<table class="reports">'; |
150 | 150 | $html .= '<tr> |
151 | 151 | <th ></th>'; |
152 | 152 | for ($i = (7 * $page - 6); $i <= $page * 7; $i++) { |
153 | - $html .= '<th colspan="2">Week ' . $i . '<a href="assign_tickets.php?id=' . $ids[$i] . '" class="ajax">' . Display::return_icon('edit.png', get_lang('Edit'), array('width' => '16', 'height' => '16'), 22) . '</a></th>'; |
|
153 | + $html .= '<th colspan="2">Week '.$i.'<a href="assign_tickets.php?id='.$ids[$i].'" class="ajax">'.Display::return_icon('edit.png', get_lang('Edit'), array('width' => '16', 'height' => '16'), 22).'</a></th>'; |
|
154 | 154 | } |
155 | 155 | $html .= '</tr>'; |
156 | 156 | $html .= $line; |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | if ($row['week_id'] > (($page - 1) * 7) && $row['week_id'] <= (7 * $page)) { |
168 | 168 | $results[$row['username']][$row['week_id']] = $row; |
169 | 169 | if (count($results[$row['username']]) == 7) { |
170 | - $html.= showStudentResult($results[$row['username']], $page); |
|
170 | + $html .= showStudentResult($results[$row['username']], $page); |
|
171 | 171 | } |
172 | 172 | } |
173 | 173 | if (count($resultadose[$row['username']]) == $weeksCount) { |
@@ -190,12 +190,12 @@ discard block |
||
190 | 190 | $inicio = (7 * $pagina - 6); |
191 | 191 | $fila = '<tr>'; |
192 | 192 | |
193 | - $fila.= '<td><a href="' . api_get_path(WEB_CODE_PATH) . 'user/userInfo.php?' . api_get_cidreq() . '&uInfo=' . $datos[$inicio]['user_id'] . '">' . $datos[$inicio]['username'] . '</a></td>'; |
|
193 | + $fila .= '<td><a href="'.api_get_path(WEB_CODE_PATH).'user/userInfo.php?'.api_get_cidreq().'&uInfo='.$datos[$inicio]['user_id'].'">'.$datos[$inicio]['username'].'</a></td>'; |
|
194 | 194 | foreach ($datos as $dato) { |
195 | - $fila.= '<td align="center">' . (($dato['work_ok'] == 1) ? Display::return_icon('check.png') : Display::return_icon('aspa.png')) . '</td>'; |
|
196 | - $fila.= '<td align="center">' . (($dato['thread_ok'] == 1) ? Display::return_icon('check.png') : Display::return_icon('aspa.png')) . '</td>'; |
|
195 | + $fila .= '<td align="center">'.(($dato['work_ok'] == 1) ? Display::return_icon('check.png') : Display::return_icon('aspa.png')).'</td>'; |
|
196 | + $fila .= '<td align="center">'.(($dato['thread_ok'] == 1) ? Display::return_icon('check.png') : Display::return_icon('aspa.png')).'</td>'; |
|
197 | 197 | } |
198 | - $fila.= '</tr>'; |
|
198 | + $fila .= '</tr>'; |
|
199 | 199 | return $fila; |
200 | 200 | } |
201 | 201 |