Removed -lang- prefix in get_lang() calls

skala
Yannick Warnier 13 years ago
parent f3970c0458
commit faee8f4be6
  1. 2
      main/document/headerpage.php
  2. 4
      main/document/showinframes.php
  3. 2
      main/document/slideshowoptions.php
  4. 8
      main/inc/ajax/course_home.ajax.php
  5. 3
      main/inc/lib/display.lib.php
  6. 2
      main/inc/lib/userportal.lib.php
  7. 2
      main/newscorm/blank.php
  8. 12
      main/newscorm/learnpath.class.php
  9. 44
      main/newscorm/learnpathItem.class.php
  10. 4
      main/newscorm/lp_add.php
  11. 6
      main/newscorm/lp_admin_view.php
  12. 4
      main/newscorm/lp_edit.php
  13. 26
      main/newscorm/lp_list.php
  14. 2
      main/session/index.php
  15. 18
      main/template/default/auth/courses_list.php
  16. 6
      main/work/work.lib.php

@ -36,6 +36,6 @@ Display::display_header(null, 'Doc');
echo '<div align="center">';
$file_url_web = api_get_path(WEB_COURSE_PATH).$_course['path'].'/document'.$header_file.'?'.api_get_cidreq();
echo "<h1>";
echo '<a href="'.$file_url_web.'" target="blank">'.get_lang('_cut_paste_link').'</a></div>';
echo '<a href="'.$file_url_web.'" target="blank">'.get_lang('CutPasteLink').'</a></div>';
echo "</h1>";

