diff --git a/main/group/group.php b/main/group/group.php
index f68d1d7c01..c885aee9fc 100644
--- a/main/group/group.php
+++ b/main/group/group.php
@@ -1,4 +1,4 @@
-'.Display::return_icon('edit_group.gif').' '.get_lang('PropModify').' ';
echo Display::return_icon('settings.gif', get_lang('PropModify')) . ''.get_lang('PropModify').' ';
}
+ echo Display::return_icon('csv.gif', get_lang('ExportAsCSV')).''.get_lang('ExportAsCSV').' ';
+ echo Display::return_icon('excel.gif', get_lang('ExportAsXLS')).' '.get_lang('ExportAsXLS').'';
//echo ''.Display::return_icon('group_add_big.gif').' '.get_lang('NewGroupCreate').' ';
}
$group_cats = GroupManager :: get_categories();
if (get_setting('allow_group_categories') == 'true' && count($group_cats) > 1)
{
//echo '
'.get_lang('ShowAll').'
';
- echo ''.get_lang('ShowAll').'';
+ echo Display::return_icon('group.gif').' '.get_lang('ShowAll').'';
}
echo '';
/*
@@ -218,13 +220,13 @@ foreach ($group_cats as $index => $category)
{
if (isset ($_GET['show_all']) || (isset ($_GET['category']) && $_GET['category'] == $category['id']))
{
- echo '
';
+ echo '
';
echo ' '.$category['title'].'';
$in_category = true;
}
else
{
- echo '
';
+ echo '
';
echo ' '.$category['title'].'';
}
$group_list = GroupManager :: get_group_list($category['id']);
diff --git a/main/group/group_category.php b/main/group/group_category.php
index e67003bb61..5c0dce6cb0 100644
--- a/main/group/group_category.php
+++ b/main/group/group_category.php
@@ -1,5 +1,5 @@
"group.php", "name" => get_lang('GroupManagement'));
+$interbreadcrumb[] = array ("url" => "group.php", "name" => get_lang('Groups'));
// Build the form
if (isset ($_GET['id']))
{
@@ -112,6 +112,8 @@ else
$action = 'add_category';
$form = new FormValidator('group_category');
}
+$form->addElement('header', '', $nameTools);
+
// If categories allowed, show title & description field
if (get_setting('allow_group_categories') == 'true')
{
@@ -139,7 +141,7 @@ $group[] = & $form->createElement('static', null, null, get_lang('QtyOfUserCanSu
$form->addGroup($group, 'limit_group', get_lang('GroupLimit'), ' ', false);
$form->addRule('limit_group',get_lang('MaxGroupsPerUserInvalid'),'callback','check_groups_per_user');
// Default settings for new groups
-$form->addElement('header', null, get_lang('DefaultSettingsForNewGroups'));
+$form->addElement('static', null, ''.get_lang('DefaultSettingsForNewGroups').'');
// Members per group
$form->addElement('radio', 'max_member_no_limit', get_lang('GroupLimit'), get_lang('NoLimit'),MEMBER_PER_GROUP_NO_LIMIT);
$group = array ();
@@ -214,9 +216,6 @@ if ($form->validate())
}
// Else display the form
Display :: display_header($nameTools, "Group");
-echo '';
-echo $nameTools;
-echo '
';
$defaults = $category;
$defaults['action'] = $action;
if( $defaults['max_student'] == MEMBER_PER_GROUP_NO_LIMIT)
diff --git a/main/group/group_creation.php b/main/group/group_creation.php
index 4da1d0c118..aaf0e89a0e 100644
--- a/main/group/group_creation.php
+++ b/main/group/group_creation.php
@@ -106,11 +106,9 @@ if (isset ($_POST['action']))
}
}
$nameTools = get_lang('GroupCreation');
-$interbreadcrumb[] = array ("url" => "group.php", "name" => get_lang('GroupManagement'));
+$interbreadcrumb[] = array ("url" => "group.php", "name" => get_lang('Groups'));
Display :: display_header($nameTools, "Group");
-echo '';
-echo $nameTools;
-echo '
';
+
if (!is_allowed_to_edit())
{
api_not_allowed();
@@ -217,7 +215,7 @@ elseif (isset ($_POST['number_of_groups']))
EOT;
$renderer->setElementTemplate($element_template);
-
+ $form->addElement('header', '', $nameTools);
$form->addElement('hidden', 'action');
$form->addElement('hidden', 'number_of_groups');
@@ -272,11 +270,11 @@ else
* Show form to generate new groups
*/
$categories = GroupManager :: get_categories();
- echo ''.get_lang('NewGroups').'';
- echo '';
+ //echo '';
if (count($categories) > 1 || isset ($categories[0]) && $categories[0]['id'] != VIRTUAL_COURSE_CATEGORY)
{
$create_groups_form = new FormValidator('create_groups');
+ $create_groups_form->addElement('header', '', $nameTools);
$group_el = array ();
$group_el[] = & $create_groups_form->createElement('static', null, null, get_lang('Create'));
$group_el[] = & $create_groups_form->createElement('text', 'number_of_groups', null, array ('size' => 3));
@@ -292,7 +290,7 @@ else
{
echo get_lang('NoCategoriesDefined');
}
- echo '
';
+ //echo '
';
/*
* Show form to generate groups from virtual courses
*/
diff --git a/main/group/group_edit.php b/main/group/group_edit.php
index 33f4cb3f19..f4489e6c2c 100644
--- a/main/group/group_edit.php
+++ b/main/group/group_edit.php
@@ -63,7 +63,7 @@ $current_group = GroupManager :: get_group_properties($_SESSION['_gid']);
-----------------------------------------------------------
*/
$nameTools = get_lang('EditGroup');
-$interbreadcrumb[] = array ("url" => "group.php", "name" => get_lang('GroupManagement'));
+$interbreadcrumb[] = array ("url" => "group.php", "name" => get_lang('Groups'));
if (!api_is_allowed_to_edit(false,true)) {
api_not_allowed(true);
@@ -123,6 +123,7 @@ function check_group_members($value) {
// Build form
$form = new FormValidator('group_edit');
+$form->addElement('header', '', $nameTools);
$form->addElement('hidden', 'action');
$form->addElement('hidden', 'referer');
// Group name
@@ -307,11 +308,11 @@ if (isset($_POST['group_members'])) {
}
}
Display :: display_header($nameTools, "Group");
-echo '';
-echo $nameTools;
-echo '
';
?>
-
+
+
"group.php","name" => get_lang('GroupManagement'));
+$interbreadcrumb[]=array("url" => "group.php","name" => get_lang('Groups'));
if (!isset ($_GET['origin']) || $_GET['origin'] != 'learnpath')
{ //so we are not in learnpath tool
if (! $is_allowed_in_course) api_not_allowed(true);
+ if (!api_is_allowed_to_edit(false,true)) api_not_allowed(true);
else Display::display_header($nameTools,"Group");
}
else
@@ -110,6 +111,14 @@ else
// action links
echo '';
diff --git a/main/group/group_space.php b/main/group/group_space.php
index db642dd02e..81a23e0e9e 100644
--- a/main/group/group_space.php
+++ b/main/group/group_space.php
@@ -1,4 +1,4 @@
-';
+echo ''.Display::return_icon('back.png').get_lang('BackToGroupList').'';
/*
* Edit the group
*/
if (api_is_allowed_to_edit(false,true) or GroupManager :: is_tutor($_user['user_id'])) {
isset($origin)?$my_origin = $origin:$my_origin='';
- echo Display::return_icon('settings.gif', get_lang("EditGroup"))."".get_lang("EditGroup")."
";
+ echo Display::return_icon('edit.gif', get_lang("EditGroup"))."".get_lang("EditGroup")."";
}
/*
* Register to group
*/
if (GroupManager :: is_self_registration_allowed($_SESSION['_user']['user_id'], $current_group['id'])) {
- echo ''.get_lang("RegIntoGroup").'
';
+ echo ''.Display::return_icon('groupadd.gif').get_lang("RegIntoGroup").'';
}
/*
* Unregister from group
*/
if (GroupManager :: is_self_unregistration_allowed($_SESSION['_user']['user_id'], $current_group['id'])) {
- echo ''.get_lang("StudentUnsubscribe").'
';
+ echo ''.Display::return_icon('group_delete.gif').get_lang("StudentUnsubscribe").'';
}
+echo ' ';
if( isset($_GET['action'])) {
switch( $_GET['action']) {
@@ -163,7 +166,8 @@ $is_course_member = CourseManager :: is_user_subscribed_in_real_or_linked_course
/*
* Group title and comment
*/
-api_display_tool_title($nameTools.' '.stripslashes($current_group['name']));
+//api_display_tool_title($nameTools.' '.stripslashes($current_group['name']));
+
if (!empty($current_group['description'])) {
echo ''.stripslashes($current_group['description']).'
';
}