소스 검색

Minor - style changes

Julio Montoya 13 년 전
부모
커밋
38d898755b
5개의 변경된 파일21개의 추가작업 그리고 32개의 파일을 삭제
  1. 0 12
      main/admin/index.php
  2. 1 8
      main/admin/user_export.php
  3. 10 4
      main/css/base.css
  4. 8 7
      main/inc/lib/template.lib.php
  5. 2 1
      main/template/default/skill/profile.tpl

+ 0 - 12
main/admin/index.php

@@ -304,8 +304,6 @@ function version_check() {
     $row = Database::fetch_array($result, 'ASSOC');
 
     // The site has not been registered yet.
-    //if (api_get_setting('registered') == 'false')
-
     $return = '';
     if ($row['selected_value'] == 'false') {
         $return .= '<form action="'.api_get_self().'" id="VersionCheck" name="VersionCheck" method="post">';
@@ -314,18 +312,8 @@ function version_check() {
         $return .= '<button type="submit" class="save" name="Register" value="'.get_lang('EnableVersionCheck').'" id="register" />'.get_lang('EnableVersionCheck').'</button>';
         $return .= '</form>';
     } else {
-        // The site has been registered already but is seriously out of date (registration date + 15552000 seconds).
-        /*
-        if ((api_get_setting('registered') + 15552000) > mktime()) {
-            $return = 'It has been a long time since about your campus has been updated on chamilo.org';
-            $return .= '<form action="'.api_get_self().'" id="VersionCheck" name="VersionCheck" method="post">';
-            $return .= '<input type="submit" name="Register" value="Enable Version Check" id="register" />';
-            $return .= '</form>';
-        } else {
-        */
         $return = 'site registered. ';
         $return .= check_system_version();
-        //}
     }
     return $return;
 }

+ 1 - 8
main/admin/user_export.php

@@ -136,12 +136,5 @@ if ($form->validate())
 	}
 }
 Display :: display_header($tool_name);
-//api_display_tool_title($tool_name);
 $form->display();
-/*
-==============================================================================
-		FOOTER
-==============================================================================
-*/
-Display :: display_footer();
-?>
+Display :: display_footer();

+ 10 - 4
main/css/base.css

@@ -4196,11 +4196,17 @@ a:active{
 }
 
 .skills-profiles, .skills-users, .skills-skills {
-  margin-top: 10px;
-  margin-bottom: 10px;
+    margin-top: 10px;
+    margin-bottom: 10px;
+    padding:10px;
+    border: 1px solid #ccc;
 }
-.skills-skills ul.holder {
-  margin-bottom: 8px;
+.skills-skills ul.holder,
+.skills-users ul.holder,
+.skills-profiles ul.holder
+{
+    margin-bottom: 8px;
+    border: 0px;
 }
 
 

+ 8 - 7
main/inc/lib/template.lib.php

@@ -205,14 +205,16 @@ class Template extends Smarty {
 			}
 		}
 		
-		 $this->assign('online_button', Security::remove_XSS(Display::return_icon('online.png')));
-		 $this->assign('offline_button', Security::remove_XSS(Display::return_icon('offline.png')));
-		
-		// Get language iso-code for this page - ignore errors		
+        $this->assign('online_button',  Security::remove_XSS(Display::return_icon('online.png')));
+		$this->assign('offline_button', Security::remove_XSS(Display::return_icon('offline.png')));
 		
+		// Get language iso-code for this page - ignore errors				
 		$this->assign('document_language', api_get_language_isocode());
 		
 		$course_title = $_course['name'];
+        
+        $title_list = array();
+        
 		$title_list[] = api_get_setting('Institution');
 		$title_list[] = api_get_setting('siteName');
 		if (!empty($course_title)) {
@@ -306,7 +308,7 @@ class Template extends Smarty {
 			$css_file_to_string .= api_get_css($css_file);
 		}
 	
-		global $this_section, $nameTools;
+		global $this_section;
 		$this->assign('css_file_to_string', $css_file_to_string);
 		$this->assign('js_file_to_string',  $js_file_to_string);		
 		$this->assign('text_direction',	    api_get_text_direction());			
@@ -339,8 +341,7 @@ class Template extends Smarty {
 		}
 		$this->assign('favico', $favico);
 		
-		//old banner.inc.php
-		
+		//old banner.inc.php		
 		require_once api_get_path(LIBRARY_PATH).'banner.lib.php';
 		
 		global $my_session_id;

+ 2 - 1
main/template/default/skill/profile.tpl

@@ -38,7 +38,8 @@ $(document).ready( function() {
                 $.ajax({
                     url: '{$url}?a=save_profile&'+params,
                     success:function(data) {    
-                        $("#dialog-form").dialog("close");                                      
+                        $("#dialog-form").dialog("close");
+                        alert("{"Saved"|get_lang}");
                     }                           
                 });
             },