@@ -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 | } |
@@ -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'; |
|