Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Pages: [1]   Go Down
Print
Author Topic: Resource Management  (Read 852 times)
0 Members and 1 Guest are viewing this topic.
sdimbert
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« on: February 12, 2002, 05:14:00 PM »

I am sure that someone must have thought of this before, but I can't find any mention of it using the Search page.

I run a facility with 4 rooms (resources) that multiple people book for projects. I'd like to break each week of the Calendar up into horizontal rows which represent each resource so that, at a glance, a user can see when Room A is open in a particular week.

If possible, we'd like to color those rows, or the text in them, to make things easier to see.

Is there a "Resource Management" plugin or hack available? Like I said, I can't be the first potential user to ask for this.

Thanks!  

Logged
sdimbert
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #1 on: February 22, 2002, 12:59:00 PM »

Ummm.... hello?

Is there anyone around that could answer this questions?

------------------

Logged
Rufus
New Member
*

Karma: 0
Offline Offline

Posts: 0

Childrens Entertainer, Web Geek


WWW
« Reply #2 on: February 22, 2002, 02:29:00 PM »

Actually, this sounds like an interesting challenge - I'll be looking into this over the weekend.

basically, the approach I'm looking at is (again!) meta-calendars. For example, a salon would have each seat's schedule, but also the salon as a whole would show salon hours or whatever.

Or, in my case, we have two party rooms and we also have traveling entertainers - so we'd want each room to have its own schedule, listed under the main business calendar!

Hoy. I'm not gonna sleep this weekend. Thanks.

Regards!
-Toby

------------------
If I can count on my friends, why did God  give me fingers?

- W. T. Pooh

Logged

If I can count on my friends, why did God  give me fingers?

- W. T. Pooh


TubaDave
New Member
*

Karma: 0
Offline Offline

Posts: 0

Student


WWW
« Reply #3 on: February 22, 2002, 03:03:00 PM »

So let me get this straight.  You want the calendar to look something like this...
code:

Sun Mon Tue Wed Thu Fri Sat


Rm1 Rm1 Rm1 Rm1 Rm1 Rm1 Rm1
Rm2 Rm2 Rm2 Rm2 Rm2 Rm2 Rm2
Rm3 Rm3 Rm3 Rm3 Rm3 Rm3 Rm3
Rm4 Rm4 Rm4 Rm4 Rm4 Rm4 Rm4


Rm1 Rm1 Rm1 Rm1 Rm1 Rm1 Rm1
Rm2 Rm2 Rm2 Rm2 Rm2 Rm2 Rm2
Rm3 Rm3 Rm3 Rm3 Rm3 Rm3 Rm3
Rm4 Rm4 Rm4 Rm4 Rm4 Rm4 Rm4


Rm1 Rm1 Rm1 Rm1 Rm1 Rm1 Rm1
Rm2 Rm2 Rm2 Rm2 Rm2 Rm2 Rm2
Rm3 Rm3 Rm3 Rm3 Rm3 Rm3 Rm3
Rm4 Rm4 Rm4 Rm4 Rm4 Rm4 Rm4


Rm1 Rm1 Rm1 Rm1 Rm1 Rm1 Rm1
Rm2 Rm2 Rm2 Rm2 Rm2 Rm2 Rm2
Rm3 Rm3 Rm3 Rm3 Rm3 Rm3 Rm3
Rm4 Rm4 Rm4 Rm4 Rm4 Rm4 Rm4



with Rm1, Rm2, Rm3, Rm4 colored differently.  Is that correct?

If so, here's how you do it.  First, you would create another field called "Room" in the Customize Event Fields screen.  Make it a selectbox for Room1, Room2, Room3, Room4, and set the values to 1, 2, 3, 4 respectively.  Then in your display template, you should have something looking vaguely like this.

code:

<% FOREACH GRID ROW %>
 <% foreach $i (1 .. 4) {
    #set background color to 4 shades of blue, for instance
    if ($i == 1) { $bgc = "#000033"; }
    if ($i == 2) { $bgc = "#000066"; }
    if ($i == 3) { $bgc = "#000099"; }
    if ($i == 4) { $bgc = "#0000CC"; }
 %>
   <TR BGCOLOR="<%= $bgc %>">
   <% FOREACH GRID COLUMN %>
     <TD VALIGN="top" WIDTH="14%">
     <% IF DISPLAY %>
       <% if ($i == 1) { %>
         <B><%=$DAY->{'dd'}%></B><BR>
       <% } %>
       <% FOREACH EVENT %>
         <% if ($EVENT->{'details'}->{'Room'} == $i) { %>
           <FONT FACE="arial" SIZE="-2">• <%= $EVENT->{'details'}->{'title'} %></FONT><BR>
         <% } %>
       <% /FOREACH %>
     <% /IF %>
     </TD>
   <% /FOREACH %>
   </TR>
 <% } %>
<% /FOREACH %>