@ -280,7 +280,7 @@ $file_url_web = api_get_path(WEB_COURSE_PATH).$_course['path'].'/document'.$head
if (!$is_nanogong_available) {
if (in_array(strtolower($pathinfo['extension']) , array('html', "htm"))) {
echo '<a class="btn" href="'.$file_url_web.'" target="_blank">'.get_lang('_cut_paste_link').'</a>';
echo '<a class="btn" href="'.$file_url_web.'" target="_blank">'.get_lang('CutPasteLink').'</a>';
} else {
echo '<a class="btn" href="'.$file_url_web.'" target="_blank">'.get_lang('Download').'</a>';
}
@ -430,4 +430,4 @@ if ($is_nanogong_available) {
if ($execute_iframe) {
echo '<iframe id="mainFrame" name="mainFrame" border="0" frameborder="0" scrolling="no" style="width:100%;" height="600" src="'.$file_url_web.'&amp;rand='.mt_rand(1, 10000).'" height="500"></iframe>';
}
Display::display_footer();
Display::display_footer();

@ -154,7 +154,7 @@ echo '</div>';
}
?> >
<br />
<?php echo get_lang('_height');?>:
<?php echo get_lang('Height');?>:
&nbsp;&nbsp;&nbsp;&nbsp;<input name="height" type="text" id="height" <?php
if ($image_resizing == 'resizing') {
echo ' value="'.$height.'"';

@ -160,7 +160,7 @@ switch ($action) {
$label = get_lang('LearnpathUpdated');
}
if (strtotime($last_date) < strtotime($lp_date)) {
$icons = Display::return_icon($image, get_lang('_title_notification').': '.$label.' - '.$lp_date);
$icons = Display::return_icon($image, get_lang('TitleNotification').': '.$label.' - '.$lp_date);
}
if (!empty($lp_item['publicated_on'])) {
@ -282,7 +282,7 @@ switch ($action) {
$label = get_lang('LearnpathUpdated');
}
if (strtotime($last_date) < strtotime($lp_date)) {
$icons = Display::return_icon($image, get_lang('_title_notification').': '.$label.' - '.$lp_date);
$icons = Display::return_icon($image, get_lang('TitleNotification').': '.$label.' - '.$lp_date);
}
if (!empty($lp_item['publicated_on'])) {
@ -407,7 +407,7 @@ switch ($action) {
$label = get_lang('LearnpathUpdated');
}
if (strtotime($last_date) < strtotime($lp_date)) {
$icons = Display::return_icon($image, get_lang('_title_notification').': '.$label.' - '.$lp_date);
$icons = Display::return_icon($image, get_lang('TitleNotification').': '.$label.' - '.$lp_date);
}
if (!empty($lp_item['publicated_on'])) {
$date = substr($lp_item['publicated_on'], 0, 10);
@ -468,4 +468,4 @@ switch ($action) {
default:
echo '';
}
exit;
exit;

@ -1137,8 +1137,7 @@ class Display {
} else {
$my_course['id_session'] = $course_info['id_session'];
}
//$label = get_lang(ucfirst($notification['tool'])).' '.get_lang('_title_notification').": ".get_lang($type)." ($lastDate)";
$label = get_lang('_title_notification').": ".get_lang($type)." ($lastDate)";
$label = get_lang('TitleNotification').": ".get_lang($type)." ($lastDate)";
$retvalue .= '<a href="'.api_get_path(WEB_CODE_PATH).$notification['link'].'?cidReq='.$course_code.'&amp;ref='.$notification['ref'].'&amp;gidReq='.$notification['to_group_id'].'&amp;id_session='.$my_course['id_session'].'">'.
Display::return_icon($notification['image'], $label).'</a>&nbsp;';
}

@ -581,8 +581,6 @@ class IndexManager {
} //end else
} // end foreach
$courses_list_string .= "</ul>";
} else {
//$result .= '<blockquote>', get_lang('_No_course_publicly_available'), "</blockquote>\n";
}
if ($courses_shown > 0) {
// Only display the list of courses and categories if there was more than

@ -23,7 +23,7 @@ if (isset($_GET['error'])) {
break;
case 'prerequisites':
echo '<br /><br />';
Display::display_warning_message(get_lang('_prereq_not_complete'));
Display::display_warning_message(get_lang('LearnpathPrereqNotCompleted'));
break;
case 'document_not_found':
echo '<br /><br />';

@ -3656,12 +3656,12 @@ class learnpath {
$row = Database :: fetch_array($result);
$name = domesticate($row['name']);
if ($set_visibility == 'i') {
$s = $name . " " . get_lang('_no_published');
$s = $name . " " . get_lang('LearnpathNotPublished');
$dialogBox = $s;
$v = 0;
}
if ($set_visibility == 'v') {
$s = $name . " " . get_lang('_published');
$s = $name . " " . get_lang('LearnpathPublished');
$dialogBox = $s;
$v = 1;
}
@ -5095,17 +5095,17 @@ class learnpath {
if (!in_array($arrLP[$i]['item_type'], array('sco', 'asset'))) {
if (!in_array($arrLP[$i]['item_type'], array('dokeos_chapter', 'dokeos_module'))) {
$edit_icon .= '<a href="' . api_get_self() . '?cidReq=' . Security :: remove_XSS($_GET['cidReq']) . '&amp;action=edit_item&amp;view=build&amp;id=' . $arrLP[$i]['id'] . '&amp;lp_id=' . $this->lp_id . '&amp;path_item=' . $arrLP[$i]['path'] . '">';
$edit_icon .= Display::return_icon('edit.png', get_lang('_edit_learnpath_module'), array(), ICON_SIZE_TINY);
$edit_icon .= Display::return_icon('edit.png', get_lang('LearnpathEditModule'), array(), ICON_SIZE_TINY);
$edit_icon .= '</a>';
} else {
$edit_icon .= '<a href="' . api_get_self() . '?cidReq=' . Security :: remove_XSS($_GET['cidReq']) . '&amp;action=edit_item&amp;id=' . $arrLP[$i]['id'] . '&amp;lp_id=' . $this->lp_id . '&amp;path_item=' . $arrLP[$i]['path'] . '">';
$edit_icon .= Display::return_icon('edit.png', get_lang('_edit_learnpath_module'), array(), ICON_SIZE_TINY);
$edit_icon .= Display::return_icon('edit.png', get_lang('LearnpathEditModule'), array(), ICON_SIZE_TINY);
$edit_icon .= '</a>';
}
}
$delete_icon .= ' <a href="' . api_get_self() . '?cidReq=' . Security :: remove_XSS($_GET['cidReq']) . '&amp;action=delete_item&amp;id=' . $arrLP[$i]['id'] . '&amp;lp_id=' . $this->lp_id . '" onClick="return confirmation(\'' . addslashes($title) . '\');">';
$delete_icon .= Display::return_icon('delete.png', get_lang('_delete_learnpath_module'), array(), ICON_SIZE_TINY);
$delete_icon .= Display::return_icon('delete.png', get_lang('LearnpathDeleteModule'), array(), ICON_SIZE_TINY);
$delete_icon .= '</a>';
$url = api_get_self() . '?cidReq='.Security::remove_XSS($_GET['cidReq']).'&view=build&id='.$arrLP[$i]['id'] .'&lp_id='.$this->lp_id;
@ -9286,4 +9286,4 @@ if (!function_exists('trim_value')) {
function trim_value(& $value) {
$value = trim($value);
}
}
}

@ -1266,7 +1266,7 @@ class learnpathItem {
if ($prereqs_string == '_true_') { return true; }
if ($prereqs_string == '_false_') {
if (empty($this->prereq_alert)) {
$this->prereq_alert = get_lang('_prereq_not_complete');
$this->prereq_alert = get_lang('LearnpathPrereqNotCompleted');
}
return false;
}
@ -1301,7 +1301,7 @@ class learnpathItem {
}
}
if (empty($this->prereq_alert) && !$andstatus) {
$this->prereq_alert = get_lang('_prereq_not_complete');
$this->prereq_alert = get_lang('LearnpathPrereqNotCompleted');
}
return $andstatus;
} else {
@ -1309,11 +1309,11 @@ class learnpathItem {
$status = $items[$refs_list[$list[0]]]->get_status(true);
$returnstatus = (($status == $this->possible_status[2]) OR ($status == $this->possible_status[3]));
if (empty($this->prereq_alert) && !$returnstatus) {
$this->prereq_alert = get_lang('_prereq_not_complete');
$this->prereq_alert = get_lang('LearnpathPrereqNotCompleted');
}
return $returnstatus;
}
$this->prereq_alert = get_lang('_prereq_not_complete');
$this->prereq_alert = get_lang('LearnpathPrereqNotCompleted');
return false;
}
} else {
@ -1330,11 +1330,11 @@ class learnpathItem {
$status = $items[$refs_list[$params[0]]]->get_status(true);
$returnstatus = ($status == $params[1]);
if (empty($this->prereq_alert) && !$returnstatus) {
$this->prereq_alert = get_lang('_prereq_not_complete');
$this->prereq_alert = get_lang('LearnpathPrereqNotCompleted');
}
return $returnstatus;
}
$this->prereq_alert = get_lang('_prereq_not_complete');
$this->prereq_alert = get_lang('LearnpathPrereqNotCompleted');
return false;
}
} else {
@ -1352,11 +1352,11 @@ class learnpathItem {
$status = $items[$refs_list[$params[0]]]->get_status(true);
$returnstatus = ($status != $params[1]);
if (empty($this->prereq_alert) && !$returnstatus) {
$this->prereq_alert = get_lang('_prereq_not_complete');
$this->prereq_alert = get_lang('LearnpathPrereqNotCompleted');
}
return $returnstatus;
}
$this->prereq_alert = get_lang('_prereq_not_complete');
$this->prereq_alert = get_lang('LearnpathPrereqNotCompleted');
return false;
}
} else {
@ -1373,7 +1373,7 @@ class learnpathItem {
if ($myres) {
$returnstatus = !$this->parse_prereq($list[1], $items, $refs_list, $user_id);
if (empty($this->prereq_alert) && !$returnstatus) {
$this->prereq_alert = get_lang('_prereq_not_complete');
$this->prereq_alert = get_lang('LearnpathPrereqNotCompleted');
}
return $returnstatus;
} else {
@ -1440,7 +1440,7 @@ class learnpathItem {
}
}
if (!$mycond && empty($this->prereq_alert)) {
$this->prereq_alert = get_lang('_prereq_not_complete');
$this->prereq_alert = get_lang('LearnpathPrereqNotCompleted');
}
return $mycond;
}
@ -1484,11 +1484,11 @@ class learnpathItem {
if ($quiz['exe_result'] >= $items[$refs_list[$prereqs_string]]->get_mastery_score()) {
$returnstatus = true;
} else {
$this->prereq_alert = get_lang('_prereq_not_complete');
$this->prereq_alert = get_lang('LearnpathPrereqNotCompleted');
$returnstatus = false;
}
} else {
$this->prereq_alert = get_lang('_prereq_not_complete');
$this->prereq_alert = get_lang('LearnpathPrereqNotCompleted');
$returnstatus = false;
}
}
@ -1510,12 +1510,12 @@ class learnpathItem {
$returnstatus = true;
break;
} else {
$this->prereq_alert = get_lang('_prereq_not_complete');
$this->prereq_alert = get_lang('LearnpathPrereqNotCompleted');
$returnstatus = false;
}
}
} else {
$this->prereq_alert = get_lang('_prereq_not_complete');
$this->prereq_alert = get_lang('LearnpathPrereqNotCompleted');
$returnstatus = false;
}
@ -1552,7 +1552,7 @@ class learnpathItem {
$returnstatus = (($status == $this->possible_status[2]) OR ($status == $this->possible_status[3]));
if (!$returnstatus && empty($this->prereq_alert)){
$this->prereq_alert = get_lang('_prereq_not_complete');
$this->prereq_alert = get_lang('LearnpathPrereqNotCompleted');
}
if (!$returnstatus) {
if (self::debug > 1) { error_log('New LP - Prerequisite '.$prereqs_string.' not complete', 0); }
@ -1567,11 +1567,11 @@ class learnpathItem {
if ($quiz['exe_result'] >= $items[$refs_list[$prereqs_string]]->get_mastery_score()) {
$returnstatus = true;
} else {
$this->prereq_alert = get_lang('_prereq_not_complete');
$this->prereq_alert = get_lang('LearnpathPrereqNotCompleted');
$returnstatus = false;
}
} else {
$this->prereq_alert = get_lang('_prereq_not_complete');
$this->prereq_alert = get_lang('LearnpathPrereqNotCompleted');
$returnstatus = false;
}*/
@ -1582,7 +1582,7 @@ class learnpathItem {
$returnstatus = (($status == $this->possible_status[2]) OR ($status == $this->possible_status[3]));
if (!$returnstatus && empty($this->prereq_alert)) {
$this->prereq_alert = get_lang('_prereq_not_complete');
$this->prereq_alert = get_lang('LearnpathPrereqNotCompleted');
}
if(!$returnstatus){
if (self::debug > 1) { error_log('New LP - Prerequisite '.$prereqs_string.' not complete', 0); }
@ -1617,7 +1617,7 @@ class learnpathItem {
}
}
if (!$orstatus && empty($this->prereq_alert)) {
$this->prereq_alert = get_lang('_prereq_not_complete');
$this->prereq_alert = get_lang('LearnpathPrereqNotCompleted');
}
return $orstatus;
} else {
@ -1626,14 +1626,14 @@ class learnpathItem {
$status = $items[$refs_list[$list[0]]]->get_status(true);
$returnstatus = (($status == 'completed') OR ($status == 'passed'));
if (!$returnstatus && empty($this->prereq_alert)) {
$this->prereq_alert = get_lang('_prereq_not_complete');
$this->prereq_alert = get_lang('LearnpathPrereqNotCompleted');
}
return $returnstatus;
}
}
}
if(empty($this->prereq_alert)){
$this->prereq_alert = get_lang('_prereq_not_complete');
$this->prereq_alert = get_lang('LearnpathPrereqNotCompleted');
}
if (self::debug > 1) { error_log('New LP - End of parse_prereq. Error code is now '.$this->prereq_alert, 0); }
return false;
@ -2649,4 +2649,4 @@ class learnpathItem {
$sql = "UPDATE $tbl_lp_item SET audio = '' WHERE c_id = $course_id AND id IN (".$this->db_id.")";
Database::query($sql);
}
}
}

