@@ -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 | } |
@@ -42,7 +42,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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> '; |
|
732 | + ).'</a> '; |
|
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 |
||
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> '; |
|
759 | + ).'</a> '; |
|
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'] . '&action=alert"> |
|
769 | - <img src="' . $webPath . 'main/img/exclamation.png" border="0" /></a>'; |
|
768 | + $actions .= '<a href="myticket.php?ticket_id='.$row['ticket_id'].'&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 |
||
781 | 781 | ); |
782 | 782 | } |
783 | 783 | if ($unread > 0) { |
784 | - $ticket['0'] = $ticket['0'] . ' (' . $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'].' ('.$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'] .= ' <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'] .= ' <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'] . '"> </div> |
|
792 | + ).'" alt="'.get_lang('Historial').'"/> |
|
793 | + <div class="blackboard_hide" id="div_' . $row['ticket_id'].'"> </div> |
|
794 | 794 | </a> '; |
795 | 795 | } |
796 | 796 | $tickets[] = $ticket; |
@@ -1028,8 +1028,8 @@ discard block |
||
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 |
||
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 |
||
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 . ' <a href="' . $archiveURL . $row2['path'] . '&title=' . $row2['filename'] . '">' . $row2['filename'] . '</a> (' . $row2['size'] . ')'; |
|
1068 | + $archiveURL = $archiveURL = $webPath."plugin/".PLUGIN_NAME.'/src/download.php?ticket_id='.$ticket_id.'&file='; |
|
1069 | + $row2['attachment_link'] = $attach_icon.' <a href="'.$archiveURL.$row2['path'].'&title='.$row2['filename'].'">'.$row2['filename'].'</a> ('.$row2['size'].')'; |
|
1070 | 1070 | $message['atachments'][] = $row2; |
1071 | 1071 | } |
1072 | 1072 | $ticket['messages'][] = $message; |
@@ -1090,9 +1090,9 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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' |
@@ -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 | } |
@@ -19,7 +19,7 @@ discard block |
||
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 |
||
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>'; |
@@ -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 |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | 'name' => $status |
186 | 186 | ); |
187 | 187 | Database::insert($table, $attributes); |
188 | - $i ++; |
|
188 | + $i++; |
|
189 | 189 | } |
190 | 190 | //END |
191 | 191 | |
@@ -221,5 +221,5 @@ discard block |
||
221 | 221 | $rsTab = $objPlugin->addTab('Ticket', 'plugin/ticket/src/myticket.php'); |
222 | 222 | |
223 | 223 | if ($rsTab) { |
224 | - echo "<script>location.href = '" . $_SERVER['REQUEST_URI'] . "';</script>"; |
|
224 | + echo "<script>location.href = '".$_SERVER['REQUEST_URI']."';</script>"; |
|
225 | 225 | } |