Browse Source

Minor - Fixing HTML warnings

Julio Montoya 13 years ago
parent
commit
05c0000680

+ 1 - 1
main/admin/access_url_add_courses_to_url.php

@@ -16,7 +16,7 @@ $this_section=SECTION_PLATFORM_ADMIN;
 
 require_once (api_get_path(LIBRARY_PATH).'urlmanager.lib.php');
 api_protect_global_admin_script();
-if (!$_configuration['multiple_access_urls']) {
+if (!api_get_multiple_access_url()) {
 	header('Location: index.php');
 	exit;
 }

+ 1 - 1
main/admin/access_url_add_sessions_to_url.php

@@ -16,7 +16,7 @@ $this_section=SECTION_PLATFORM_ADMIN;
 
 require_once api_get_path(LIBRARY_PATH).'urlmanager.lib.php';
 api_protect_global_admin_script();
-if (!$_configuration['multiple_access_urls']) {
+if (!api_get_multiple_access_url()) {
 	header('Location: index.php');
 	exit;
 }

+ 1 - 1
main/admin/access_url_add_users_to_url.php

@@ -16,7 +16,7 @@ $this_section=SECTION_PLATFORM_ADMIN;
 
 require_once api_get_path(LIBRARY_PATH).'urlmanager.lib.php';
 api_protect_global_admin_script();
-if (!$_configuration['multiple_access_urls']) {
+if (!api_get_multiple_access_url()) {
 	header('Location: index.php');
 	exit;
 }

+ 1 - 1
main/admin/access_url_edit.php

@@ -12,7 +12,7 @@ $this_section = SECTION_PLATFORM_ADMIN;
 
 //api_protect_admin_script();
 api_protect_global_admin_script();
-if (!$_configuration['multiple_access_urls']) {
+if (!api_get_multiple_access_url()) {
 	header('Location: index.php');
 	exit;
 }

+ 6 - 49
main/admin/access_url_edit_courses_to_url.php

@@ -7,10 +7,10 @@
 
 
 // name of the language file that needs to be included
-$language_file='admin';
+$language_file = 'admin';
 
 // resetting the course id
-$cidReset=true;
+$cidReset = true;
 
 require_once '../inc/global.inc.php';
 require_once api_get_path(LIBRARY_PATH).'urlmanager.lib.php';
@@ -24,7 +24,7 @@ $this_section = SECTION_PLATFORM_ADMIN;
 
 // Access restrictions
 api_protect_global_admin_script();
-if (!$_configuration['multiple_access_urls']) {
+if (!api_get_multiple_access_url()) {
 	header('Location: index.php');
 	exit;
 }
@@ -172,7 +172,7 @@ $url_list = UrlManager::get_url_data();
 <form name="formulaire" method="post" action="<?php echo api_get_self(); ?>" style="margin:0px;" <?php if($ajax_search){echo ' onsubmit="valide();"';}?> >
 <?php echo get_lang('SelectUrl').' : '; ?>
 <select name="access_url_id" onchange="javascript:send();">
-<option value="0"> <?php echo get_lang('SelectUrl')?></option>
+<option value="0">-- <?php echo get_lang('SelectUrl')?> -- </option>
 	<?php
 	$url_selected='';
 	foreach ($url_list as $url_obj) {
@@ -227,39 +227,10 @@ if(!empty($errorMsg)) {
 		foreach($no_course_list as $no_course) {
 		?>
 			<option value="<?php echo $no_course['code']; ?>"><?php echo $no_course['title'].' ('.$no_course['code'].')'; ?></option>
-
-$xajax -> processRequests();
-
-$htmlHeadXtra[] = $xajax->getJavascript('../inc/lib/xajax/');
-$htmlHeadXtra[] = '
-<script type="text/javascript">
-function add_user_to_url (code, content) {
-
-	document.getElementById("course_to_add").value = "";
-	document.getElementById("ajax_list_courses").innerHTML = "";
-
-	destination = document.getElementById("destination_users");
-	destination.options[destination.length] = new Option(content,code);
-
-	destination.selectedIndex = -1;
-	sortOptions(destination.options);
-
-}
-function remove_item(origin)
-{
-	for(var i = 0 ; i<origin.options.length ; i++) {
-		if(origin.options[i].selected) {
-			origin.options[i]=null;
-			i = i-1;
-		}
-	}
-}
-</script>';
 		<?php
 		}
 		unset($no_course_list);
 		?>
-
 	  </select>
 	<?php
   	  }
@@ -286,11 +257,9 @@ function remove_item(origin)
   <select id="destination_users" name="course_list[]" multiple="multiple" size="15" style="width:380px;">
 
 <?php
-
 foreach($course_list as $course) {
 ?>
 	<option value="<?php echo $course['course_code']; ?>"><?php echo $course['title'].' ('.$course['course_code'].')'; ?></option>
-
 <?php
 }
 unset($course_list);
@@ -298,7 +267,6 @@ unset($course_list);
 
   </select></td>
 </tr>
-
 <tr>
 	<td colspan="3" align="center">
 		<br />
@@ -310,13 +278,9 @@ unset($course_list);
 		?>
 	</td>
 </tr>
-
-
-
-
 </table>
-
 </form>
+
 <script type="text/javascript">
 <!--
 function moveItem(origin , destination) {
@@ -407,13 +371,6 @@ function makepost(select){
 
 }
 -->
-
 </script>
 <?php
-/*
-==============================================================================
-		FOOTER
-==============================================================================
-*/
-Display::display_footer();
-?>
+Display::display_footer();

+ 3 - 35
main/admin/access_url_edit_sessions_to_url.php

@@ -10,7 +10,7 @@
 $language_file='admin';
 
 // resetting the course id
-$cidReset=true;
+$cidReset = true;
 
 // including some necessary chamilo files
 require_once '../inc/global.inc.php';
@@ -27,7 +27,7 @@ $this_section = SECTION_PLATFORM_ADMIN;
 
 // Access restrictions
 api_protect_global_admin_script();
-if (!$_configuration['multiple_access_urls']) {
+if (!api_get_multiple_access_url()) {
 	header('Location: index.php');
 	exit;
 }
@@ -229,34 +229,6 @@ if(!empty($errorMsg)) {
 		foreach($no_session_list as $no_session) {
 		?>
 			<option value="<?php echo $no_session['id']; ?>"><?php echo $no_session['name'].''; ?></option>
-
-$xajax -> processRequests();
-
-$htmlHeadXtra[] = $xajax->getJavascript('../inc/lib/xajax/');
-$htmlHeadXtra[] = '
-<script type="text/javascript">
-function add_user_to_url (code, content) {
-
-	document.getElementById("course_to_add").value = "";
-	document.getElementById("ajax_list_courses").innerHTML = "";
-
-	destination = document.getElementById("destination_users");
-	destination.options[destination.length] = new Option(content,code);
-
-	destination.selectedIndex = -1;
-	sortOptions(destination.options);
-
-}
-function remove_item(origin)
-{
-	for(var i = 0 ; i<origin.options.length ; i++) {
-		if(origin.options[i].selected) {
-			origin.options[i]=null;
-			i = i-1;
-		}
-	}
-}
-</script>';
 		<?php
 		}
 		unset($no_session_list);
@@ -412,8 +384,4 @@ function makepost(select){
 
 </script>
 <?php
-/*
-	FOOTER
-*/
-Display::display_footer();
-?>
+Display::display_footer();

+ 4 - 38
main/admin/access_url_edit_users_to_url.php

@@ -10,7 +10,7 @@
 $language_file='admin';
 
 // resetting the course id
-$cidReset=true;
+$cidReset = true;
 
 require_once '../inc/global.inc.php';
 require_once api_get_path(LIBRARY_PATH).'urlmanager.lib.php';
@@ -26,7 +26,7 @@ $this_section = SECTION_PLATFORM_ADMIN;
 
 // Access restrictions
 api_protect_global_admin_script();
-if (!$_configuration['multiple_access_urls']) {
+if (!api_get_multiple_access_url()) {
 	header('Location: index.php');
 	exit;
 }
@@ -224,35 +224,7 @@ if(!empty($errorMsg)) {
 		foreach($nosessionUsersList as $enreg) {
 		?>
 			<option value="<?php echo $enreg['user_id']; ?>"><?php echo api_get_person_name($enreg['firstname'], $enreg['lastname']).' ('.$enreg['username'].')'; ?></option>
-
-$xajax -> processRequests();
-
-$htmlHeadXtra[] = $xajax->getJavascript('../inc/lib/xajax/');
-$htmlHeadXtra[] = '
-<script type="text/javascript">
-function add_user_to_url (code, content) {
-
-	document.getElementById("user_to_add").value = "";
-	document.getElementById("ajax_list_users").innerHTML = "";
-
-	destination = document.getElementById("destination_users");
-	destination.options[destination.length] = new Option(content,code);
-
-	destination.selectedIndex = -1;
-	sortOptions(destination.options);
-
-}
-function remove_item(origin)
-{
-	for(var i = 0 ; i<origin.options.length ; i++) {
-		if(origin.options[i].selected) {
-			origin.options[i]=null;
-			i = i-1;
-		}
-	}
-}
-</script>';
-		<?php
+			<?php
 		}
 		unset($nosessionUsersList);
 		?>
@@ -405,10 +377,4 @@ function makepost(select){
 
 </script>
 <?php
-/*
-==============================================================================
-		FOOTER
-==============================================================================
-*/
-Display::display_footer();
-?>
+Display::display_footer();

+ 1 - 1
main/admin/access_urls.php

@@ -15,7 +15,7 @@ $this_section = SECTION_PLATFORM_ADMIN;
 //api_protect_admin_script();
 api_protect_global_admin_script();
 
-if (!$_configuration['multiple_access_urls']) {
+if (!api_get_multiple_access_url()) {
 	header('Location: index.php');
 	exit;
 }

+ 2 - 2
main/admin/configure_homepage.php

@@ -632,7 +632,7 @@ switch ($action) {
 		</tr>
 		<tr>
 		  <td>&nbsp;</td>
-		  <td><button class="save" type="submit" value="<?php echo get_lang('Ok'); ?>"/><?php echo get_lang('Ok'); ?></button></td>
+		  <td><button class="save" type="submit" value="<?php echo get_lang('Ok'); ?>"><?php echo get_lang('Ok'); ?></button></td>
 		</tr>
 		</table>
 		</form>
@@ -947,7 +947,7 @@ switch ($action) {
             <div id="menu" class="menu">
                 <br />
                 <a href="<?php echo api_get_self(); ?>?action=insert_link"><?php Display::display_icon('addd.gif', get_lang('InsertLink')); ?></a>
-                <a href="<?php echo api_get_self(); ?>?action=insert_link"/><?php echo get_lang('InsertLink'); ?></a>
+                <a href="<?php echo api_get_self(); ?>?action=insert_link"><?php echo get_lang('InsertLink'); ?></a>
                 
     			<div class="menusection">
     				<span class="menusectioncaption"><?php echo api_ucfirst(get_lang('General')); ?></span>

+ 1 - 1
main/admin/resume_session.php

@@ -104,7 +104,7 @@ echo Display::tag('h3', $tool_name);
 <table class="data_table" width="100%">
 <tr>
   <th colspan="2"><?php echo get_lang('GeneralProperties'); ?>
-  	<a href="session_edit.php?page=resume_session.php&id=<?php echo $id_session; ?>"><?php Display::display_icon('edit.png', get_lang('Edit'), array(), 22); ?></a></th>
+  	<a href="session_edit.php?page=resume_session.php&id=<?php echo $id_session; ?>"><?php Display::display_icon('edit.png', get_lang('Edit'), array(), 22); ?></a>
   </th>
 </tr>
 <tr>

+ 1 - 3
main/admin/session_course_user_list.php

@@ -169,8 +169,6 @@ if($nbr_results > $limit) {
 <option value="delete"><?php echo get_lang('UnsubscribeSelectedUsersFromSession');?></option>
 </select>
 <button class="save" type="submit"> <?php echo get_lang('Ok'); ?></button>
-</table>
 </form>
 <?php
-Display::display_footer();
-?>
+Display::display_footer();

+ 23 - 30
main/admin/session_list.php

@@ -309,9 +309,9 @@ if (isset ($_GET['search']) && $_GET['search'] == 'advanced') {
 		  }
 		  ?></td>
 		  <td>
+		  	<a href="resume_session.php?id_session=<?php echo $enreg['id']; ?>"><?php Display::display_icon('edit.png', get_lang('Edit'), array(), 22); ?></a>
 			<a href="add_users_to_session.php?page=session_list.php&id_session=<?php echo $enreg['id']; ?>"><?php Display::display_icon('user_subscribe_session.png', get_lang('SubscribeUsersToSession'),'','22'); ?></a>
-			<a href="add_courses_to_session.php?page=session_list.php&id_session=<?php echo $enreg['id']; ?>"><?php Display::display_icon('courses_to_session.png', get_lang('SubscribeCoursesToSession'),'','22'); ?></a>
-			<a href="resume_session.php?id_session=<?php echo $enreg['id']; ?>"><?php Display::display_icon('edit.png', get_lang('Edit'), array(), 22); ?></a>
+			<a href="add_courses_to_session.php?page=session_list.php&id_session=<?php echo $enreg['id']; ?>"><?php Display::display_icon('courses_to_session.png', get_lang('SubscribeCoursesToSession'),'','22'); ?></a>			
             <a href="<?php echo api_get_self(); ?>?sort=<?php echo $sort; ?>&action=copy&idChecked=<?php echo $enreg['id'];?>" onclick="javascript:if(!confirm('<?php echo get_lang('ConfirmYourChoice'); ?>')) return false;"><?php Display::display_icon('copy.gif', get_lang('Copy'), array(), 22); ?></a>
             <a href="<?php echo api_get_self(); ?>?sort=<?php echo $sort; ?>&action=delete&idChecked=<?php echo $enreg['id']; ?>" onclick="javascript:if(!confirm('<?php echo get_lang('ConfirmYourChoice'); ?>')) return false;"><?php Display::display_icon('delete.png', get_lang('Delete'), array(), 22); ?></a>
 		  </td>
@@ -327,42 +327,35 @@ if (isset ($_GET['search']) && $_GET['search'] == 'advanced') {
 		<div align="left">
 		<?php
 
-		if($num>$limit) {
-		if($page) {
-			?>
-			<a href="<?php echo api_get_self(); ?>?page=<?php echo $page-1; ?>&sort=<?php echo $sort; ?>&keyword=<?php echo Security::remove_XSS($_REQUEST['keyword']); ?><?php echo @$cond_url; ?>"><?php echo get_lang('Previous'); ?></a>
-			<?php
-			} else {
-				echo get_lang('Previous');
-			}
-			?>
-			|
-
-			<?php
-			if($nbr_results > $limit) {
-			?>
-
-			<a href="<?php echo api_get_self(); ?>?page=<?php echo $page+1; ?>&sort=<?php echo $sort; ?>&keyword=<?php echo Security::remove_XSS($_REQUEST['keyword']); ?><?php echo @$cond_url; ?>"><?php echo get_lang('Next'); ?></a>
-
-			<?php
-			}
-			else
-			{
-				echo get_lang('Next');
-			}
-		}
+		if ($num>$limit) {
+    		if ($page) {
+    			?>
+    			<a href="<?php echo api_get_self(); ?>?page=<?php echo $page-1; ?>&sort=<?php echo $sort; ?>&keyword=<?php echo Security::remove_XSS($_REQUEST['keyword']); ?><?php echo @$cond_url; ?>"><?php echo get_lang('Previous'); ?></a>
+    			<?php
+    			} else {
+    				echo get_lang('Previous');
+    			}
+    			?>
+    			|    
+    			<?php
+    			if($nbr_results > $limit) {
+    			?>    
+    				<a href="<?php echo api_get_self(); ?>?page=<?php echo $page+1; ?>&sort=<?php echo $sort; ?>&keyword=<?php echo Security::remove_XSS($_REQUEST['keyword']); ?><?php echo @$cond_url; ?>"><?php echo get_lang('Next'); ?></a>    
+    			<?php
+    			} else {
+    				echo get_lang('Next');
+    			}
+    		}
 		?>
 		</div>
 
-		<br />
 		<a href="javascript: void(0);" onclick="javascript: selectAll('idChecked',<?php echo $x; ?>,'true');return false;"><?php echo get_lang('SelectAll') ?></a>&nbsp;-&nbsp;
 		<a href="javascript: void(0);" onclick="javascript: selectAll('idChecked',<?php echo $x; ?>,'false');return false;"><?php echo get_lang('UnSelectAll') ?></a>
 		<select name="action">
 		<option value="delete"><?php echo get_lang('DeleteSelectedSessions'); ?></option>
 		</select>
 		<button class="save" type="submit" name="name" value="<?php echo get_lang('Ok') ?>"><?php echo get_lang('Ok') ?></button>
-		<?php } ?>
-	</table>
-<?php
+<?php 
+	}
 }
 Display::display_footer();

+ 1 - 1
main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/ajax_text_editor.php

@@ -96,7 +96,7 @@
 	<textarea name="content" id="content" style="height:500px; width: 97%;"><?php echo getFileContent($path); ?></textarea>
 </div>
 <div id="windowProcessing" class="jqmWindow" style="display:none">
-	<form name="frmProcessing" id="frmProcessing" method="POST" action="<?php echo appendQueryString(CONFIG_URL_SAVE_TEXT, makeQueryString(array('path')));?>">
+	<form name="frmProcessing" id="frmProcessing" method="post" action="<?php echo appendQueryString(CONFIG_URL_SAVE_TEXT, makeQueryString(array('path')));?>">
 		<input type="hidden" name="folder" id="folder" value="<?php echo dirname($path); ?>" />
 		<input type="hidden" name="name" id="name" value="<?php echo basename($path); ?>" />	
 		<input type="hidden" name="save_as_request" id="save_as_request" value="0" />

+ 4 - 4
main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/ajaxfilemanager.php

@@ -302,7 +302,7 @@
  					<li ><a href="#" id="actionZip"><span>Zip</span></a><li>
 					<li ><a href="#" id="actionUnzip"><span>Unzip</span></a><li>-->
 				</ul>    
-<form action="" method="POST" name="formAction" id="formAction"><input type="hidden" name="currentFolderPath" id="currentFolderPathVal" value="" /><select name="selectedDoc[]" id="selectedDoc" style="display:none;" multiple="multiple"></select><input type="hidden" name="action_value" value="" id="action_value" /></form>				  
+<form action="" method="post" name="formAction" id="formAction"><input type="hidden" name="currentFolderPath" id="currentFolderPathVal" value="" /><select name="selectedDoc[]" id="selectedDoc" style="display:none;" multiple="multiple"></select><input type="hidden" name="action_value" value="" id="action_value" /></form>				  
     </div>
     
     <div id="body">
@@ -540,7 +540,7 @@
   			<a href="#" onclick="tb_remove();"><img src="theme/default/images/flagno.png"title="<?php echo LBL_ACTION_CLOSE; ?>"><?php echo LBL_ACTION_CLOSE; ?></a><!-- Add close image for Chamilo -->
   		</div>
   		<div class="jqmBody">
-		  	<form id="formUpload" name="formUpload" method="POST" enctype="multipart/form-data" action="">
+		  	<form id="formUpload" name="formUpload" method="post" enctype="multipart/form-data" action="">
 		  	<table class="tableForm" cellpadding="0" cellspacing="0">
 		  		<thead>
 		  			<tr>
@@ -591,7 +591,7 @@
   			<a href="#" onclick="return tb_remove();"><img src="theme/default/images/flagno.png"title="<?php echo LBL_ACTION_CLOSE; ?>"><?php echo LBL_ACTION_CLOSE; ?></a><!-- Add close image for Chamilo -->  
   		</div>
   		<div class="jqmBody">
-	    	<form id="formNewFolder" name="formNewFolder" method="POST" action="">
+	    	<form id="formNewFolder" name="formNewFolder" method="post" action="">
 	  	<input type="hidden" name="currentFolderPath" value="" id="currentNewfolderPath" />
 	  	<table class="tableForm" cellpadding="0" cellspacing="0">
 	  		<thead>
@@ -635,7 +635,7 @@
             <a href="#" onclick="return tb_remove();"><img src="theme/default/images/flagno.png"title="<?php echo LBL_ACTION_CLOSE; ?>"><?php echo LBL_ACTION_CLOSE; ?></a><!-- Add close image for Chamilo -->
   		</div>
   		<div class="jqmBody">
-		  	<form id="formRename" name="formRename" method="POST" action="">
+		  	<form id="formRename" name="formRename" method="post" action="">
 		  	<input type="hidden" name="original_path" id="original_path" />
 		  	<input type="hidden" name="num" id="renameNum" value="" />
 		  	<table class="tableForm" cellpadding="0" cellspacing="0">

+ 9 - 57
main/user/class.php

@@ -1,37 +1,10 @@
 <?php
-//  $Id: class.php 9119 2006-08-18 07:10:23Z bmol $
-/*
-==============================================================================
-	Dokeos - elearning and course management software
-
-	Copyright (c) 2004-2005 Dokeos S.A.
-	Copyright (c) Bart Mollet, Hogeschool Gent
-
-	For a full list of contributors, see "credits.txt".
-	The full license can be read in "license.txt".
-
-	This program is free software; you can redistribute it and/or
-	modify it under the terms of the GNU General Public License
-	as published by the Free Software Foundation; either version 2
-	of the License, or (at your option) any later version.
-
-	See the GNU General Public License for more details.
-
-	Contact address: Dokeos, 44 rue des palais, B-1030 Brussels, Belgium
-	Mail: info@dokeos.com
-==============================================================================
-*/
+/* For licensing terms, see /license.txt */
 /**
-==============================================================================
-*	This							 script allows teachers to manage subscribed
-*classes in their course.
-*	@package dokeos.user
-==============================================================================
+*	@package chamilo.user
 */
 /*
-==============================================================================
 		INIT SECTION
-==============================================================================
 */
 // name of the language file that needs to be included
 $language_file = array('registration','admin');
@@ -43,39 +16,25 @@ require_once (api_get_path(LIBRARY_PATH).'sortabletable.class.php');
 require_once (api_get_path(LIBRARY_PATH).'classmanager.lib.php');
 require_once (api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php');
 
-/*
-==============================================================================
-		MAIN CODE
-==============================================================================
-*/
+/*		MAIN CODE	*/
 
 api_protect_course_script();
 
-if(api_get_setting('use_session_mode')=='true')
-{
+if (api_get_setting('use_session_mode')=='true') {
 	api_not_allowed();
 }
 
-/*
------------------------------------------------------------
-	Header
------------------------------------------------------------
-*/
 $tool_name = get_lang("Classes");
 //extra entries in breadcrumb
 $interbreadcrumb[] = array ("url" => "user.php", "name" => get_lang("ToolUser"));
 Display :: display_header($tool_name, "User");
 
 api_display_tool_title($tool_name);
-if (api_is_allowed_to_edit())
-{
+if (api_is_allowed_to_edit()) {
 	echo '<a href="subscribe_class.php?'.api_get_cidreq().'">'.get_lang("AddClassesToACourse").'</a><br /><br />';
 }
-/*
-==============================================================================
-		MAIN SECTION
-==============================================================================
-*/
+
+/*		MAIN SECTION*/
 
 if(api_is_allowed_to_edit())
 {
@@ -102,9 +61,7 @@ if(api_is_allowed_to_edit())
 	}
 }
 /*
------------------------------------------------------------
 		SHOW LIST OF CLASSES
------------------------------------------------------------
 */
 
 /**
@@ -196,10 +153,5 @@ if (api_is_allowed_to_edit())
 $form->display();
 echo '<br />';
 $table->display();
-/*
-==============================================================================
-		FOOTER
-==============================================================================
-*/
-Display :: display_footer();
-?>
+
+Display :: display_footer();

+ 1 - 1
main/user/classes.php

@@ -1,5 +1,5 @@
 <?php
-/* For licensing terms, see /chamilo_license.txt */
+/* For licensing terms, see /license.txt */
 /**
  * @package chamilo.classes
  * @author Julio Montoya <gugli100@gmail.com>

+ 7 - 34
main/user/subscribe_class.php

@@ -1,24 +1,15 @@
 <?php
-//  $Id: subscribe_class.php 8213 2006-03-15 15:52:12Z turboke $
-/* For licensing terms, see /license.txt	*/
+/* For licensing terms, see /license.txt */
 /**
-==============================================================================
-*	This script allows teachers to subscribe existing classes to their course.
-*	@package dokeos.user
-==============================================================================
-*/
-/*
-==============================================================================
-		INIT SECTION
-==============================================================================
+*	@package chamilo.user
 */
+
 // name of the language file that needs to be included
 $language_file = array('registration','admin');
 include ('../inc/global.inc.php');
 $this_section = SECTION_COURSES;
 if (!api_is_allowed_to_edit()) api_not_allowed(true);
-if(api_get_setting('use_session_mode')=='true')
-{
+if(api_get_setting('use_session_mode')=='true') {
 	api_not_allowed(true);
 }
 
@@ -28,16 +19,7 @@ require_once (api_get_path(LIBRARY_PATH).'classmanager.lib.php');
 require_once (api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php');
 
 /*
-==============================================================================
-		MAIN CODE
-==============================================================================
-*/
-
-
-/*
------------------------------------------------------------
-	Header
------------------------------------------------------------
+	MAIN CODE
 */
 $tool_name = get_lang("AddClassesToACourse");
 //extra entries in breadcrumb
@@ -48,9 +30,7 @@ Display :: display_header($tool_name, "User");
 api_display_tool_title($tool_name);
 
 /*
-==============================================================================
 		MAIN SECTION
-==============================================================================
 */
 
 if (!api_is_allowed_to_edit())
@@ -83,9 +63,7 @@ if (isset ($_POST['action']))
 }
 
 /*
------------------------------------------------------------
 		SHOW LIST OF USERS
------------------------------------------------------------
 */
 
 /**
@@ -193,10 +171,5 @@ $table->set_form_actions(array ('subscribe' => get_lang('reg')), 'class');
 $form->display();
 echo '<br />';
 $table->display();
-/*
-==============================================================================
-		FOOTER
-==============================================================================
-*/
-Display :: display_footer();
-?>
+
+Display :: display_footer();

+ 1 - 2
main/user/subscribe_user.php

@@ -769,5 +769,4 @@ function display_extra_profile_fields_filter()
 	echo   '<select name="subscribe_user_filter_value" id="subscribe_user_filter_value">'.$return.'</select>';
 	echo   '<button type="submit" name="submit_filter" id="submit_filter" value="" class="search">'.get_lang('Filter').'</button>';
 	echo '</form>';
-
-}
+}

+ 3 - 8
main/user/userInfoLib.php

@@ -1,15 +1,10 @@
 <?php
-/* For licensing terms, see /license.txt	*/
+/* For licensing terms, see /license.txt*/
 /**
-==============================================================================
-*	@package dokeos.user
-==============================================================================
+*	@package chamilo.user
 */
 
-
-/*----------------------------------------
-     CATEGORIES DEFINITION TREATMENT
- --------------------------------------*/
+/*     CATEGORIES DEFINITION TREATMENT */
 /**
  * create a new category definition for the user information
  *

+ 1 - 3
main/user/user_add.php

@@ -9,7 +9,6 @@
 // name of the language file that needs to be included
 $language_file="registration";
 
-
 include("../inc/global.inc.php");
 require_once(api_get_path(INCLUDE_PATH).'lib/mail.lib.inc.php');
 $this_section=SECTION_COURSES;
@@ -367,5 +366,4 @@ else
     echo "<p>".get_lang('IfYouWantToAddManyUsers')."</p>";
 }
 
-Display::display_footer();
-?>
+Display::display_footer();