Minor cosmetic changes

skala
Julio Montoya 14 years ago
parent 56213d3b53
commit 79fcb2b196
  1. 3
      main/coursecopy/classes/Resource.class.php
  2. 33
      main/css/base.css
  3. 6
      main/group/group.php
  4. 10
      main/inc/lib/main_api.lib.php
  5. 2
      main/inc/local.inc.php

@ -66,8 +66,7 @@ class Resource
* @param int $id The id of this resource in the source course.
* @param constant $type The type of this resource.
*/
function Resource($id, $type)
{
function __construct($id, $type) {
$this->source_id = $id;
$this->type = $type;
$this->destination_id = -1;

@ -1285,6 +1285,7 @@ a.personal_agenda:hover, a.personal_agenda:hover {
font-size:13px;
float: left;
margin: 25px 0px 0px 10px;
width:70%;
}
/* input values to crop the image: top, right, bottom, left */
@ -2988,7 +2989,7 @@ input.maininput:focus {
div.lp_resource {
padding:5px 10px;
width:380px;
/* width:380px; */
list-style-type: none;
margin: 0;
padding: 0;
@ -3004,9 +3005,26 @@ div.lp_resource {
text-decoration: none;
text-shadow: 0 1px 1px #F6F6F6;
margin:5px;
padding:5px;
padding:5px;
}
/*LP changes
.lp_resource_element img {
float: left;
margin-bottom: 0;
margin-left: 43px;
margin-right: 43px;
margin-top: 7px;
}
.lp_resource_element a {
float: left;
margin-bottom: 12px;
margin-left: 33px;
margin-right: auto;
margin-top: 15px;
width: 100%;
}*/
.doc_resource {
margin:6px;
}
@ -4202,12 +4220,21 @@ a:active{
background: url("online.png") no-repeat scroll right center transparent;
}
.online_user_in_text {
background: url("online.png") no-repeat scroll right center transparent;
float: left;
height: 16px;
left: 0;
width: 17px;
display:block;
margin-right: 4px;
}
.hide_menu{
display:none;
}
.homepage_notice {
width:90%;
margin-left: 14px;

@ -288,13 +288,13 @@ foreach ($group_cats as $index => $category) {
// Max number of members in group
$max_members = ($this_group['maximum_number_of_members'] == MEMBER_PER_GROUP_NO_LIMIT ? '-' : $this_group['maximum_number_of_members']);
$max_members = ($this_group['maximum_number_of_members'] == MEMBER_PER_GROUP_NO_LIMIT ? ' ' : ' / '.$this_group['maximum_number_of_members']);
// Number of members in group
$row[] = $this_group['number_of_members'].'/'.$max_members;
$row[] = $this_group['number_of_members'].$max_members;
// Self-registration / unregistration
// Self-registration / unregistration
if (!api_is_allowed_to_edit(false, true)) {
if (GroupManager :: is_self_registration_allowed($_user['user_id'], $this_group['id'])) {
$row[] = '<a class = "a_button gray small" href="group.php?'.api_get_cidreq().'&category='.$category['id'].'&amp;action=self_reg&amp;group_id='.$this_group['id'].'" onclick="javascript:if(!confirm('."'".addslashes(api_htmlentities(get_lang('ConfirmYourChoice'), ENT_QUOTES, $charset))."'".')) return false;">'.get_lang('GroupSelfRegInf').'</a>';

@ -31,11 +31,11 @@ define('COURSEMANAGERLOWSECURITY', 10);
// Table of status
$_status_list[COURSEMANAGER] = 'teacher'; // 1
$_status_list[SESSIONADMIN] = 'session_admin'; // 3
$_status_list[DRH] = 'drh'; // 4
$_status_list[STUDENT] = 'user'; // 5
$_status_list[ANONYMOUS] = 'anonymous'; // 6
$_status_list[COURSEMANAGER] = 'teacher'; // 1
$_status_list[SESSIONADMIN] = 'session_admin'; // 3
$_status_list[DRH] = 'drh'; // 4
$_status_list[STUDENT] = 'user'; // 5
$_status_list[ANONYMOUS] = 'anonymous'; // 6
// COURSE VISIBILITY CONSTANTS

@ -601,7 +601,7 @@ if (!empty($cidReq) && (!isset($_SESSION['_cid']) or (isset($_SESSION['_cid']) &
}
// if the requested group is different from the group in session
$gid = isset($_SESSION['_gid'])?$_SESSION['_gid']:'';
$gid = isset($_SESSION['_gid']) ? $_SESSION['_gid'] : '';
if ($gidReq && $gidReq != $gid) {
$gidReset = true;
}

Loading…
Cancel
Save