Merge 1.10.x

1.10.x
Julio Montoya 10 years ago
commit 4bb4fe4e67
  1. 24
      app/Resources/public/css/base.css
  2. 4
      composer.json
  3. 3
      main/coursecopy/classes/CourseRestorer.class.php
  4. 262
      main/exercice/MatchingDraggable.php
  5. 16
      main/exercice/answer.class.php
  6. 13
      main/exercice/exercise.class.php
  7. 2
      main/exercice/exercise_show.php
  8. 7
      main/exercice/exercise_submit.php
  9. 2
      main/exercice/export/qti2/qti2_classes.php
  10. 2
      main/exercice/export/scorm/scorm_classes.php
  11. 2
      main/exercice/overview.php
  12. 3
      main/exercice/question.class.php
  13. 2
      main/exercice/stats.php
  14. 1
      main/inc/lib/api.lib.php
  15. 25
      main/inc/lib/display.lib.php
  16. 137
      main/inc/lib/exercise.lib.php
  17. 12
      main/inc/lib/hook/HookManagement.php
  18. 111
      main/lang/english/trad4all.inc.php
  19. 169
      main/lang/spanish/trad4all.inc.php
  20. 148
      main/template/default/exercise/submit.js.tpl
  21. 16
      main/template/default/layout/footer.tpl
  22. 61
      main/template/default/layout/head.tpl
  23. 8
      plugin/buycourses/database.php
  24. 19
      plugin/buycourses/js/buycourses.js
  25. 10
      plugin/buycourses/src/buy_course.lib.php
  26. 2
      plugin/buycourses/src/function.php
  27. 2
      plugin/skype/src/Skype.php
  28. 40
      plugin/ticket/src/myticket.php
  29. 5
      plugin/ticket/src/new_ticket.php
  30. 28
      plugin/ticket/src/ticket.class.php
  31. 12
      plugin/ticket/src/ticket_details.php

@ -5930,3 +5930,27 @@ ul.exercise-draggable-answer li {
.question_options .droppable .gallery .exercise-draggable-answer-option {
margin-bottom: 15px;
}
/*** Matching Draggable answer ***/
.drag_question {
float: left;
min-height: 4em;
width: 100%;
}
.drag_question .window{
box-shadow: 2px 2px 19px #AAA;
cursor: pointer;
min-height: 65px;
padding-top: 25px;
}
.window_left_question {
padding: 10px 25px 10px 10px;
text-align: right;
}
.window_right_question {
padding: 10px 10px 10px 25px;
}
._jsPlumb_endpoint {
z-index: 50;
}

@ -54,7 +54,7 @@
"symfony/filesystem": "~2.6",
"gedmo/doctrine-extensions": "~2.3",
"sonata-project/user-bundle": "~2.2",
"ramsey/array_column": "~1.1",
"ramsey/array_column": "~1.1",
"patchwork/utf8": "~1.2",
"ddeboer/data-import": "@stable",
"phpoffice/phpexcel": "~1.8",
@ -71,7 +71,7 @@
"bower-asset/mediaelement": "@stable",
"bower-asset/modernizr": "2.8.*",
"bower-asset/jqueryui-timepicker-addon": "@stable",
"bower-asset/imageMap-resizer": "0.5.3"
"bower-asset/imageMap-resizer": "0.5.3"
},
"require-dev": {
"behat/behat": "2.5.*@stable",

@ -1578,8 +1578,7 @@ class CourseRestorer
}
}
}
if ($question->quiz_type == MATCHING) {
if (in_array($question->quiz_type, [MATCHING, MATCHING_DRAGGABLE])) {
$temp = array();
foreach ($question->answers as $index => $answer) {
$temp[$answer['position']] = $answer;

@ -0,0 +1,262 @@
<?php
/* For licensing terms, see /license.txt */
/**
* MatchingDraggable
*
* @author Angel Fernando Quiroz Campos <angel.quiroz@beeznest.com>
*/
class MatchingDraggable extends Question
{
public static $typePicture = 'matching.png';
static $explanationLangVar = 'MatchingDraggable';
/**
* Class constructor
*/
public function __construct()
{
parent::__construct();
$this->type = MATCHING_DRAGGABLE;
$this->isContent = $this->getIsContent();
}
/**
* Creates the form to create / edit the answers of the question
* @param FormValidator $form
*/
public function createAnswersForm($form)
{
$defaults = $matches = [];
$nb_matches = $nb_options = 2;
$answer = null;
if ($form->isSubmitted()) {
$nb_matches = $form->getSubmitValue('nb_matches');
$nb_options = $form->getSubmitValue('nb_options');
if (isset($_POST['lessMatches'])) {
$nb_matches--;
}
if (isset($_POST['moreMatches'])) {
$nb_matches++;
}
if (isset($_POST['lessOptions'])) {
$nb_options--;
}
if (isset($_POST['moreOptions'])) {
$nb_options++;
}
} else if (!empty($this->id)) {
$answer = new Answer($this->id);
$answer->read();
if (count($answer->nbrAnswers) > 0) {
$nb_matches = $nb_options = 0;
for ($i = 1; $i <= $answer->nbrAnswers; $i++) {
if ($answer->isCorrect($i)) {
$nb_matches++;
$defaults['answer[' . $nb_matches . ']'] = $answer->selectAnswer($i);
$defaults['weighting[' . $nb_matches . ']'] = float_format($answer->selectWeighting($i), 1);
$defaults['matches[' . $nb_matches . ']'] = $answer->correct[$i];
} else {
$nb_options++;
$defaults['option[' . $nb_options . ']'] = $answer->selectAnswer($i);
}
}
}
} else {
$defaults['answer[1]'] = get_lang('DefaultMakeCorrespond1');
$defaults['answer[2]'] = get_lang('DefaultMakeCorrespond2');
$defaults['matches[2]'] = '2';
$defaults['option[1]'] = get_lang('DefaultMatchingOptA');
$defaults['option[2]'] = get_lang('DefaultMatchingOptB');
}
for ($i = 1; $i <= $nb_options; ++$i) {
// fill the array with A, B, C.....
$matches[$i] = chr(64 + $i);
}
$form->addElement('hidden', 'nb_matches', $nb_matches);
$form->addElement('hidden', 'nb_options', $nb_options);
// DISPLAY MATCHES
$html = '<table class="table table-striped table-hover">
<thead>
<tr>
<th width="10">' . get_lang('Number') . '</th>
<th width="85%">' . get_lang('Answer') . '</th>
<th width="15%">' . get_lang('MatchesTo') . '</th>
<th width="10">' . get_lang('Weighting') . '</th>
</tr>
</thead>
<tbody>';
$form->addHeader(get_lang('MakeCorrespond'));
$form->addHtml($html);
if ($nb_matches < 1) {
$nb_matches = 1;
Display::display_normal_message(get_lang('YouHaveToCreateAtLeastOneAnswer'));
}
for ($i = 1; $i <= $nb_matches; ++$i) {
$renderer = &$form->defaultRenderer();
$renderer->setElementTemplate(
'<td><!-- BEGIN error --><span class="form_error">{error}</span><!-- END error -->{element}</td>',
"answer[$i]"
);
$renderer->setElementTemplate(
'<td><!-- BEGIN error --><span class="form_error">{error}</span><!-- END error -->{element}</td>',
"matches[$i]"
);
$renderer->setElementTemplate(
'<td><!-- BEGIN error --><span class="form_error">{error}</span><!-- END error -->{element}</td>',
"weighting[$i]"
);
$form->addHtml('<tr>');
$form->addHtml("<td>$i</td>");
$form->addText("answer[$i]", null);
$form->addSelect("matches[$i]", null, $matches);
$form->addText("weighting[$i]", null, true, ['value' => 10]);
$form->addHtml('</tr>');
}
$form->addHtml('</tbody></table>');
$group = array();
$renderer->setElementTemplate('<div class="form-group"><div class="col-sm-offset-2">{element}', 'lessMatches');
$renderer->setElementTemplate('{element}</div></div>', 'moreMatches');
$group[] = $form->addButtonDelete(get_lang('DelElem'), 'lessMatches', true);
$group[] = $form->addButtonCreate(get_lang('AddElem'), 'moreMatches', true);
$form->addGroup($group);
// DISPLAY OPTIONS
$html = '<table class="table table-striped table-hover">
<thead>
<tr>
<th width="15%">' . get_lang('Number') . '</th>
<th width="85%">' . get_lang('Answer') . '</th>
</tr>
</thead>
<tbody>';
$form->addHtml($html);
if ($nb_options < 1) {
$nb_options = 1;
Display::display_normal_message(get_lang('YouHaveToCreateAtLeastOneAnswer'));
}
for ($i = 1; $i <= $nb_options; ++$i) {
$renderer = &$form->defaultRenderer();
$renderer->setElementTemplate(
'<td><!-- BEGIN error --><span class="form_error">{error}</span><!-- END error -->{element}</td>',
"option[$i]"
);
$form->addHtml('<tr>');
$form->addHtml('<td>' . chr(64 + $i) . '</td>');
$form->addText("option[$i]", null);
$form->addHtml('</tr>');
}
$form->addHtml('</table>');
global $text;
// setting the save button here and not in the question class.php
$group = [];
$group[] = $form->addButtonDelete(get_lang('DelElem'), 'lessOptions', true);
$group[] = $form->addButtonCreate(get_lang('AddElem'), 'moreOptions', true);
$group[] = $form->addButtonSave($text, 'submitQuestion', true);
$form->addGroup($group);
if (!empty($this->id)) {
$form->setDefaults($defaults);
} elseif ($this->isContent == 1) {
$form->setDefaults($defaults);
}
$form->setConstants(
[
'nb_matches' => $nb_matches,
'nb_options' => $nb_options
]
);
}
/**
* Process the creation of answers
* @param type $form
*/
public function processAnswersCreation($form)
{
$nb_matches = $form->getSubmitValue('nb_matches');
$nb_options = $form->getSubmitValue('nb_options');
$this->weighting = 0;
$position = 0;
$objAnswer = new Answer($this->id);
// Insert the options
for ($i = 1; $i <= $nb_options; ++$i) {
$position++;
$option = $form->getSubmitValue("option[$i]");
$objAnswer->createAnswer($option, 0, '', 0, $position);
}
// Insert the answers
for ($i = 1; $i <= $nb_matches; ++$i) {
$position++;
$answer = $form->getSubmitValue("answer[$i]");
$matches = $form->getSubmitValue("matches[$i]");
$weighting = $form->getSubmitValue("weighting[$i]");
$this->weighting += $weighting;
$objAnswer->createAnswer($answer, $matches, '', $weighting, $position);
}
$objAnswer->save();
$this->save();
}
/**
* Shows question title an description
* @param string $feedback_type
* @param int $counter
* @param float $score
* @return string The header HTML code
*/
public function return_header($feedback_type = null, $counter = null, $score = null)
{
$header = parent::return_header($feedback_type, $counter, $score);
$header .= '<table class="' . $this->question_table_class . '">
<tr>
<th>' . get_lang('ElementList') . '</th>
<th>' . get_lang('CorrespondsTo') . '</th>
</tr>';
return $header;
}
}

@ -759,4 +759,20 @@ class Answer
}
}
}
/**
* Get the necessary JavaScript for some answers
* @return string
*/
public function getJs() {
//if ($this->questionId == 2)
return "<script>
jsPlumb.ready(function() {
if ($('#drag{$this->questionId}_question').length > 0) {
MatchingDraggable.init('{$this->questionId}');
}
});
</script>";
}
}

