Improving icons + fixing forms, fixing styles

skala
Julio Montoya 13 years ago
parent 8d4d136bd5
commit 66e244282f
  1. 2
      main/admin/resume_session.php
  2. 2
      main/admin/user_information.php
  3. 4
      main/css/base.css
  4. 11
      main/social/group_add.php
  5. 11
      main/social/group_edit.php
  6. 12
      main/social/groups.php

@ -256,7 +256,7 @@ else {
//hide_course_breadcrumb the parameter has been added to hide the name of the course, that appeared in the default $interbreadcrumb
echo '
<tr>
<td>'.$course['title'].' ('.$course['visual_code'].')</td>
<td>'.Display::url($course['title'].' ('.$course['visual_code'].')', api_get_path(WEB_COURSE_PATH).$course['code'].'/?id_session='.$id_session),'</td>
<td>'.$coach.'</td>
<td>'.$course['nbr_users'].'</td>
<td>

@ -216,7 +216,7 @@ if ($_configuration['multiple_access_urls']) {
$url_list= UrlManager::get_access_url_from_user($user['user_id']);
if (count($url_list) > 0) {
$header = array();
$header[] = array (get_lang('URL'), true);
$header[] = array ('URL', true);
$data = array ();
foreach ($url_list as $url) {
$row = array();

@ -1368,9 +1368,9 @@ a.personal_agenda:hover, a.personal_agenda:hover {
font-size: 0.8em;
margin-right: 10px;
overflow: hidden;
padding: 7px 10px;
padding: 13px;
text-align: center;
width: 40px;
width: 47px;
margin-bottom: 65px;
}

@ -36,16 +36,7 @@ function text_longitud(){
textarea = document.forms[0].description.value;
}
}
</script>
<style>
div.row div.label {
width:15%;
}
div.row div.formw {
width:80%;
}
</style>';
</script>';
$table_message = Database::get_main_table(TABLE_MESSAGE);

@ -36,16 +36,7 @@ function textarea_maxlength(){
textarea = document.forms[0].description.value;
}
}
</script>
<style>
div.row div.label {
width:15%;
}
div.row div.formw {
width:80%;
}
</style>';
</script>';
$group_id = isset($_GET['id']) ? intval($_GET['id']) : intval($_POST['id']);
$tool_name = get_lang('GroupEdit');

@ -274,9 +274,9 @@ if ($group_id != 0 ) {
$content = MessageManager::display_messages_for_group($group_id);
if ($is_group_member) {
if (empty($content)) {
$create_thread_link = '<a href="'.api_get_path(WEB_CODE_PATH).'social/message_for_group_form.inc.php?view_panel=1&height=400&width=610&&user_friend='.api_get_user_id().'&group_id='.$group_id.'&action=add_message_group" class="a_button orange medium thickbox" title="'.get_lang('ComposeMessage').'">'.get_lang('YouShouldCreateATopic').'</a></li>';
$create_thread_link = '<a href="'.api_get_path(WEB_CODE_PATH).'social/message_for_group_form.inc.php?view_panel=1&height=400&width=610&&user_friend='.api_get_user_id().'&group_id='.$group_id.'&action=add_message_group" class="a_button white medium thickbox" title="'.get_lang('ComposeMessage').'">'.get_lang('YouShouldCreateATopic').'</a></li>';
} else {
$create_thread_link = '<a href="'.api_get_path(WEB_CODE_PATH).'social/message_for_group_form.inc.php?view_panel=1&height=400&width=610&&user_friend='.api_get_user_id().'&group_id='.$group_id.'&action=add_message_group" class="a_button orange medium thickbox" title="'.get_lang('ComposeMessage').'">'.get_lang('NewTopic').'</a>';
$create_thread_link = '<a href="'.api_get_path(WEB_CODE_PATH).'social/message_for_group_form.inc.php?view_panel=1&height=400&width=610&&user_friend='.api_get_user_id().'&group_id='.$group_id.'&action=add_message_group" class="a_button white medium thickbox" title="'.get_lang('ComposeMessage').'">'.get_lang('NewTopic').'</a>';
}
}
@ -478,11 +478,11 @@ if ($group_id != 0 ) {
$my_group_content = Display::return_sortable_grid('mygroups', array(), $grid_my_groups, array('hide_navigation'=>true, 'per_page' => 2), $query_vars, false, array(true, true, true,false));
}
if (api_get_setting('allow_students_to_create_groups_in_social') == 'true') {
$create_group_item = '<a class="a_button orange medium" href="'.api_get_path(WEB_PATH).'main/social/group_add.php">'.get_lang('CreateASocialGroup').'</a>';
$create_group_item = '<a class="a_button white medium" href="'.api_get_path(WEB_PATH).'main/social/group_add.php">'.get_lang('CreateASocialGroup').'</a>';
//$my_group_content = $create_group_item. $my_group_content;
} else {
if (api_is_allowed_to_edit(null,true)) {
$create_group_item = '<a class="a_button orange medium" href="'.api_get_path(WEB_PATH).'main/social/group_add.php">'.get_lang('CreateASocialGroup').'</a>';
$create_group_item = '<a class="a_button white medium" href="'.api_get_path(WEB_PATH).'main/social/group_add.php">'.get_lang('CreateASocialGroup').'</a>';
//$my_group_content = $create_group_item. $my_group_content;
}
}
@ -514,11 +514,11 @@ if ($group_id != 0 ) {
$my_group_content = Display::return_sortable_grid('mygroups', array(), $grid_my_groups, array('hide_navigation'=>true, 'per_page' => 2), $query_vars, false, array(true, true, true,false));
}
if (api_get_setting('allow_students_to_create_groups_in_social') == 'true') {
$create_group_item = '<a class="a_button orange medium" href="'.api_get_path(WEB_PATH).'main/social/group_add.php">'.get_lang('CreateASocialGroup').'</a>';
$create_group_item = '<a class="a_button white medium" href="'.api_get_path(WEB_PATH).'main/social/group_add.php">'.get_lang('CreateASocialGroup').'</a>';
//$my_group_content = $create_group_item. $my_group_content;
} else {
if (api_is_allowed_to_edit(null,true)) {
$create_group_item = '<a class="a_button orange medium" href="'.api_get_path(WEB_PATH).'main/social/group_add.php">'.get_lang('CreateASocialGroup').'</a>';
$create_group_item = '<a class="a_button white medium" href="'.api_get_path(WEB_PATH).'main/social/group_add.php">'.get_lang('CreateASocialGroup').'</a>';
//$my_group_content = $create_group_item. $my_group_content;
}
}

Loading…
Cancel
Save