skala
Juan Carlos Raña 14 years ago
commit b887b1d51a
  1. 4
      main/calendar/agenda.inc.php
  2. 7
      main/calendar/myagenda.inc.php
  3. 14
      main/coursecopy/classes/CourseSelectForm.class.php
  4. 5
      main/coursecopy/copy_course.php
  5. 2
      main/coursecopy/create_backup.php
  6. 9
      main/css/base.css
  7. 4
      main/install/install.lib.php

@ -515,7 +515,7 @@ function display_monthcalendar($month, $year, $agenda_items) {
break;
case 'course':
$bg_color = '#CAFFAA';
$subtitle = Display::return_icon('course.png', get_lang('Course'), array(), 22);
$subtitle = Display::url(Display::return_icon('course.png', $value['course_name'].' '.get_lang('Course'), array(), 22), $value['url']);
break;
default:
//$time = '<i>'.$start_time.'</i>&nbsp;-&nbsp;<i>'.$end_time.'&nbsp;</i>';
@ -525,7 +525,7 @@ function display_monthcalendar($month, $year, $agenda_items) {
$dayheader.= '<div class="rounded_div_agenda" style="background-color:'.$bg_color.';">';
$value['title'] = Display::tag('strong', $value['title']);
$dayheader .= $time.' '.$subtitle.' '.$value['title'];
$dayheader .= $time.' '.Display::div($subtitle,array('style'=>'float:right')).' '.Display::div($value['title']);
$dayheader .= '</div>';
}

@ -107,9 +107,10 @@ function get_myagendaitems($courses_dbs, $month, $year) {
$agendaday = date("j",strtotime($item['start_date']));
$url = api_get_path(WEB_CODE_PATH)."calendar/agenda.php?cidReq=".urlencode($array_course_info["code"])."&day=$agendaday&month=$month&year=$year#$agendaday";
$url = Display::url($array_course_info["title"], $url);
//$url = Display::url($array_course_info["title"], $url);
$item['url'] = $url;
$item['course_name'] = $array_course_info['title'];
$item['calendar_type'] = 'course';
$my_list[$agendaday][] = $item;
/*
@ -227,7 +228,7 @@ function display_mymonthcalendar($agendaitems, $month, $year, $weekdaynames=arra
break;
case 'course':
$bg_color = '#CAFFAA';
$subtitle = Display::return_icon('course.png', get_lang('Course'), array(), 22).' '.$value['url'];
$subtitle = Display::url(Display::return_icon('course.png', $value['course_name'].' '.get_lang('Course'), array(), 22), $value['url']);
break;
default:
//$time = '<i>'.$start_time.'</i>&nbsp;-&nbsp;<i>'.$end_time.'&nbsp;</i>';
@ -236,7 +237,7 @@ function display_mymonthcalendar($agendaitems, $month, $year, $weekdaynames=arra
$result = '<div class="rounded_div_agenda" style="background-color:'.$bg_color.';">';
$value['title'] = Display::tag('strong', $value['title']);
$result .= $time.' '.$subtitle.' '.$value['title'];
$result .= $time.' '.Display::div($subtitle,array('style'=>'float:right')).' '.Display::div($value['title']);
$result .= '</div>';
echo $result;
}

@ -98,7 +98,6 @@ class CourseSelectForm
echo '<input type="hidden" name="destination_session" value="'.$hidden_fields['destination_session'].'"/>';
echo '<input type="hidden" name="origin_session" value="'.$hidden_fields['origin_session'].'"/>';
}
foreach ($course->resources as $type => $resources) {
if (count($resources) > 0) {
switch ($type) {
@ -112,13 +111,22 @@ class CourseSelectForm
case RESOURCE_SCORM:
break;
default :
echo '<img id="img_'.$type.'" src="../img/1.gif" onclick="javascript: exp('."'$type'".');" />';
echo '<img id="img_'.$type.'" src="../img/1.gif" onclick="javascript:exp('."'$type'".');" />&nbsp;';
echo '<b onclick="javascript:exp('."'$type'".');" >'.$resource_titles[$type].'</b><br />';
echo '<div id="div_'.$type.'">';
if ($type == RESOURCE_LEARNPATH) {
Display::display_warning_message(get_lang('ToExportLearnpathWithQuizYouHaveToSelectQuiz'));
Display::display_warning_message(get_lang('IfYourLPsHaveAudioFilesIncludedYouShouldSelectThemFromTheDocuments'));
}
if ($type == RESOURCE_DOCUMENT) {
if (api_get_setting('show_glossary_in_documents') != 'none') {
Display::display_warning_message(get_lang('ToExportDocumentsWithGlossaryYouHaveToSelectGlossary'));
}
}
echo '<blockquote>';
echo "[<a href=\"javascript: void(0);\" onclick=\"javascript: setCheckbox('$type',true);\" >".get_lang('All')."</a> | <a href=\"javascript: void(0);\" onclick=\"javascript:setCheckbox('$type',false);\" >".get_lang('None')."</a>]";
echo '<br />';
foreach ($resources as $id => $resource) {
echo '<input type="checkbox" name="resource['.$type.']['.$id.']" id="resource['.$type.']['.$id.']" />';
echo ' <label for="resource['.$type.']['.$id.']">';

@ -49,11 +49,6 @@ if ((isset($_POST['action']) && $_POST['action'] == 'course_select_form') || (is
$cr->restore($_POST['destination_course']);
Display::display_normal_message(get_lang('CopyFinished'));
} elseif (isset ($_POST['copy_option']) && $_POST['copy_option'] == 'select_items') {
// Else, if a CourseSelectForm is requested, show it
Display::display_normal_message(get_lang('ToExportLearnpathWithQuizYouHaveToSelectQuiz'));
if (api_get_setting('show_glossary_in_documents') != 'none') {
Display::display_normal_message(get_lang('ToExportDocumentsWithGlossaryYouHaveToSelectGlossary'));
}
$cb = new CourseBuilder();
$course = $cb->build();
//echo get_lang('SelectItemsToCopy');

@ -70,7 +70,7 @@ if ((isset($_POST['action']) && $_POST['action'] == 'course_select_form') || (is
} elseif (isset($_POST['backup_option']) && $_POST['backup_option'] == 'select_items') {
$cb = new CourseBuilder('partial');
$course = $cb->build();
Display::display_normal_message(get_lang('ToExportLearnpathWithQuizYouHaveToSelectQuiz'));
CourseSelectForm :: display_form($course);
} else {
$cb = new CourseBuilder();

@ -354,6 +354,8 @@ button:hover {
padding: 6px 0px 6px 5px ;
}
/* New LP add item */
div.lp_resource {
/*background:#FAFAFA;
border:1px solid #ccc; */
@ -386,7 +388,6 @@ div.lp_resource {
margin:5px;
}
div.lp_tree {
height: 100%;
overflow: auto;
@ -401,3 +402,9 @@ table.lp_build td.tree {
#resource_tab {
min-height:380px;
}
/* Calendar */
#agenda_list .days_week {
height: 100px;
}

@ -1021,6 +1021,10 @@ function display_requirements($installType, $badUpdatePath, $updatePath = '', $u
echo '<strong>'.get_lang('ReadThoroughly').'</strong><br />';
echo get_lang('MoreDetails').' <a href="../../documentation/installation_guide.html" target="_blank">'.get_lang('ReadTheInstallGuide').'</a>.<br />'."\n";
if ($installType == 'update') {
echo get_lang('IfYouPlanToUpgradeFromOlderVersionYouMightWantToHaveAlookAtTheChangelog').'<br />'."\n";
}
// SERVER REQUIREMENTS
echo '<div class="RequirementHeading"><h1>'.get_lang('ServerRequirements').'</h1>';
echo '<div class="RequirementText">'.get_lang('ServerRequirementsInfo').'</div>';

Loading…
Cancel
Save