@ -2774,6 +2774,8 @@ class Exercise
break;
case DRAGGABLE:
//no break
case MATCHING_DRAGGABLE:
//no break
case MATCHING:
if ($from_database) {
$sql = 'SELECT id, answer, id_auto
@ -2851,7 +2853,8 @@ class Exercise
echo '<tr>';
echo '<td>' . $s_answer_label . '</td>';
echo '<td>' . $user_answer;
if ($answerType == MATCHING) {
if (in_array($answerType, [MATCHING, MATCHING_DRAGGABLE])) {
if (isset($real_list[$i_answer_correct_answer])) {
echo Display::span(
$real_list[$i_answer_correct_answer],
@ -2977,7 +2980,7 @@ class Exercise
if (
!in_array(
$answerType,
[MATCHING, DRAGGABLE]
[MATCHING, DRAGGABLE, MATCHING_DRAGGABLE]
) ||
$answerCorrect
) {
@ -3245,7 +3248,7 @@ class Exercise
error_log(__LINE__.' first',0);
}
}
} elseif($answerType == MATCHING) {
} elseif (in_array($answerType, [MATCHING, MATCHING_DRAGGABLE])) {
echo '<tr>';
echo Display::tag('td', $answerMatching[$answerId]);
echo Display::tag(
@ -3571,6 +3574,8 @@ class Exercise
break;
case DRAGGABLE:
//no break
case MATCHING_DRAGGABLE:
//no break
case MATCHING:
echo '<tr>';
echo Display::tag('td', $answerMatching[$answerId]);
@ -3883,7 +3888,7 @@ class Exercise
} else {
Event::saveQuestionAttempt($questionScore, 0, $quesId, $exeId, 0, $this->id);
}
} elseif (in_array($answerType, [MATCHING, DRAGGABLE])) {
} elseif (in_array($answerType, [MATCHING, DRAGGABLE, MATCHING_DRAGGABLE])) {
if (isset($matching)) {
foreach ($matching as $j => $val) {
Event::saveQuestionAttempt($questionScore, $val, $quesId, $exeId, $j, $this->id);

@ -343,7 +343,7 @@ foreach ($questionList as $questionId) {
$question_result = $objExercise->manage_answer($id, $questionId, $choice,'exercise_show', array(), false, true, $show_results, $objExercise->selectPropagateNeg());
$questionScore = $question_result['score'];
$totalScore += $question_result['score'];
} elseif (in_array($answerType, [MATCHING, DRAGGABLE])) {
} elseif (in_array($answerType, [MATCHING, DRAGGABLE, MATCHING_DRAGGABLE])) {
$question_result = $objExercise->manage_answer($id, $questionId, $choice,'exercise_show', array(), false, true, $show_results, $objExercise->selectPropagateNeg());
$questionScore = $question_result['score'];
$totalScore += $question_result['score'];

@ -50,6 +50,9 @@ if ($showGlossary) {
$htmlHeadXtra[] = api_get_js('jquery.highlight.js');
}
$htmlHeadXtra[] = api_get_js('jquery.jsPlumb.all.js');
$htmlHeadXtra[] = api_get_js('d3/jquery.xcolor.js');
//This library is necessary for the time control feature
$htmlHeadXtra[] = api_get_css(api_get_path(WEB_LIBRARY_PATH).'javascript/epiclock/stylesheet/jquery.epiclock.css');
$htmlHeadXtra[] = api_get_css(api_get_path(WEB_LIBRARY_PATH).'javascript/epiclock/renderers/minute/epiclock.minute.css');
@ -57,7 +60,9 @@ $htmlHeadXtra[] = api_get_js('epiclock/javascript/jquery.dateformat.min.js');
$htmlHeadXtra[] = api_get_js('epiclock/javascript/jquery.epiclock.min.js');
$htmlHeadXtra[] = api_get_js('epiclock/renderers/minute/epiclock.minute.js');
$htmlHeadXtra[] = (new Template())->fetch('default/exercise/submit.js.tpl');
$template = new Template();
$htmlHeadXtra[] = $template->fetch('default/exercise/submit.js.tpl');
// General parameters passed via POST/GET

@ -32,6 +32,8 @@ class Ims2Question extends Question
return $answer;
case MATCHING:
//no break
case MATCHING_DRAGGABLE:
$answer = new ImsAnswerMatching($this->id);
return $answer;

@ -43,6 +43,8 @@ class ScormQuestion extends Question
$this->answer->questionJSId = $this->js_id;
break;
case MATCHING :
//no break
case MATCHING_DRAGGABLE:
$this->answer = new ScormAnswerMatching($this->id);
$this->answer->questionJSId = $this->js_id;
break;

@ -163,7 +163,7 @@ if (!empty($attempts) && $visible_return['value'] == true) {
$attempt_result['exe_result'],
$attempt_result['exe_weighting']
);
$attempt_url = api_get_path(WEB_CODE_PATH) . 'exercice/result.php?' . api_get_cidreq() . '&id=' . $attempt_result['exe_id'] . '&height=500&width=950' . $url_suffix;
$attempt_url = api_get_path(WEB_CODE_PATH) . 'exercice/result.php?' . api_get_cidreq() . '&id=' . $attempt_result['exe_id'] . '&modal_size=lg' . $url_suffix;
$attempt_link = Display::url(
get_lang('Show'),
$attempt_url,

@ -50,7 +50,8 @@ abstract class Question
GLOBAL_MULTIPLE_ANSWER => array('global_multiple_answer.class.php' , 'GlobalMultipleAnswer'),
CALCULATED_ANSWER => array('calculated_answer.class.php' , 'CalculatedAnswer'),
UNIQUE_ANSWER_IMAGE => ['UniqueAnswerImage.php', 'UniqueAnswerImage'],
DRAGGABLE => ['Draggable.php', 'Draggable']
DRAGGABLE => ['Draggable.php', 'Draggable'],
MATCHING_DRAGGABLE => ['MatchingDraggable.php', 'MatchingDraggable']
//MEDIA_QUESTION => array('media_question.class.php' , 'MediaQuestion')
);

@ -169,6 +169,8 @@ if (!empty($question_list)) {
}
break;
case MATCHING:
//no break
case MATCHING_DRAGGABLE:
if ($is_correct == 0) {
if ($answer_id == 1) {
$data[$id]['name'] = cut($question_obj->question, 100);

@ -479,6 +479,7 @@ define('MEDIA_QUESTION', 15);
define('CALCULATED_ANSWER', 16);
define('UNIQUE_ANSWER_IMAGE', 17);
define('DRAGGABLE', 18);
define('MATCHING_DRAGGABLE', 19);
//Some alias used in the QTI exports
define('MCUA', 1);

@ -946,17 +946,18 @@ class Display
$extra_attributes = array(),
$show_blank_item = true,
$blank_item_text = null
) {
)
{
$html = '';
$extra = '';
$default_id = 'id="'.$name.'" ';
foreach($extra_attributes as $key=>$parameter) {
$default_id = 'id="' . $name . '" ';
foreach ($extra_attributes as $key => $parameter) {
if ($key == 'id') {
$default_id = '';
}
$extra .= $key.'="'.$parameter.'"';
$extra .= $key . '="' . $parameter . '" ';
}
$html .= '<select name="'.$name.'" '.$default_id.' '.$extra.'>';
$html .= '<select name="' . $name . '" ' . $default_id . ' ' . $extra . '>';
if ($show_blank_item) {
if (empty($blank_item_text)) {
@ -964,29 +965,29 @@ class Display
} else {
$blank_item_text = Security::remove_XSS($blank_item_text);
}
$html .= self::tag('option', '-- '.$blank_item_text.' --', array('value'=>'-1'));
$html .= self::tag('option', '-- ' . $blank_item_text . ' --', array('value' => '-1'));
}
if ($values) {
foreach ($values as $key => $value) {
if(is_array($value) && isset($value['name'])) {
if (is_array($value) && isset($value['name'])) {
$value = $value['name'];
}
$html .= '<option value="'.$key.'"';
$html .= '<option value="' . $key . '"';
if (is_array($default)) {
foreach($default as $item) {
foreach ($default as $item) {
if ($item == $key) {
$html .= 'selected="selected"';
$html .= ' selected="selected"';
break;
}
}
} else {
if ($default == $key) {
$html .= 'selected="selected"';
$html .= ' selected="selected"';
}
}
$html .= '>'.$value.'</option>';
$html .= '>' . $value . '</option>';
}
}
$html .= '</select>';

@ -104,13 +104,16 @@ class ExerciseLib
// on the right side are called answers
$num_suggestions = 0;
if (in_array($answerType, [MATCHING, DRAGGABLE])) {
if (in_array($answerType, [MATCHING, DRAGGABLE, MATCHING_DRAGGABLE])) {
if ($answerType == DRAGGABLE) {
$s .= '<div class="ui-widget ui-helper-clearfix">
<div class="clearfix">
<ul class="exercise-draggable-answer ui-helper-reset ui-helper-clearfix">';
} else {
$s .= '<table class="table table-hover table-striped">';
$s .= <<<HTML
<div id="drag{$questionId}_question" class="drag_question">
<table class="data_table">
HTML;
}
// Iterate through answers
$x = 1;
@ -1002,17 +1005,129 @@ JAVASCRIPT;
$s .= '</li>';
}
} elseif ($answerType == MATCHING_DRAGGABLE) {
if ($answerId == 1) {
echo $objAnswerTmp->getJs();
}
if ($answerCorrect != 0) {
$parsed_answer = $answer;
$windowId = "{$questionId}_{$lines_count}";
$s .= <<<HTML
<tr>
<td widht="45%">
<div id="window_{$windowId}" class="window window_left_question window{$questionId}_question">
<strong>$lines_count.</strong> $parsed_answer
</div>
</td>
<td width="10%">
HTML;
$selectedValue = 0;
$questionOptions = [];
foreach ($select_items as $key => $val) {
if ($debug_mark_answer) {
if ($val['id'] == $answerCorrect) {
$selectedValue = $val['id'];
}
}
if (
isset($user_choice[$matching_correct_answer]) &&
$val['id'] == $user_choice[$matching_correct_answer]['answer']
) {
$selectedValue = $val['id'];
}
$questionOptions[$val['id']] = $val['letter'];
}
$s .= Display::select(
"choice[$questionId][$numAnswer]",
$questionOptions,
$selectedValue,
[
'id' => "window_{$windowId}_select",
'class' => 'hidden'
],
false
);
if (!empty($answerCorrect) && !empty($selectedValue)) {
$s .= <<<JAVASCRIPT
<script>
jsPlumb.ready(function() {
jsPlumb.connect({
source: 'window_$windowId',
target: 'window_{$questionId}_{$selectedValue}_answer',
endpoint: ['Blank', {radius: 15}],
anchors: ['RightMiddle', 'LeftMiddle'],
paintStyle: {strokeStyle: '#8A8888', lineWidth: 8},
connector: [
MatchingDraggable.connectorType,
{curvines: MatchingDraggable.curviness}
]
});
});
</script>
JAVASCRIPT;
}
$s .= <<<HTML
</td>
<td width="45%">
HTML;
if (isset($select_items[$lines_count])) {
$s .= <<<HTML
<div id="window_{$windowId}_answer" class="window window_right_question">
<strong>{$select_items[$lines_count]['letter']}.</strong> {$select_items[$lines_count]['answer']}
</div>
HTML;
} else {
$s .= '&nbsp;';
}
$s .= '</td></tr>';
$lines_count++;
if (($lines_count - 1) == $num_suggestions) {
while (isset($select_items[$lines_count])) {
$s .= <<<HTML
<tr>
<td colspan="2"></td>
<td>
<strong>{$select_items[$lines_count]['letter']}</strong>
$select_items[$lines_count]['answer']
</td>
</tr>
HTML;
$lines_count++;
}
}
$matching_correct_answer++;
}
}
} // end for()
if ($show_comment) {
$s .= '</table>';
} else {
if ($answerType == MATCHING || $answerType == UNIQUE_ANSWER_NO_OPTION || $answerType == MULTIPLE_ANSWER_TRUE_FALSE ||
$answerType == MULTIPLE_ANSWER_COMBINATION_TRUE_FALSE
) {
} elseif(
in_array(
$answerType,
[
MATCHING,
MATCHING_DRAGGABLE,
UNIQUE_ANSWER_NO_OPTION,
MULTIPLE_ANSWER_TRUE_FALSE,
MULTIPLE_ANSWER_COMBINATION_TRUE_FALSE
]
)
) {
$s .= '</table>';
}
}
if ($answerType == DRAGGABLE) {
@ -1042,7 +1157,7 @@ JAVASCRIPT;
$s .= '</div></div>';
}
if ($answerType == MATCHING) {
if (in_array($answerType, [MATCHING, MATCHING_DRAGGABLE])) {
$s .= '</div>';
}
@ -3106,6 +3221,9 @@ JAVASCRIPT;
$select_condition = " e.exe_id, answer ";
break;
case MATCHING:
//no break
case MATCHING_DRAGGABLE:
//no break
default:
$answer_condition = " answer = $answer_id AND ";
$select_condition = " DISTINCT exe_user_id ";
@ -3161,6 +3279,9 @@ JAVASCRIPT;
return $good_answers;
break;
case MATCHING:
//no break
case MATCHING_DRAGGABLE:
//no break
default:
$return = Database::num_rows($result);
}

@ -145,8 +145,8 @@ class HookManagement implements HookManagementInterface
public function listHookObservers($eventName)
{
$array = array();
$joinTable = $this->tables[TABLE_HOOK_CALL] . 'hc ' .
' INNER JOIN ' . $this->tables[TABLE_HOOK_EVENT] . 'he ' .
$joinTable = $this->tables[TABLE_HOOK_CALL] . ' hc' .
' INNER JOIN ' . $this->tables[TABLE_HOOK_EVENT] . ' he' .
' ON hc.hook_event_id = he.id ' .
' INNER JOIN ' . $this->tables[TABLE_HOOK_OBSERVER] . ' ho ' .
' ON hc.hook_observer_id = ho.id ';
@ -202,8 +202,8 @@ class HookManagement implements HookManagementInterface
public function listAllHookCalls()
{
$array = array();
$joinTable = $this->tables[TABLE_HOOK_CALL] . 'hc ' .
' INNER JOIN ' . $this->tables[TABLE_HOOK_EVENT] . 'he ' .
$joinTable = $this->tables[TABLE_HOOK_CALL] . ' hc' .
' INNER JOIN ' . $this->tables[TABLE_HOOK_EVENT] . ' he' .
' ON hc.hook_event_id = he.id ' .
' INNER JOIN ' . $this->tables[TABLE_HOOK_OBSERVER] . ' ho ' .
' ON hc.hook_observer_id = ho.id ';
@ -338,8 +338,8 @@ class HookManagement implements HookManagementInterface
$eventName = Database::escape_string($eventName);
$observerClassName($observerClassName);
$type = Database::escape_string($type);
$joinTable = $this->tables[TABLE_HOOK_CALL] . 'hc ' .
' INNER JOIN ' . $this->tables[TABLE_HOOK_EVENT] . 'he ' .
$joinTable = $this->tables[TABLE_HOOK_CALL] . ' hc' .
' INNER JOIN ' . $this->tables[TABLE_HOOK_EVENT] . ' he' .
' ON hc.hook_event_id = he.id ' .
' INNER JOIN ' . $this->tables[TABLE_HOOK_OBSERVER] . ' ho ' .
' ON hc.hook_observer_id = ho.id ';

@ -325,18 +325,18 @@ $DeleteUsersNotInList = "Unsubscribe students which are not in the imported list
$IfSessionExistsUpdate = "If a session exists, update it";
$CreatedByXYOnZ = "Create by <a href=\"%s\">%s</a> on %s";
$LoginWithExternalAccount = "Login without an institutional account";
$ImportAikenQuizExplanationExample = "This is the text for question 1
A. Answer 1
B. Answer 2
C. Answer 3
ANSWER: B
This is the text for question 2
A. Answer 1
B. Answer 2
C. Answer 3
D. Answer 4
ANSWER: D
$ImportAikenQuizExplanationExample = "This is the text for question 1
A. Answer 1
B. Answer 2
C. Answer 3
ANSWER: B
This is the text for question 2
A. Answer 1
B. Answer 2
C. Answer 3
D. Answer 4
ANSWER: D
ANSWER_EXPLANATION: this is an optional feedback comment that will appear next to the correct answer.";
$ImportAikenQuizExplanation = "The Aiken format comes in a simple text (.txt) file, with several question blocks, each separated by a blank line. The first line is the question, the answer lines are prefixed by a letter and a dot, and the correct answer comes next with the ANSWER: prefix. See example below.";
$ExerciseAikenErrorNoAnswerOptionGiven = "The imported file has at least one question without any answer (or the answers do not include the required prefix letter). Please make sure each question has at least one answer and that it is prefixed by a letter and a dot or a parenthesis, like this: A. answer one";
@ -425,18 +425,18 @@ $VersionUpToDate = "Your version is up-to-date";
$LatestVersionIs = "The latest version is";
$YourVersionNotUpToDate = "Your version is not up-to-date";
$Hotpotatoes = "Hotpotatoes";
$ZeroMeansNoQuestionWillBeSelectedMinusOneMeansThatAllQuestionsWillBeSelected = "-1 = All questions will be selected.
$ZeroMeansNoQuestionWillBeSelectedMinusOneMeansThatAllQuestionsWillBeSelected = "-1 = All questions will be selected.
0 = No questions will be selected.";
$EmailNotificationTemplateDescription = "You can customize the email sent to users when they finished the exercise. You can use tags like these:
1. {{ student.username }}
2. {{ student.firstname }}
3. {{ student.lastname }}
4. {{ student.official_code }}
5. {{ exercise.title }}
6. {{ exercise.start_time }}
7. {{ exercise.end_time }}
8. {{ course.title }}
$EmailNotificationTemplateDescription = "You can customize the email sent to users when they finished the exercise. You can use tags like these:
1. {{ student.username }}
2. {{ student.firstname }}
3. {{ student.lastname }}
4. {{ student.official_code }}
5. {{ exercise.title }}
6. {{ exercise.start_time }}
7. {{ exercise.end_time }}
8. {{ course.title }}
9. {{ course.code }}";
$EmailNotificationTemplate = "Email notification template";
$ExerciseEndButtonDisconnect = "Logout";
@ -844,10 +844,10 @@ $AllowVisitors = "Allow visitors";
$EnableIframeInclusionComment = "Allowing arbitrary iframes in the HTML Editor will enhance the edition capabilities of the users, but it can represent a security risk. Please make sure you can rely on your users (i.e. you know who they are) before enabling this feature.";
$AddedToLPCannotBeAccessed = "This exercise has been included in a learning path, so it cannot be accessed by students directly from here. If you want to put the same exercise available through the exercises tool, please make a copy of the current exercise using the copy icon.";
$EnableIframeInclusionTitle = "Allow iframes in HTML Editor";
$MailTemplateRegistrationMessage = "Dear ((firstname)) ((lastname)),\n\nYou are registered on
((sitename)) with the following settings:\n\nUsername :
((username))\nPass : ((password))\n\nThe address of ((sitename)) is :
((url))\n\nIn case of trouble, contact us.\n\nYours sincerely
$MailTemplateRegistrationMessage = "Dear ((firstname)) ((lastname)),\n\nYou are registered on
((sitename)) with the following settings:\n\nUsername :
((username))\nPass : ((password))\n\nThe address of ((sitename)) is :
((url))\n\nIn case of trouble, contact us.\n\nYours sincerely
\n((admin_name)) ((admin_surname)).";
$Explanation = "Once you click on \"Create a course\", a course is created with a section for Tests, Project based learning, Assessments, Courses, Dropbox, Agenda and much more. Logging in as teacher provides you with editing privileges for this course.";
$CodeTaken = "This training code is already in use. <br>Use the <b>Back</b> button on your browser and try again";
@ -2640,16 +2640,16 @@ $NoPosts = "No posts";
$WithoutAchievedSkills = "Without achieved skills";
$TypeMessage = "Please type your message!";
$ConfirmReset = "Do you really want to delete all messages?";
$MailCronCourseExpirationReminderBody = "Dear %s,
It has come to our attention that you have not completed the course %s although its expiration date had been set on %s, remaining %s days to finish it.
We remind you that you have only the possibility to follow this course once a year, that is why we invite you insistently to complete your course on time.
You can return to the course connecting to the platform through this address: %s
Best Regards,
$MailCronCourseExpirationReminderBody = "Dear %s,
It has come to our attention that you have not completed the course %s although its expiration date had been set on %s, remaining %s days to finish it.
We remind you that you have only the possibility to follow this course once a year, that is why we invite you insistently to complete your course on time.
You can return to the course connecting to the platform through this address: %s
Best Regards,
%s Team";
$MailCronCourseExpirationReminderSubject = "Urgent: %s course expiration reminder";
$ExerciseAndLearningPath = "Exercise and learning path";
@ -5778,8 +5778,8 @@ $CheckThatYouHaveEnoughQuestionsInYourCategories = "Make sure you have enough qu
$PortalCoursesLimitReached = "Sorry, this installation has a courses limit, which has now been reached. To increase the number of courses allowed on this Chamilo installation, please contact your hosting provider or, if available, upgrade to a superior hosting plan.";
$PortalTeachersLimitReached = "Sorry, this installation has a teachers limit, which has now been reached. To increase the number of teachers allowed on this Chamilo installation, please contact your hosting provider or, if available, upgrade to a superior hosting plan.";
$PortalUsersLimitReached = "Sorry, this installation has a users limit, which has now been reached. To increase the number of users allowed on this Chamilo installation, please contact your hosting provider or, if available, upgrade to a superior hosting plan.";
$GenerateSurveyAccessLinkExplanation = "By copying the link below and pasting it in an e-mail or on a website, you will allow any anonymous person to enter and answer this survey.
You can test this feature by clicking the link above and answering the survey.
$GenerateSurveyAccessLinkExplanation = "By copying the link below and pasting it in an e-mail or on a website, you will allow any anonymous person to enter and answer this survey.
You can test this feature by clicking the link above and answering the survey.
This is particularly useful if you want to allow anyone on a forum to answer you survey and you don't know their e-mail addresses.";
$LinkOpenSelf = "Open self";
$LinkOpenBlank = "Open blank";
@ -5832,8 +5832,8 @@ $Item = "Item";
$ConfigureDashboardPlugin = "Configure Dashboard Plugin";
$EditBlocks = "Edit blocks";
$Never = "Never";
$YourAccountIsActiveYouCanLoginAndCheckYourCourses = "Dear user,
$YourAccountIsActiveYouCanLoginAndCheckYourCourses = "Dear user,
Your account has now been activated on the platform. Please login and enjoy your courses.";
$SessionFields = "Session fields";
$CopyLabelSuffix = "Copy";
@ -5895,7 +5895,7 @@ $CourseSettingsRegisterDirectLink = "If your course is public or open, you can u
$DirectLink = "Direct link";
$here = "here";
$GoAheadAndBrowseOurCourseCatalogXOnceRegisteredYouWillSeeTheCourseHereX = "<p>Go ahead and browse our course catalog %s to register to any course you like. Once registered, you will see the course appear right %s, instead of this message.</p>";
$HelloXAsYouCanSeeYourCourseListIsEmpty = "<p>Hello <strong>%s</strong> and welcome,</p>
$HelloXAsYouCanSeeYourCourseListIsEmpty = "<p>Hello <strong>%s</strong> and welcome,</p>
<p>As you can see, your courses list is still empty. That's because you are not registered to any course yet! </p>";
$UnsubscribeUsersAlreadyAddedInCourse = "Unsubscribe users already added";
$ImportUsers = "Import users";
@ -6159,7 +6159,7 @@ $AverageScore = "Average score";
$LastConnexionDate = "Last connexion date";
$ToolVideoconference = "Videoconference";
$BigBlueButtonEnableTitle = "BigBlueButton videoconference tool";
$BigBlueButtonEnableComment = "Choose whether you want to enable the BigBlueButton videoconference tool. Once enabled, it will show as an additional course tool in all courses' homepage, and teachers will be able to launch a conference at any time. Learners will not be able to launch a conference, only join one. If you don't have a BigBlueButton server, please <a href=\"http://bigbluebutton.org/\" target=\"_blank\">set one up</a> or ask the <a href=\"http://www.chamilo.org/en/providers\" target=\"_blank\">Chamilo official providers</a> for a quote.
$BigBlueButtonEnableComment = "Choose whether you want to enable the BigBlueButton videoconference tool. Once enabled, it will show as an additional course tool in all courses' homepage, and teachers will be able to launch a conference at any time. Learners will not be able to launch a conference, only join one. If you don't have a BigBlueButton server, please <a href=\"http://bigbluebutton.org/\" target=\"_blank\">set one up</a> or ask the <a href=\"http://www.chamilo.org/en/providers\" target=\"_blank\">Chamilo official providers</a> for a quote.
BigBlueButton is a free (as in freedom *and* beer), but its installation requires a set of technical skills that might not be immediately available to all. You can install it on your own or seek professional help to assist you or do it for you. This help, however, will generate a certain cost. In the pure logic of the free software, we offer you the tools to make your work easier and recommend professionals (the Chamilo Official Providers) that will be able to help you if this were too difficult.";
$BigBlueButtonHostTitle = "BigBlueButton server host";
$BigBlueButtonHostComment = "This is the name of the server where your BigBlueButton server is running. Might be <i>localhost</i>, an IP address (e.g. 192.168.13.54) or a domain name (e.g. my.video.com).";
@ -6170,14 +6170,14 @@ $OnlyAccessFromYourGroup = "Only accessible from your group";
$CreateAssignmentPage = "This will create a special wiki page in which the teacher can describe the task and which will be automatically linked to the wiki pages where learners perform the task. Both the teacher's and the learners' pages are created automatically. In these tasks, learners can only edit and view theirs pages, but this can be changed easily if you need to.";
$UserFolders = "Folders of users";
$UserFolder = "User folder";
$HelpUsersFolder = "INFORMATION VISIBLE TO THE TEACHER ONLY:\nThe users folder contains a folder for each user who has accessed it through the documents tool, or when any file has been sent in the course through the online editor. If neither circumstances has occurred, then no user folder will have been created. In the case of groups, files that are sent through the editor will be added in the folder of each group, which is only accessible by students from this group.
<br /><br />
The users folder and each of the included folders will be hidden by default in for all students, but each student can see the contents of his/her directory through the online editor. However, if a student knows the address of a file or folder of another student, he may be able to access it.
<br /><br />
If the folder of a student is visible, other students can see what it contains. In this case, the student that owns the folder can also (from the documents tool and only in his/her folder): create and edit web documents, convert a document into a template for personal use, create and edit drawings in SVG and PNG formats, record audio files in WAV format, make audio files in MP3 from a text, make snapshops from a webcam, send documents, create folders, move folders and files, delete folders and files, and download backup of his/her folder.
<br /><br />
Moreover, the documents tool is synchronized with the file manager of the online editor, so changes in the documents triggered in any one of these will affect both.
<br /><br />
$HelpUsersFolder = "INFORMATION VISIBLE TO THE TEACHER ONLY:\nThe users folder contains a folder for each user who has accessed it through the documents tool, or when any file has been sent in the course through the online editor. If neither circumstances has occurred, then no user folder will have been created. In the case of groups, files that are sent through the editor will be added in the folder of each group, which is only accessible by students from this group.
<br /><br />
The users folder and each of the included folders will be hidden by default in for all students, but each student can see the contents of his/her directory through the online editor. However, if a student knows the address of a file or folder of another student, he may be able to access it.
<br /><br />
If the folder of a student is visible, other students can see what it contains. In this case, the student that owns the folder can also (from the documents tool and only in his/her folder): create and edit web documents, convert a document into a template for personal use, create and edit drawings in SVG and PNG formats, record audio files in WAV format, make audio files in MP3 from a text, make snapshops from a webcam, send documents, create folders, move folders and files, delete folders and files, and download backup of his/her folder.
<br /><br />
Moreover, the documents tool is synchronized with the file manager of the online editor, so changes in the documents triggered in any one of these will affect both.
<br /><br />
As such, the user folder is not only a place to deposit files, it becomes a complete manager of the documents students use during the course. Also, remember that any user can copy a file that is visible from any folder in the documents tool (whether or not he is the owner) to his/her portfolios or personal documents area of social network, which will be available to him/her for use in other courses.";
$HelpFolderChat = "INFORMATION VISIBLE TO THE TEACHER ONLY:\nThis folder contains all sessions that have been opened in the chat. Although the chat sessions can often be trivial, others can be really interesting and worthy of being incorporated as an additional work document. To do this without changing the visibility of this folder, make the file visible and link it from where you deem appropriate. It is not recommended to make this folder visible to all.";
$HelpFolderCertificates = "INFORMATION VISIBLE TO THE TEACHER ONLY:\nThis folder contains the various certificates templates that have been created for the rating tool. It is not recommended to make this folder visible to all.";
@ -6227,8 +6227,8 @@ $Pediaphon = "Use Pediaphon audio services";
$HelpPediaphon = "Supports text with several thousands characters, in various types of male and female voices (depending on the language). Audio files will be generated and automatically saved to the Chamilo directory in which you are.";
$FirstSelectALanguage = "Please select a language";
$MoveUserStats = "Move users results from/to a session";
$CompareUserResultsBetweenCoursesAndCoursesInASession = "This advanced tool allows you to manually improve the tracking of users results when moving from courses methodology to sessions methodology. In most cases, you won't need to use it.<br />
On this screen, you can compare results of users between the context of a standalone course, and the context of the same course inside a session.<br />
$CompareUserResultsBetweenCoursesAndCoursesInASession = "This advanced tool allows you to manually improve the tracking of users results when moving from courses methodology to sessions methodology. In most cases, you won't need to use it.<br />
On this screen, you can compare results of users between the context of a standalone course, and the context of the same course inside a session.<br />
Once you are sure about what to do, you can choose to move the tracking data of the students (exercises results and learning paths tracking) from a course to a session.";
$PDFExportWatermarkEnableTitle = "Enable watermark in PDF export";
$PDFExportWatermarkEnableComment = "By enabling this option, you can upload an image or a text that will be automatically added as watermark to all PDF exports of documents on the system.";
@ -6363,8 +6363,8 @@ $MailNotifyInvitation = "Notify by mail on new invitation received";
$MailNotifyMessage = "Notify by mail on new personal message received";
$MailNotifyGroupMessage = "Notify by mail on new message received in group";
$SearchEnabledTitle = "Fulltext search";
$SearchEnabledComment = "This feature allows you to index most of the documents uploaded to your portal, then provide a search feature for users.<br />
This feature will not index documents that have already been uploaded, so it is important to enable (if wanted) at the beginning of your implementation.<br />
$SearchEnabledComment = "This feature allows you to index most of the documents uploaded to your portal, then provide a search feature for users.<br />
This feature will not index documents that have already been uploaded, so it is important to enable (if wanted) at the beginning of your implementation.<br />
Once enabled, a search box will appear in the courses list of every user. Searching for a specific term will bring a list of corresponding documents, exercises or forum topics, filtered depending on the availability of these contents to the user.";
$SpecificSearchFieldsAvailable = "Available custom search fields";
$XapianModuleInstalled = "Xapian module installed";
@ -7237,4 +7237,5 @@ $YouNotYetAchievedCertificates = "You not yet achieved certificates";
$SearchCertificates = "Search certificates";
$TheUserXNotYetAchievedCertificates = "The user %s not yet achieved certificates";
$CertificatesNotPublic = "Certificates not public";
$MatchingDraggable = "Matching Draggable";
?>

@ -265,11 +265,11 @@ $AreYouSureDeleteTestResultBeforeDateD = "¿Está seguro que desea eliminar los
$CleanStudentsResultsBeforeDate = "Eliminar todos los resultados antes de la fecha selecionada";
$HGlossary = "Ayuda del glosario";
$GlossaryContent = "Esta herramienta le permite crear términos de glosario para su curso, los cuales pueden luego ser usados en la herramienta de documentos";
$ForumContent = "<p>El foro es una herramienta de conversación para el trabajo escrito asíncrono. A diferencia del e-mail, un foro es para conversaciones públicas, semi-públicas o de grupos.</p>
<p>Para usar el foro de Chamilo, los alumnos del curso pueden simplemente usar su navegador - no requieren de ningun otro tipo de herramienta</p>
<p>Para organizar los foros, dar click en la herramienta de foros. Las conversaciones se organizan según la estructura siguiente: Categoría > Foro > Tema de conversación > Respuesta. Para permitir a los alumnos participar en los foros de manera ordenada y efectiva, es esencial crear primero categorías y foros. Luego, pertenece a los participantes crear temas de conversación y enviar respuestas. Por defecto, si el curso se ha creado con contenido de ejemplo, el foro contiene una única categoría, un foro, un tema de foro y una respuesta. Puede añadir foros a la categoría, cambiar su titulo o crear otras categorías dentro de las cuales podría entonces crear nuevos foros (no confunda categorías y foros, y recuerde que una categoría que no contiene foros es inútil y no se mostrará a los alumnos).</p>
<p>La descripción del foro puede incluir una lista de sus miembros, una definición de su propósito, una tarea, un objetivo, un tema, etc.</p>
<p>Los foros de grupos no son creados por la herramienta de foros directamente, sino por la herramienta de grupos, donde puede determinar si los foros serán públicos o privados, permitiendo al mismo tiempo a los miembros sus grupos compartir documentos y otros recursos</p>
$ForumContent = "<p>El foro es una herramienta de conversación para el trabajo escrito asíncrono. A diferencia del e-mail, un foro es para conversaciones públicas, semi-públicas o de grupos.</p>
<p>Para usar el foro de Chamilo, los alumnos del curso pueden simplemente usar su navegador - no requieren de ningun otro tipo de herramienta</p>
<p>Para organizar los foros, dar click en la herramienta de foros. Las conversaciones se organizan según la estructura siguiente: Categoría > Foro > Tema de conversación > Respuesta. Para permitir a los alumnos participar en los foros de manera ordenada y efectiva, es esencial crear primero categorías y foros. Luego, pertenece a los participantes crear temas de conversación y enviar respuestas. Por defecto, si el curso se ha creado con contenido de ejemplo, el foro contiene una única categoría, un foro, un tema de foro y una respuesta. Puede añadir foros a la categoría, cambiar su titulo o crear otras categorías dentro de las cuales podría entonces crear nuevos foros (no confunda categorías y foros, y recuerde que una categoría que no contiene foros es inútil y no se mostrará a los alumnos).</p>
<p>La descripción del foro puede incluir una lista de sus miembros, una definición de su propósito, una tarea, un objetivo, un tema, etc.</p>
<p>Los foros de grupos no son creados por la herramienta de foros directamente, sino por la herramienta de grupos, donde puede determinar si los foros serán públicos o privados, permitiendo al mismo tiempo a los miembros sus grupos compartir documentos y otros recursos</p>
<p><b>Tips de enseñanza:</b> Un foro de aprendizaje no es lo mismo que un foro de los que ve en internet. De un lado, no es posible que los alumnos modifiquen sus respuestas una vez que un tema de conversación haya sido cerrado. Esto es con el objetivo de valorar su contribución en el foro. Luego, algunos usuarios privilegiados (profesor, tutor, asistente) pueden corregir directamente las respuestas dentro del foro.<br />Para hacerlo, pueden seguir el procedimiento siguiente:<br />dar click en el icono de edición (lapiz amarillo) y marcarlo usando una funcionalidad de edición (color, subrayado, etc). Finalmente, otros alumnos pueden beneficiar de esta corrección visualizando el foro nuevamente. La misa idea puede ser aplicada entre alumnos pero requiere usar la herramienta de citación para luego indicar los elementos incorrectos (ya que no pueden editar directamente la respuesta de otro alumno)</p>";
$HForum = "Ayuda del foro";
$LoginToGoToThisCourse = "Conectarse para entrar al curso";
@ -330,18 +330,18 @@ $DeleteUsersNotInList = "Desinscribir los alumnos que no están en una sesión e
$IfSessionExistsUpdate = "Si la sesión existe, actualizarla con los datos del archivo";
$CreatedByXYOnZ = "Creado/a por <a href=\"%s\">%s</a> el %s";
$LoginWithExternalAccount = "Ingresar con una cuenta externa";
$ImportAikenQuizExplanationExample = "Este es el texto de la pregunta 1
A. Respuesta 1
B. Respuesta 2
C. Respuesta 3
ANSWER: B
Este es el texto de la pregunta 2 (notese la línea blanca arriba)
A. Respuesta 1
B. Respuesta 2
C. Respuesta 3
D. Respuesta 4
ANSWER: D
$ImportAikenQuizExplanationExample = "Este es el texto de la pregunta 1
A. Respuesta 1
B. Respuesta 2
C. Respuesta 3
ANSWER: B
Este es el texto de la pregunta 2 (notese la línea blanca arriba)
A. Respuesta 1
B. Respuesta 2
C. Respuesta 3
D. Respuesta 4
ANSWER: D
ANSWER_EXPLANATION: Este es un texto opcional de retroalimentación que aparecerá al costado de la respuesta correcta.";
$ImportAikenQuizExplanation = "El formato Aiken es un simple formato texto (archivo .txt) con varios bloques de preguntas, cada bloque separado por una línea blanca. La primera línea es la pregunta. Las líneas de respuestas tienen un prefijo de letra y punto, y la respuesta correcta sigue, con el prefijo 'ANSWER:'. Ver ejemplo a continuación.";
$ExerciseAikenErrorNoAnswerOptionGiven = "El archivo importado tiene por lo menos una pregunta sin respuesta (o las respuestas no incluyen la letra de prefijo requerida). Asegúrese de que cada pregunta tengo por lo mínimo una respuesta y que esté prefijada por una letra y un punto o una paréntesis, como sigue: A. Respuesta uno";
@ -431,16 +431,16 @@ $LatestVersionIs = "La última versión es";
$YourVersionNotUpToDate = "Su versión está actualizada";
$Hotpotatoes = "Hotpotatoes";
$ZeroMeansNoQuestionWillBeSelectedMinusOneMeansThatAllQuestionsWillBeSelected = "-1 = Todas las preguntas serán seleccionadas. 0 = Ninguna pregunta será seleccionada.";
$EmailNotificationTemplateDescription = "Puede modificar el correo enviado a los usuarios al terminar el ejercicio. Puede usar los siguientes términos:
{{ student.username }}
{{ student.firstname }}
{{ student.lastname }}
{{ student.official_code }}
{{ exercise.title }}
{{ exercise.start_time }}
{{ exercise.end_time }}
{{ course.title }}
$EmailNotificationTemplateDescription = "Puede modificar el correo enviado a los usuarios al terminar el ejercicio. Puede usar los siguientes términos:
{{ student.username }}
{{ student.firstname }}
{{ student.lastname }}
{{ student.official_code }}
{{ exercise.title }}
{{ exercise.start_time }}
{{ exercise.end_time }}
{{ course.title }}
{{ course.code }}";
$EmailNotificationTemplate = "Plantilla del correo electrónico enviado al usuario al terminar el ejercicio.";
$ExerciseEndButtonDisconnect = "Desconexión de la plataforma";
@ -2638,16 +2638,16 @@ $NoPosts = "Sin publicaciones";
$WithoutAchievedSkills = "Sin competencias logradas";
$TypeMessage = "Por favor, escriba su mensaje";
$ConfirmReset = "¿Seguro que quiere borrar todos los mensajes?";
$MailCronCourseExpirationReminderBody = "Estimado %s,
Ha llegado a nuestra atención que no ha completado el curso %s aunque su fecha de vencimiento haya sido establecida al %s, quedando %s días para terminarlo.
Le recordamos que solo tiene la posibilidad de seguir este curso una vez al año, razón por la cual le invitamos con insistencia a completar su curso en el plazo que queda.
Puede regresar al curso conectándose a la plataforma en esta dirección: %s
Saludos cordiales,
$MailCronCourseExpirationReminderBody = "Estimado %s,
Ha llegado a nuestra atención que no ha completado el curso %s aunque su fecha de vencimiento haya sido establecida al %s, quedando %s días para terminarlo.
Le recordamos que solo tiene la posibilidad de seguir este curso una vez al año, razón por la cual le invitamos con insistencia a completar su curso en el plazo que queda.
Puede regresar al curso conectándose a la plataforma en esta dirección: %s
Saludos cordiales,
El equipo de %s";
$MailCronCourseExpirationReminderSubject = "Urgente: Recordatorio de vencimiento de curso %s";
$ExerciseAndLearningPath = "Ejercicios y lecciones";
@ -5819,7 +5819,7 @@ $Item = "Ítem";
$ConfigureDashboardPlugin = "Configurar el plugin del Panel de control";
$EditBlocks = "Editar bloques";
$Never = "Nunca";
$YourAccountIsActiveYouCanLoginAndCheckYourCourses = "Estimado usuario <br><br>
$YourAccountIsActiveYouCanLoginAndCheckYourCourses = "Estimado usuario <br><br>
Usted no esta activo en la plataforma, por favor inicie sesión nuevamente y revise sus cursos";
$SessionFields = "Campos de sesión";
$CopyLabelSuffix = "Copia";
@ -5877,12 +5877,12 @@ $SearchProfileMatches = "Buscar perfiles que correspondan";
$IsThisWhatYouWereLookingFor = "Corresponde a lo que busca?";
$WhatSkillsAreYouLookingFor = "Que competencias está buscando?";
$ProfileSearch = "Búsqueda de perfil";
$CourseSettingsRegisterDirectLink = "Si su curso es público o abierto, puede usar el enlace directo abajo para invitar a nuevos usuarios, de tal manera que estén enviados directamente en este curso al finalizar el formulario de registro al portal. Si desea, puede añadir el parámetro e=1 a este enlace, remplazando \"1\" por el ID del ejercicio, para mandar los usuarios directamente a un ejercicio o examen. El ID del ejercicio se puede obtener en la URL del ejercicio cuando le de clic para entrar al mismo.<br />
$CourseSettingsRegisterDirectLink = "Si su curso es público o abierto, puede usar el enlace directo abajo para invitar a nuevos usuarios, de tal manera que estén enviados directamente en este curso al finalizar el formulario de registro al portal. Si desea, puede añadir el parámetro e=1 a este enlace, remplazando \"1\" por el ID del ejercicio, para mandar los usuarios directamente a un ejercicio o examen. El ID del ejercicio se puede obtener en la URL del ejercicio cuando le de clic para entrar al mismo.<br />
%s";
$DirectLink = "Enlace directo";
$here = "aqui";
$GoAheadAndBrowseOurCourseCatalogXOnceRegisteredYouWillSeeTheCourseHereX = "Adelante, pulsa %s para acceder al catálogo de cursos e inscribirte en un curso que te interese. Una vez inscrito/a, el curso aparecerá en esta pantalla en lugar de este mensaje.";
$HelloXAsYouCanSeeYourCourseListIsEmpty = "Hola %s, te damos la bienvenida,<br />
$HelloXAsYouCanSeeYourCourseListIsEmpty = "Hola %s, te damos la bienvenida,<br />
Como puedes ver, tu lista de cursos todavía está vacía. Esto es porque todavía no estás inscrito/a en ningún curso.";
$UnsubscribeUsersAlreadyAddedInCourse = "Desinscribir todos los alumnos ya inscritos";
$ImportUsers = "Importar usuarios";
@ -6146,9 +6146,9 @@ $AverageScore = "Puntuación media";
$LastConnexionDate = "Fecha de la última conexión";
$ToolVideoconference = "Videoconferencia";
$BigBlueButtonEnableTitle = "Herramienta de videoconferencia BigBlueButton";
$BigBlueButtonEnableComment = "Seleccione si desea habilitar la herramienta de videoconferencia BigBlueButton. Una vez activada, se mostrará como una herramienta en la página principal todos los curso. Los profesores podrán lanzar una videoconferencia en cualquier momento, pero los estudiantes sólo podrán unirse a una ya lanzada.
Si no dispone de un servidor BigBlueButton, pruebe a
<a href=\"http://bigbluebutton.org/\" target=\"_blank\">configurar uno</a> o pida ayuda a los <a href=\"http://www.chamilo.org/en/providers\" target=\"_blank\">proveedores oficiales de Chamilo</a>.
$BigBlueButtonEnableComment = "Seleccione si desea habilitar la herramienta de videoconferencia BigBlueButton. Una vez activada, se mostrará como una herramienta en la página principal todos los curso. Los profesores podrán lanzar una videoconferencia en cualquier momento, pero los estudiantes sólo podrán unirse a una ya lanzada.
Si no dispone de un servidor BigBlueButton, pruebe a
<a href=\"http://bigbluebutton.org/\" target=\"_blank\">configurar uno</a> o pida ayuda a los <a href=\"http://www.chamilo.org/en/providers\" target=\"_blank\">proveedores oficiales de Chamilo</a>.
BigBlueButton es libre, pero su instalación requiere ciertas habilidades técnicas que no todo el mundo posee. Puede instalarlo por su cuenta o buscar ayuda profesional con el consiguiente costo. En la lógica del software libre, nosotros le ofrecemos las herramientas para hacer más fácil su trabajo y le recomendamos profesionales (los proveedores oficiales de Chamilo) que serán capaces de ayudarle.";
$BigBlueButtonHostTitle = "Servidor BigBlueButton";
$BigBlueButtonHostComment = "Este es el nombre del servidor donde su servidor BigBlueButton está ejecutándose. Puede ser localhost, una dirección IP (ej., 192.168.14.54) o un nombre de dominio (por ej., my.video.com).";
@ -6159,14 +6159,14 @@ $OnlyAccessFromYourGroup = "Sólo accesible desde su grupo";
$CreateAssignmentPage = "Esto creará una página wiki especial en la que el profesor describe la tarea, la cual se enlazará automáticamente a las páginas wiki donde los estudiantes la realizarán. Tanto las página del docente como la de los estudiantes se crean automáticamente. En este tipo de tareas los estudiantes sólo podrán editar y ver sus páginas, aunque esto puede cambiarlo si lo desea.";
$UserFolders = "Carpetas de los usuarios";
$UserFolder = "Carpeta del usuario";
$HelpUsersFolder = "INFORMACIÓN SOLO VISIBLE POR EL PROFESORADO:\nLa carpeta de los usuarios contiene una carpeta de cada usuario que haya accedido a ella a través de la herramienta documentos, o bien que haya enviado algún fichero al curso a través del editor, salvo desde la herramienta grupos. Si ninguna de las dos circuntancias se ha producido la carpeta del usuario no estará creada. En el caso de los grupos, los archivos que se envíen a través del editor se depositarán en la carpeta de cada grupo, la cual sólo será accesible por los alumnos desde la herramienta grupos.
La carpeta de los usuarios y las carpetas que contiene de cada uno de ellos, se mantendrán por ocultas por defecto, si bien cada alumno podrá ver el contenido de la suya cuando acceda a inspeccionar los archivos del servidor a través del editor. No obstante, si un alumno conoce la dirección de un archivo de la carpeta de otro alumno podrá visualizarlo.
Si se hace visible la carpeta de los usuarios y la carpeta de uno o más alumnos, el resto de los alumnos podrán ver todo su contenido. En este caso, el alumno propietario de la carpeta también podrá desde la herramienta documentos (sólo dentro de su carpeta): crear y editar documentos web, convertir un documento web en una plantilla para uso personal, crear y editar dibujos SVG y PNG, grabar archivos de audio en formato WAV, convertir texto en audio en formato MP3, realizar capturas a través de su webcam, enviar documentos, crear carpetas, mover carpetas y archivos, borrar carpetas y archivos, y descargar copias de seguridad de su carpeta.
Por otra parte, la herramienta documentos se sincroniza con el gestor de archivos del editor web, así que los cambios en la gestión de los documentos realizados en una u otra afectarán a ambas.
$HelpUsersFolder = "INFORMACIÓN SOLO VISIBLE POR EL PROFESORADO:\nLa carpeta de los usuarios contiene una carpeta de cada usuario que haya accedido a ella a través de la herramienta documentos, o bien que haya enviado algún fichero al curso a través del editor, salvo desde la herramienta grupos. Si ninguna de las dos circuntancias se ha producido la carpeta del usuario no estará creada. En el caso de los grupos, los archivos que se envíen a través del editor se depositarán en la carpeta de cada grupo, la cual sólo será accesible por los alumnos desde la herramienta grupos.
La carpeta de los usuarios y las carpetas que contiene de cada uno de ellos, se mantendrán por ocultas por defecto, si bien cada alumno podrá ver el contenido de la suya cuando acceda a inspeccionar los archivos del servidor a través del editor. No obstante, si un alumno conoce la dirección de un archivo de la carpeta de otro alumno podrá visualizarlo.
Si se hace visible la carpeta de los usuarios y la carpeta de uno o más alumnos, el resto de los alumnos podrán ver todo su contenido. En este caso, el alumno propietario de la carpeta también podrá desde la herramienta documentos (sólo dentro de su carpeta): crear y editar documentos web, convertir un documento web en una plantilla para uso personal, crear y editar dibujos SVG y PNG, grabar archivos de audio en formato WAV, convertir texto en audio en formato MP3, realizar capturas a través de su webcam, enviar documentos, crear carpetas, mover carpetas y archivos, borrar carpetas y archivos, y descargar copias de seguridad de su carpeta.
Por otra parte, la herramienta documentos se sincroniza con el gestor de archivos del editor web, así que los cambios en la gestión de los documentos realizados en una u otra afectarán a ambas.
Así pues, la carpeta de usuario no sólo es un lugar para depositar los archivos, sino que se convierte en un completo gestor de los documentos que los estudiantes utilizan durante el curso. Además, recuerde que cualquier usuario podrá copiar un archivo, que sea visible, de cualquier carpeta de la herramienta documentos (sea o no la suya) a su portafolios o área personal de documentos de la red social, donde estará disponible para que lo pueda usar en otros cursos.";
$HelpFolderChat = "INFORMACIÓN SOLO VISIBLE POR EL PROFESORADO:\nEsta carpeta contiene todas las sesiones que se han realizado en el chat. Aunque muchas veces las sesiones en el chat pueden ser triviales, en otras pueden ser dignas de ser tratadas como un documento más de trabajo. Para ello, sin cambiar la visibilidad de esta carpeta, haga visible el archivo y enlácelo donde considere oportuno. No se recomienda hacer visible esta carpeta.";
$HelpFolderCertificates = "INFORMACIÓN SOLO VISIBLE POR EL PROFESORADO:\nEsta carpeta contiene los distintos modelos de certificados que se han creado para la herramienta Evaluaciones. No se recomienda hacer visible esta carpeta.";
@ -6181,7 +6181,7 @@ $AsciiSvgComment = "Activación del editor de gráficos matemáticos (ASCIIsvg)"
$Text2AudioTitle = "Activar servicios de conversión de texto en audio";
$Text2AudioComment = "Herramienta on-line para convertir texto en voz. Utiliza tecnología y sistemas de síntesis del habla para ofrecer recursos de voz.";
$ShowUsersFoldersTitle = "Mostrar las carpetas de los usuarios en la herramienta documentos";
$ShowUsersFoldersComment = "
$ShowUsersFoldersComment = "
Esta opción le permitirá mostrar u ocultar a los profesores las carpetas que el sistema genera para cada usuario que visita la herramienta documentos o envía un archivo a través del editor web. Si muestra estas carpetas a los profesores, éstos podrán hacerlas visibles o no a los estudiantes y permitirán a cada estudiante tener un lugar específico en el curso donde, no sólo almacenar documentos, sino donde también podrán crear y modificar páginas web y poder exportarlas a pdf, realizar dibujos, realizar plantillas web personales, enviar archivos, así como crear, mover y eliminar subdirectorios y archivos, y sacar copias de seguridad de sus carpetas. Cada usuario del curso dispondrá de un completo gestor de documentos. Además, recuerde que cualquier usuario podrá copiar un archivo, que sea visible, de cualquier carpeta de la herramienta documentos (sea o no la suya) a su portafolios o área personal de documentos de la red social, donde estará disponible para que lo pueda usar en otros cursos.";
$ShowDefaultFoldersTitle = "Mostrar en la herramienta documentos las carpetas que contienen los recursos multimedia suministrados por defecto.";
$ShowDefaultFoldersComment = "Las carpetas de archivos multimedia suministradas por defecto contienen archivos de libre distribución organizados en las categorías de video, audio, imagen y animaciones flash que para utilizar en sus cursos. Aunque las oculte en la herramienta documentos, podrá seguir usándolas en el editor web de la plataforma.";
@ -6217,8 +6217,8 @@ $Pediaphon = "Usar los servicios de audio de Pediaphon";
$HelpPediaphon = "Admite textos con varios miles de caracteres, pudiéndose seleccionar varios tipos de voz masculinas y femeninas (según el idioma). Los archivos de audio se generarán y guardarán automáticamente en el directorio de Chamilo en el que Usted actualmente se encuentra.";
$FirstSelectALanguage = "Primero seleccione un idioma";
$MoveUserStats = "Mover los resultados de los usuarios desde/hacia una sesión de formación";
$CompareUserResultsBetweenCoursesAndCoursesInASession = "Esta herramienta avanzada le permite mejorar manualmente el seguimiento de los resultados de los usuarios cuando cambia de un modelo de cursos a un modelo de sesiones de formación. En una mayoría de casos, no necesitará usarla.<br />
En esta pantalla, puede comparar los resultados que los usuarios tienen en el contexto de un curso y en el contexto del mismo curso dentro de una sesión de formación.<br />
$CompareUserResultsBetweenCoursesAndCoursesInASession = "Esta herramienta avanzada le permite mejorar manualmente el seguimiento de los resultados de los usuarios cuando cambia de un modelo de cursos a un modelo de sesiones de formación. En una mayoría de casos, no necesitará usarla.<br />
En esta pantalla, puede comparar los resultados que los usuarios tienen en el contexto de un curso y en el contexto del mismo curso dentro de una sesión de formación.<br />
Una vez que decidida cuál es el mejor contexto para el seguimiento (resultados de ejercicios y seguimiento de lecciones), podrá moverlo de un curso a una sesión.";
$PDFExportWatermarkEnableTitle = "Marcas de agua en las exportaciones a PDF";
$PDFExportWatermarkEnableComment = "Si activa esta opción podrá cargar una imagen o un texto que serán automáticamente añadidos como marca de agua en los documentos resultantes de todas las exportaciones a PDF que realice el sistema.";
@ -6353,8 +6353,8 @@ $MailNotifyInvitation = "Notificar las invitaciones por correo electrónico";
$MailNotifyMessage = "Notificar los mensajes por correo electrónico";
$MailNotifyGroupMessage = "Notificar en los grupos los mensajes por correo electrónico";
$SearchEnabledTitle = "Búsqueda a texto completo";
$SearchEnabledComment = "Esta funcionalidad permite la indexación de la mayoría de los documentos subidos a su portal, con lo que permite la búsqueda para los usuarios.<br />
Esta funcionalidad no indexa los documentos que ya fueron subidos, por lo que es importante (si se quiere) activarla al comienzo de su implementación.<br />
$SearchEnabledComment = "Esta funcionalidad permite la indexación de la mayoría de los documentos subidos a su portal, con lo que permite la búsqueda para los usuarios.<br />
Esta funcionalidad no indexa los documentos que ya fueron subidos, por lo que es importante (si se quiere) activarla al comienzo de su implementación.<br />
Una vez activada, una caja de búsqueda aparecerá en la lista de cursos de cada usuario. Buscar un término específico suministra una lista de documentos, ejercicios o temas de foro correspondientes, filtrados dependiendo de su disponibilidad para el usuario.";
$SpecificSearchFieldsAvailable = "Campos de búsqueda personalizados disponibles";
$XapianModuleInstalled = "Módulo Xapian instalado";
@ -7002,37 +7002,37 @@ $GradebookEnableLockingTitle = "Activar bloqueo de Evaluaciones por los profesor
$GradebookEnableLockingComment = "Una vez activada, esta opción permitirá a los profesores bloquear cualquier evaluación dentro de su curso. Esto prohibirá al profesor cualquier modificación posterior de los resultados de sus alumnos en los recursos usados para esta evaluación: exámenes, lecciones, tareas, etc. El único rol autorizado a desbloquear una evaluación es el administrador. El profesor estará informado de esta posibilidad al intentar desbloquear la evaluación. El bloqueo como el desbloqueo estarán guardados en el registro de actividades importantes del sistema.";
$LdapDescriptionComment = "<div class='normal-message'> <br /><ul><li>LDAP authentication : <br />See I. below to configure LDAP <br />See II. below to activate LDAP authentication </li><br /><br /><li> Update user attributes, with LDAP data, after CAS authentication(see <a href='settings.php?category=CAS'>CAS configuration </a>) : <br />See I. below to configure LDAP <br />CAS manage user authentication, LDAP activation isn't required. </li><br /></ul></div><br /><h4>I. LDAP configuration</h4><h5>Edit file main/inc/conf/auth.conf.php </h5>-&gt; Edit values of array <code>&#36;extldap_config</code> <br /><br />Parameters are <br /><ul><li>base domain string (ex : 'base_dn' =&gt; 'DC=cblue,DC=be') </li><li>admin distinguished name (ex : 'admin_dn' =&gt;'CN=admin,dc=cblue,dc=be') </li><li>admin password (ex : 'admin_password' =&gt; '123456') </li><li>ldap host (ex : 'host' =&gt; array('1.2.3.4', '2.3.4.5', '3.4.5.6')) </li><li>filter (ex : 'filter' =&gt; '') </li><li>port (ex : 'port' =&gt; 389) </li><li>protocol version (2 or 3) (ex : 'protocol_version' =&gt; 3) </li><li>user_search (ex : 'user_search' =&gt; 'sAMAccountName=%username%') </li><li>encoding (ex : 'encoding' =&gt; 'UTF-8') </li><li>update_userinfo (ex : 'update_userinfo' =&gt; true) </li></ul>-&gt; To update correspondences between user and LDAP attributes, edit array <code>&#36;extldap_user_correspondance</code> <br />Array values are &lt;chamilo_field&gt; =&gt; &gt;ldap_field&gt; <br />Array structure is explained in file main/auth/external_login/ldap.conf.php<br /><br /><br /><h4>II. Activate LDAP authentication </h4><h5>Edit file main/inc/conf/configuration.php </h5>-&gt; Uncomment lines <br />&#36;extAuthSource[&quot;extldap&quot;][&quot;login&quot;] =&#36;_configuration['root_sys'].&#36;_configuration['code_append'].&quot;auth/external_login/login.ldap.php&quot;;<br />&#36;extAuthSource[&quot;extldap&quot;][&quot;newUser&quot;] =&#36;_configuration['root_sys'].&#36;_configuration['code_append'].&quot;auth/external_login/newUser.ldap.php&quot;;<br /><br />N.B. : LDAP users use same fields than platform users to login. <br />N.B. : LDAP activation adds a menu External authentication [LDAP] in &quot;add or modify&quot; user pages.</div>";
$ShibbolethMainActivateTitle = "<h3>Autenticación Shibboleth</h3>";
$ShibbolethMainActivateComment = "En primer lugar, tiene que configurar Shibboleth para su servidor web.
Para configurarlo en Chamilo:
editar el archivo <strong> main/auth/shibboleth/config/aai.class.php</strong>
Modificar valores de \$result con el nombre de los atributos de Shibboleth
\$result->unique_id = 'mail';
\$result->firstname = 'cn';
\$result->lastname = 'uid';
\$result->email = 'mail';
\$result->language = '-';
\$result->gender = '-';
\$result->address = '-';
\$result->staff_category = '-';
\$result->home_organization_type = '-';
\$result->home_organization = '-';
\$result->affiliation = '-';
\$result->persistent_id = '-';
...
$ShibbolethMainActivateComment = "En primer lugar, tiene que configurar Shibboleth para su servidor web.
Para configurarlo en Chamilo:
editar el archivo <strong> main/auth/shibboleth/config/aai.class.php</strong>
Modificar valores de \$result con el nombre de los atributos de Shibboleth
\$result->unique_id = 'mail';
\$result->firstname = 'cn';
\$result->lastname = 'uid';
\$result->email = 'mail';
\$result->language = '-';
\$result->gender = '-';
\$result->address = '-';
\$result->staff_category = '-';
\$result->home_organization_type = '-';
\$result->home_organization = '-';
\$result->affiliation = '-';
\$result->persistent_id = '-';
...
Ir a Plug-in para añadir el botón 'Shibboleth Login' en su campus de Chamilo.";
$LdapDescriptionTitle = "<h3>Autentificacion LDAP</h3>";
$FacebookMainActivateTitle = "Autenticación con Facebook";
$FacebookMainActivateComment = "En primer lugar, se tiene que crear una aplicación de Facebook (ver https://developers.facebook.com/apps) con una cuenta de Facebook. En los parámetros de aplicaciones de Facebook, el valor de dirección URL del sitio debe tener \"una acción = fbconnect\" un parámetro GET (http://mychamilo.com/?action=fbconnect, por ejemplo).
Entonces, editar el archivo <strong> main/auth/external_login/facebook.conf.php </strong>
e ingresar en \"appId\" y \"secret\" los valores de \$facebook_config.
$FacebookMainActivateComment = "En primer lugar, se tiene que crear una aplicación de Facebook (ver https://developers.facebook.com/apps) con una cuenta de Facebook. En los parámetros de aplicaciones de Facebook, el valor de dirección URL del sitio debe tener \"una acción = fbconnect\" un parámetro GET (http://mychamilo.com/?action=fbconnect, por ejemplo).
Entonces, editar el archivo <strong> main/auth/external_login/facebook.conf.php </strong>
e ingresar en \"appId\" y \"secret\" los valores de \$facebook_config.
Ir a Plug-in para añadir un botón configurable \"Facebook Login\" para el campus de Chamilo.";
$AnnouncementForGroup = "Anuncios para un grupo";
$AllGroups = "Todos los grupos";
@ -7241,4 +7241,5 @@ $YouNotYetAchievedCertificates = "Aún no ha logrado certificados";
$SearchCertificates = "Buscar certificados";
$TheUserXNotYetAchievedCertificates = "El usuario %s aún no ha logrado certificados";
$CertificatesNotPublic = "Los certificados no son públicos";
$MatchingDraggable = "Coincidencia arrastrable";
?>

@ -86,6 +86,154 @@
}
};
var MatchingDraggable = {
colorDestination: '#316B31',
curviness: 0,
connectorType: 'Straight',
initialized: false,
init: function (questionId) {
var windowQuestionSelector = '.window' + questionId + '_question',
countConnections = $(windowQuestionSelector).length,
colorArray = [],
colorArrayDestination = [];
if (countConnections > 0) {
colorArray = $.xcolor.analogous("#da0", countConnections);
colorArrayDestination = $.xcolor.analogous("#51a351", countConnections);
} else {
colorArray = $.xcolor.analogous("#da0", 10);
colorArrayDestination = $.xcolor.analogous("#51a351", 10);
}
jsPlumb.importDefaults({
DragOptions: {cursor: 'pointer', zIndex: 2000},
PaintStyle: {strokeStyle: '#000'},
EndpointStyle: {strokeStyle: '#316b31'},
Endpoint: 'Rectangle',
Anchors: ['TopCenter', 'TopCenter']
});
var exampleDropOptions = {
tolerance: 'touch',
hoverClass: 'dropHover',
activeClass: 'dragActive'
};
var destinationEndPoint = {
endpoint: ["Dot", {radius: 15}],
paintStyle: {fillStyle: MatchingDraggable.colorDestination},
isSource: false,
connectorStyle: {strokeStyle: MatchingDraggable.colorDestination, lineWidth: 8},
connector: [
MatchingDraggable.connectorType,
{curviness: MatchingDraggable.curviness}
],
maxConnections: 1000,
isTarget: true,
dropOptions: exampleDropOptions,
beforeDrop: function (params) {
jsPlumb.select({source: params.sourceId}).each(function (connection) {
jsPlumb.detach(connection);
});
var selectId = params.sourceId + "_select";
var value = params.targetId.split("_")[2];
$("#" + selectId + " option")
.removeAttr('selected')
.filter(function (index) {
return index === parseInt(value);
})
.attr("selected", true);
return true;
}
};
var count = 0;
var sourceDestinationArray = [];
$(windowQuestionSelector).each(function (index) {
var windowId = $(this).attr("id");
var scope = windowId + "scope";
var destinationColor = colorArray[count].getHex();
var sourceEndPoint = {
endpoint: [
"Dot",
{radius: 15}
],
paintStyle: {
fillStyle: destinationColor
},
isSource: true,
connectorStyle: {
strokeStyle: "#8a8888",
lineWidth: 8
},
connector: [
MatchingDraggable.connectorType,
{curviness: MatchingDraggable.curviness}
],
maxConnections: 1,
isTarget: false,
dropOptions: exampleDropOptions,
scope: scope
};
sourceDestinationArray[count + 1] = sourceEndPoint;
count++;
jsPlumb.addEndpoint(
windowId,
{
anchor: ['RightMiddle', 'RightMiddle', 'RightMiddle', 'RightMiddle']
},
sourceEndPoint
);
var destinationCount = 0;
$(windowQuestionSelector).each(function (index) {
var windowDestinationId = $(this).attr("id");
destinationEndPoint.scope = scope;
destinationEndPoint.paintStyle.fillStyle = colorArrayDestination[destinationCount].getHex();
destinationCount++;
jsPlumb.addEndpoint(
windowDestinationId + "_answer",
{
anchors: ['LeftMiddle', 'LeftMiddle', 'LeftMiddle', 'LeftMiddle']
},
destinationEndPoint
);
});
});
MatchingDraggable.attachBehaviour();
},
attachBehaviour: function () {
if (!MatchingDraggable.initialized) {
MatchingDraggable.initialized = true;
}
}
};
jsPlumb.ready(function () {
if ($(".drag_question").length > 0) {
MatchingDraggable.init();
$(document).scroll(function () {
jsPlumb.repaintEverything();
});
$(window).resize(function () {
jsPlumb.repaintEverything();
});
}
});
$(document).on('ready', function () {
DraggableAnswer.init(
$(".exercise-draggable-answer"),

@ -72,6 +72,22 @@
</div>
</div>
{# Global modal, load content by AJAX call to href attribute on anchor tag with 'ajax' class #}
<div class="modal fade" id="global-modal" tabindex="-1" role="dialog" aria-labelledby="global-modal-title" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="{{ "Close" | get_lang }}">
<span aria-hidden="true">&times;</span>
</button>
<h4 class="modal-title" id="global-modal-title">&nbsp;</h4>
</div>
<div class="modal-body">
</div>
</div>
</div>
</div>
<script>
$("form").on("click", ' .advanced_parameters', function() {
/*var id = $(this).attr('id') + '_options';

@ -366,47 +366,36 @@ $(function() {
});
// Global popup
$('.ajax').on('click', function() {
var url = this.href;
var dialog = $("#dialog");
if ($("#dialog").length == 0) {
dialog = $('<div id="dialog" style="display:none"></div>').appendTo('body');
}
var width_value = 580;
var height_value = 450;
var resizable_value = true;
$('a.ajax').on('click', function(e) {
e.preventDefault();
var new_param = get_url_params(url, 'width');
if (new_param) {
width_value = new_param;
}
var contentUrl = this.href,
loadModalContent = $.get(contentUrl);
var new_param = get_url_params(url, 'height')
if (new_param) {
height_value = new_param;
}
$.when(loadModalContent).done(function(modalContent) {
var modalDialog = $('#global-modal').find('.modal-dialog'),
modalSize = get_url_params(contentUrl, 'modal_size'),
modalWidth = get_url_params(contentUrl, 'width');
var new_param = get_url_params(url, 'resizable');
if (new_param) {
resizable_value = new_param;
}
modalDialog.removeClass('modal-lg modal-sm').css('width', '');
// load remote content
dialog.load(
url,
{},
function(responseText, textStatus, XMLHttpRequest) {
dialog.dialog({
modal : true,
width : width_value,
height : height_value,
resizable : resizable_value
});
if (modalSize) {
switch (modalSize) {
case 'lg':
modalDialog.addClass('modal-lg');
break;
case 'sm':
modalDialog.addClass('modal-sm');
break;
}
} else if (modalWidth) {
modalDialog.css('width', modalWidth + 'px');
}
);
// prevent the browser to follow the link
return false;
$('#global-modal').find('.modal-body').html(modalContent);
$('#global-modal').modal('show');
});
});
$('a.expand-image').on('click', function(e) {

@ -31,7 +31,7 @@ $tableSession = Database::get_main_table(TABLE_MAIN_SESSION);
$sql = "SELECT id, name, date_start, date_end FROM $tableSession";
$res = Database::query($sql);
while ($row = Database::fetch_assoc($res)) {
$presql = "INSERT INTO $table (session_id, name, date_start, date_end, visible)
$presql = "INSERT INTO $table (id, name, date_start, date_end, visible)
VALUES ('" . $row['id'] . "','" . $row['name'] . "','" . $row['date_start'] . "','" . $row['date_end'] . "','NO')";
Database::query($presql);
}
@ -59,7 +59,7 @@ while ($row = Database::fetch_assoc($res)) {
$table = Database::get_main_table(TABLE_BUY_SESSION_COURSE);
$sql = "CREATE TABLE IF NOT EXISTS $table (
id INT unsigned NOT NULL auto_increment PRIMARY KEY,
id_session SMALLINT(5) unsigned DEFAULT '0',
session_id SMALLINT(5) unsigned DEFAULT '0',
course_code VARCHAR(40),
nbr_users SMALLINT(5) unsigned DEFAULT '0',
sync int)";
@ -69,8 +69,8 @@ $tableSessionCourse = Database::get_main_table(TABLE_MAIN_SESSION_COURSE);
$sql = "SELECT * FROM $tableSessionCourse";
$res = Database::query($sql);
while ($row = Database::fetch_assoc($res)) {
$presql = "INSERT INTO $table (id_session, course_code, nbr_users)
VALUES ('" . $row['id_session'] . "','" . $row['course_code'] . "','" . $row['nbr_users'] . "')";
$presql = "INSERT INTO $table (session_id, c_id, nbr_users)
VALUES ('" . $row['session_id'] . "','" . $row['c_id'] . "','" . $row['nbr_users'] . "')";
Database::query($presql);
}

@ -32,17 +32,18 @@ $(document).ready(function () {
});
$(".save").click(function () {
var visible = $(this).parent().parent().prev().prev().children().attr("checked");
var price = $(this).parent().parent().prev().children().attr("value");
var currentRow = $(this).closest("tr");
var courseOrSessionObject ={
tab: "save_mod",
visible: currentRow.find("[name='visible']").is(':checked') ? 1 : 0,
price: currentRow.find("[name='price']").val()
};
var course_id = $(this).attr('id');
var courseOrSession = $(this).parent().parent()[0].attributes[0].value;
if (courseOrSession.indexOf("session") > -1) {
courseOrSession = "session_id";
} else {
courseOrSession = "course_id";
}
var courseOrSessionObject = {tab: "save_mod", visible: visible, price: price};
var courseOrSession = ($(this).closest("td").attr('id')).indexOf("session") > -1 ? "session_id" : "course_id";
courseOrSessionObject[courseOrSession] = course_id;
$.post("function.php", courseOrSessionObject,
function (data) {
if (data.status == "false") {

@ -25,14 +25,14 @@ function sync()
$sql = "SELECT session_id, c_id, nbr_users FROM $tableSessionRelCourse";
$res = Database::query($sql);
while ($row = Database::fetch_assoc($res)) {
$sql = "SELECT 1 FROM $tableBuySessionRelCourse WHERE id_session=" . $row['session_id'];
$sql = "SELECT 1 FROM $tableBuySessionRelCourse WHERE session_id=" . $row['session_id'];
$result = Database::query($sql);
if (Database::affected_rows($result) > 0) {
$sql = "UPDATE $tableBuySessionRelCourse SET sync = 1 WHERE id_session=" . $row['session_id'];
$sql = "UPDATE $tableBuySessionRelCourse SET sync = 1 WHERE session_id=" . $row['session_id'];
Database::query($sql);
} else {
$courseCode = api_get_course_info_by_id($row['c_id'])['code'];
$sql = "INSERT INTO $tableBuySessionRelCourse (id_session, course_code, nbr_users, sync)
$sql = "INSERT INTO $tableBuySessionRelCourse (session_id, course_code, nbr_users, sync)
VALUES (" . $row['session_id'] . ", '" . $courseCode . "', " . $row['nbr_users'] . ", 1);";
Database::query($sql);
}
@ -49,9 +49,9 @@ function sync()
$sql = "SELECT id, code, title FROM $tableCourse";
$res = Database::query($sql);
while ($row = Database::fetch_assoc($res)) {
$sql = "SELECT id_session FROM $tableBuySessionRelCourse
$sql = "SELECT session_id FROM $tableBuySessionRelCourse
WHERE course_code = '" . $row['code'] . "' LIMIT 1";
$courseIdSession = Database::fetch_assoc(Database::query($sql))['id_session'];
$courseIdSession = Database::fetch_assoc(Database::query($sql))['session_id'];
if (!is_numeric($courseIdSession)) {
$courseIdSession = 0;
}

@ -442,7 +442,7 @@ if ($_REQUEST['tab'] == 'save_mod') {
$tableField = 'session_id';
}
$visible = (isset($_REQUEST['visible'])) ? 1 : 0;
$visible = intval($_REQUEST['visible']);
$price = Database::escape_string($_REQUEST['price']);
$sql = "UPDATE $tableBuy

@ -48,8 +48,10 @@ class Skype extends Plugin implements HookPluginInterface
)
);
if (empty($result)) {
require_once api_get_path(LIBRARY_PATH).'extra_field.lib.php';
$extraField = new Extrafield('user');
$extraField->save(array(
'field_type' => UserManager::USER_FIELD_TYPE_TEXT,
'field_variable' => 'skype',
'field_display_text' => 'Skype',
'field_visible' => 1,

@ -199,9 +199,35 @@ $isAdmin = api_is_platform_admin();
Display::display_header($plugin->get_lang('MyTickets'));
if ($isAdmin) {
$get_parameter = '&keyword=' . Security::remove_XSS($_GET['keyword']) . '&keyword_status=' . Security::remove_XSS($_GET['keyword_status']) . '&keyword_category=' .Security::remove_XSS($_GET['keyword_category']). '&keyword_request_user=' . Security::remove_XSS($_GET['keyword_request_user']);
$get_parameter .= '&keyword_admin=' . Security::remove_XSS($_GET['keyword_admin']) . '&keyword_start_date=' . Security::remove_XSS($_GET['keyword_start_date']) . '&keyword_unread=' . Security::remove_XSS($_GET['keyword_unread']);
$get_parameter2 = '&Tickets_per_page=' . Security::remove_XSS($_GET['Tickets_per_page']) . '&Tickets_column=' . Security::remove_XSS($_GET['Tickets_column']);
$getParameters = [
'keyword',
'keyword_status',
'keyword_category',
'keyword_request_user',
'keyword_admin',
'keyword_start_date',
'keyword_unread',
'Tickets_per_page',
'Tickets_column'
];
$get_parameter = '';
foreach ($getParameters as $getParameter) {
if (isset($_GET[$getParameter])) {
$get_parameter .= "&$getParameter=".Security::remove_XSS($_GET[$getParameter]);
}
}
$getParameters = [
'Tickets_per_page',
'Tickets_column'
];
$get_parameter2 = '';
foreach ($getParameters as $getParameter) {
if (isset($_GET[$getParameter])) {
$get_parameter2 .= "&$getParameter=".Security::remove_XSS($_GET[$getParameter]);
}
}
if (isset($_GET['submit_advanced'])) {
$get_parameter .= "&submit_advanced=";
}
@ -209,7 +235,7 @@ if ($isAdmin) {
$get_parameter .= "&submit_simple=";
}
//select categories
$select_types .= '<select class="chzn-select" name = "keyword_category" id="keyword_category" ">';
$select_types = '<select class="chzn-select" name = "keyword_category" id="keyword_category" ">';
$select_types .= '<option value="">---' . get_lang('Select') . '---</option>';
$types = TicketManager::get_all_tickets_categories();
foreach ($types as $type) {
@ -217,7 +243,7 @@ if ($isAdmin) {
}
$select_types .= "</select>";
//select admins
$select_admins .= '<select class ="chzn-select" name = "keyword_admin" id="keyword_admin" ">';
$select_admins = '<select class ="chzn-select" name = "keyword_admin" id="keyword_admin" ">';
$select_admins .= '<option value="">---' . get_lang('Select') . '---</option>';
$select_admins .= '<option value = "0">' . $plugin->get_lang('Unassigned') . '</option>';
$admins = UserManager::get_user_list_like(array("status" => "1"), array("username"), true);
@ -226,7 +252,7 @@ if ($isAdmin) {
}
$select_admins .= "</select>";
//select status
$select_status .= '<select class ="chzn-select" name = "keyword_status" id="keyword_status" >';
$select_status = '<select class ="chzn-select" name = "keyword_status" id="keyword_status" >';
$select_status .= '<option value="">---' . get_lang('Select') . '---</option>';
$status = TicketManager::get_all_tickets_status();
foreach ($status as $stat) {
@ -234,7 +260,7 @@ if ($isAdmin) {
}
$select_status .= "</select>";
//select priority
$select_priority .= '<select name = "keyword_priority" id="keyword_priority" >';
$select_priority = '<select name = "keyword_priority" id="keyword_priority" >';
$select_priority .= '<option value="">' . get_lang('All') . '</option>';
$select_priority .= '<option value="NRM">' . $plugin->get_lang('PriorityNormal') . '</option>';
$select_priority .= '<option value="HGH">' . $plugin->get_lang('PriorityHigh') . '</option>';

@ -411,8 +411,11 @@ function show_form_send_ticket()
'button',
'compose',
get_lang('SendMessage'),
null,
null,
null,
'save',
array(
'class' => 'save',
'id' => 'btnsubmit'
)
);

@ -94,6 +94,14 @@ class TicketManager
$category_id = intval($category_id);
$project_id = intval($project_id);
$subject = Database::escape_string($subject);
// Remove html tags
$content = strip_tags($content);
// Remove &nbsp;
$content = str_replace("&nbsp;", '', $content);
// Remove \r\n\t\s... from ticket's beginning and end
$content = trim($content);
// Replace server newlines with html
$content = str_replace("\r\n", '<br>', $content);
$content = Database::escape_string($content);
$personalEmail = Database::escape_string($personalEmail);
$status = Database::escape_string($status);
@ -504,9 +512,12 @@ class TicketManager
if (!$isAdmin) {
$sql .= " AND request_user = '$user_id' ";
}
$keyword_unread = Database::escape_string(
trim($_GET['keyword_unread'])
);
$keyword_unread = '';
if (isset($_GET['keyword_unread'])) {
$keyword_unread = Database::escape_string(
trim($_GET['keyword_unread'])
);
}
//Search simple
if (isset($_GET['submit_simple'])) {
if ($_GET['keyword'] != '') {
@ -714,7 +725,7 @@ class TicketManager
$row['col7'],
$row['col8'],
$actions,
eregi_replace("[\n|\r|\n\r|\r\n]", ' ', strip_tags($row['col9']))
$row['col9']
);
} else {
$actions = "";
@ -812,9 +823,12 @@ class TicketManager
OR user.username LIKE '%$keyword%') ";
}
}
$keyword_unread = Database::escape_string(
trim($_GET['keyword_unread'])
);
$keyword_unread = '';
if (isset($_GET['keyword_unread'])) {
$keyword_unread = Database::escape_string(
trim($_GET['keyword_unread'])
);
}
//Search advanced
if (isset($_GET['submit_advanced'])) {
$keyword_category = Database::escape_string(

@ -247,13 +247,14 @@ if (!isset($_POST['compose'])) {
}
}
$titulo = '<center><h1>Ticket #' . $ticket['ticket']['ticket_code'] . '</h1></center>';
$img_assing = '';
if ($isAdmin && $ticket['ticket']['status_id'] != 'CLS' && $ticket['ticket']['status_id'] != 'REE') {
if ($ticket['ticket']['assigned_last_user'] != 0 && $ticket['ticket']['assigned_last_user'] == $user_id) {
$img_assing = '<a href="' . api_get_self() . '?ticket_id=' . $ticket['ticket']['ticket_id'] . '&amp;action=unassign" id="unassign">
<img src="' . api_get_path(WEB_CODE_PATH) . 'img/admin_star.png" style="height: 32px; width: 32px;" border="0" title="Unassign" align="center"/>
</a>';
} else {
$img_assing .= '<a href="#" id="assign"><img src="' . api_get_path(WEB_CODE_PATH) . 'img/admin_star_na.png" style="height: 32px; width: 32px;" title="Assign" align="center"/></a>';
$img_assing = '<a href="#" id="assign"><img src="' . api_get_path(WEB_CODE_PATH) . 'img/admin_star_na.png" style="height: 32px; width: 32px;" title="Assign" align="center"/></a>';
}
}
$bold = '';
@ -306,7 +307,7 @@ if (!isset($_POST['compose'])) {
</tr>';
}
//select admins
$select_admins .= '<select class ="chzn-select" style="width: 350px; " name = "admins" id="admins" ">';
$select_admins = '<select class ="chzn-select" style="width: 350px; " name = "admins" id="admins" ">';
$admins = UserManager::get_user_list_like(array("status" => "1"), array("username"), true);
foreach ($admins as $admin) {
@ -450,9 +451,10 @@ function show_form_send_message()
'button',
'compose',
get_lang('SendMessage'),
array(
'class' => 'save'
)
null,
null,
null,
'save'
);
$form->display();

Loading…
Cancel
Save