phpScheduleIt
June 19, 2013, 07:47:40 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: phpScheduleIt 2.4.2 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Appearence Mods  (Read 1909 times)
dadrummerray
Newbie
*

Karma: 0
Posts: 6


« on: May 01, 2008, 01:38:31 PM »

In my current setup pf phpscheduleit, i need to add a border around the reservations when viewed in the 'booking' mode so that when i print a weeks calendar the reservations have a border showing them where the start and end time are on the calendar.  Has anybody done this before?

Also, where in the code do i change the color of the reservation cell?  I found the column color cell but didn't see where the reservation cell was explained.

Thanks,
Ray
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5506


WWW
« Reply #1 on: May 02, 2008, 10:04:11 AM »

The bookings page uses the colors defined in the config file.  For reservations owned by the logged in use, this would be $conf['ui']['my_res'][].


To add the border, try changing line 270 of templates/schedule.template.php to:     echo "<td colspan=\"$colspan\" style=\"color: $text; background-color: $color;border:solid 1px #000000;\" $js><div class=\"inlineSummary\">$summary_text</div></td>";
Logged
barh0002
Jr. Member
**

Karma: 0
Posts: 63


« Reply #2 on: August 29, 2008, 12:34:04 AM »

I had this problem in v 1.2.5 & 1.2.6 and again in 1.2.10

I have modified the colors in the config file like so:

Quote
/*
Configure this section to customize the color of reserved time blocks
Set 'color' to be the color when the mouse is not over the reservation
Set 'hover' to be the color when the mouse is moved over the reservation
Set 'text' to be the color of any text that is written on the reservation span
Please DO NOT put the hash mark (#) before the colors

'my_res' is the colors that will be used for all the upcoming reservations that the current user owns
'other_res' is the colors that will be used for all the upcoming reservations on the schedule that the current user does not own
'my_past_res' is the colors that will be used for all past reservations that the current user owns
'other_past_res' is the colors that will be used for all past reservations that the current user does not own
'blackout' is the colors that will be used for blacked out times (hover is only relative to the admin)
*/
$conf['ui']['my_res']         = array ('color' => '91a91c', 'hover' => '91a91c', 'text' => 'FFFFFF');
$conf['ui']['other_res']    = array ('color' => '64c0d0', 'hover' => '64c0d0', 'text' => 'FFFFFF');
$conf['ui']['my_past_res']   = array ('color' => '91a91c', 'hover' => '91a91c', 'text' => 'FFFFFF');
$conf['ui']['other_past_res'] = array ('color' => '64c0d0', 'hover' => '64c0d0', 'text' => 'FFFFFF');
$conf['ui']['pending']        = array ('color' => 'df6d2b', 'hover' => 'df6d2b', 'text' => 'FFFFFF');
$conf['ui']['blackout']       = array ('color' => '992d3f', 'hover' => '992d3f', 'text' => 'FFFFFF');


But when I go to the booking grid to make a reservation, regardless of whether i go in as an admin or a group admin or just a plain old user - no colors!


In Mozilla Firefox:

The resource to the left that I am selecting is highlighted in yellow.  This is good.

The behavior of the cells is correct.  This is good:
When I click on cells that I KNOW are blackout times (even though they appear white and then green on rollover), no reservation pop up appears.
When I click on cells that I KNOW are already booked (even though they appear white and then green on rollover) a private, non-editable pop up appears.
When I click on cells that I KNOW are available to book (even though they appear white and then green on rollover) a reservation pop-up appears.

But the booking grid cells are all white with green rollover:
ALL of the grid cells for the resources are white - even those with blackout times and existing reservations. 
All of the cells regardless of their state are green when I roll over them.
ALL of the color code/legend boxes at the top of the scheduling grid appear white with text that is the default text color specified in the css.css file EXCEPT for "Blacked Out Time" and "My Past Participation" which are white but have grayish colored text.

In IE6:
Selected resources are NOT highlighted in yellow.
All booking grid cells and the legend at the top df the page are white.
There are NO rollover colors at all in the grid - not even green.
It's been two years now and I have normally been able to hack my way through most issues, but I just can't figure out why this is happening and am not finding anyone else on the forums with this same issue! Everything else I have modified seems to work fine....but I just can't seem to figure this out.


Here's an example of what I am looking at: 

« Last Edit: September 03, 2008, 11:43:09 AM by barh0002 » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!