@@ -1,16 +1,16 @@ |
||
1 | 1 | <?php |
2 | 2 | /* For licensing terms, see /license.txt */ |
3 | 3 | /** |
4 | - * |
|
5 | - * @package chamilo.plugin.ticket |
|
6 | - */ |
|
4 | + * |
|
5 | + * @package chamilo.plugin.ticket |
|
6 | + */ |
|
7 | 7 | |
8 | 8 | require_once '../config.php'; |
9 | 9 | $plugin = TicketPlugin::create(); |
10 | 10 | |
11 | 11 | api_protect_course_script(); |
12 | 12 | if (!api_is_allowed_to_edit()) { |
13 | - api_not_allowed(); |
|
13 | + api_not_allowed(); |
|
14 | 14 | } |
15 | 15 | $course_info = api_get_course_info(); |
16 | 16 | $course_code = $course_info['code']; |
@@ -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); |
@@ -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 | } |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Contains the SQL for the tickets management plugin database structure |
|
4 | - */ |
|
3 | + * Contains the SQL for the tickets management plugin database structure |
|
4 | + */ |
|
5 | 5 | |
6 | 6 | $objPlugin = TicketPlugin::create(); |
7 | 7 |
@@ -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'); |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Display script for example date plugin |
|
4 | - * @package chamilo.plugin.date |
|
5 | - */ |
|
3 | + * Display script for example date plugin |
|
4 | + * @package chamilo.plugin.date |
|
5 | + */ |
|
6 | 6 | /** |
7 | - * Display |
|
8 | - */ |
|
7 | + * Display |
|
8 | + */ |
|
9 | 9 | echo '<div class="well">'.strip_tags($date).'</div>'; |
10 | 10 | \ No newline at end of file |
@@ -1,13 +1,13 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * This script is a configuration file for the date plugin. You can use it as a master for other platform plugins (course plugins are slightly different). |
|
4 | - * These settings will be used in the administration interface for plugins (Chamilo configuration settings->Plugins) |
|
5 | - * @package chamilo.plugin |
|
6 | - * @author Yannick Warnier <[email protected]> |
|
7 | - */ |
|
3 | + * This script is a configuration file for the date plugin. You can use it as a master for other platform plugins (course plugins are slightly different). |
|
4 | + * These settings will be used in the administration interface for plugins (Chamilo configuration settings->Plugins) |
|
5 | + * @package chamilo.plugin |
|
6 | + * @author Yannick Warnier <[email protected]> |
|
7 | + */ |
|
8 | 8 | /** |
9 | - * Plugin details (must be present) |
|
10 | - */ |
|
9 | + * Plugin details (must be present) |
|
10 | + */ |
|
11 | 11 | //the plugin title |
12 | 12 | $plugin_info['title']='Date'; |
13 | 13 | //the comments that go with the plugin |
@@ -9,10 +9,10 @@ |
||
9 | 9 | * Plugin details (must be present) |
10 | 10 | */ |
11 | 11 | //the plugin title |
12 | -$plugin_info['title']='Date'; |
|
12 | +$plugin_info['title'] = 'Date'; |
|
13 | 13 | //the comments that go with the plugin |
14 | -$plugin_info['comment']="Multinational date display"; |
|
14 | +$plugin_info['comment'] = "Multinational date display"; |
|
15 | 15 | //the plugin version |
16 | -$plugin_info['version']='1.0'; |
|
16 | +$plugin_info['version'] = '1.0'; |
|
17 | 17 | //the plugin author |
18 | -$plugin_info['author']='Yannick Warnier'; |
|
18 | +$plugin_info['author'] = 'Yannick Warnier'; |