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


Login with username, password and session length

Search

 
Advanced search

8021 Posts in 1850 Topics- by 2099 Members - Latest Member: roi
Pages: [1]   Go Down
Print
Author Topic: default to pm in add event  (Read 231 times)
0 Members and 1 Guest are viewing this topic.
rob
New Member
*

Karma: 0
Offline Offline

Posts: 0

various


WWW
« on: June 18, 2003, 09:31:00 PM »

I would like to have the program default to pm in add event.  It doesn't seem to be quite as simple as getting it to simply display PM - that is it needs to display PM and result in PM being transferred to the database so that it reads properly in the calendar.

Rob

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 219

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


WWW
« Reply #1 on: June 19, 2003, 07:42:00 PM »

** I would like to have the program default to pm in add event. **

You mean in "schedule event"?

Look in the schedule_event_non_recur.html and/or schedule_event_recurring.html administration template for the lines something like this:

<OPTION VALUE="pm" <%=$_end_pm%>>PM</SELECT>

and change it (in 2 places in each) to something like

<OPTION VALUE="pm" <% if (!$_end_am){%>CHECKED<%}%>>PM</SELECT>

That should make "PM" the selected option unless the event has been already been set to "AM" previously.

Dan O.

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

Logged
cunnida
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #2 on: March 26, 2005, 08:37:00 PM »

Thanks for the help!

I tried the steps above, but they seem to be cancelled out if you opt to use 12 hour time because there is a block of statements at the beginning of schedule_event_non_recur that presets start_am and end_am to SELECTED if the time is 00 and that is what a new event would carry.

I really need my users to have "PM" as the default...any other ideas?

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 219

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


WWW
« Reply #3 on: March 27, 2005, 02:06:00 PM »

** block of statements that presets start_am and end_am to SELECTED ...any other ideas? **

Modify that code?

Dan O.

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

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