— tir
planlagt, publiseret trips, finde gaster til grækenland

– ons
Mor, sende dbk rykker mails

 

I need a new functionality to create cafe events. cafe events follows a repeated pattern, so i have created database with : period_start, period_end (DateTime), start_time & end_time (00:00-23:59), days in week (TinyInt): on_monday, on_tuesday, on_wednesday, on_thursday, on_friday, on_saturday, on_sunday.

A new dialog ‘cafe_events.php’ should show a list of these records (sorted by period_start descending) should be made. For each row a edit (pen icon) and delete (trash can). Top right is a “Add new” button.

Another dialog ‘cafe_edit.php’ should be made to handle the edit of a row. Also the create new. So i need to have all the fields in the entity editable in dialog.
A button “Calculate” should list all the cafe events the specification dictates: from (including period_start day to and including period_end day. A new bizz class ‘cafe_bizz.php’ has a method to investigate if the already is a cafe event on that day. So when the “Calculate” is pressed, dialog now lists alle existing events that are OK as Green sqhares with the date inside. Existing events where the event_start or event_slut needs adjustment should be Yellow sqares (with date in them). And new none exising events should be shown as red squares.
A second button “Create” should now create the red ones and adjust the yellow cafe events in the calendar. Method is placed in cafe_bizz.php.

There can only be 1 cafe event on any day. Cafe events have title “Café” and eventtype “cafe”. When created a hardcoded CAFE_OWNER is used as fg_event_crew_role “Arrangør” (role also hardcoded) and fg_event_id set point to new event created. There is already a method for creating events in the sync unitii code. Align this a put method in cafe_bizz library.

 

Slet person i Vis ,bedre visning fortid/fremtid

— tors
løb

-fre
fredagsbar?

– lørdag

Log hjul på

 

log bog, sejlertøj, sengetøj

Roskilde BilTema: skiver, Voks, Alurens

 

This website uses cookies. By continuing to use this site, you accept our use of cookies.