Bläddra i källkod

minor upper title for thematic plan

Carlos Vargas 15 år sedan
förälder
incheckning
7edbf5e7d1
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. 3 3
      main/course_progress/thematic_plan.php

+ 3 - 3
main/course_progress/thematic_plan.php

@@ -32,7 +32,7 @@ if ($action == 'thematic_plan_list') {
 
 	if (isset($thematic_plan_data) && count($thematic_plan_data) > 0) {
 		foreach ($thematic_plan_data as $thematic_plan) {	
-			echo '<div class="sectiontitle">';			
+			echo '<div class="sectiontitle" >';			
 				//delete
 				echo '<a href="'.api_get_self().'?cidReq='.api_get_course_id().'&thematic_id='.$thematic_plan['thematic_id'].'&action=thematic_plan_delete&description_type='.$thematic_plan['description_type'].'" onclick="javascript:if(!confirm(\''.addslashes(api_htmlentities(get_lang('ConfirmYourChoice'),ENT_QUOTES,$charset)).'\')) return false;">';
 				echo Display::return_icon('delete.gif', get_lang('Delete'), array('style' => 'vertical-align:middle;float:right;'));
@@ -82,11 +82,11 @@ if ($action == 'thematic_plan_list') {
 	$form->addElement('style_submit_button', null, get_lang('Save'), 'class="save"');
 	
 	if ($description_type < ADD_THEMATIC_PLAN) {
-		$default['title'] = $default_thematic_plan_title[$description_type];
+		$default['title'] = strtoupper($default_thematic_plan_title[$description_type]);
 	}
 	if (!empty($thematic_plan_data)) {
 		// set default values
-		$default['title'] = $thematic_plan_data[0]['title'];
+		$default['title'] = strtoupper($thematic_plan_data[0]['title']);
 		$default['description'] = $thematic_plan_data[0]['description'];		
 	}	
 	$form->setDefaults($default);