First, let me say that I am just learning perl, so there may be some blatant errors in the perl specific code.  Also, I didn't include any kind of month or week headers, but those should just be copy and pasted from the default calendar.  Other than that, it should work.

Integrating this into a plugin with the same kind of adaptability we've come to expect from the rest of the script would be quite difficult, since it would require each calendar to support custom fields, including the number of resources and the background color for each (the two things I hard-coded into the code above), it would be much easier to integrate into a template than a plugin, except I'm not sure how you would handle saving varying numbers of resources' background colors.  Perhaps a better solution will present itself when the meta-calendar support is added in the next release or two.  Feel free to use this approach until then, though.

If you would like me to throw together a template for you with these properties, send me an email at david@wowgod.net, and I'll see if I can make some time for it.

Hope that helps.

------------------


[This message has been edited by TubaDave (edited February 22, 2002).]

[This message has been edited by TubaDave (edited February 22, 2002).]

[This message has been edited by TubaDave (edited February 22, 2002).]

Logged

Rufus
New Member
*

Karma: 0
Offline Offline

Posts: 0

Childrens Entertainer, Web Geek


WWW
« Reply #4 on: February 22, 2002, 03:09:00 PM »

Nope. From what I've seen, the beauty of the plugin architecture is this: in addition to the plugin itself, it can also have a back-end component (something it does on the admin side) which, I think, would allow the admin to edit preferences for that plugin.

By this thinking, you're right. a single calendar with multiple 'Rooms' is the way to go, and that's the tack I'm taking. If no room is specified, it'll be a default 'All rooms' setting.

I think, though, that the admin side can have a preference allowing the setting of color/attribute per asset (room). I'm gonna look into it anyway, and see how far we can extend this particular metaphor....

Regards!
-Toby

------------------
If I can count on my friends, why did God  give me fingers?

- W. T. Pooh

Logged

If I can count on my friends, why did God  give me fingers?

- W. T. Pooh


TubaDave
New Member
*

Karma: 0
Offline Offline

Posts: 0

Student


WWW
« Reply #5 on: February 22, 2002, 03:59:00 PM »

Looking back through the source of the admin script, I see that there is a catchall else statement down at the bottom that allows you to create whole new commands.  So I guess you could actually add another template to the admin interface, and another command through the plugin interface, and another calendar template that supports multiple resources. This would allow you to integrate a whole new feature into the script on both the admin and the display side at once.  Matt, you're awesome!

Looking forward to the plugin documentation.
David Whittaker

------------------

Logged

sdimbert
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #6 on: April 15, 2002, 11:36:00 AM »

So... any progress?

------------------

Logged
stephenlac
New Member
*

Karma: 0
Offline Offline

Posts: 0

Graphics


« Reply #7 on: November 01, 2002, 11:56:00 PM »

I'm interested to see if anything was accomplished along this line. Anyone have ideas or sample code?

Thanks

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #8 on: November 02, 2002, 02:02:00 PM »

** I'm interested to see if anything was accomplished along this line. **

See if the previous message "Different categories idea" has anything you can use.

Dan O.

------------------

Logged
Bob@WildBacon.com
Guest
« Reply #9 on: June 06, 2003, 09:41:00 PM »

I am just looking at CS and trying to figure out if I can make use of it.  This thread is the closest I could find to what I am looking for.  I would like to have resource calendars where techs block out their time.  Then in the main calendar, when I need to assign a tech to an event the drop down list only shows techs who are available.

Is this in the realm of doable or is it beyond the scope?

Thanks in advance for any pointers.

-Bob

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #10 on: June 07, 2003, 12:33:00 PM »

** when I need to assign a tech to an event the drop down list only shows techs who are available. **

I think that would be difficult to do since as the calendar stands the event details are entered before a schedule is selected for it. Before the schedule is selected the calendar wouldn't know which date to look at to determine what choices are available.

There may be some way to design a plug-in to do what you want but I haven't seen such a thing available. You would likely have to design it yourself or hire someone to program it for you.

Dan O.
Unofficial CalendarScript - Mods and Plugins site

------------------

Logged
Master-Shinobi
Guest
« Reply #11 on: October 07, 2005, 01:23:00 PM »

Hi This sound like it might be what I'm looking for.

I run a driving school and I need my calendar to be like a grid with days across the top and times down the side eg


     | Mon | Tue | Wed | Thur| etc
-------------------------------------
8.00  |     |     |     |     |
-------------------------------------
9.15  |     |     |     |     |
-------------------------------------
10.30 |     |     |     |     |
-------------------------------------
11.45 |     |     |     |     |
-------------------------------------
when you enter an event I would like it to go in a grid for example Mon at 8.00-9.00 or Thurs 13.00-14.00.
so I need grid lines or is there some way I can enter each event on a given day in order and manually add the time.
heres what the normal schedule looks like            
please help

thanks

John

Logged
Pages: [1]   Go Up
Print
Jump to: