Bladeren bron

Minor style corrections

Julio Montoya 13 jaren geleden
bovenliggende
commit
9fc779f965

+ 3 - 3
main/course_info/infocours.php

@@ -203,7 +203,7 @@ $form->addGroup($group, '', array(get_lang("Unsubscription")), '<div></div>');
 $form->add_textfield('course_registration_password', get_lang('CourseRegistrationPassword'), false, array('size' => '60'));
 
 $form->addElement('checkbox', 'activate_legal', array(null, get_lang('ShowALegalNoticeWhenEnteringTheCourse')), get_lang('ActivateLegal'));
-$form->addElement('textarea', 'legal', get_lang('CourseLegal'), array('cols'=>75, 'rows' => 10));
+$form->addElement('textarea', 'legal', get_lang('CourseLegalAgreement'), array('cols'=>75, 'rows' => 10));
 
 
 $form->addElement('style_submit_button', null, get_lang('SaveSettings'), 'class="save"');
@@ -308,7 +308,7 @@ $form->addElement('html', '</div></div>');
 
 
 // LEARNING PATH
-$form->addElement('html', '<div><h3>'.Display::return_icon('scorms.png', addslashes(get_lang('ConfigLearnpath')),'','22').' '.addslashes(get_lang('ConfigLearnpath')).'</h3><div>');
+$form->addElement('html', '<div><h3>'.Display::return_icon('scorms.png', addslashes(get_lang('ConfigLearnpath')),'','22').' '.Security::remove_XSS(get_lang('ConfigLearnpath')).'</h3><div>');
 
 //Auto launch LP
 $group = array();
@@ -325,7 +325,7 @@ if (api_get_setting('allow_course_theme') == 'true') {
     $form->addGroup($group, '', array(get_lang("AllowLearningPathTheme")), '<div></div>');
     
 	$group = array();
-	$group[]=$form->createElement('select_theme', 'course_theme', null);
+	$group[]=$form->createElement('select_theme', 'course_theme', null, array('class'=>' ', 'id'=>'course_theme_id'));    
     $form->addGroup($group, '', array(get_lang("Stylesheets")), '<div></div>');
 }
 

+ 3 - 2
main/inc/lib/formvalidator/Element/select_theme.php

@@ -10,9 +10,10 @@ class HTML_QuickForm_Select_Theme extends HTML_QuickForm_select
 	/**
 	 * Class constructor
 	 */
-	function HTML_QuickForm_Select_Theme($elementName=null, $elementLabel=null, $options=null, $attributes=null) {
+	function HTML_QuickForm_Select_Theme($elementName=null, $elementLabel=null, $options=null, $attributes=null) {	    
 	    if (!isset($attributes['class'])) {
-            $attributes['class'] = 'chzn-select';
+	        //todo this was comment due a bug in infocours.php with jquery-ui 
+            //$attributes['class'] = 'chzn-select';
         }        
 		parent::HTML_QuickForm_Select($elementName, $elementLabel, $options, $attributes);
 		// Get all languages

+ 5 - 0
main/inc/lib/javascript/jquery-ui/default.css

@@ -22,6 +22,11 @@
 	color: #212121; 
 }
 
+.ui-jqgrid .ui-pg-selbox {    
+    height: 23px;
+}
+    
+
 /* jqgrid: Changes the row style in a table (even, odd) */
 .ui-priority-secondary, .ui-widget-content .ui-priority-secondary,  .ui-widget-header .ui-priority-secondary { 
 	opacity: 1; 

+ 4 - 3
main/inc/lib/pear/HTML/QuickForm.php

@@ -571,8 +571,7 @@ class HTML_QuickForm extends HTML_Common
      * @return    HTML_QuickForm_Element
      * @throws    HTML_QuickForm_Error
      */
-    function &createElement($elementType)
-    {
+    function &createElement($elementType) {
         $args    =  func_get_args();
         $element =& HTML_QuickForm::_loadElement('createElement', $elementType, array_slice($args, 1));
         return $element;
@@ -605,12 +604,14 @@ class HTML_QuickForm extends HTML_Common
         // Modified by Ivan Tcholakov, 16-MAR-2010. Suppressing a deprecation warning on PHP 5.3
         //$elementObject =& new $className();
         $elementObject = new $className();
-        //
+        
         for ($i = 0; $i < 5; $i++) {
             if (!isset($args[$i])) {
                 $args[$i] = null;
             }
         }
+        
+        
         $err = $elementObject->onQuickFormEvent($event, $args, $this);
         if ($err !== true) {
             return $err;

+ 1 - 0
main/inc/lib/pear/HTML/QuickForm/element.php

@@ -378,6 +378,7 @@ class HTML_QuickForm_element extends HTML_Common
         switch ($event) {
             case 'createElement':
                 $className = get_class($this);
+                              
                 $this->$className($arg[0], $arg[1], $arg[2], $arg[3], $arg[4]);
                 break;
             case 'addElement':