@ -108,7 +108,7 @@ if (!empty($gradebook) && $gradebook=='view') {
$interbreadcrumb[] = array('url' => 'lp_controller.php?action=list', 'name' => get_lang('LearningPaths'));
Display::display_header(get_lang('_add_learnpath'), 'Path');
Display::display_header(get_lang('LearnpathAddLearnpath'), 'Path');
echo '<div class="actions">';
echo '<a href="lp_controller.php?cidReq='.$_course['sysCode'].'">'.Display::return_icon('back.png', get_lang('ReturnToLearningPaths'),'',ICON_SIZE_MEDIUM).'</a>';
@ -164,4 +164,4 @@ $form->addElement('style_submit_button', 'Submit',get_lang('CreateLearningPath')
$form->display();
// Footer
Display::display_footer();
Display::display_footer();

@ -211,14 +211,14 @@ function confirmation(name) {
switch ($_GET['action']) {
case 'edit_item':
if (isset($is_success) && $is_success === true) {
Display::display_confirmation_message(get_lang('_learnpath_item_edited'));
Display::display_confirmation_message(get_lang('LearnpathItemEdited'));
} else {
echo $_SESSION['oLP']->display_edit_item($_GET['id']);
}
break;
case 'delete_item':
if (isset($is_success) && $is_success === true) {
Display::display_confirmation_message(get_lang('_learnpath_item_deleted'));
Display::display_confirmation_message(get_lang('LearnpathItemDeleted'));
}
break;
}
@ -305,4 +305,4 @@ echo $_SESSION['oLP']->build_action_menu();
echo $_SESSION['oLP']->overview();
/* FOOTER */
Display::display_footer();
Display::display_footer();

@ -84,7 +84,7 @@ $form = new FormValidator('form1', 'post', 'lp_controller.php');
$form->addElement('header', null, get_lang('EditLPSettings'));
// Title
$form->addElement('text', 'lp_name', api_ucfirst(get_lang('_title')), array('size' => 43));
$form->addElement('text', 'lp_name', api_ucfirst(get_lang('LearnpathTitle')), array('size' => 43));
$form->applyFilter('lp_name', 'html_filter');
$form->addRule('lp_name', get_lang('ThisFieldIsRequired'), 'required');
@ -246,4 +246,4 @@ if ($_SESSION['oLP']->get_hide_toc_frame() == 1) {
echo '</div>';
}
echo '</div>';
Display::display_footer();
Display::display_footer();

@ -90,7 +90,7 @@ if ($is_allowed_to_edit) {
}
echo '<div class="actions">';
echo '<a href="'.api_get_self().'?'.api_get_cidreq().'&action=add_lp">'.Display::return_icon('new_learnpath.png', get_lang('_add_learnpath'),'',ICON_SIZE_MEDIUM).'</a>' .
echo '<a href="'.api_get_self().'?'.api_get_cidreq().'&action=add_lp">'.Display::return_icon('new_learnpath.png', get_lang('LearnpathAddLearnpath'),'',ICON_SIZE_MEDIUM).'</a>' .
str_repeat('&nbsp;', 3).
'<a href="../upload/index.php?'.api_get_cidreq().'&curdirpath=/&tool='.TOOL_LEARNPATH.'">'.Display::return_icon('import_scorm.png', get_lang('UploadScorm'),'',ICON_SIZE_MEDIUM).'</a>';
if (api_get_setting('service_ppt2lp', 'active') == 'true') {
@ -253,9 +253,9 @@ if (!empty($flat_list)) {
/*
if ($current_session == $details['lp_session']) {
$dsp_desc = '<td valign="middle" style="color: grey; padding-top:1em;"><em>'.$details['lp_maker'].'</em> &nbsp;&nbsp; '.$details['lp_proximity'].' &nbsp;&nbsp; '.$details['lp_encoding'].'<a href="lp_controller.php?'.api_get_cidreq().'&action=edit&lp_id='.$id.'">&nbsp;&nbsp;<img src="../img/edit.gif" border="0" title="'.get_lang('_edit_learnpath').'"></a></td>'."\n";
$dsp_desc = '<td valign="middle" style="color: grey; padding-top:1em;"><em>'.$details['lp_maker'].'</em> &nbsp;&nbsp; '.$details['lp_proximity'].' &nbsp;&nbsp; '.$details['lp_encoding'].'<a href="lp_controller.php?'.api_get_cidreq().'&action=edit&lp_id='.$id.'">&nbsp;&nbsp;<img src="../img/edit.gif" border="0" title="'.get_lang('LearnpathEditLearnpath').'"></a></td>'."\n";
} else {
$dsp_desc = '<td valign="middle" style="color: grey; padding-top:1em;"><em>'.$details['lp_maker'].'</em> &nbsp;&nbsp; '.$details['lp_proximity'].' &nbsp;&nbsp; '.$details['lp_encoding'].'<img src="../img/edit_na.gif" border="0" title="'.get_lang('_edit_learnpath').'"></td>'." ";
$dsp_desc = '<td valign="middle" style="color: grey; padding-top:1em;"><em>'.$details['lp_maker'].'</em> &nbsp;&nbsp; '.$details['lp_proximity'].' &nbsp;&nbsp; '.$details['lp_encoding'].'<img src="../img/edit_na.gif" border="0" title="'.get_lang('LearnpathEditLearnpath').'"></td>'." ";
}
*/
@ -297,12 +297,12 @@ if (!empty($flat_list)) {
// BUILD
if ($current_session == $details['lp_session']) {
if ($details['lp_type'] == 1 || $details['lp_type'] == 2) {
$dsp_build = '<a href="lp_controller.php?'.api_get_cidreq().'&amp;action=build&amp;lp_id='.$id.'">'.Display::return_icon('edit.png', get_lang('_edit_learnpath'),'',ICON_SIZE_SMALL).'</a>';
$dsp_build = '<a href="lp_controller.php?'.api_get_cidreq().'&amp;action=build&amp;lp_id='.$id.'">'.Display::return_icon('edit.png', get_lang('LearnpathEditLearnpath'),'',ICON_SIZE_SMALL).'</a>';
} else {
$dsp_build = Display::return_icon('edit_na.png', get_lang('_edit_learnpath'),'',ICON_SIZE_SMALL);
$dsp_build = Display::return_icon('edit_na.png', get_lang('LearnpathEditLearnpath'),'',ICON_SIZE_SMALL);
}
} else {
$dsp_build = Display::return_icon('edit_na.png', get_lang('_edit_learnpath'),'',ICON_SIZE_SMALL);
$dsp_build = Display::return_icon('edit_na.png', get_lang('LearnpathEditLearnpath'),'',ICON_SIZE_SMALL);
}
/* VISIBILITY COMMAND */
@ -322,13 +322,13 @@ if (!empty($flat_list)) {
if ($current_session == $details['lp_session']) {
if ($details['lp_published'] == "i") {
$dsp_publish = "<a href=\"".api_get_self()."?".api_get_cidreq()."&lp_id=$id&action=toggle_publish&new_status=v\">" .
Display::return_icon('lp_publish_na.png', get_lang('_publish'),'',ICON_SIZE_SMALL)."</a>";
Display::return_icon('lp_publish_na.png', get_lang('LearnpathPublish'),'',ICON_SIZE_SMALL)."</a>";
} else {
$dsp_publish = "<a href='".api_get_self()."?".api_get_cidreq()."&lp_id=$id&action=toggle_publish&new_status=i'>" .Display::return_icon('lp_publish.png', get_lang('_no_publish'),'',ICON_SIZE_SMALL)."</a>";
$dsp_publish = "<a href='".api_get_self()."?".api_get_cidreq()."&lp_id=$id&action=toggle_publish&new_status=i'>" .Display::return_icon('lp_publish.png', get_lang('LearnpathDoNotPublish'),'',ICON_SIZE_SMALL)."</a>";
}
} else {
$dsp_publish = Display::return_icon('lp_publish_na.png', get_lang('_no_publish'),'',ICON_SIZE_SMALL);
$dsp_publish = Display::return_icon('lp_publish_na.png', get_lang('LearnpathDoNotPublish'),'',ICON_SIZE_SMALL);
}
/* MULTIPLE ATTEMPTS OR SERIOUS GAME MODE
@ -443,9 +443,9 @@ if (!empty($flat_list)) {
if ($current_session == $details['lp_session']) {
$dsp_delete = "<a href=\"lp_controller.php?".api_get_cidreq()."&action=delete&lp_id=$id\" " .
"onclick=\"javascript: return confirmation('".addslashes($name)."');\">" .
Display::return_icon('delete.png', get_lang('_delete_learnpath'),'',ICON_SIZE_SMALL).'</a>';
Display::return_icon('delete.png', get_lang('LearnpathDeleteLearnpath'),'',ICON_SIZE_SMALL).'</a>';
} else {
$dsp_delete = Display::return_icon('delete_na.png', get_lang('_delete_learnpath'),'',ICON_SIZE_SMALL);
$dsp_delete = Display::return_icon('delete_na.png', get_lang('LearnpathDeleteLearnpath'),'',ICON_SIZE_SMALL);
}
@ -495,7 +495,7 @@ if (!empty($flat_list)) {
echo '<h2>'.get_lang('LearningPaths').'</h2>';
echo Display::return_icon('scorms.png', '', array(), 64);
echo '<div class="controls">';
echo Display::url(get_lang('_add_learnpath'), api_get_self().'?'.api_get_cidreq().'&action=add_lp' , array('class' => 'btn'));
echo Display::url(get_lang('LearnpathAddLearnpath'), api_get_self().'?'.api_get_cidreq().'&action=add_lp' , array('class' => 'btn'));
echo '</div>';
echo '</div>';
}
@ -506,4 +506,4 @@ $result = learnpath::generate_learning_path_folder($course_info);
//Deleting the objects
//Session::erase('oLP');
//Session::erase('lpobject');
Display::display_footer();
Display::display_footer();

@ -134,7 +134,7 @@ if (!empty($course_list)) {
if (strtotime($last_date) < strtotime($lp_date_original)) {
if (empty($icons)) {
$icons .= ' '.Display::return_icon($image, get_lang('_title_notification').': '.$label.' - '.$lp_date_original).' ';
$icons .= ' '.Display::return_icon($image, get_lang('TitleNotification').': '.$label.' - '.$lp_date_original).' ';
}
}
}

@ -112,18 +112,18 @@ $courses_without_category = $courses_in_category[0];
<form action="<?php echo api_get_self(); ?>" method="post" onsubmit="javascript: if (!confirm('<?php echo addslashes(api_htmlentities(get_lang("ConfirmUnsubscribeFromCourse"), ENT_QUOTES, api_get_system_encoding())) ?>')) return false;">
<input type="hidden" name="sec_token" value="<?php echo $stok; ?>">
<input type="hidden" name="unsubscribe" value="<?php echo $course['code']; ?>" />
<button class="btn" value="<?php echo get_lang('_unsubscribe'); ?>" name="unsub">
<?php echo get_lang('_unsubscribe'); ?>
<button class="btn" value="<?php echo get_lang('Unsubscribe'); ?>" name="unsub">
<?php echo get_lang('Unsubscribe'); ?>
</button>
</form>
</div>
<?php } else {
//echo get_lang('UnsubscribeNotAllowed');
//echo Display::url(get_lang('_unsubscribe'), '#', array('class'=>'a_button white small '));
//echo Display::url(get_lang('Unsubscribe'), '#', array('class'=>'a_button white small '));
}
} else {
//echo get_lang('CourseAdminUnsubscribeNotAllowed');
//echo Display::url(get_lang('_unsubscribe'), '#', array('class'=>'a_button white small '));
//echo Display::url(get_lang('Unsubscribe'), '#', array('class'=>'a_button white small '));
}
?>
@ -271,18 +271,18 @@ $courses_without_category = $courses_in_category[0];
<form action="<?php echo api_get_self(); ?>" method="post" onsubmit="javascript: if (!confirm('<?php echo addslashes(api_htmlentities(get_lang("ConfirmUnsubscribeFromCourse"), ENT_QUOTES, api_get_system_encoding()))?>')) return false">
<input type="hidden" name="sec_token" value="<?php echo $stok; ?>">
<input type="hidden" name="unsubscribe" value="<?php echo $course['code']; ?>" />
<button class="btn" value="<?php echo get_lang('_unsubscribe'); ?>" name="unsub">
<?php echo get_lang('_unsubscribe'); ?>
<button class="btn" value="<?php echo get_lang('Unsubscribe'); ?>" name="unsub">
<?php echo get_lang('Unsubscribe'); ?>
</button>
</form>
</div>
<?php } else {
//echo get_lang('UnsubscribeNotAllowed');
//echo Display::url(get_lang('_unsubscribe'), '#', array('class'=>'a_button white small '));
//echo Display::url(get_lang('Unsubscribe'), '#', array('class'=>'a_button white small '));
}
} else {
//echo get_lang('CourseAdminUnsubscribeNotAllowed');
//echo Display::url(get_lang('_unsubscribe'), '#', array('class'=>'a_button white small '));
//echo Display::url(get_lang('Unsubscribe'), '#', array('class'=>'a_button white small '));
}
$key++;
}
@ -291,4 +291,4 @@ $courses_without_category = $courses_in_category[0];
}
}
?>
</table>
</table>

@ -133,16 +133,16 @@ function display_default_visibility_form($uploadvisibledisabled) {
?>
<div class="control-group">
<label class="control-label">
<?php echo get_lang('_default_upload'); ?>
<?php echo get_lang('DefaultUpload'); ?>
</label>
<div class="controls">
<label class="radio" for="uploadvisibledisabled_1">
<input id="uploadvisibledisabled_1" class="checkbox" type="radio" name="uploadvisibledisabled" value="0" <?php if ($uploadvisibledisabled == 0) echo 'checked'; ?> />
<?php echo get_lang('_new_visible'); ?>
<?php echo get_lang('NewVisible'); ?>
</label>
<label class="radio" for="uploadvisibledisabled_2">
<input id="uploadvisibledisabled_2" class="checkbox" type="radio" name="uploadvisibledisabled" value="1" <?php if ($uploadvisibledisabled == 1) echo 'checked'; ?> />
<?php echo get_lang('_new_unvisible'); ?>
<?php echo get_lang('NewUnvisible'); ?>
</label>
</div>
</div>

Loading…
Cancel
Save