@@ -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 | } |
@@ -289,8 +289,9 @@ |
||
289 | 289 | |
290 | 290 | if ($start_date != '' || $end_date != '') { |
291 | 291 | $sql .= " HAVING "; |
292 | - if ($start_date != '') |
|
293 | - $sql .= " access_date >= '$start_date' "; |
|
292 | + if ($start_date != '') { |
|
293 | + $sql .= " access_date >= '$start_date' "; |
|
294 | + } |
|
294 | 295 | if ($end_date != '') { |
295 | 296 | $sql = ($start_date == '') ? $sql : ($sql . " AND "); |
296 | 297 | $sql .= " access_date <= '$end_date' "; |
@@ -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 |
@@ -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); |
@@ -53,7 +53,7 @@ |
||
53 | 53 | $strings['SrcEmail'] = "Email"; |
54 | 54 | $strings['SrcPhone'] = "Teléfono"; |
55 | 55 | $strings['SrcPresential'] = "Presencial"; |
56 | -$strings['TicketAssignedMsg'] = "<p>Estimado(a) %s </p><p>Se le ha sido asignado el <a href=\"%s\">ticket %s</a></p><p>Mensaje enviado desde el sistema de ticket.</p>"; |
|
56 | +$strings['TicketAssignedMsg'] = "<p>Estimado(a) %s </p><p>Se le ha sido asignado el <a href=\"%s\">ticket %s</a></p><p>Mensaje enviado desde el sistema de ticket.</p>"; |
|
57 | 57 | $strings['TicketAssignX'] = "[TICKETS] Asignación de Ticket #%s "; |
58 | 58 | $strings['AreYouSureYouWantToCloseTheTicket'] = "¿Está seguro que quiere cerrar el ticket?"; |
59 | 59 | $strings['AreYouSureYouWantToUnassignTheTicket'] = "¿Está seguro que quiere desasignarse el ticket?"; |
@@ -38,7 +38,7 @@ |
||
38 | 38 | define('CAT_FORO', 'FOR'); |
39 | 39 | define('CAT_ANNU', 'ANN'); |
40 | 40 | |
41 | -require_once __DIR__ . '/../../main/inc/global.inc.php'; |
|
41 | +require_once __DIR__.'/../../main/inc/global.inc.php'; |
|
42 | 42 | |
43 | -require_once api_get_path(PLUGIN_PATH) . PLUGIN_NAME . '/src/ticket_plugin.class.php'; |
|
44 | -require_once api_get_path(PLUGIN_PATH) . PLUGIN_NAME . '/src/ticket.class.php'; |
|
43 | +require_once api_get_path(PLUGIN_PATH).PLUGIN_NAME.'/src/ticket_plugin.class.php'; |
|
44 | +require_once api_get_path(PLUGIN_PATH).PLUGIN_NAME.'/src/ticket.class.php'; |
@@ -7,15 +7,15 @@ |
||
7 | 7 | * Initialization |
8 | 8 | */ |
9 | 9 | $convert_lang_to_code = array( |
10 | - "english" => "en_US", |
|
11 | - "french" => "fr_BE", |
|
12 | - "dutch" => "nl_NL", |
|
13 | - "german" => "de_DE", |
|
14 | - "japanese" => "ja_JP", |
|
15 | - "danish" => "da_DK", |
|
10 | + "english" => "en_US", |
|
11 | + "french" => "fr_BE", |
|
12 | + "dutch" => "nl_NL", |
|
13 | + "german" => "de_DE", |
|
14 | + "japanese" => "ja_JP", |
|
15 | + "danish" => "da_DK", |
|
16 | 16 | ); |
17 | 17 | if(!empty($_SESSION['user_language_choice']) && !empty($convert_lang_to_code[$_SESSION['user_language_choice']])){ |
18 | - $code = $convert_lang_to_code[$_SESSION['user_language_choice']]; |
|
19 | - $locale = setlocale(LC_TIME,$code); |
|
18 | + $code = $convert_lang_to_code[$_SESSION['user_language_choice']]; |
|
19 | + $locale = setlocale(LC_TIME,$code); |
|
20 | 20 | } |
21 | 21 | $date = strftime('%c'); |
@@ -14,8 +14,8 @@ |
||
14 | 14 | "japanese" => "ja_JP", |
15 | 15 | "danish" => "da_DK", |
16 | 16 | ); |
17 | -if(!empty($_SESSION['user_language_choice']) && !empty($convert_lang_to_code[$_SESSION['user_language_choice']])){ |
|
17 | +if (!empty($_SESSION['user_language_choice']) && !empty($convert_lang_to_code[$_SESSION['user_language_choice']])) { |
|
18 | 18 | $code = $convert_lang_to_code[$_SESSION['user_language_choice']]; |
19 | - $locale = setlocale(LC_TIME,$code); |
|
19 | + $locale = setlocale(LC_TIME, $code); |
|
20 | 20 | } |
21 | 21 | $date = strftime('%c'); |