OK, I did this before, it is just a bit of subterfuge/logic.....
The tough part is, how do students log in? I have a sql db so that the create_by field is the login.
that makes it real easy to pull create_by in day, week, month, view_entry, whathaveyou and
do a compare. between create_by and the person currently logged in. it is then an easy matter
of allowing those entry titles to be seen by the user logged in but come up "***" for all others.
accept admin who gets to see all descriptions....
The only other functions you need to be mindfulof are the search and report functions as well
as the conflict error. meaning if you put in a week worth of appointments for a person
knowing that he already has many appointments it will display all of the conflicting
appointments along with info about each one.
if you are not using individual accounts, I have no idea how you could do it.
this is the simple logic from day.php (row[3] is shortdesc{mrbs_entry.name} and row[7] is mrbs_etry.create_by)
# Show the name of the booker (if permitted) in the first segment that the booking
# happens in, or at the start of the day if it started before today.
if($userlevel == 2 || getUserName() == htmlspecialchars($row[7])){
$sdescr = htmlspecialchars($row[3]);
} else {
$sdescr = "*****";
}
On May 9, 2006, at 9:54 AM, Umer Irshad wrote:
Hello there!
That website doesn't have a purpose of booking rooms, instead it will be used by students to booking appointments with their guidance counsellors. I do not want the students to see, the details of an appointment, therefore I have modified view_entry.php page, and now whenever an apointment is booked, it says "Booked!", in that cell. THis raises a problem, now the students can't delete/cancel their OWN appointment. How can I make a page where students, can see the details of their OWN appointments, that they have booked.
Also, how can I make it so, they they can't book any appointments between, 11:40PM and 12:40 PM. Thanks alot for your time!
--
Kind Regards,
Umer I.
-----------------
Morpheus:
Have you ever had a dream, that you were so sure was real? What if you were unable to wake from that dream? How would you know the difference between the dream world and the real world?