Page 2 of 3
Re: tips for making weekly planner
Posted: Fri Sep 08, 2023 8:37 am
by steven
calida82,
Thanks.
Can you tell me a bit more?
Who is it for exactly?
How many other tables like clients or practitioners need to be used? - Sorry, I only speak English.
What period do you need to see on the screen at a time?
What information needs to be kept for each slot?
I'm guessing they are half-hour slots.
Can you tell us everything you need?
Otherwise, it's hard to know how to help.
Steven
Re: tips for making weekly planner
Posted: Fri Sep 08, 2023 1:33 pm
by kev1n
calida82 wrote: ↑Wed Sep 06, 2023 11:59 pm
how would you make this with just one form browse? can you explain it better? would each row be a day of the week and the appointments would be horizontal instead of vertical?
Something like this?
ezgif.com-video-to-gif.gif
In my opinion, achieving this won't be a swift endeavor; it will require a substantial proficiency in SQL, PHP, and JavaScript.
Re: tips for making weekly planner
Posted: Fri Sep 08, 2023 3:23 pm
by kev1n
I've created a proof of concept. The code is a bit messy and could certainly be optimised, but it's primarily a showcase to demonstrate that it can be done and how.
nubuilder_weekly_calendar.zip
Re: tips for making weekly planner
Posted: Fri Sep 08, 2023 7:35 pm
by steven
kev1n,
That looks great and would make a good template.
Steven
Re: tips for making weekly planner
Posted: Fri Sep 08, 2023 10:07 pm
by calida82
Kev1n this is awesome!!maybe you could share a sql backup here so I can download it
Re: tips for making weekly planner
Posted: Sat Sep 09, 2023 1:45 am
by kev1n
Give me some time to make some improvements.
Re: tips for making weekly planner
Posted: Sat Sep 09, 2023 8:25 am
by kev1n
While you wait, please let me know if you are missing any features or would like to see any changes.
Re: tips for making weekly planner
Posted: Sat Sep 09, 2023 5:48 pm
by calida82
It's all great and the approach to the problem is brilliant, just a small change... to display the date next to the day of the week. Only from the number of the week you always have to do the calculation and have a calendar nearby to understand which date corresponds to the day of the week.... one last thing, perhaps the most important, when you publish the code, I recommend many comments so as to understand how it works!
Re: tips for making weekly planner
Posted: Sun Sep 10, 2023 7:46 am
by kev1n
I've added the day of the week and commented the code. I will still need to tweak a few things.
Re: tips for making weekly planner
Posted: Sun Sep 10, 2023 8:51 am
by kev1n
Question: Where do you specify the duration of an appointment?